ci: skip the gate on main when its merge request passed on the same commit #513
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
spec
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amaurycoudr/chess-project!513
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/reuse-gate-on-main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The project merges by fast-forward only, so
main's new head is the exact commit its merge request's pipeline tested. Even so,mainreran the whole gate beforeproduction.Maintainers can still push to
maindirectly, so the job asks the API rather than assuming every commit came through a merge request. No access token is stored. Decision logged ininfra/gitlab/DECISIONS.md, "CI speed-up".Evidence
main, after !507): 329 s, including 160 s ofe2ethat its merge request had just run on the same commit.main's head258e265cis !507's head, and itshead_pipeline7 issuccesson that SHA.reuse-gateruns only onmain, so this MR's pipeline proves only that the gate still runs normally on an MR. The real proof is the firstmainpipeline after merge, which I'll report with its job durations.Merge Danger
Door: two-way
The revert is one commit, and the script fails open.
Blast Radius: production
productionnow follows a gate verified by the merge request's pipeline, not by a rerun onmain. That holds only while merges are fast-forward with "pipeline must succeed". Ifmerge_methodchanges to merge commits, the merged commit's SHA is no MR's head, so the gate runs again; nothing silently skips.added 3 commits
mainCompare with previous version
added 3 commits
mainCompare with previous version
added 2 commits
a84b494b- 1 commit from branchmainCompare with previous version
added 2 commits
4f61cf6b- ci: run the front's tests in one job rather than three shards6e37a388- ci: skip the gate on main when its merge request passed on the same commitCompare with previous version