Repository navigation
deliver: report a settled build once per head - #289
Merged
Merged
Conversation
A head whose tree matches an earlier build reuses that build and gets no build record of its own. Startup reconciliation looks builds up by commit, so it submitted such a head again after every restart, and a redelivered webhook did the same at any time. Each pass went through the reuse path, queued the pull_request delivery again, and the upsert reset the effect row, so the effects ran again and posted their comments twice. A default-branch push that took over a PR build had the same problem with build_finished. Mark deliveries the orchestrator queues for a settled build and skip an effect whose row already holds a run for the same PR, head, branch and commit. Deliveries from the forge (label change, reopen, comment) still reset the row, as do explicit restarts. Change-Id: I6e1c3b007061e1304cba5f755858d7c990739133 Supersedes: #276
Mic92
force-pushed
the
effect-delivery-idempotent
branch
from
November 12, 2026 09:17
3019799 to
171a8c7
Compare
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.
A head whose tree matches an earlier build reuses that build and gets no build record of its own. Startup reconciliation looks builds up by commit, so it submits such a head again after every restart, and a redelivered webhook does the same. Each pass goes through the reuse path, queues the
pull_requestdelivery again and resets the effect row, so the effects run a second time. A default-branch push that took over a PR build has the same problem withbuild_finished.Deliveries the orchestrator queues for a settled build are now marked
once. Such a delivery skips an effect whose row already holds a run for the same PR, head, branch and commit. Deliveries from the forge (label change, reopen, comment) and explicit restarts still reset the row.Reconciliation is unchanged: resubmitting a reused head now only replays statuses.
Not covered: two PRs sharing one build still share one effect row per kind and name.
Supersedes #276.