fix(ci): path-gate expensive CI jobs to cut Actions minutes - #604
Draft
DevSecNinja with Copilot wants to merge 2 commits into
Draft
fix(ci): path-gate expensive CI jobs to cut Actions minutes#604DevSecNinja with Copilot wants to merge 2 commits into
DevSecNinja with Copilot wants to merge 2 commits into
Conversation
Copilot
AI
changed the title
[WIP] Fix CI to reduce workflow usage
fix(ci): path-gate expensive CI jobs to cut Actions minutes
Jul 27, 2026
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.
CIran all 10 jobs on every PR — 3 Windows jobs (2× billing), a 30-min devcontainer build, and 4 container install tests — regardless of what changed, which is the bulk of the ~4770 minutes/month spend.Changes
ci.yaml— newchangesjob: a ~30s ubuntu job diffs the PR against its base and emitswindows/devcontainer/installoutputs. Each heavy job gains anif:guard so it only runs when relevant files change.validateandtest-bash-scriptsstill always run; a change toci.yamlorworkflow_dispatchruns everything.validate+changes+test-bash-scripts.devcontainer/**(e.g. digest bump)test-devcontainerhome/**, install scripts*.ps1,home/dot_config/powershell/**,tests/powershell/**devcontainer-prebuild.yaml— concurrency: PR-onlycancel-in-progresscancels superseded PR builds (amd64 + arm64 matrix); main/tag/schedule publish+attest runs are never cancelled.github-workflows-harden-runner.bats: bumped expectedci.yamlharden-runner count 2 → 3 for the new job.Notes
Gated jobs report as
skipped, which branch protection treats as a passing required check, so merges stay unblocked. Path filters mirror the existing base-refgit diffpattern already used by the lefthook step in the same workflow — no new action dependency.