Files
CodeWhale Bot 5042c193a2 fix(tests): adopt shared home isolation in test entry points
Reuse the existing hermetic-home launcher for GitHub CI, release, CNB and dev-test. Preserve persistent Cargo caches, toolchain homes, migration fixtures, selectors and release authority.

Validation: 8 synthetic launcher tests, 22 cache checks and 11 CI-wiring tests passed. Release workflow contracts passed, including 11 protected test invocations. Shell syntax, shellcheck -x, scoped actionlint and three-document YAML scope checks passed. Unfiltered actionlint retains pre-existing diagnostics in unchanged run blocks. No Cargo or Rust tests run in this slice.
2026-09-08 15:42:22 -07:00

34 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
# Run cargo with the portable Codewhale cache topology applied.
#
# scripts/dev-cargo.sh check -p codewhale-config --lib --locked
# scripts/dev-cargo.sh --status
# scripts/dev-cargo.sh --self-check
#
# This is the everyday compile entry point. It does not change product
# behavior. Use scripts/dev-test.sh <area> for tests under the shared temporary
# HOME boundary. Arbitrary Cargo commands here do not isolate product config.
# See scripts/dev-cache.sh and docs/BUILD_PERFORMANCE.md.
set -eu
repo_root=$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd)
cd "$repo_root"
# shellcheck source=scripts/dev-cache.sh
. "$repo_root/scripts/dev-cache.sh"
case ${1:-} in
--status|--self-check|--print-exports|--help|-h)
exec "$repo_root/scripts/dev-cache.sh" "$1"
;;
esac
codewhale_dev_cache_apply
# Match CI / the product's 16 MiB owner-thread stack so local cargo test
# and nextest do not abort on the default ~2 MiB (Windows ~1 MiB) stack.
if [ -z "${RUST_MIN_STACK:-}" ]; then
RUST_MIN_STACK=16777216
export RUST_MIN_STACK
fi
codewhale_dev_cache_exec_cargo "$@"