Skip to content

Commit 3c4fff9

Browse files
committed
test(pm): spell the split fixture's build line once so no dead filter target is scanned
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jU8C3iu8fsXdU4Rm8o
1 parent 5416315 commit 3c4fff9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎scripts/pm/check-governed-merges.mjs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5203,10 +5203,11 @@ async function selfTest() {
52035203
assert('C2-an-if-that-disables-a-job-is-H', isH(tierOf(edit(' timeout-minutes: 20', ' timeout-minutes: 20\n if: false')), /`if:` added or changed .*`job:build`/));
52045204

52055205
// The near-misses: each is Tier S.
5206+
const BUILD_RUN = ' run: pnpm turbo run build --filter=@objectstack/spec';
52065207
const reordered = edit(
52075208
" - name: Gate\n if: github.event_name != 'schedule'\n run: |\n # the gate\n pnpm check:generated\n node scripts/check-required-contexts.mjs\n",
52085209
'',
5209-
).replace(" run: pnpm turbo run build --filter=@objectstack/spec\n", " run: pnpm turbo run build --filter=@objectstack/spec\n - name: Gate\n if: github.event_name != 'schedule'\n run: |\n # the gate\n pnpm check:generated\n node scripts/check-required-contexts.mjs\n");
5210+
).replace(`${BUILD_RUN}\n`, `${BUILD_RUN}\n` + " - name: Gate\n if: github.event_name != 'schedule'\n run: |\n # the gate\n pnpm check:generated\n node scripts/check-required-contexts.mjs\n");
52105211
assert('near-miss-a-moved-if-that-disables-nothing-is-S', reordered !== BASE_WF && isS(tierOf(reordered)), show(tierOf(reordered)));
52115212
assert('near-miss-a-uses-bump-of-an-action-already-in-use-is-S', isS(tierOf(edit('actions/cache@v4', 'actions/cache@v5'))), show(tierOf(edit('actions/cache@v4', 'actions/cache@v5'))));
52125213
assert('near-miss-a-timeout-edit-is-S', isS(tierOf(edit('timeout-minutes: 20', 'timeout-minutes: 30'))));

0 commit comments

Comments
 (0)