fix(portable): run the CLI on an 8 MiB thread and scope G3 tests
ci/woodpecker/push/woodpecker Pipeline was successful
Linux strict security lane (G-C) / strict isolation escape matrix (push) Canceled after 0s
CI / fmt + clippy + test (Linux x86_64) (push) Canceled after 0s
CI / schema instance validation + consumers (push) Canceled after 0s
CI / runtime contract (macos-latest) (push) Canceled after 0s
CI / runtime contract (windows-latest) (push) Canceled after 0s
CI / release evidence manifest (push) Canceled after 0s
CI / release candidate artifact (macos-latest) (push) Canceled after 0s
CI / release candidate artifact (ubuntu-latest) (push) Canceled after 0s

Windows gives the main thread 1 MiB, unlike Linux/macOS at 8 MiB. The bundled
regex self-test overflowed that stack even though the same document passed on
Linux, so run the CLI dispatch on an explicit 8 MiB thread on every platform.

The macOS package test compared a raw temp path with a canonicalized one; on
macOS /var is a symlink to /private/var. Compare canonical forms on both sides.

The adversarial security matrix is G3-only: ordinary cargo test --workspace on
a namespace-capable but non-disposable hosted runner turned G0 red. Make it
opt-in (MARQDO_REQUIRE_STRICT_SECURITY=1 for the G3 lane, or
MARQDO_RUN_STRICT_SECURITY=1 for a developer); the lane still requires the
mechanism and fails on a missing one.
This commit is contained in:
cflmy committed 2026-11-21 18:42:53 +08:00
1 parent b898c419fe
commit 4265231a14
3 files changed
+48 -12

No files matched your search

+4 -4
View File
@@ -1858,11 +1858,11 @@ capabilities:
"project:\n name: p\n version: 0.1.0\n",
)
.unwrap();
// macOS temp_dir is `/var/folders/...` while canonicalize resolves the
// `/var -> /private/var` symlink; compare canonical forms on both sides.
assert_eq!(
discover_root(&nested).unwrap(),
dir.path()
.canonicalize()
.unwrap_or_else(|_| dir.path().to_path_buf())
discover_root(&nested).unwrap().canonicalize().unwrap(),
dir.path().canonicalize().unwrap()
);
assert!(discover_root(Path::new("/")).is_none());
}