-
test(paths): gate #401 paths-array test on a live PathJail
Release / SDK release gate (push) Has been cancelledRelease / Build aarch64-apple-darwin (push) Has been cancelledRelease / Build x86_64-apple-darwin (push) Has been cancelledRelease / Build aarch64-unknown-linux-musl (push) Has been cancelledRelease / Build aarch64-unknown-linux-gnu (push) Has been cancelledRelease / Build x86_64-unknown-linux-musl (push) Has been cancelledRelease / Build x86_64-pc-windows-gnu (push) Has been cancelledRelease / Build x86_64-unknown-linux-gnu (push) Has been cancelledRelease / Build x86_64-pc-windows-msvc (push) Has been cancelledRelease / Create Release (push) Has been cancelledRelease / Publish to crates.io (push) Has been cancelledRelease / Publish to npm (push) Has been cancelledRelease / Update Homebrew (push) Has been cancelledRelease / Announce on Twitter (push) Has been cancelled发布于
2026-06-13 08:22:59 +00:00 CI runs
cargo test --all-features, which enables theno-jailfeature.
That compiles PathJail out, soresolve_tool_pathsresolves every path and
the newexplicit_unresolvable_paths_array_errorstest never saw the
out-of-scope rejection it asserts — failing the "Run tests" step on every
release builder.Gate the test with
#[cfg(not(feature = "no-jail"))], matching the existing
PathJail unit tests incore::pathjail, and drive it with an absolute path
whose only existing ancestor is/so the jail decision is deterministic and
independent of allow-list state left behind by other tests. The test still
runs (and passes) under the default feature set, giving real #401 coverage.Co-authored-by: Cursor cursoragent@cursor.com
下载附件