Skip to content

ci: run the test jobs side by side and skip the release build - #571

Merged
LeMyst merged 1 commit into
cooklang:mainfrom
LeMyst:ci/faster-tests
Sep 28, 2026
Merged

LeMyst merged 1 commit into
cooklang:mainfrom
LeMyst:ci/faster-tests

Conversation

@LeMyst

@LeMyst LeMyst commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

Closes #570.

Stacked on #569. The first commit belongs to #569; only 5ac2466 is new here. Both remove neighbouring lines at the end of test.yml, so this branch starts from #569 instead of conflicting with it. Once #569 merges, this diff shrinks to the one commit.

What changes

test.yml

  • UI Tests and the macOS/Windows jobs no longer needs: the Ubuntu job. The critical path becomes the longest single job instead of the sum of three.
  • Removed cargo build --release everywhere (4.5 / 6 / 9 min on Ubuntu / macOS / Windows). Also removed the cargo build before cargo test and the second snapshot_test run. cargo test --no-default-features still compiles and tests that configuration. A comment records why the release build is gone.
  • New concurrency group: a push to a pull request cancels the run for the previous push. Pushes to main are not cancelled.
  • Every job gets timeout-minutes.

claude-code-review.yml

  • Skips drafts. It now also triggers on ready_for_review and reopened, so a pull request is reviewed when it is marked ready.
  • Same concurrency cancel. The leftover commented-out author filter is removed.
  • Not done: making it update a single comment. The prompt posts through gh pr comment, and --edit-last would edit the bot's last comment on the pull request, which might be an @claude reply.

rpm.yaml: concurrency and a 60-minute timeout. The slowest RPM build in the v0.37.0 release took 13 minutes.

Why not pass the binary to UI Tests as an artifact

The UI job's own cargo build takes 38 s with a warm cache. Making it wait for the Ubuntu job to hand over a binary would put it back on the critical path.

Expected

The Windows job loses its 9-minute release build and its 2-minute redundant cargo build. The workflow should then finish in roughly the time of that one job, about 7–8 minutes, instead of ~32. That is an estimate; this PR's own CI run gives the real figures.

actionlint reports nothing.

🤖 Generated with Claude Code

The Test workflow took ~32 min on main: Test (9.5) → UI Tests (6) →
Windows (16.5), each waiting for the one before. The slowest step of
every job was `cargo build --release`, whose fat LTO ran 4.5 min on
Ubuntu, 6 on macOS and 9 on Windows, on every push — while nothing
tested the result.

- UI Tests and the macOS/Windows jobs no longer wait on the Ubuntu job.
- Drop the release builds and the separate `cargo build` steps (`cargo
  test` builds what it runs) and the second run of snapshot_test, which
  `cargo test --workspace` already includes. The no-default-features
  configuration is still compiled and tested.
- A new push to a pull request cancels the run for the previous one
  (Test, RPM, Claude review); main keeps one run per commit.
- timeout-minutes on every job, instead of the 6 h default.
- Claude review skips drafts and runs when a pull request is marked
  ready, rather than posting a new review for every push to a draft.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@LeMyst
LeMyst merged commit 6cd0f12 into cooklang:main Sep 28, 2026
7 checks passed
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.

CI: Test workflow takes 32 min, mostly on an unused fat-LTO release build

1 participant