fix(generator): preserve gcloud certificate revocation alternatives - #5173
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe change fixes gcloud certificate revocation option generation. It preserves certificate and serial-number alternatives, treats serial numbers as text, adjusts nested group parsing, fixes generated presence checks, and adds focused fixtures and validation tests. ChangesCertificate revocation generation
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The generator changes and focused regression coverage do not show an unresolved merge-blocking issue. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. A rabbit reads the revoke command bright Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 424d0a04d8
ℹ️ 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".
|
CodeRabbit's docstring warning concerns existing private implementation helpers and the new named tests. The changed parser and boxing behavior have adjacent explanatory comments; no public library API or documentation warning was added. Local scoped formatting and the Release generator solution pass with zero warnings/errors, alongside 672 parser tests and 13 focused validation/group tests. The completed diff review reports no actionable findings. The AWS generation hold remains in place; this source PR will merge only after its checks/reviews pass and the existing AWS output is handled. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Problem and behavior
Gcloud SDK 585 generation passed coverage but failed to compile
GcloudPrivatecaCertificatesRevokeOptions: the parser madeSerialNumbera required integer and generated a null comparison against that value. The CLI instead requires exactly one of a certificate name or a hexadecimal serial identifier.Anchor a nested choice just below its heading so differently indented resource and flag branches remain alternatives, while heading-level peers remain outside the choice. Preserve the existing depth for
Orbranches. Treat serial-number switches as textual identifiers. Box scalar presence checks so required value types compile, and omit redundant conditional validation for single-member bundles.Captured-help tests compile the generated options and verify both valid identifier paths, neither/both rejection, and issuer-pool dependencies. A separate regression checks nullable and required integer presence, including zero.
Validation
Fixes #5172. Generated source is regenerated separately after merge.
Failure evidence: https://github.com/thomhurst/ModularPipelines/actions/runs/35076388294/job/104730191342