Repository navigation
ci: slim down CodeQL and CI runs - #2
Merged
Merged
Conversation
GitHub's default setup analysed every push to main, so a merged pull request was scanned twice, and the Rust analysis alone runs ~18 minutes. This advanced setup scans the same four languages on pull requests, weekly on main, and on demand. The default setup has to be turned off once this runs, or GitHub rejects its results.
Markdown and screenshot changes no longer start a build. A newer push to a pull request cancels the run on the older commit; pushes to main are grouped per commit, so none is cancelled or dropped. The three E2E shards, three full builds, run on pull requests only.
Build and test usually run locally before a push, so CI no longer starts on its own. It runs when a pull request carries the run-ci label (and on every later push to it), or from the Actions tab. The E2E shards wait for the compile gate, so a change that does not build costs one build instead of four.
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.
Working...
What and why
GitHub's built-in CodeQL "default setup" analysed every push to main, so a merged pull request was scanned twice, and the Rust analysis alone runs ~18 minutes. CI on the fork had never run at all (workflows were disabled on fork).
codeql.yml, new): the same four languages (actions, javascript-typescript, python, rust) on pull requests to main, weekly on main, and on demand. Docs-only PRs are skipped; a newer push to a PR cancels the older scan.ci.yml): on demand only. It runs when a PR carries therun-cilabel (and on every later push to it), or from Actions > CI > Run workflow. Without the label both jobs skip without starting a runner. A newer push to a PR cancels the run on the older commit, and the three E2E shards wait for the compile gate, so a change that does not build costs one build instead of four.No app code changes.
After this merges and the
Analyze (...)checks below have run: turn off the default setup (Settings > Code security > CodeQL analysis > Disable), or GitHub rejects this workflow's results.Nightly and the release workflows were switched off separately (
gh workflow disable), so they do not run now that Actions is enabled on the fork.Checklist
cargo check --workspace,cargo test --workspace --lib --binsandcargo clippy --workspace --all-targets -- -D warningspass locally (no Rust changes; CI below runs them)cargo test --locked --workspacepasses if aCargo.tomlorCargo.lockchanged (no manifest changes)i18n::t("key")(none)settings_index.rs(none)cargo fmt --all)