`gcloud services list` False Negatives When Combining `--limit` and `--filter`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 79/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- google-cloud
- Domain
- cloud, documentation
Research direction
Review .agents/skills/gcloud/SKILL.md under Data Reduction Strategies → Limiting and Location Discovery, plus .agents/skills/gcloud/references/cli-usage.md around project setup. Confirm the documented commands address filtered gcloud services list checks, Firestore location discovery, project verification, ADC quota project sync, and Cloud Run region setup. Done means those guidance updates are present and use the intended command examples.
Written by the indexing model from the issue text.
Description
1. The Core Problem (gcloud services list + --limit + --filter)
- What the skill currently instructs:
gcloud/SKILL.mdmandates data reduction flags (--limit,--filter,--format) on everygcloud ... listinvocation to avoid context window exhaustion. - What happens in practice: When checking whether a set of required APIs is enabled on a project (for example,
run.googleapis.com,firestore.googleapis.com,cloudbuild.googleapis.com, andartifactregistry.googleapis.com), an agent following the data-reduction rule runs:gcloud services list --enabled \ --filter="config.name:(run.googleapis.com OR firestore.googleapis.com OR cloudbuild.googleapis.com OR artifactregistry.googleapis.com)" \ --format="table(config.name,state)" \ --limit=10 --quiet - Why it fails: In the Google Cloud SDK (
lib/surface/services/list.py),gcloud services listpassesargs.limitdirectly toserviceusage.ListServices(project, args.enabled, args.page_size, args.limit)before client-side--filterevaluation runs. - Symptom:
--limit=10retrieves only the first 10 enabled services on the project in alphabetical order (which includesartifactregistry.googleapis.com, starting witha) and stops paging before reachingcloudbuild.googleapis.com,firestore.googleapis.com, orrun.googleapis.com. Even immediately aftergcloud services enablesucceeds, re-running the check still shows onlyartifactregistry.googleapis.com, causing false negatives where enabled APIs appear disabled. - Fix in patch: Documents this gotcha under Data Reduction Strategies → Limiting in
SKILL.md, instructing agents to omit--limitand rely on--filter="config.name:(...)"+--format="table(config.name,state)"when checking specific APIs viagcloud services list.
2. Secondary Onboarding & Discovery Gaps Addressed
- Firestore location discovery: Provisioning a Firestore database requires an explicit
--locationflag, and available Firestore locations differ from Compute Engine regions (including multi-regions likenam5/eur3). The patch addsgcloud firestore locations list --format="table(locationId,displayName)"to Location Discovery inSKILL.md. - Project lookup, verification, and ADC quota project sync:
references/cli-usage.mdpreviously showedgcloud config set core/project {project_id}in isolation without showing how to discover availableprojectIdvalues, verify the active project, synchronize the Application Default Credentials (ADC) quota project (gcloud auth application-default set-quota-project), or set the default Cloud Run region (gcloud config set run/region) non-interactively with--quiet.
0001-gcloud-document-services-list-limit-gotcha-and-proje.patch
- Dominant language
- Python
- Stars
- 23.1k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from google/skills
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Document registry default vs revision actually loaded by an agentMay be free again A pull request for this issue was closed without being merged. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Similar issues
-
namespace
Difficulty 1/5 Under an hour Newbie friendliness 68/100
EclipseFdn/open-vsx.org#15604 ·
Maintainers usually reply within 1 day
-
app: scripts severity: low status: backlog type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
netbox-community/netbox-scripts#164 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 5 days
-
Public function to read participants.tsvPossibly taken @bruAristimunha claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
huggingface/tau#799 ·
Maintainers usually reply within 2 days