Skip to content

tools: make test-crate works on the stable toolchain - #833

Merged
GLinnik21 merged 1 commit into
mainfrom
fix/test-crate-stable
Oct 18, 2026
Merged

GLinnik21 merged 1 commit into
mainfrom
fix/test-crate-stable

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

Cause

Since #816 the build is on stable Rust 1.99.1. tools/test-crate.py reads the full suite's feature resolution with cargo test --lib --no-run --unit-graph -Z unstable-options; --unit-graph is nightly-only, so make test-crate died in its first step.

Red (before):

error: the `-Z` flag is only accepted on the nightly channel of Cargo, but this is the `stable` channel
test-crate: cargo --unit-graph failed (exit 101): cargo +1.99.1 test --lib --no-run --unit-graph -Z unstable-options -p plxnative-modules ...
make: *** [test-crate] Error 1

Fix

--unit-graph is cargo's only interface to the resolved units, and cargo tree cannot reproduce per-unit feature unification exactly (the point is matching make test-fast's fingerprints). The repo already accepts RUSTC_BOOTSTRAP=1 for this same read-only query (ci/test_no_host_staticlib.py), so the tool now sets it for that one call only (nothing is compiled; the test build that follows keeps the normal environment). ci/test_test_crate.py's fake cargo now refuses -Z without it, plus a test that the bootstrap does not leak into the printed command. The Makefile's other --unit-graph mentions are comments for ci/test_* scripts that already set the variable; no other nightly flags found.

Green (after), make test-crate C=plx_media T=seek:

test-crate: plx_media
test result: ok. 67 passed; 0 failed; 4 ignored; 0 measured; 1637 filtered out; finished in 8.50s

make check on the committed tree (clean before and after): exit 0; the final unit stage printed Ran 460 tests ... OK; the cargo test result: lines scrolled out of the captured tail.

🤖 Generated with Claude Code

--unit-graph is nightly-only; since the stable pin it failed with 'the -Z flag is only accepted on the nightly channel'. Run that one read-only query with RUSTC_BOOTSTRAP=1 (as ci/test_no_host_staticlib.py does), scoped to the call so the test build keeps the same fingerprints as make test-fast. The test fake now refuses -Z without it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit 84759b9 into main Oct 18, 2026
15 checks passed
@GLinnik21
GLinnik21 deleted the fix/test-crate-stable branch October 18, 2026 09:02
RichiL10 added a commit to RichiL10/plx-native that referenced this pull request Oct 18, 2026
Brings the four upstream commits after the 0.9 base 0b0b220:
- plxnative#831 Watchlist: a plex.tv Watchlist tab, catalog page, Detail and hold-menu controls
- plxnative#803 input: a click with no control under it is OK after D-pad navigation
- plxnative#832 Route: a remux declares the source frame rate in the Load
- plxnative#833 tools: make test-crate works on the stable toolchain

One conflict, in the rebuilt-route projection of route/decision.rs: upstream now
declares `video_copy_fps(&applied.contract, p.src_fps)` where the fork had 0, and
clears Dolby Vision where the fork keeps the source's declaration on an HEVC video
copy. Resolved with upstream's rate line and the fork's Dolby Vision block, whose
else-branch clears Dolby Vision exactly as upstream does. No other fork code sets
the stream rate, so every copying remux now follows upstream's rule.
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.

1 participant