Skip to content

feat(stovepipe): add Queue.LastGreenRequestID in Stovepipe Queue - #518

Merged
roychying merged 1 commit into
mainfrom
chenghan.ying/stovepipe-queue-last-green-request-id
Aug 7, 2026
Merged

feat(stovepipe): add Queue.LastGreenRequestID in Stovepipe Queue#518
roychying merged 1 commit into
mainfrom
chenghan.ying/stovepipe-queue-last-green-request-id

Conversation

@roychying

Copy link
Copy Markdown
Contributor

Why?

The record stage advances the queue's last-green bookmark, and that bookmark must only ever move forward. entity.Queue today carries LastGreenURI but no record of which request established it, so there is nothing to compare a candidate against — a late-arriving delivery for an older request could regress the bookmark to a stale commit, which process would then hand to build as an incremental baseline.

Adding the owning request id gives the guard something to compare, using the same ingest-order comparison (CompareRequestID) that ingest and process already use for coalescing.

What?

  • entity.Queue gains LastGreenRequestID, paired with the existing LastGreenURI.
  • The MySQL queueStore threads it through Create, Get, and Update.
  • schema/queue.sql gains last_green_request_id VARCHAR(255) NOT NULL DEFAULT '', so existing rows read back as "bookmark never set" and the first green outcome adopts unconditionally.

Test Plan

make gazelle, make build, make test - all clean

Issue

@roychying
roychying requested review from a team, behinddwalls and sbalabanov as code owners August 5, 2026 22:07
Comment thread stovepipe/extension/storage/mysql/schema/queue.sql Outdated
@mnoah1
mnoah1 force-pushed the chenghan.ying/stovepipe-queue-last-green-request-id branch from 5615d8f to c2af1d5 Compare August 6, 2026 18:51
@roychying
roychying force-pushed the chenghan.ying/stovepipe-queue-last-green-request-id branch 2 times, most recently from 0b9bd3a to bbe75df Compare August 7, 2026 01:16
@roychying
roychying force-pushed the chenghan.ying/stovepipe-queue-last-green-request-id branch from bbe75df to 1c760ed Compare August 7, 2026 01:19
@roychying
roychying added this pull request to the merge queue Aug 7, 2026
Merged via the queue into main with commit f8dd90e Aug 7, 2026
15 checks passed
@behinddwalls
behinddwalls deleted the chenghan.ying/stovepipe-queue-last-green-request-id branch August 7, 2026 01:26
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.

2 participants