Skip to content

fix(action): Do not record incremental baselines for runs that request changes - #565

Merged
Jeffreyhung merged 1 commit into
mainfrom
fix/incremental-blocking-baseline
Nov 5, 2026
Merged

Jeffreyhung merged 1 commit into
mainfrom
fix/incremental-blocking-baseline

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #561. Fixes the medium security-review finding that showed up only in the check summary on #561's last run (pr-workflow.ts:2122).

The gap. With requestChanges and failOn on but failCheck off, a run with a blocking finding gets a neutral check, so it could still become an incremental baseline. On the next push its hunks were skipped. If someone then resolved the blocking comment, Warden saw no current findings and dismissed the earlier CHANGES_REQUESTED review without checking the finding again.

The fix. A run that requested changes is never recorded as a baseline, so the next push gets a full review and the finding is checked again before the review can be dismissed. The request-changes check is pulled into one requestsChanges() helper, which both baseline recording and review dismissal now use, so the two can't drift apart.

Tradeoff. PRs with an open blocking finding don't get incremental review until a run comes back clean. That matches how failed checks are already handled.

Incremental review is off unless warden.toml turns it on, so nobody running the default config sees any change.

Tests. I added a workflow-level regression test, records no baseline when the run requested changes, and confirmed it fails without the fix. I also added a line to the docs fallback list.

via Jeffrey Hung.

--

View Session [Sentry]

…t changes

A run with requestChanges and failOn on but failCheck off concludes
neutral, so it could become an incremental baseline. On the next push its
hunks were skipped, and resolving the blocking comment let Warden dismiss
the CHANGES_REQUESTED review without checking the finding again.

Skip the baseline when the run requested changes, so the next push gets a
full review. The request-changes check is now one helper shared with
review dismissal.

Co-Authored-By: Jeffrey Hung <[email protected]>
@Jeffreyhung
Jeffreyhung merged commit 306e0fa into main Nov 5, 2026
22 checks passed
@Jeffreyhung
Jeffreyhung deleted the fix/incremental-blocking-baseline branch November 5, 2026 15:53
@linear-code

linear-code Bot commented Nov 5, 2026

Copy link
Copy Markdown

SEC-2112

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – warden — 33237f87 Deployed Nov 5, 2026 by vercel[bot]
Preview – warden-prod — 33237f87 Deployed Nov 5, 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.

1 participant