Repository navigation
test(cli): keep executable fixtures off noexec temp roots - #736
Merged
Merged
Conversation
This was referenced Sep 27, 2026
Owner
|
Reviewed on |
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.
Problem
Several WebCodex CLI tests create fake executable Runner fixtures in the system temporary directory.
On hardened Unix hosts where the ambient temporary filesystem is mounted
noexec, those tests can fail before exercising CLI behavior. The Runner test suite already keeps executable fixtures on the repository build filesystem; the CLI tests should follow the same boundary while preserving/tmpfor canonical-path policy tests.Fix
Add a CLI-only
executable_test_tempdir()helper rooted undertarget/test-executablesand use it only for tests that execute a generated Runner fixture or validate generated systemd units against executable paths.Canonical/path-policy tests continue to use
canonical_test_tempdir()unchanged.For systemd verification, include the fixture directory in
SYSTEMD_UNIT_PATHso generated units can resolve one another after moving off the ambient temp root.No production/runtime behavior changes.
Validation
cargo fmt --all -- --check: passedgit diff --check: passedtarget/test-executables: passedsystemd-analyze verifyexecutable-path smoke: passedFocused Cargo test discovery was blocked locally by an unrelated current-upstream compile failure in
webcodex-environment/src/installer_unix.rsagainst the installedlibc 0.2.186(getpwuid_rexpects*mut u8, current code passes*mut i8). The identical failure reproduces on an unmodified detached checkout of the sameupstream/main, before any CLI test executes.