Repository navigation
chore(release-cut): add auditable soak_override_reason for GA promotion - #700
Conversation
…tion v1.6.0 GA needs to promote rc.13 (~3 days old) ahead of the seven-day soak requirement. The 604800s constant stays as the strict default; a new GA-only soak_override_reason workflow_dispatch input lets an operator bypass it explicitly, with the reason recorded in the run summary and release notes so the shortened soak is permanently auditable. - Blank or whitespace-only reason keeps the original hard failure. - Reason under 20 trimmed characters hard-fails with a clear error. - A real reason downgrades the age check to a ::warning:: and continues. - Rejected outright on prerelease cuts, same as candidate_tag/candidate_digest. - Passed via env:, never templated into run: directly, to avoid a zizmor template-injection finding on the attacker-controllable input.
…IT_DIR The new soak-override workflow test creates a scratch git repo to exercise the real release-cut "source" step script. Its git commands inherited the ambient environment, including GIT_DIR/GIT_WORK_TREE that this repo's own git hooks set when invoking child processes — so running the test suite under the pre-push gate made its "isolated" git init/commit/tag land on the actual worktree branch instead of the scratch directory. Strip the GIT_DIR family before every git invocation in the test so it is genuinely confined to its temp workdir regardless of hook context.
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 6 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe release workflow adds an optional GA-only Possibly related PRs
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 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.
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 @.github/workflows/release-cut.yml:
- Around line 307-315: Remove ${trimmed_reason} from the fixed ::warning::
workflow command in the soak-override block of release-cut.yml, while retaining
the reason in the step summary and release notes. In
.github/tests/release-cut-soak-override.test.ts lines 240-259, stop asserting
the raw reason in stdout and add a multiline soak_override_reason regression
case containing a line beginning with ::add-mask:: to verify it cannot create a
second workflow command.
🪄 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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 3e64ef80-7266-4cf9-8268-5aba4c98c617
📒 Files selected for processing (3)
.github/tests/release-cut-retry-workflow.test.ts.github/tests/release-cut-soak-override.test.ts.github/workflows/release-cut.yml
…w commands The reason is free text and may be multiline, so echoing it into ::warning:: let a line starting with :: be parsed by the runner as a second workflow command. Emit a fixed warning instead and leave the reason in the job summary and release notes, where it is inert. Adds a regression case for a reason carrying ::add-mask:: and ::error:: lines. Reported by CodeRabbit on #700.
|
Fixed in 63b605d — the reason no longer reaches stdout. The |
biggest-littlest
left a comment
There was a problem hiding this comment.
Auditable override with the constant untouched. Good catch on keeping the reason out of the workflow command.
Summary
soak_override_reasonworkflow_dispatch input torelease-cut.yml. The 604800s (seven-day) soak constant is unchanged and stays the strict default.::warning::and continues.$GITHUB_STEP_SUMMARY(candidate tag, age, reason) and appended to the published release notes body.soak_override_reasonis rejected outright on a prerelease cut, same ascandidate_tag/candidate_digest.env:and referenced only as"${SOAK_OVERRIDE_REASON}"insiderun:— never templated directly — to avoid a zizmor template-injection finding on this attacker-controllable input (any repo collaborator can dispatch the workflow).Context: v1.6.0 GA needs to promote
v1.6.0-rc.13(~3 days old, fleet soak passed 2026-08-09) ahead of the seven-day window tonight. This input is the auditable escape hatch for that, not a change to the default policy.Test plan
npm run test:workflows— 78/78 passing, including a new.github/tests/release-cut-soak-override.test.tsthat extracts and executes the realsourcestep script (stubbedgh/date, a real scratch git repo) covering: blank reason still fails with the unchanged message, whitespace-only reason does not open the gate, too-short reason hard-fails, a valid reason bypasses with a warning + summary + notes file, an already-7-day-old candidate needs no reason, and prerelease rejection.zizmor .github/workflows/— no findings.inputsincludessoak_override_reason).Changelog
soak_override_reasoninput.env:instead of shell interpolation.GIT_DIRvariables.