Repository navigation
docs(release): qualify protected candidate tag pattern - #3107
Conversation
Summary by CodeRabbit
WalkthroughThe release transaction ruleset now requires ChangesRelease tag pinning
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 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. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the release transaction documentation, release candidate metadata, and adds a new ruleset fixture to use fully qualified Git references (refs/tags/ripr-release-*) for GitHub ruleset conditions. This ensures correct matching behavior against GitHub's API. There are no review comments, and I have no additional feedback to provide.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@xtask/src/tests.rs`:
- Around line 46270-46303: Update the fixture mutation around
accepts_required_pin so it tests an include array containing both
REQUIRED_PATTERN and SHORT_PATTERN, then assert that accepts_required_pin
returns false for that combined set. Preserve the existing full fixture
acceptance check and explicitly reject the short pattern even when the required
pattern is also present.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 71efa837-8ed9-45b6-9e96-aacc903d6e4b
📒 Files selected for processing (4)
docs/RELEASE_TRANSACTION.mddocs/release-candidates/0.11.0-live-head-selection.jsonfixtures/release_control/pin-ruleset.jsonxtask/src/tests.rs
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 35d612c8b5
ℹ️ 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".
|
REVIEW_READY on exact head \7cb1b5f081cdf0bcc57695ebd02c57177e45c5e9. Substantive review verified the exact-singleton ruleset predicate, direct full/short/mixed jq execution, governed process helper use, unchanged candidate tag naming, and passing process policy. All applicable exact-head hosted checks are terminal and passing; routed skips are not claimed as passes. |
What this does
The live-history release transaction now verifies the
release-transaction-pinsruleset against the fully qualifiedrefs/tags/ripr-release-*ref pattern. The candidate tag name remainsripr-release-0.11.0-<SHA>; only the repository policy namespace contract changes.Change: the canonical runbook and live-head template carry the same fully qualified tag-ref requirement, and a checked-in ruleset fixture plus source-truth test enforces the repository's fail-closed contract:
conditions.ref_name.includemust be exactly the singleton full pattern, while short-only and mixed full+short patterns are rejected locally. The test executes the documented jq predicate through the existing governed process runner against all three fixtures. This fixture does not prove GitHub server acceptance or rejection. GitHub's REST rules API uses fully qualified examples such asrefs/heads/main, and its rule suites API documentsrefs/tags/as the tag-ref prefix. The current repository ruleset shape is observable in the live API response.Refs #3106
Verification
cargo test -p xtask --bin xtask release_pin_ruleset_requires_fully_qualified_tag_refon7cb1b5f081cdf0bcc57695ebd02c57177e45c5e9cargo xtask check-process-policycargo fmt --allgit diff --checkReview map
docs/RELEASE_TRANSACTION.md: requires an exact singleton ruleset include pattern, cites API examples, and states the local-proof/server-proof boundary while retaining unqualified candidate tag construction.docs/release-candidates/0.11.0-live-head-selection.json: binds the remote ruleset receipt torefs/tags/ripr-release-*.fixtures/release_control/pin-ruleset.json: active tag ruleset fixture with update and deletion protections.xtask/src/tests.rs: executes the documented predicate via the governed runner for full, short-only, and mixed patterns and preserves candidate-tag checks.