Repository navigation
Builds: the pull_request run of a commit the push run already sent shows that build's result instead of comparing again (case studies 9b) - #221
Merged
Conversation
…ows that build's result instead of comparing again (case studies 9b)
ndbroadbent
force-pushed
the
twin-builds
branch
from
December 4, 2026 17:59
b7711b8 to
dbc42f9
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.
Case-study item 9b: a workflow with both
pushandpull_requesttriggers makes two builds for every PR commit, and both were compared and charged.I chose the server side. The Action can't tell, on a push run, that a pull request run is coming (or has run), and skipping either one loses something: the push run is the only one without a PR, and the PR run carries pr_number. The docs half (pull_request plus push to main) is already in marketing #174.
How it works:
reruns::twin. A CI build whose sent snapshots are field for field those of an earlier finalized build follows it, using the samecovered_by_build_idpath as an empty rerun (sc-9044). It concludes with that build's result and review, a review of the earlier build reaches it, and nothing is compared or charged again. Both builds must also match on:It must also be within the hour, with no project settings change and no other approval of the suite in between. Anything else is compared as usual, so a re-run of the same workflow still compares afresh (
baselines::a_rerun_never_compares_with_its_own_unapproved_build).The follower's warning says why: "This run sent the same snapshots of this commit as build #N (a workflow that runs on both push and pull_request?)…".
not_reviewable's text now covers both cases.Test:
reruns::a_second_run_that_sent_the_same_snapshots_follows_the_first. It fails without the change.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.