Skip to content

ci: slim down CodeQL and CI runs - #2

Merged
ImStillBlue merged 3 commits into
mainfrom
ci/slim-ci
Nov 18, 2026
Merged

ImStillBlue merged 3 commits into
mainfrom
ci/slim-ci

Conversation

@ImStillBlue

@ImStillBlue ImStillBlue commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

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 (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 (ci.yml): on demand only. It runs when a PR carries the run-ci label (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 --bins and
    cargo clippy --workspace --all-targets -- -D warnings pass locally (no Rust changes; CI below runs them)
  • cargo test --locked --workspace passes if a Cargo.toml or
    Cargo.lock changed (no manifest changes)
  • New user-facing strings go through i18n::t("key") (none)
  • New interactive surfaces are wired into the keynav framework (none)
  • New settings rows have an entry in settings_index.rs (none)
  • Tests land in this PR where they apply (workflow-only change; both files pass actionlint)
  • Only the files I touched are formatted (no cargo fmt --all)
  • Code comments are in English

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.
@ImStillBlue
ImStillBlue merged commit b1a1bf6 into main Nov 18, 2026
9 of 13 checks passed
@ImStillBlue
ImStillBlue deleted the ci/slim-ci branch November 18, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant