chore: clear dead test and allowlist leftovers of dropped runtimes
Some checks failed
Tests / PR mergeability (push) Successful in 18s
Tests / Base branch health (push) Successful in 9s
Tests / Detect test scope (push) Successful in 16s
Tests / lint-tests (push) Failing after 1m43s
Tests / plugin-validate (push) Successful in 58s
Tests / test (ubuntu-latest, 24, shard 1/3) (push) Failing after 19s
Tests / test (ubuntu-latest, 24, shard 2/3) (push) Failing after 20s
Tests / test (ubuntu-latest, 24, shard 3/3) (push) Failing after 20s
Tests / test (ubuntu-latest, 24) (push) Failing after 18s
Tests / test (inert CI) (push) Has been skipped
Tests / QA loop walk (smell ratchet) (push) Failing after 19s
Tests / Coverage gate (merged shards) (push) Has been skipped
Tests / Publish emitted-baseline artifact (push) Has been skipped
Duplicate auto-close sweep / sweep (push) Successful in 19s
CI timeout budget report / report (push) Failing after 14s
Close Draft PRs (sweep) / Sweep open draft PRs (push) Successful in 9s
Dismiss Unauthorized PR Approvals / dismiss-unauthorized-approval (push) Successful in 9s
Tests / conformance test (macos-latest, 24) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 1/3) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 2/3) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 3/3) (push) Has been cancelled
Tests / Required tests (push) Has been cancelled
Some checks failed
Tests / PR mergeability (push) Successful in 18s
Tests / Base branch health (push) Successful in 9s
Tests / Detect test scope (push) Successful in 16s
Tests / lint-tests (push) Failing after 1m43s
Tests / plugin-validate (push) Successful in 58s
Tests / test (ubuntu-latest, 24, shard 1/3) (push) Failing after 19s
Tests / test (ubuntu-latest, 24, shard 2/3) (push) Failing after 20s
Tests / test (ubuntu-latest, 24, shard 3/3) (push) Failing after 20s
Tests / test (ubuntu-latest, 24) (push) Failing after 18s
Tests / test (inert CI) (push) Has been skipped
Tests / QA loop walk (smell ratchet) (push) Failing after 19s
Tests / Coverage gate (merged shards) (push) Has been skipped
Tests / Publish emitted-baseline artifact (push) Has been skipped
Duplicate auto-close sweep / sweep (push) Successful in 19s
CI timeout budget report / report (push) Failing after 14s
Close Draft PRs (sweep) / Sweep open draft PRs (push) Successful in 9s
Dismiss Unauthorized PR Approvals / dismiss-unauthorized-approval (push) Successful in 9s
Tests / conformance test (macos-latest, 24) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 1/3) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 2/3) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 3/3) (push) Has been cancelled
Tests / Required tests (push) Has been cancelled
This commit is contained in:
@@ -25,8 +25,7 @@ const SCRIPT_REL = path.join('scripts', 'check-glossary-refs.cjs');
|
||||
// The real bin/install.js allRuntimes array, mirrored here so fixtures can
|
||||
// build both a matching and a deliberately-drifted CONTEXT.md against it.
|
||||
const REAL_RUNTIMES = [
|
||||
'claude', 'antigravity', 'augment', 'cline', 'codebuddy', 'codex', 'copilot',
|
||||
'cursor', 'hermes', 'kimi', 'kilo', 'opencode', 'pi', 'qwen', 'trae', 'windsurf', 'zcode',
|
||||
'claude', 'antigravity', 'codex', 'cursor', 'opencode', 'zcode',
|
||||
];
|
||||
|
||||
function allRuntimesSentence(count, members) {
|
||||
@@ -80,7 +79,7 @@ test('a clean CONTEXT.md whose refs resolve and whose allRuntimes matches passes
|
||||
'',
|
||||
'See `src/real-module.cts` for details.',
|
||||
'',
|
||||
`${allRuntimesSentence(17, REAL_RUNTIMES)}.`,
|
||||
`${allRuntimesSentence(6, REAL_RUNTIMES)}.`,
|
||||
'',
|
||||
].join('\n');
|
||||
const root = makeRepo(t, { contextBody: context });
|
||||
@@ -96,7 +95,7 @@ test('a reference to a nonexistent tracked file fails --check and names the toke
|
||||
'',
|
||||
'See `src/does-not-exist.cts` for details.',
|
||||
'',
|
||||
`${allRuntimesSentence(17, REAL_RUNTIMES)}.`,
|
||||
`${allRuntimesSentence(6, REAL_RUNTIMES)}.`,
|
||||
'',
|
||||
].join('\n');
|
||||
const root = makeRepo(t, { contextBody: context });
|
||||
@@ -107,24 +106,24 @@ test('a reference to a nonexistent tracked file fails --check and names the toke
|
||||
});
|
||||
|
||||
test('allRuntimes count and membership drift is caught', (t) => {
|
||||
// Mirrors the real-world case: CONTEXT.md says 15 while bin/install.js has 17.
|
||||
const claimed15 = REAL_RUNTIMES.filter((r) => r !== 'pi' && r !== 'zcode');
|
||||
assert.equal(claimed15.length, 15);
|
||||
// Mirrors the real-world case: CONTEXT.md says 4 while bin/install.js has 6.
|
||||
const claimed4 = REAL_RUNTIMES.filter((r) => r !== 'cursor' && r !== 'zcode');
|
||||
assert.equal(claimed4.length, 4);
|
||||
const context = [
|
||||
'# Context',
|
||||
'',
|
||||
'See `src/real-module.cts` for details.',
|
||||
'',
|
||||
`${allRuntimesSentence(15, claimed15)}.`,
|
||||
`${allRuntimesSentence(4, claimed4)}.`,
|
||||
'',
|
||||
].join('\n');
|
||||
const root = makeRepo(t, { contextBody: context }); // bin/install.js defaults to the real 17
|
||||
const root = makeRepo(t, { contextBody: context }); // bin/install.js defaults to the real 6
|
||||
|
||||
const res = run(root, ['--check']);
|
||||
assert.equal(res.status, 1);
|
||||
assert.match(res.stderr, /claims 15 values/);
|
||||
assert.match(res.stderr, /has 17/);
|
||||
assert.match(res.stderr, /pi/);
|
||||
assert.match(res.stderr, /claims 4 values/);
|
||||
assert.match(res.stderr, /has 6/);
|
||||
assert.match(res.stderr, /cursor/);
|
||||
assert.match(res.stderr, /zcode/);
|
||||
});
|
||||
|
||||
@@ -134,7 +133,7 @@ test('a reference to a nonexistent msd-core/bin/lib/*.cjs path is skipped (gener
|
||||
'',
|
||||
'Generated router lives at `msd-core/bin/lib/does-not-exist.cjs`.',
|
||||
'',
|
||||
`${allRuntimesSentence(17, REAL_RUNTIMES)}.`,
|
||||
`${allRuntimesSentence(6, REAL_RUNTIMES)}.`,
|
||||
'',
|
||||
].join('\n');
|
||||
const root = makeRepo(t, { contextBody: context });
|
||||
@@ -154,7 +153,7 @@ test('an intentionally-absent documented path is skipped, not asserted missing',
|
||||
'',
|
||||
'The escape hatch is a committed acknowledgment (`tests/emitted-drift-ack.json`).',
|
||||
'',
|
||||
`${allRuntimesSentence(17, REAL_RUNTIMES)}.`,
|
||||
`${allRuntimesSentence(6, REAL_RUNTIMES)}.`,
|
||||
'',
|
||||
].join('\n');
|
||||
const root = makeRepo(t, { contextBody: context });
|
||||
@@ -175,7 +174,7 @@ test('a sibling tests/ path that is merely missing is still caught', (t) => {
|
||||
'',
|
||||
'See `tests/emitted-drift-ack-typo.json` for details.',
|
||||
'',
|
||||
`${allRuntimesSentence(17, REAL_RUNTIMES)}.`,
|
||||
`${allRuntimesSentence(6, REAL_RUNTIMES)}.`,
|
||||
'',
|
||||
].join('\n');
|
||||
const root = makeRepo(t, { contextBody: context });
|
||||
@@ -191,7 +190,7 @@ test('a ~/-rooted path and a bare filename are both skipped', (t) => {
|
||||
'',
|
||||
'See `~/.claude/x.md` and `core.cjs` for details.',
|
||||
'',
|
||||
`${allRuntimesSentence(17, REAL_RUNTIMES)}.`,
|
||||
`${allRuntimesSentence(6, REAL_RUNTIMES)}.`,
|
||||
'',
|
||||
].join('\n');
|
||||
const root = makeRepo(t, { contextBody: context });
|
||||
@@ -211,7 +210,7 @@ test('a `..`-traversal token cannot escape ROOT into a filesystem-existence prob
|
||||
'',
|
||||
'Escape attempt: `src/../../../../../../etc/passwd` and `src/../../etc/hosts`.',
|
||||
'',
|
||||
`${allRuntimesSentence(17, REAL_RUNTIMES)}.`,
|
||||
`${allRuntimesSentence(6, REAL_RUNTIMES)}.`,
|
||||
'',
|
||||
].join('\n');
|
||||
const root = makeRepo(t, { contextBody: context });
|
||||
@@ -255,7 +254,7 @@ test('a broken tracked reference after a RULESET predicate with inner backticks
|
||||
'',
|
||||
'Coverage lives in `src/does-not-exist.cts`.',
|
||||
'',
|
||||
`${allRuntimesSentence(17, REAL_RUNTIMES)}.`,
|
||||
`${allRuntimesSentence(6, REAL_RUNTIMES)}.`,
|
||||
'',
|
||||
].join('\n');
|
||||
const root = makeRepo(t, { contextBody: context });
|
||||
@@ -279,7 +278,7 @@ test('tracked paths inside an outer-wrapped predicate span are extracted (#3604)
|
||||
'',
|
||||
'`WORKTREE.SEAM.demo-anchor=src/real-module.cts + tests/missing-anchor.test.cjs`',
|
||||
'',
|
||||
`${allRuntimesSentence(17, REAL_RUNTIMES)}.`,
|
||||
`${allRuntimesSentence(6, REAL_RUNTIMES)}.`,
|
||||
'',
|
||||
].join('\n');
|
||||
const root = makeRepo(t, { contextBody: context });
|
||||
@@ -307,7 +306,7 @@ test('glob and NNNN template mentions are not drift (#3604)', (t) => {
|
||||
'A fresh ADR starts from `docs/adr/NNNN.md`.',
|
||||
'Retired scanners were `scripts/lint-*.cjs`.',
|
||||
'',
|
||||
`${allRuntimesSentence(17, REAL_RUNTIMES)}.`,
|
||||
`${allRuntimesSentence(6, REAL_RUNTIMES)}.`,
|
||||
'',
|
||||
].join('\n');
|
||||
const root = makeRepo(t, { contextBody: context });
|
||||
@@ -335,7 +334,7 @@ test('retired-path exemptions are exact, not a blanket hole (#3604)', (t) => {
|
||||
'`RULESET.TESTS.harness=local plugin at eslint-rules/ (repo root, NOT scripts/eslint-rules/)`',
|
||||
'A typo sibling `tests/golden-install-parity-typo.test.cjs` is real drift.',
|
||||
'',
|
||||
`${allRuntimesSentence(17, REAL_RUNTIMES)}.`,
|
||||
`${allRuntimesSentence(6, REAL_RUNTIMES)}.`,
|
||||
'',
|
||||
].join('\n');
|
||||
const root = makeRepo(t, { contextBody: context });
|
||||
|
||||
Reference in New Issue
Block a user