Fix generated-options CI routing for shipped API baselines - #4744
Conversation
Generated updates stage both API baselines. Recognize shipped entries so tool-scoped PRs run targeted validation and cannot skip the provenance gate.
Review: Fix generated-options CI routing for shipped API baselinesScope is tight and matches the stated bug (#4740): What I checked:
No correctness issues found, and the test additions specifically target the regression this PR closes. No previous review comments exist on this PR to reconcile against. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 4 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe change classifies ChangesGenerated validation routing
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to Shipped API baseline changes now receive the intended generated validation and freshness checks while unrelated changes remain excluded from this route. The change is ready to merge. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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. Comment |
Generated options PRs that modify
PublicAPI.Shipped.txtwere classified as ordinary changes, running the full repository pipeline and skipping the generated-options freshness gate. Accept both API baseline files within the existing package-scoped allowlist so these PRs use their tool validation job and provenance check.The required
pipeline (ubuntu-latest)check remains the final gate for either route; no branch-protection changes are needed. Workflow comments clarify this relationship. Existing ownership, branch, manifest, and unrelated-path restrictions remain enforced.Validation:
Test-ResolveGeneratedIntegrationValidation.ps1,Test-GeneratedOptionsProvenance.ps1,Test-RequiredPipelineContext.ps1, andgit diff --checkpass.Closes #4740
Summary by CodeRabbit
Bug Fixes
Tests
Documentation