Repository navigation
ci(ci): skip code CI checks and CodeQL on docs-only pull requests - #447
Open
avidianity wants to merge 2 commits into
Open
avidianity wants to merge 2 commits into
avidianity wants to merge 2 commits into
Conversation
avidianity
marked this pull request as ready for review
November 24, 2026 18:49
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.
Summary
Skips code-only CI checks and CodeQL on docs-only pull requests while keeping every documentation, link, secret, commit-message, risk-tier, and pull-request body check active.
changesclassification job in.github/workflows/ci.yml(git diff --name-only --no-renames -z, failing closed on empty diff, error, or failedchangesjob via!cancelled()guards) and gatesrust,windows,performance,budget, and code-only steps ofrepositorywith job-levelif:conditions so GitHub required status checks treat skipped jobs as passing.pathsfilters to.github/workflows/codeint.ymland new Advanced Setup.github/workflows/codeql.yml(actions,javascript-typescript,rust, SHA-pinned, weekly schedule, least-privilege permissions).--exclude-workflowtocargo xtask feedback-budget --loop ci-gate(xtask/src/checks/budget.rs,xtask/src/runner.rs) and excludes non-gatingCodeQLruns inci.yml, updatingdocs/checks/feedback-budget.md.docs/reference.md(tested bycrates/cli/tests/reference),docs/checks/**,docs/agents/review-and-merge.md,docs/agents/security.md, and any file undercrates/,plugins/,xtask/,.github/, or root config outside the docs-only set.Tier
Tier 3 from the tier check (
cargo run --locked -p xtask -- risk-tier --base origin/main): touches.github/workflows/ci.yml,.github/workflows/codeint.yml,.github/workflows/codeql.yml(".github/**"),docs/checks/feedback-budget.md("docs/checks/**"), andxtask/src/**("xtask/**").Task
Skip code-only CI checks and CodeQL on docs-only pull requests per Owner Decision.
.github/workflows/ci.ymland skiprust,windows,performance,budget, and code-onlyrepositorysteps via job-levelif:..github/workflows/codeint.yml..github/workflows/codeql.ymlwith matching path exclusions and SHA-pinned actions.CodeQLruns fromci-gatefeedback budget via--exclude-workflow CodeQLinxtask.Fail-first test
checks::budget::tests::gating_run_ids_excludes_named_non_gating_workflows: added inxtask/src/checks/budget/tests.rsbefore addinggating_run_ids_excluding; failed to compile witherror[E0061]: this function takes 3 arguments but 4 arguments were supplied, then passed alongsiderunner::tests::repeated_flag_collects_zero_or_more_values_and_rejects_dangling_flag(128/128xtasktests) after implementing workflow exclusion.Checks
cargo fmt --all --checkcargo clippy --package xtask --all-targets --locked -- -D warningscargo test --locked -p xtaskactionlintcargo run --locked -p xtask -- merged-resultcargo run --locked -p xtask -- no-comments --base origin/maincargo run --locked -p xtask -- commit-message --range origin/maincargo run --locked -p xtask -- risk-tier --base origin/maincargo run --locked -p codeint-cli -- diff origin/mainSafety proof
Safety fact: No non-documentation file, protected governance or tested reference doc (
docs/reference.md,docs/checks/**,docs/agents/review-and-merge.md,docs/agents/security.md), test snapshot undercrates/, empty diff, code-to-docs rename (git mv crates/foo.rs docs/foo.md), or failedchangesjob can bypassrust,windows,performance,repository, orbudget.Proof: Extracted
is_doc_pathdirectly from.github/workflows/ci.ymland ran it against 10 doc paths (all accepted), 18 non-doc and protected paths (all rejected), and a live temporary Git repository performinggit mv crates/foo.rs docs/foo.mdwithgit diff --name-only --no-renames -z HEAD~1..HEAD(docs_only=false). Output:SAFETY_PROOF_OK: 10 doc paths accepted, 18 non-doc/protected paths rejected, rename code->docs rejected.Independent reviewer and adversarial verification:
bcea2aa): verdict FAIL with 2 verified findings: (1) missing!cancelled()guard onrust,windows,performance, andrepositoryallowed a failedchangesjob to skip required checks fail-open; (2)codeint diff origin/mainreported production erosion growth inxtask/src/runner.rs(feedback_budget) and test duplication inxtask/src/checks/budget/tests.rs.18cdc4a): added!cancelled()fail-closed guards torust,windows,performance,repository, andbudget, removedbranches: [main]fromcodeql.ymlpull_requesttrigger, extractedfeedback_loop_secondsinxtask/src/runner.rs, addedrepeated_flagunit tests inxtask/src/runner/tests.rs, and eliminated test fixture duplication inxtask/src/checks/budget/tests.rs.18cdc4a): fresh Independent Verifier verdict PASS (0 open verified findings; ran fullxtasktest/clippy/fmt/actionlint/merged-result/codeint-diff suite, adversarial bash & git diff edge-case harness covering renames, deletions, spaces, UTF-8, glob metacharacters, newlines, empty diffs, and verified live GitHub ActionsCodeQLSARIF upload andci/budgetexecution).Runtime evidence
Not applicable: CI workflow and internal
xtaskcheck change with no end-user CLI output change; verified live via GitHub Actions on this pull request (cirun45462455595passed withCI gate took 151 seconds of a 600-second budget;CodeQLworkflow uploaded SARIF foractions,javascript-typescript, andrustwith zero conflict).Gaps
main.