Repository navigation
ci: skip the push run of Mainframe Ground Truth / Smoke Tests when the PR run proved the same tree (Part of #4935) - #4961
Merged
Conversation
…e PR run proved the same tree (Part of #4935) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
This was referenced Oct 12, 2026
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 12, 2026 08:16
This was referenced Oct 12, 2026
Closed
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.
Part of #4935 (member 3, "Heavy jobs run twice"); part of #4847. Owner-queued,
allow_workflows: true.What
Mainframe Ground Truth and Smoke Tests ran on the PR and again on the post-merge push. A new
tested-treejob (tests/tools/skip_tested_tree.py) skips the push run when this exact tree already passed the same workflow on the PR.decide()is pure; any API error runs the workflow (fail-open).Skip only when ALL hold: push to main; one parent (squash/rebase, not a merge commit); exactly one merged PR maps to the commit; the commit's tree SHA == the PR head's tree SHA; the commit's parent is an ancestor of the head (a
pull_requestrun checks out the head+base test merge and the API does not say which base, so "the final parent is in the head" is what proves that test merge was the head's own tree); the newestpull_requestrun of this workflow on the head issuccess. Red / cancelled / in progress / missing, behind-main PRs, merge commits, direct pushes, schedule and dispatch runs: run in full.mainframe-ground-truth.yml:ground-truthneedstested-tree. The history rows used to come only from the push run, so the nightly run now also writes them (--history+ the history PR onschedule).smoke-test.yml: onlyfull-suite-partis skipped. The 9-way OS grid is not run on PRs, so it always runs on the push. Thefull-suiteaggregator acceptsskippedonly when the gate saidskip=true.Main Watch
Not touched (
main-watch.yml,main_watch.py). The gate job always runs, so the workflow still concludes success/failure on main; Main Watch counts only success/failure (latest_verdicts) and ignoresskipped/cancelled. A skip is a true green for that tree.docs/ci.mdhas the section.Class sweep
Class: workflows with
pull_requestand a mainpushtrigger. Members and status are in the report below (Sibling gaps).Tests
tests/tools/test_skip_tested_tree.py(25): equal tree + green; PR run red / cancelled / in progress / skipped / missing / push-only; newer red beats older green; older red then green; tree differs; parent not in head; merge commit; no PR; wrong merge sha; other ref; schedule / dispatch / pull_request never skip; snapshot against a fakegh(behind PR makes no run query; two PRs; non-push makes no call; API error fails open).pr_gates --fast5/5,--ratchets7/7 (no golden masters touched).Measured (7 days, from
gh api)See the comment on #4847.
Cross-repo: none.
🤖 Generated with Claude Code