Commit 0f4d7f0
committed
ci(test-tiers): per-PR gate for a package adopting a tier file without reading the switch
scripts/nightly-tiers.mjs moved the e2e and live tiers off the per-PR and
merge-queue runs onto a nightly, gated by OS_TEST_TIERS. A package that adopts
its first *.e2e.test.* or *.live.test.* file without reading that switch runs
the file in the merge queue and its whole suite under the nightly, both
silently; --check makes that loud only on the nightly, one night late, and its
refusal then blocks the whole tier run for one package's omission.
check-tier-file-adoption.mjs is the per-PR half. It is the STATIC route: --check
boots vitest twice per tier-owning package to measure what it collects, which is
the right instrument for a nightly and the wrong one for every PR. This shares
--check's own tier-file predicate and package walk (tierPackages) and spawns
nothing.
The detector walks the vitest config's local import closure rather than grepping
for the variable: on the one package that owns tier files today, the name
appears 9 times raw and 0 times with comments masked -- every occurrence is
prose, and the real read is an import edge. Both wrong detectors are pinned as
controls.
Zero tier files is a green that PRINTS THE ZERO: a gate reporting clean by never
looking is indistinguishable from one that looked, unless the count is on the
screen.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU1 parent d03c3c9 commit 0f4d7f0
3 files changed
Lines changed: 720 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3676 | 3676 | | |
3677 | 3677 | | |
3678 | 3678 | | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
| 3682 | + | |
| 3683 | + | |
| 3684 | + | |
| 3685 | + | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
| 3690 | + | |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
| 3694 | + | |
| 3695 | + | |
| 3696 | + | |
| 3697 | + | |
| 3698 | + | |
| 3699 | + | |
3679 | 3700 | | |
3680 | 3701 | | |
3681 | 3702 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
0 commit comments