Repository navigation
ci: merge_group trigger, cancel-superseded and end-of-queue cache janitor (GEN-022) - #225
Merged
Merged
Conversation
…itor (GEN-022) Steps 1-2 of GEN-022's merge-queue transition (forge-ci/ci.yml#432). Refs forge-ci/ci.yml#432
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.
Steps 1-2 of GEN-022's merge-queue transition (forge-ci/ci.yml#432). Same shape as forge-ci/zccache#1998 and forge-ci/soldr#3923.
ci.ymltriggers onmerge_group(types: checks_requested).paths-ignoredoes not apply to merge_group, so every queued PR runs the full workflow. No job has an eventif:, so a queue run is the same job set as a PR run.cancel-superseded(#409): runs only on merge_group, noneeds:. It runsci/cancel_superseded.py, copied from ci: merge_group trigger, cancel-superseded and end-of-queue cache janitor (GEN-022) zccache#1998.cache-janitor: runsci-lint cache janitorafter every other job onalways()(not on PRs) and holds the non-cancellingcache-janitorgroup. reld declares[cache].budget = "9.5GB". It checks out ci-lint at current forge-ci/ci.yml main (953c4e1) rather than thelinterpin (92106df), because the pin predates the repo-wide budget LRU pass (feat(cache): merge queue policy; end-of-queue janitor enforces [cache].budget by LRU (#405) ci.yml#407). That adds one CT-004 finding, beside the existing CT-004 onreuse-decision's b93b8c4 checkout.merge_groupadded to[allow].workflowsfor ci.yml.[allow].permissionsgrantsactions: writeto cancel-superseded and cache-janitor.ci-lint plan, so the linter pin is unchanged (step 1 does not apply).ci-lint precheck --local(forge-ci/ci.yml main): GEN-022 is cleared. The only new finding is the CT-004 above.pytest ci/tests: 375 passed. ruff is clean on the new script.Not included: the queue ruleset (step 3). Suggested required checks:
Format, clippy, and licenses,Dylint host-platform boundary,Phase 1 / linux-gnu x86_64,Phase 1 / linux-gnu aarch64,Phase 1 / windows-gnu x86_64,Phase 1 cross build (linux -> windows-msvc),Phase 1 cross build (linux -> macos-arm64),Phase 1 / windows-msvc x86_64,Phase 1 / macos arm64,Python,Cross release (linux -> x86_64-pc-windows-gnu).Refs forge-ci/ci.yml#432