Skip to content

docs(guide): name the project flag as load-bearing for build checks - #10484

Open
MarkusNeusinger wants to merge 2 commits into
mainfrom
docs/gcloud-project-flag
Open

docs(guide): name the project flag as load-bearing for build checks#10484
MarkusNeusinger wants to merge 2 commits into
mainfrom
docs/gcloud-project-flag

Conversation

@MarkusNeusinger

Copy link
Copy Markdown
Owner

What

The deploy-check runbook in agentic/docs/project-guide.md warned about --region and treated --project as incidental. It is not.

Why

A gcloud install whose default project is another of the owner's projects returns that project's builds. When those triggers carry the same names (deploy-api, deploy-app) in the same region (europe-west4), the wrong list is indistinguishable from the right one — no error, no warning, just a credible history of deploys that happens to stop a few days ago.

That is not hypothetical. While preparing the v3.1.0 release I ran the check without the flag and concluded "no builds since 2026-08-16" on a day anyplot had in fact deployed twelve times. The real history was one flag away.

Change

  • Names both flags as required, not just --region
  • Adds the one-line context check that settles it: gcloud config get-value project must print anyplot
  • Explains why this failure is quiet, so the next reader distrusts a plausible-looking list rather than only an obviously empty one

Docs-only; no code paths touched.

The deploy-check recipe warned about --region but treated --project as
incidental. It is not: a gcloud default pointing at another project
returns that project's builds, and when its triggers share the names and
region, the wrong list is indistinguishable from the right one. Adds the
context check that settles it.
Copilot AI lite review requested due to automatic review settings August 18, 2026 22:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the deployment runbook to treat --project as a required, “load-bearing” flag (alongside --region) when checking Cloud Build deploy history, and records the change in the project changelog so the operational pitfall is discoverable later.

Changes:

  • Updates the deploy-check instructions to always pass both --region and --project.
  • Adds a quick context verification step (gcloud config get-value project) and explains why the failure mode is silent/credible.
  • Adds a [Unreleased] changelog entry describing the operational footgun and the documentation fix.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
CHANGELOG.md Adds an [Unreleased] Fixed entry documenting the deploy-check pitfall and the runbook update.
agentic/docs/project-guide.md Updates the “Checking whether something actually deployed” runbook to require --project and adds a context check/explanation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread CHANGELOG.md
different one returns *that* project's builds, and when its triggers happen to carry
the same names in the same region, the wrong answer is indistinguishable from the
right one — no error, just a credible list of `deploy-api` runs that stop a few days
ago. It produced a false "nothing has deployed since the 16th" on a day with a dozen
Comment thread CHANGELOG.md
Comment on lines +28 to +29
deploys. `agentic/docs/project-guide.md` now names both flags and the context check
that settles it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants