Repository navigation
Skip unused dev dependencies in targeted test rebuilds - #161
Open
charliermarsh wants to merge 7 commits into
Open
charliermarsh wants to merge 7 commits into
charliermarsh wants to merge 7 commits into
Conversation
charliermarsh
force-pushed
the
charlie/codex-defer-dev-deps
branch
from
October 17, 2026 00:09
19cc62b to
c1d5e8b
Compare
charliermarsh
changed the base branch from
codex/per-dependency-build-cache-gc
to
charlie/fix-clippy-dependency-reuse
October 17, 2026 00:09
charliermarsh
force-pushed
the
charlie/codex-defer-dev-deps
branch
2 times, most recently
from
October 17, 2026 00:12
19cc62b to
dd33194
Compare
charliermarsh
changed the base branch from
charlie/fix-clippy-dependency-reuse
to
codex/per-dependency-build-cache-gc
October 17, 2026 00:12
charliermarsh
force-pushed
the
charlie/codex-defer-dev-deps
branch
from
October 17, 2026 00:26
dd33194 to
b7ae267
Compare
This was referenced Oct 17, 2026
charliermarsh
added a commit
to astral-experiments/ohm
that referenced
this pull request
Oct 17, 2026
Update the Cargo pin in the unpublished Ohm 1.99.0-5 manifest to include the retained-native-archive support in astral-experiments/ohm-cargo#161 and the rebased ThinLTO cleanup change in astral-experiments/ohm-cargo#164. Align the compiler's Cargo gitlink with the manifest. The source revisions, manifest history, and formatting checks pass.
charliermarsh
force-pushed
the
charlie/codex-defer-dev-deps
branch
from
November 17, 2026 06:26
19f9ebd to
0d499ab
Compare
charliermarsh
force-pushed
the
charlie/codex-defer-dev-deps
branch
from
November 17, 2026 07:02
0d499ab to
8a2fb4d
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.
With Ohm defaults,
cargo +ohm test -p app --lib selectedcan skip unused workspace dev dependencies on rebuilds. This can also avoid compiling the ordinary library needed only by an unused test helper. Features, compiler arguments, and optimization settings stay the same.We use the previous executable's unused-dependency report to choose what to skip. The new compilation must confirm those dependencies are still unused before we accept the executable. Otherwise, we discard the output and retry once with all dependencies. Crashes and interruptions stop the command.
Native dependencies still build normally. We check their current outputs after build scripts finish. Unsupported native inputs retain the full build.
Skipped dependencies' errors and warnings are not reported. Use
-Zohm-defer-dev-deps=nowhen you need to validate all declared dependencies. A failed attempt can cost an extra compilation.One uncontended off/on pair per workload, with optimized Cargo, LLD, and the same warm checkpoint and settings within each pair:
These are single-pair results. In uv, the skipped helper accounted for 2.65s; the main compiler's additional 1.49s improvement needs more samples to establish.
Seven focused regressions cover stale archives, unsafe native inputs, changed dependency usage, and failed attempts. Linux and macOS CI pass.