chore: allow skipping tests in the release script

PI_RELEASE_SKIP_TESTS=1 skips ./test.sh when the suite already passed in release:local and the machine is too loaded for timing-sensitive tests.
This commit is contained in:
Armin Ronacher 2026-10-07 23:32:05 +02:00
parent e916310705
commit bf8d9c659f
2 changed files with 11 additions and 3 deletions

View file

@ -257,9 +257,15 @@ console.log("Building packages for tests...");
run("npm run build:offline");
console.log();
console.log("Running tests...");
run("./test.sh");
console.log();
// PI_RELEASE_SKIP_TESTS=1 skips the test suite, e.g. when it already passed in `npm run release:local`
// and an overloaded machine makes timing-sensitive tests fail. Checks and the install check still run.
if (process.env.PI_RELEASE_SKIP_TESTS === "1") {
console.log("Skipping tests (PI_RELEASE_SKIP_TESTS=1)\n");
} else {
console.log("Running tests...");
run("./test.sh");
console.log();
}
console.log("Checking the packed coding-agent consumer install...");
run("npm run check:package-install");