Skip to content

chore(release-cut): add auditable soak_override_reason for GA promotion - #700

Merged
scttbnsn merged 3 commits into
dev/v1.6from
ci/soak-override-input
Aug 12, 2026
Merged

scttbnsn merged 3 commits into
dev/v1.6from
ci/soak-override-input

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds a GA-only soak_override_reason workflow_dispatch input to release-cut.yml. The 604800s (seven-day) soak constant is unchanged and stays the strict default.
  • When the candidate is under seven days old: a blank/whitespace-only reason keeps the original hard failure verbatim; a reason under 20 trimmed characters hard-fails with a new, clear error; a real reason downgrades the check to a ::warning:: and continues.
  • The override is recorded in $GITHUB_STEP_SUMMARY (candidate tag, age, reason) and appended to the published release notes body.
  • soak_override_reason is rejected outright on a prerelease cut, same as candidate_tag/candidate_digest.
  • The reason is passed via env: and referenced only as "${SOAK_OVERRIDE_REASON}" inside run: — 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.ts that extracts and executes the real source step script (stubbed gh/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.
  • Full pre-push gate (lefthook: biome, qlty, scripts-test, workflow-tests, typecheck, coverage, build, zizmor) — green.
  • YAML parses correctly (inputs includes soak_override_reason).

Changelog

  • ✨ Added GA-only soak_override_reason input.
  • 🔧 Changed GA soak validation:
    • Keeps the 604800-second default.
    • Rejects blank or whitespace-only reasons.
    • Rejects trimmed reasons shorter than 20 characters.
    • Downgrades valid overrides to warnings.
    • Records override details in summaries and release notes.
  • 🔒 Security:
    • Passes the input through env: instead of shell interpolation.
    • Rejects override reasons for prerelease cuts.
  • ✨ Added integration and security tests.
  • 🔧 Isolated test Git repositories from inherited GIT_DIR variables.

scttbnsn and others added 2 commits August 11, 2026 22:33
…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.
@scttbnsn

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@vercel

vercel Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
drydock-website Ready Ready Preview Aug 12, 2026 3:02am
drydockdemo-website Ready Ready Preview Aug 12, 2026 3:02am

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@scttbnsn, you've reached your PR review limit, so we couldn't start this review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 0e4b28a4-01aa-49e6-a453-77c6d7409a4e

📥 Commits

Reviewing files that changed from the base of the PR and between e7aab4a and 63b605d.

📒 Files selected for processing (2)
  • .github/tests/release-cut-soak-override.test.ts
  • .github/workflows/release-cut.yml
📝 Walkthrough

Walkthrough

The release workflow adds an optional GA-only soak_override_reason input. GA candidates younger than seven days require a trimmed reason of at least 20 characters to bypass the soak. The workflow rejects override reasons for prereleases, records the reason and candidate age, and exports override metadata. GA release notes include the override details. Tests execute the source step in isolated repositories and cover invalid, valid, unnecessary, and prerelease inputs.

Possibly related PRs

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/soak-override-input

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

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

@coderabbitai coderabbitai 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.

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

📥 Commits

Reviewing files that changed from the base of the PR and between daf1229 and e7aab4a.

📒 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

Comment thread .github/workflows/release-cut.yml Resolved
…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.
@scttbnsn

Copy link
Copy Markdown
Contributor Author

Fixed in 63b605d — the reason no longer reaches stdout. The ::warning:: now carries a fixed message and points at the job summary and release notes, which still record the full text. Added a regression case feeding a multiline reason containing ::add-mask:: and ::error:: lines and asserting neither shows up in stdout. 79/79 workflow tests pass.

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Auditable override with the constant untouched. Good catch on keeping the reason out of the workflow command.

@ALARGECOMPANY ALARGECOMPANY left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@scttbnsn
scttbnsn merged commit 2b55ff4 into dev/v1.6 Aug 12, 2026
25 of 26 checks passed
@scttbnsn
scttbnsn deleted the ci/soak-override-input branch August 12, 2026 03:22

This branch was successfully deployed

2 active deployments
Preview – drydock-website — 63b605d4 Deployed Aug 12, 2026 by vercel[bot]
Preview – drydockdemo-website — 63b605d4 Deployed Aug 12, 2026 by vercel[bot]
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.

3 participants