test: lower prepare unit-fast batch target

This commit is contained in:
huntharo 2026-03-26 23:39:35 -04:00
parent eebce9e9c7
commit 4262abe05d
No known key found for this signature in database
1 changed files with 7 additions and 1 deletions

View File

@ -1431,7 +1431,13 @@ prepare_gates() {
if [ "$docs_only" = "true" ]; then
echo "Docs-only change detected with high confidence; skipping pnpm test."
else
run_quiet_logged "pnpm test" ".local/gates-test.log" pnpm test
local prepare_unit_fast_batch_target_ms
prepare_unit_fast_batch_target_ms="${OPENCLAW_PREPARE_TEST_UNIT_FAST_BATCH_TARGET_MS:-5000}"
echo "Running pnpm test with OPENCLAW_TEST_UNIT_FAST_BATCH_TARGET_MS=$prepare_unit_fast_batch_target_ms for shorter-lived unit-fast workers."
run_quiet_logged \
"pnpm test" \
".local/gates-test.log" \
env OPENCLAW_TEST_UNIT_FAST_BATCH_TARGET_MS="$prepare_unit_fast_batch_target_ms" pnpm test
fi
cat > .local/gates.env <<EOF_ENV