Skip to content

Commit 025d328

Browse files
committed
ci(devx): run the slot-lookup and query-options ratchets for packages/eslint-plugin
The two rules both ratchets measure moved out of eslint.config.mjs (a root-config path that runs every family) into packages/eslint-plugin/src/*.mjs, which the workspace arm skipped as non-TS source. A rule-only edit now selects both families again; the self-test pins it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CHC483oAMSwyfmTu1xajpZ
1 parent 4d18cf1 commit 025d328

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

‎scripts/ci/select-gate-families.selftest.sh‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,14 @@ expect_reason self_test_workflow_commands 'no changed path is in its read-set'
502502
expect_reason entry_guard 'no changed path is in its read-set'
503503
expect_line 'Gate families: 3 run, 6 skipped'
504504

505+
S=$(scenario A:packages/eslint-plugin/src/rule.mjs)
506+
run_case 'merge_group: a rule file in packages/eslint-plugin runs both ratchets though it is not TS source' "$REPO" merge_group '' "$C0"
507+
expect_rc 0
508+
expect_warnings '' ''
509+
expect_verdicts query_options_erasure slot_lookup comment_mask_corpus
510+
expect_reason query_options_erasure '(A, workspace)'
511+
expect_reason slot_lookup '(A, workspace)'
512+
505513
S=$(scenario M:apps/site/src/page.tsx)
506514
run_case 'merge_group: an apps TSX edit is outside the ratchets (packages/** only) and inside the corpus alone' "$REPO" merge_group '' "$C0"
507515
expect_rc 0

‎scripts/ci/select-gate-families.sh‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696
# `eslint.config.mjs`, reads its baseline
9797
# (scripts/query-options-erasure-baseline.json,
9898
# at HEAD and at the merge base), and imports a few
99-
# top-level scripts/*.mjs helpers.
99+
# top-level scripts/*.mjs helpers and, through the
100+
# config, the rules in packages/eslint-plugin/.
100101
# slot_lookup `pnpm check:slot-lookup`. Same shape and the same
101102
# population, with scripts/slot-lookup-baseline.json.
102103
# verify_lock `bash scripts/pm/os-verify-lock.sh --self-test`.
@@ -569,6 +570,9 @@ family_reads() {
569570
# Both ratchets lint `packages/**` only; apps/ and examples/ are
570571
# outside their LINT_TARGET.
571572
case "$path" in
573+
# The rules both ratchets measure live here (moved out of
574+
# eslint.config.mjs), whatever the file's extension.
575+
packages/eslint-plugin/*) return 0 ;;
572576
packages/*) is_ts_source "$path" && return 0; return 1 ;;
573577
*) return 1 ;;
574578
esac

0 commit comments

Comments
 (0)