test(#1975): scope GSD_TEST_MODE off in real-install folds; fix ci-test-scope fixture
gsd-test surfaced 21 failures: - 19: folded real-install suites (bug-1834 .sh hooks, enh-2380 --skills-root, fix-1521 install stamping, bug-2136 .sh hook version) spawn install.js and assert side effects, but their host suites (install-minimal-hooks/install.test/managed-hooks) set GSD_TEST_MODE=1 at collection time — the install child inherited it and suppressed the writes. Clear GSD_TEST_MODE in each of those blocks (before/after; standalone had it unset), so the child performs a real install. - 2: ci-test-scope A1 used deleted tests/bug-1974-context-exhaustion-record.test.cjs as a fixture; scopeFor filters nonexistent paths, so it fell back to ['unit']. Repointed to its consolidation destination tests/perf-317-context-monitor-fs.test.cjs (an existing test). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -285,12 +285,12 @@ describe('ci-test-scope superset invariant (#494, narrowed)', () => {
|
||||
// so OS-specific breakage in the changed test (the #482 class) is still
|
||||
// exercised pre-merge. Ubuntu 22/24 coverage comes via targeted_tests.
|
||||
test('A1: a changed test file joins the windows scoped lane without full_matrix', () => {
|
||||
const result = scopeFor(['tests/bug-1974-context-exhaustion-record.test.cjs']);
|
||||
const result = scopeFor(['tests/perf-317-context-monitor-fs.test.cjs']);
|
||||
assert.strictEqual(result.full_matrix, false,
|
||||
`expected full_matrix=false for a tests/**-only change, got: ${JSON.stringify(result)}`);
|
||||
assert.ok(result.targeted_tests.includes('tests/bug-1974-context-exhaustion-record.test.cjs'),
|
||||
assert.ok(result.targeted_tests.includes('tests/perf-317-context-monitor-fs.test.cjs'),
|
||||
`expected the changed test in targeted_tests, got: ${JSON.stringify(result.targeted_tests)}`);
|
||||
assert.ok(result.windows_tests.includes('tests/bug-1974-context-exhaustion-record.test.cjs'),
|
||||
assert.ok(result.windows_tests.includes('tests/perf-317-context-monitor-fs.test.cjs'),
|
||||
`expected the changed test in windows_tests, got: ${JSON.stringify(result.windows_tests)}`);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user