Repository navigation
fix(stovepipe): Keep issues on task-wide failures - #958
Merged
Merged
Conversation
This was referenced Oct 27, 2026
This was referenced Oct 27, 2026
prathshenoy
force-pushed
the
codex/stovepipe-taskwide-closure
branch
from
October 27, 2026 21:02
f876d43 to
fa02eec
Compare
prathshenoy
force-pushed
the
codex/stovepipe-taskwide-closure
branch
from
October 27, 2026 21:12
fa02eec to
0668840
Compare
prathshenoy
marked this pull request as ready for review
October 27, 2026 21:15
prathshenoy
requested review from
a team,
behinddwalls and
sbalabanov
as code owners
October 27, 2026 21:15
mnoah1
approved these changes
Oct 27, 2026
2 tasks done
2 tasks done
DivyanshGarg380
pushed a commit
to DivyanshGarg380/submitqueue
that referenced
this pull request
Oct 28, 2026
## Summary **What**: - Process build issues in bounded batches and request redelivery until the pass finishes. - Open reported issues during refreshes and close missing issues after final analysis, except when the build was canceled. **Why**: - Avoid doing an entire queue’s issue tracking in one delivery. Saving a cursor lets later deliveries continue the pass while completing any interrupted issue and history writes first. - Keep delayed notifications from undoing newer issue state. Finish an accepted pass before admitting another build, reject older sources, and ignore refreshes after finalization; leave consumer activation and terminal recovery for follow-up work. ## Test Plan - [x] Add unit tests. ## Revert Plan - Revert dependent PRs first, then this PR. Issue-tracking consumption remains disabled, so reverting does not interrupt an active issue-tracking worker. ## Issue Links - [CODEM-607](https://linear.app/uber/issue/CODEM-607/build-analysis) ## Stack 1. uber#942 1. uber#948 1. uber#949 1. uber#950 1. uber#951 1. uber#958 1. uber#961
DivyanshGarg380
pushed a commit
to DivyanshGarg380/submitqueue
that referenced
this pull request
Oct 28, 2026
## Summary **What**: - Publish issue-tracking refresh and finalization notifications after build analysis persists its results. - Add the publication route without enabling issue-tracking consumption. **Why**: - Give issue tracking a reliable handoff from build analysis. Publishing after persistence ensures it can read the build’s recorded issues, and a failed publish can retry without losing the handoff. Require a complete cumulative terminal result so finalization does not depend on an earlier worker finishing its writes. - Keep terminal recovery separate from this rollout. Registering only the publication route allows the processing layers to be reviewed without starting a consumer whose recovery policy is not yet wired. ## Test Plan - [x] Add unit tests. ## Revert Plan - Revert dependent PRs first, then this PR. Issue-tracking consumption remains disabled, so reverting does not interrupt an active issue-tracking worker. ## Issue Links - [CODEM-607](https://linear.app/uber/issue/CODEM-607/build-analysis) ## Stack 1. uber#942 1. uber#948 1. uber#949 1. uber#950 1. uber#951 1. uber#958 1. uber#961
DivyanshGarg380
pushed a commit
to DivyanshGarg380/submitqueue
that referenced
this pull request
Oct 28, 2026
## Summary **What**: - Add dead-letter recovery that stops failed issue-tracking passes while keeping completed issue changes. - Record incomplete issue tracking without changing the build's validation outcome. **Why**: - Unblock later builds when issue tracking exhausts normal retries. Today the unfinished pass remains saved, so later notifications try to resume the same failed work. Recovery needs to stop that pass without throwing away issue changes that already succeeded. - Keep delayed workers from changing issue state after recovery. Simply clearing progress would let a paused worker write an old opening or closing after a newer build has run. Recovery protects the current issue and retains its history before allowing newer work through. ## Test Plan - [x] Add unit tests. - [x] Verify recovery progress persists against a real MySQL database. ## Revert Plan - Revert this PR before enabling consumption. If already enabled, stop consumers and reconcile recovery progress before rolling back so an older consumer does not resume abandoned work. ## Issue Links - [CODEM-607](https://linear.app/uber/issue/CODEM-607/build-analysis) ## Stack 1. uber#942 1. uber#948 1. uber#949 1. uber#950 1. uber#951 1. uber#958 1. uber#961 1. uber#962
DivyanshGarg380
pushed a commit
to DivyanshGarg380/submitqueue
that referenced
this pull request
Oct 28, 2026
## Summary **What**: - Enable normal issue tracking and dead-letter recovery in the reference service. **Why**: - Consume the issue notifications that build analysis already publishes. Until now they accumulated on the queue without updating current issues or their history. Registering both consumers makes that path operational, while deployments can still supply their own build-issue detector. - Keep failed tracking from blocking later builds indefinitely. Normal processing uses bounded retries, and recovery stops incomplete work safely instead of repeating the same failed pass forever. ## Test Plan - [x] Add unit tests. - [x] Verify analysis handoff and dead-letter recovery through the running service and MySQL. ## Revert Plan - Revert this PR to disable both consumers without deleting persisted issue state, history, or progress. ## Issue Links - [CODEM-607](https://linear.app/uber/issue/CODEM-607/build-analysis) ## Stack 1. uber#942 1. uber#948 1. uber#949 1. uber#950 1. uber#951 1. uber#958 1. uber#961 1. uber#962
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
What:
Why:
Test Plan
Revert Plan
Issue Links
Stack