Skip to content

fix(generator): record verified gcloud 589 command removals - #6002

Merged
thomhurst merged 1 commit into
mainfrom
issue-6000-gcloud-589-coverage
Oct 13, 2026
Merged

thomhurst merged 1 commit into
mainfrom
issue-6000-gcloud-589-coverage

Conversation

@thomhurst

@thomhurst thomhurst commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Google Cloud generation rejects the 587-to-589 transition because 16 upstream commands disappeared. Add exact coverage exclusions for the seven gcloud assured v2 paths and nine gcloud telco-automation paths, with reasons backed by direct help from the official SDK 589.0.0 archive.

The fixtures record archive provenance, SHA256, invocation environment, all 16 exit-2 Invalid choice responses, and five successful control help responses. Regression tests retain the SDK 587 exclusions and verify that other removals, minimum counts, sentinel commands, and unavailable help still fail. Package regeneration remains the separate dependent issue #6001.

Closes #6000

Validation with pinned SDK 11.0.100-rc.1.26425.128 through Invoke-AgentDotNet.ps1:

  • Generator solution Release build passed with no warnings or errors.
  • All 11 GcloudCommandCoverageTests passed; the transition test failed before the policy fix.
  • All 27 CommandCoverageGuardTests passed.
  • Generator solution formatted; changed C# files pass format --verify-no-changes --severity info.
  • Full generator test run reached the 2048 MB process-tree guard (exit 137, observed 2252 MB). It also reported Windows symlink privilege failures. Full-suite validation is deferred to CI without increasing limits.
  • Full-solution formatting verification reports existing whitespace and informational diagnostics outside the changed files. Unrelated formatter edits were reverted to keep this PR scoped.

Summary by CodeRabbit

  • Compatibility
    • Google Cloud CLI 589.0.0 no longer provides the documented assured v2 and telco-automation command paths. Assured Workloads continues to support the list command with v1 and v2 version options.
    • The root, Assured Workloads, and Compute Engine help commands remain available.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T15:53:22.327405Z c4804bc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 97775943-3853-4eb5-b28a-6a8418b1e51c
📥 Commits

Reviewing files that changed from the base of the PR and between 9f70c41 and c4804bc.

📒 Files selected for processing (4)
  • tools/ModularPipelines.OptionsGenerator/src/ModularPipelines.OptionsGenerator.Tests/Fixtures/Gcloud/589.0.0/command-removal-help.json
  • tools/ModularPipelines.OptionsGenerator/src/ModularPipelines.OptionsGenerator.Tests/Fixtures/Gcloud/589.0.0/provenance.txt
  • tools/ModularPipelines.OptionsGenerator/src/ModularPipelines.OptionsGenerator.Tests/Scrapers/Cli/GcloudCommandCoverageTests.cs
  • tools/ModularPipelines.OptionsGenerator/src/ModularPipelines.OptionsGenerator/Scrapers/Cli/GcloudCliScraper.cs

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.

📝 Walkthrough

The scraper records 16 Google Cloud SDK 589 command paths as removed, based on direct help results. Fixture provenance documents the evidence. Tests check the exclusions and verify that unrelated removals, minimum counts, sentinel checks, and unavailable-help failures remain covered.

Changes: Google Cloud SDK 589 coverage

Layer / File(s) Summary
Removal evidence and exclusions
tools/ModularPipelines.OptionsGenerator/src/ModularPipelines.OptionsGenerator.Tests/Fixtures/Gcloud/589.0.0/*, tools/ModularPipelines.OptionsGenerator/src/ModularPipelines.OptionsGenerator/Scrapers/Cli/GcloudCliScraper.cs
The fixture and provenance record SDK 589 help results for 16 exact command paths. The scraper adds release-specific coverage exclusions for those paths.
Coverage validation
tools/ModularPipelines.OptionsGenerator/src/ModularPipelines.OptionsGenerator.Tests/Scrapers/Cli/GcloudCommandCoverageTests.cs
Tests check the help evidence and SDK 587-to-589 coverage transition. They also verify that unrelated removals, minimum counts, sentinel checks, and unavailable-help failures are not bypassed.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to c4804

This change records 16 Google Cloud SDK 589 command paths as removed, backed by captured help evidence, and adds tests that keep the other coverage checks working. No merge-blocking risk was found. Package regeneration is a separate follow-up.

Pre-merge checks · Passed 4 · Failed 1

Failed Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 2 files. (2 skipped: 2 … Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks (4 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: recording verified Google Cloud SDK 589 command removals in the generator.
Linked Issues check Passed Issue #6000 requirements are implemented. GcloudCliScraper.cs adds exact exclusions for seven gcloud assured v2 paths and nine gcloud telco-automation paths with an SDK 589.0.0 direct-help reaso…
Out of Scope Changes check Passed The changes stay within issue #6000. They modify the specified scraper, coverage tests, and SDK 589.0.0 fixtures. The tests and provenance data directly support the removal policy. No generated packag…
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 2 files. (2 skipped: 2 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checked the help files at dawn
Sixteen old paths were marked as gone
The surviving commands kept their place
Evidence and tests recorded each case
Then the rabbit hopped home, content and spry

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot 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.

Claude Review

The PR adds 16 exact gcloud coverage exclusions to GcloudCliScraper. They cover the seven gcloud assured v2 paths and the nine gcloud telco-automation paths that SDK 589.0.0 no longer has. Each exclusion carries a reason that cites issue #6000 and the evidence fixture. The PR also adds a fixture with provenance, SHA256, environment and captured help output, plus regression tests. I found no actionable problems.

Review evidence

tools/ModularPipelines.OptionsGenerator/src/ModularPipelines.OptionsGenerator/Scrapers/Cli/GcloudCliScraper.cs: Adds exactly 16 exact-path exclusions through a shared reason constant. The reason mentions 589.0.0, exit 2, Invalid choice and #6000, which the tests assert. No wildcard or blanket approval was introduced, and the existing 587 exclusions are unchanged.

tools/ModularPipelines.OptionsGenerator/src/ModularPipelines.OptionsGenerator.Tests/Scrapers/Cli/GcloudCommandCoverageTests.cs: The new tests check the fixture against the exclusion list. They also check that other removals (such as a retained path or an unreviewed descendant), minimum-count and sentinel violations, and unavailable help are all still rejected. The fixture is read from AppContext.BaseDirectory, and the csproj copies Fixtures** to the output directory, so the path resolves.

tools/ModularPipelines.OptionsGenerator/src/ModularPipelines.OptionsGenerator.Tests/Fixtures/Gcloud/589.0.0/command-removal-help.json: Contains 16 exit-2 Invalid choice responses with empty stdout, plus 5 exit-0 control responses (root, assured, assured workloads, assured workloads list, compute instances list). The commandPath and arguments fields are consistent, and the data matches what the tests assert.

tools/ModularPipelines.OptionsGenerator/src/ModularPipelines.OptionsGenerator.Tests/Fixtures/Gcloud/589.0.0/provenance.txt: Documents the archive URL, SHA256, capture environment and reproduction steps. It states the limits of the evidence honestly: the release notes do not announce the removals, and it makes no claim about which release first removed them.

No actionable findings.

Optional follow-up notes

The fixture was captured on Windows with Python 3.14.3, but the provenance describes the Linux archive. This does no harm, because the help output is platform-independent.

The exclusion list is duplicated in the scraper and in the test constants. That is a deliberate guard against accidental drift, so I left it as is.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c4804bcb99

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomhurst

Copy link
Copy Markdown
Owner Author

Review disposition on c4804bc: the Codex regeneration request is outside the explicit scope of #6000. The thread reply links #6001, which owns complete regeneration and is natively blocked by #6000; the thread is resolved. CodeRabbit docstring coverage is a non-blocking documentation/style suggestion. Declined additional docstrings because the new regression tests describe their behavior through test names and assertions, and no blocking code fix requires a push. Claude and CodeRabbit report no actionable code findings. CI Fast fail successfully ran the OptionsGenerator unit tests and generator formatting verification, covering the previously documented local full-suite validation limit.

@thomhurst
thomhurst merged commit 7f2bae1 into main Oct 13, 2026
18 checks passed
@thomhurst
thomhurst deleted the issue-6000-gcloud-589-coverage branch October 13, 2026 16:17
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.

Generator: record verified gcloud 589 command removals in coverage policy

1 participant