chore: sweep Kimi mentions from comments and notes
Some checks failed
Tests / PR mergeability (push) Successful in 19s
Tests / Base branch health (push) Successful in 10s
Tests / Detect test scope (push) Successful in 17s
Tests / lint-tests (push) Failing after 1m43s
Tests / plugin-validate (push) Successful in 1m7s
Tests / test (ubuntu-latest, 24, shard 1/3) (push) Failing after 18s
Tests / test (ubuntu-latest, 24, shard 2/3) (push) Failing after 19s
Tests / test (ubuntu-latest, 24, shard 3/3) (push) Failing after 19s
Tests / test (ubuntu-latest, 24) (push) Failing after 17s
Tests / test (inert CI) (push) Has been skipped
Tests / QA loop walk (smell ratchet) (push) Failing after 18s
Tests / Coverage gate (merged shards) (push) Has been skipped
Tests / Publish emitted-baseline artifact (push) Has been skipped
Dismiss Unauthorized PR Approvals / dismiss-unauthorized-approval (push) Successful in 8s
Tests / Required tests (push) Has been cancelled
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
Some checks failed
Tests / PR mergeability (push) Successful in 19s
Tests / Base branch health (push) Successful in 10s
Tests / Detect test scope (push) Successful in 17s
Tests / lint-tests (push) Failing after 1m43s
Tests / plugin-validate (push) Successful in 1m7s
Tests / test (ubuntu-latest, 24, shard 1/3) (push) Failing after 18s
Tests / test (ubuntu-latest, 24, shard 2/3) (push) Failing after 19s
Tests / test (ubuntu-latest, 24, shard 3/3) (push) Failing after 19s
Tests / test (ubuntu-latest, 24) (push) Failing after 17s
Tests / test (inert CI) (push) Has been skipped
Tests / QA loop walk (smell ratchet) (push) Failing after 18s
Tests / Coverage gate (merged shards) (push) Has been skipped
Tests / Publish emitted-baseline artifact (push) Has been skipped
Dismiss Unauthorized PR Approvals / dismiss-unauthorized-approval (push) Successful in 8s
Tests / Required tests (push) Has been cancelled
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
This commit is contained in:
@@ -413,17 +413,17 @@ describe('reviewer docs parity — HTML comment stripping (CodeQL js/incomplete-
|
||||
test('aNestedCommentCannotSmuggleAFlagPastTheStrip', () => {
|
||||
// `<!-` + `<!--DUMMY-->` + `-| `--opencode` | d |-->`: one pass strips the self-contained
|
||||
// `<!--DUMMY-->` in the middle, which joins the leftover `<!-` and `-` into a brand-new
|
||||
// `<!--` opener immediately followed by the kimi-code row and a real `-->` closer. A
|
||||
// `<!--` opener immediately followed by the `--opencode` row and a real `-->` closer. A
|
||||
// single-pass strip leaves that whole new span — row included — untouched in the output, so
|
||||
// the row reads as documented. Regressed exactly here: verified against the pre-fix
|
||||
// single-pass implementation, only `TABLE_ROW_MISSING` fired and `DOC_FLAG_MISSING` did not.
|
||||
const joinLine = '<!-<!--DUMMY-->-| `--opencode` | d |-->';
|
||||
const doc = ['### `/msd-review`', '', ...NON_VICTIM_ROWS, '', joinLine, ''].join('\n');
|
||||
const r = checkReviewerDocsParity({ descriptor: REVIEWER_LANES, docs: { d: doc } });
|
||||
const kimi = r.violations.filter((v) => v.subject === '--opencode');
|
||||
const flagViolations = r.violations.filter((v) => v.subject === '--opencode');
|
||||
assert.ok(
|
||||
kimi.some((v) => v.reason === DOCS_PARITY_VIOLATION.DOC_FLAG_MISSING)
|
||||
|| kimi.some((v) => v.reason === DOCS_PARITY_VIOLATION.TABLE_ROW_MISSING),
|
||||
flagViolations.some((v) => v.reason === DOCS_PARITY_VIOLATION.DOC_FLAG_MISSING)
|
||||
|| flagViolations.some((v) => v.reason === DOCS_PARITY_VIOLATION.TABLE_ROW_MISSING),
|
||||
'--opencode must still be reported missing once the join-trick comment is fully stripped',
|
||||
);
|
||||
});
|
||||
@@ -439,8 +439,8 @@ describe('reviewer docs parity — HTML comment stripping (CodeQL js/incomplete-
|
||||
'',
|
||||
].join('\n');
|
||||
const r = checkReviewerDocsParity({ descriptor: REVIEWER_LANES, docs: { d: doc } });
|
||||
const kimi = r.violations.filter((v) => v.subject === '--opencode');
|
||||
assert.ok(kimi.length > 0, '--opencode sits inside an open comment and must be reported missing');
|
||||
const flagViolations = r.violations.filter((v) => v.subject === '--opencode');
|
||||
assert.ok(flagViolations.length > 0, '--opencode sits inside an open comment and must be reported missing');
|
||||
});
|
||||
|
||||
test('aCommentClosedOnALaterLineResumesCorrectly', () => {
|
||||
@@ -458,16 +458,16 @@ describe('reviewer docs parity — HTML comment stripping (CodeQL js/incomplete-
|
||||
'',
|
||||
].join('\n');
|
||||
const r = checkReviewerDocsParity({ descriptor: REVIEWER_LANES, docs: { d: doc } });
|
||||
const kimi = r.violations.filter((v) => v.subject === '--opencode');
|
||||
assert.deepStrictEqual(kimi, [], 'content after a real comment close must not be treated as commented out');
|
||||
const flagViolations = r.violations.filter((v) => v.subject === '--opencode');
|
||||
assert.deepStrictEqual(flagViolations, [], 'content after a real comment close must not be treated as commented out');
|
||||
});
|
||||
|
||||
test('multipleIndependentCommentsOnOneLineAreAllStripped', () => {
|
||||
const line = 'A <!-- first --> B <!-- | `--opencode` | d | -->';
|
||||
const doc = ['### `/msd-review`', '', ...NON_VICTIM_ROWS, '', line, ''].join('\n');
|
||||
const r = checkReviewerDocsParity({ descriptor: REVIEWER_LANES, docs: { d: doc } });
|
||||
const kimi = r.violations.filter((v) => v.subject === '--opencode');
|
||||
assert.ok(kimi.length > 0, 'both independent comment spans on one line must be stripped');
|
||||
const flagViolations = r.violations.filter((v) => v.subject === '--opencode');
|
||||
assert.ok(flagViolations.length > 0, 'both independent comment spans on one line must be stripped');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user