8000 test(lock): find pid_ns_helper under Cargo's 1.100 build-dir layout by adityamukho · Pull Request #918 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

test(lock): find pid_ns_helper under Cargo's 1.100 build-dir layout - #918

Merged
adityamukho merged 1 commit into
mainfrom
fix/pid-ns-helper-lookup-main
Nov 26, 2026
Merged

adityamukho merged 1 commit into
mainfrom
fix/pid-ns-helper-lookup-main

Conversation

@adityamukho
Copy link
Copy Markdown
Collaborator

Backport of #917 to main.

GitHub's runners moved to Rust 1.100.0, which runs integration tests from target/debug/build/<pkg>/<hash>/out/ instead of target/debug/deps/. The lock tests' fixed two-level path lookup no longer reaches target/debug/examples/pid_ns_helper, so docker_lock_test fails on Linux and fail-fast cancels macOS and Windows. This currently blocks every PR to main, e.g. #915.

The three identical lookups (docker_lock_test, nfs_lock_test, pid_namespace_test) become one tests/pid_ns_helper module. It takes the nearest ancestor of the test binary that holds examples/pid_ns_helper, which covers both layouts. MINIGRAF_PID_NS_HELPER still overrides it.

Verified locally on this branch with Rust 1.100.0 and 1.89.0 (MSRV): docker_lock_test passes against a live Docker daemon. pid_namespace_test and the NFS-mount tests skip locally (no PID namespaces, no NFS export). Clippy and fmt are clean.

Rust 1.100 runs integration tests from target/debug/build/<pkg>/<hash>/out/
instead of target/debug/deps/, so the fixed two-level pop in docker_lock_test,
nfs_lock_test and pid_namespace_test no longer reaches target/debug/examples/
and the Docker lock tests fail on every Linux runner. The three copies become
one tests/pid_ns_helper module that takes the nearest ancestor of the test
binary holding examples/pid_ns_helper, which covers both layouts.
MINIGRAF_PID_NS_HELPER still overrides it.
@codecov
codecov Bot commented Nov 26, 2026
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@adityamukho
adityamukho merged commit d54711c into main Nov 26, 2026
20 checks passed
@adityamukho
adityamukho deleted the fix/pid-ns-helper-lookup-main branch November 26, 2026 06:28
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

0