8000 test(lock): find pid_ns_helper under Cargo's 1.100 build-dir layout by adityamukho · Pull Request #917 · 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 - #917

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

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

Conversation

@adityamukho
@adityamukho adityamukho commented Nov 26, 2026 •
Copy link
Copy Markdown
Collaborator

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 computed the helper's path with two fixed pop()s, which no longer reach target/debug/examples/, so docker_lock_test fails on Linux in build (ubuntu-latest) and test-hooks. The macOS and Windows jobs are cancelled by fail-fast. This currently blocks every PR to v3, e.g. #916.

The three identical lookups (docker_lock_test, nfs_lock_test, pid_namespace_test) are replaced by 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 (coverage gates).

Verified locally on Rust 1.100.0 (new layout) and 1.89.0 (MSRV, old layout): docker_lock_test runs against a live Docker daemon and passes on both, and fails on 1.100.0 before this change. pid_namespace_test and the NFS-mount tests skip locally (no PID namespaces, no NFS export); CI's runners exercise pid_namespace_test. Clippy and fmt are clean.

main needs the same change as a backport PR.

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 cbc8164 into v3 Nov 26, 2026
23 checks passed
@adityamukho
adityamukho deleted the fix/pid-ns-helper-lookup branch November 26, 2026 05:50
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