fix: ignore generated gate artifacts in cleanliness check
Memind CI / Test, build, and release guards (push) Successful in 1m59s

This commit is contained in:
john
2026-07-26 15:20:14 +08:00
parent ea07f6f250
commit f1f9a1cf8f
2 changed files with 34 additions and 3 deletions
+15 -1
View File
@@ -1,7 +1,12 @@
import assert from 'node:assert/strict';
import test from 'node:test';
import { parseRunnerArgs, runSuitesWithConcurrency, runWithConcurrency } from './runner.mjs';
import {
filterGeneratedWorktreeStatus,
parseRunnerArgs,
runSuitesWithConcurrency,
runWithConcurrency,
} from './runner.mjs';
test('runner accepts a bounded suite concurrency and rejects unsafe values', () => {
assert.equal(
@@ -52,3 +57,12 @@ test('exclusive suites finish before parallel suites start', async () => {
assert.ok(events.indexOf('end:mutating') < events.indexOf('start:parallel-a'));
assert.ok(events.indexOf('end:mutating') < events.indexOf('start:parallel-b'));
});
test('worktree cleanliness ignores only release-gate and generated plaza cover paths', () => {
const status = [
'?? .release-gate/ea07f6f/report.json',
' D .runtime/portal/public/plaza-covers/cover.jpg',
' M release-gate/runner.mjs',
].join('\n');
assert.equal(filterGeneratedWorktreeStatus(status), ' M release-gate/runner.mjs');
});