Repository navigation
CI: drop redundant build in nightly test job (#1173) - #1396
Closed
Mikola Lysenko (mikolalysenko) wants to merge 1 commit into
Closed
Mikola Lysenko (mikolalysenko) wants to merge 1 commit into
Mikola Lysenko (mikolalysenko) wants to merge 1 commit into
Conversation
The macOS/Windows `test` legs ran `cargo build --workspace` before `cargo test`, which builds every target the tests need anyway (the CLI binary included). The extra step cost about 2 minutes per leg. The Linux `coverage` job already runs the same test selection with no pre-build, so the step bought nothing. The `test` job only runs on full scope (nightly / dispatch), so PR and merge-queue runner usage is unchanged. Refs #1173 Assisted-by: Claude Code:claude-opus-5-5
This was referenced Oct 11, 2026
Collaborator
Author
|
[agent] Closing without merging.
Losing the macOS/Windows addon link coverage costs more than those few nightly job-minutes save. Details on #1173. Generated by Claude Code |
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.
LLM Description written by Claude Code:claude-opus-5-5
Fixes #1173
Root cause
#1173 reported two costs in the macOS/Windows
testjob:main:[profile.dev]setsdebug = "line-tables-only"(Cargo.toml:130-132).cargo build --workspacestep beforecargo test(.github/workflows/ci.yml:375-376on41659c1). It is still there.cargo testalready builds every target the tests need, the CLI binary included (integration tests get it throughCARGO_BIN_EXE_socket-patch), and no test reads a prebuilttarget/debugbinary. The Linuxcoveragejob runs the samecargo test --workspaceselection without a pre-build, so the step only added build time: about 2 min per leg (2.1–2.4 min on Windows in the run profiled on CI perf: test (windows/macos) — redundantcargo buildstep + full debuginfo linking ~240 test binaries (~930 job-min/day, ~300 macOS) #1173).Change
Delete the
Buildstep from thetestjob and leave a comment saying why it isn't there. TheWarm the test cachestep, which runs only on reuse, still runscargo test --no-run, so the main-branch cache still gets every test artifact. Nothing else changes.CI cost
testjob doesn't run there (ci.yml:325, full scope / schedule / dispatch only).testlegs (macOS ×2, Windows ×2), about 2 min less each, so ~8 fewer job-minutes per run, most of it on macOS/Windows minutes.Validation
actionlint: the same 165 findings asorigin/main(pre-existing matrix-property warnings), none new.zizmor --offline: 59 findings, identical toorigin/main.python3 -m pytest scripts/tests -q: 331 passed, 6 skipped.fromJSONchanges.cargo testrepeats anyway, andcoveragealready proves the no-pre-build path on every PR. To keep runner usage down, the next nightly run is the check. If a maintainer wants proof first, onegh workflow run ci.yml --ref agent/fix-ci-test-redundant-buildcovers it.Per-issue checklist
cargo buildstep + full debuginfo linking ~240 test binaries (~930 job-min/day, ~300 macOS) #1173 redundantcargo build: step removed.cargo buildstep + full debuginfo linking ~240 test binaries (~930 job-min/day, ~300 macOS) #1173 full debuginfo: alreadyline-tables-onlyonmain.🤖 Generated with Claude Code
https://claude.ai/code/session_01Bs71CkBzChrPAix1XMC7Ng
Generated by Claude Code