Skip to content

feat(autofix): Prune stale check suites before consuming CI feedback - #122775

Draft
joseph-sentry wants to merge 1 commit into
masterfrom
joey-cw-1920-prune-stale-check-suite
Draft

feat(autofix): Prune stale check suites before consuming CI feedback#122775
joseph-sentry wants to merge 1 commit into
masterfrom
joey-cw-1920-prune-stale-check-suite

Conversation

@joseph-sentry

Copy link
Copy Markdown
Contributor

A check suite that finished on a commit the PR has since moved past
should not burn an iteration. should_consume only compared the suite's
head against Seer's recorded repo_pr_states.commit_sha, which lags
pushes, so a superseded suite still read as current.

The live read runs as the last stage, only for suites the run-state and
dedupe checks have already agreed to consume, so the extra GitHub call
is bounded.

Everything short of a definitive mismatch fails open — a
GitHub or integration failure can never silently stop CI feedback.

A check suite that finished on a commit the PR has since moved past
should not burn an iteration. should_consume only compared the suite's
head against Seer's recorded repo_pr_states.commit_sha, which lags
pushes, so a superseded suite still read as current.

The live read runs as the last stage, only for suites the run-state and
dedupe checks have already agreed to consume, so the extra GitHub call
is bounded.

Everything short of a definitive mismatch fails open — a
GitHub or integration failure can never silently stop CI feedback.
@linear-code

linear-code Bot commented Aug 26, 2026

Copy link
Copy Markdown

CW-1920

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant