Skip to content

ci: run the all-features and default-features build + test in parallel - #132

Merged
MikeGrier merged 1 commit into
mainfrom
mikegrier/parallel-build-test
Oct 15, 2026
Merged

MikeGrier merged 1 commit into
mainfrom
mikegrier/parallel-build-test

Conversation

@MikeGrier

Copy link
Copy Markdown
Owner

The two variants were steps of one job and ran back to back (about four and a half minutes of cargo on the last main run, in two near-equal halves). They are now a two-entry matrix of parallel jobs. The ruleset requires a check named exactly 'build + test', so an aggregate job keeps that name and passes only when every variant did. The UNC current-directory and windows-file-watcher default-feature steps move with the default variant. Rust-cache is keyed per variant. The new job names appear on this PR: 'build + test (all features)', 'build + test (default features)' and the aggregate 'build + test'.

The two variants were steps of one job, built and tested one after the other.
They share nothing but the checkout, so they are now a two-entry matrix; the
default-feature variant also runs the UNC and windows-file-watcher steps, which
exist to verify a default build. The ruleset requires a check named exactly
build + test, which the matrix no longer produces, so an aggregate job of that
name passes only when every variant did (always(), so a failed variant fails
it rather than leaving it skipping).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 15, 2026 01:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Existing coverage is preserved, and the aggregate check rejects unsuccessful matrix results.

0 open findings

What changed in this PR

Parallelizes the workspace’s all-features and default-features CI runs while preserving coverage and the required check name.

Changes:

  • Runs feature variants in parallel with separate cache keys.
  • Keeps isolated tests in the default-features variant.
  • Adds an aggregate build + test check requiring both variants to succeed.
File Description
.github/​workflows/​ci.yml Introduces the feature matrix and aggregate required check.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@MikeGrier
MikeGrier merged commit c4cbbac into main Oct 15, 2026
36 checks passed
@MikeGrier
MikeGrier deleted the mikegrier/parallel-build-test branch October 15, 2026 01:59
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.

2 participants