Repository navigation
CI: run only the jobs a commit needs - #45
Merged
Merged
Conversation
A changes job (.github/scripts/ci-changes.sh, plain git diff) gates every job in rust.yml: documentation alone runs none of them; the TeX Live fixture rebuild (about 6 minutes, mostly apt) runs when fixtures or xtask change and weekly; deterministic fuzzing when the parser crates change, now with a build cache. Rust caches are saved only from main so PRs start warm; newer commits cancel older runs on main too. A weekly full run catches TeX Live drift and new cargo-deny advisories. Tested by .github/tests/test_ci_changes.py; documented in docs/releasing.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xj9ekYmyESdZUsW8uWkzgv
Every macOS failure in the last 40 runs was a job that waited 15 minutes for a runner and was cancelled (GitHub capacity for macOS arm64). Pull requests test on Linux and Windows; macOS runs on main, weekly and on manual runs. Release builds still use macOS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xj9ekYmyESdZUsW8uWkzgv
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.
Makes CI run only what a commit needs. Before this, every commit ran the full Rust workflow, including docs-only ones such as "Remove CI and badge links from README".
Where the time went (main's last full run)
apt-get installTeX Live + pandoc: 4m43sChanges (
.github/workflows/rust.yml)changesjob runs.github/scripts/ci-changes.sh, a plaingit diffwith no third-party action, and every other job is gated on its output:*.md,docs/, etc.) → no build or test jobs;synctex,tex,pdf,model) orfuzz/→ plus deterministic fuzz;deny.toml→ pluscargo deny;fixtures/orxtask/→ plus the TeX Live fixture rebuild;integrations/vscode/alone → only the VS Code job (so the weekly Dependabot npm bump no longer builds Rust).cargo denyadvisories, which no longer run on every commit.main(save-if), so pull requests restore a warm cache instead of each writing its own;main, weekly and on manual runs. A macOS regression is still caught, just after merging. Release builds still use macOS runners, because Mac users need the binaries.maintoo, not only on pull requests.There is no branch protection on
main, so skipped jobs do not block merging. If required checks are added later, GitHub counts skipped jobs as passing.Checks
.github/tests/test_ci_changes.py(run by the lint job) covers the selection: docs only, Rust code, parser crates,Cargo.lock, fixtures, VS Code only, workflow change, and unknown base. 12 tests pass together with the Dependabot test.b61c17a(README) → nothing;54f60d2(Dependabot@types/node) →vscodeonly;dac47a7(locator merge) → everything Rust.docs/releasing.mdhas a "Continuous integration" section, and the CHANGELOG is updated.https://claude.ai/code/session_01Xj9ekYmyESdZUsW8uWkzgv
Generated by Claude Code