Improve CI Execution Speed - #19
Open
seanpar203 wants to merge 4 commits into
Open
Conversation
Add `/plan-dist-manifest.json` to `.gitignore`. This keeps workspace status clean when `dist plan` runs locally.
Add executable `.githooks/pre-commit` and `.githooks/pre-push` scripts to validate changes locally before they reach CI. Document the `git config core.hooksPath .githooks` setup command in `README.md`. - *Structural decisions*: hooks reside directly in `.githooks/` so developers can configure them without external tools. - *Behavior facts*: `pre-commit` executes `cargo fmt --all --check` and `pre-push` validates headless gateway compilation with `cargo check -p gateway --no-default-features`, runs `cargo clippy`, and invokes `cargo deny check` when present.
Configure `cache: npm` and `cache-dependency-path` for `actions/setup-node@v4` across nightly and release workflow definitions. Pass `--no-install-recommends` during Linux package installation in `release-workshop.yml`. - *Behavior facts*: `actions/setup-node@v4` caches `crates/*/ui/package-lock.json` dependencies in `.github/workflows/dist-ci/build-setup.yml`, `.github/workflows/nightly.yml`, and `.github/workflows/release-workshop.yml`.
seanpar203
force-pushed
the
312-improve-promptforge-ci-speed-execution
branch
from
September 6, 2026 21:51
a2af054 to
4a6da8f
Compare
Split the monolithic `check` job in `.github/workflows/ci.yml` into separate `fmt`, `clippy`, `test`, and `docs` jobs. Install `cargo-nextest` via `taiki-e/install-action@nextest` for multi-core test scheduling, install prebuilt `cargo-deny` and `cargo-audit` binaries in `supply-chain`, and install UI dependencies across compilation jobs. - *Structural decisions*: `fmt`, `clippy`, `test`, and `docs` run as independent concurrent jobs on `ubuntu-latest`. - *Behavior facts*: `cargo-nextest` runs workspace tests concurrently across process pools in `test`, `check-workshop`, and `msrv`, while `npm ci` stages both UI trees for crates requiring build-script UI artifacts.
seanpar203
force-pushed
the
312-improve-promptforge-ci-speed-execution
branch
from
September 6, 2026 21:55
4a6da8f to
8d0e95b
Compare
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.
The goal of this PR is two fold:
Why CI will run faster with this PR