Skip to content

Commit 736df2e

Browse files
committed
ci(ui): spell the timings reporter from the workspace root and declare the refresh's no-check-families
check-self-test-wired keys a `./scripts/` path in a workflow to the root scripts/ directory, so the ui-relative reporter spelling minted a key with no file behind it. The refresh workflow is path-filtered and runs no named check, so it carries the dispatch-gates no-check-families declaration. Claude-Session: https://claude.ai/code/session_01JQwxbXf3xRiPQrLhrgsFzw Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b117998 commit 736df2e

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3898,6 +3898,9 @@ jobs:
38983898
# a slice of the suite is not a measurement of it.
38993899
# ui/scripts/__tests__/test-file-timings.test.ts holds this step, the
39003900
# upload and the refresh's `--shards` to the names that script spells.
3901+
# The reporter is spelled from the workspace root, never `./scripts/…`
3902+
# relative to ui/: the root's workflow readers (check-self-test-wired)
3903+
# key a `./scripts/` path to the ROOT `scripts/`, where it is not.
39013904
- name: Run the ui tests (shard ${{ matrix.shard }}/16)
39023905
env:
39033906
MODE: ${{ steps.select.outputs.mode }}
@@ -3908,7 +3911,7 @@ jobs:
39083911
echo "Affected speed: ${#filters[@]} vitest filter(s), shard ${{ matrix.shard }} of 16."
39093912
pnpm --dir ui exec vitest run --shard=${{ matrix.shard }}/16 --reporter=default --reporter=github-actions "${filters[@]}"
39103913
else
3911-
pnpm --dir ui run test --shard=${{ matrix.shard }}/16 --reporter=default --reporter=github-actions --reporter=./scripts/test-file-timings.mjs
3914+
pnpm --dir ui run test --shard=${{ matrix.shard }}/16 --reporter=default --reporter=github-actions --reporter="${GITHUB_WORKSPACE}/ui/scripts/test-file-timings.mjs"
39123915
fi
39133916
39143917
# Diagnostics only, so it can never red a shard: `continue-on-error`, and

‎.github/workflows/ui-test-timings-refresh.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@
5757
# merges. With no eligible run on `main` (the state right after the reporter
5858
# first lands, until a full-battery run has uploaded sixteen reports) it reads
5959
# NOT MEASURED and stays green: nothing was regenerated and nothing failed.
60+
#
61+
# Its steps are a generator's select and merge, not a named local check: the
62+
# scripts it loads are pinned by ui/scripts/__tests__/test-file-timings.test.ts,
63+
# which Test UI runs on any change to them.
64+
# dispatch-gates: no-check-families -- a weekly regeneration (select, download, merge, open a PR), not a verification; the scripts it loads are pinned by Test UI's test-file-timings.test.ts
65+
6066
name: UI Test Timings Refresh
6167

6268
on:

‎ui/scripts/__tests__/test-file-timings.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ describe('the root ci.yml and the refresh spell what this file spells (objectsta
224224
expect(whole).toHaveLength(1);
225225
expect(affected).toHaveLength(1);
226226
const argv = whole[0].split(/\s+/);
227-
for (const reporter of ['--reporter=default', '--reporter=github-actions', '--reporter=./scripts/test-file-timings.mjs']) {
227+
// From the workspace root: a `./scripts/` spelling is read as the ROOT `scripts/` by the root's workflow readers.
228+
for (const reporter of ['--reporter=default', '--reporter=github-actions', '--reporter="${GITHUB_WORKSPACE}/ui/scripts/test-file-timings.mjs"']) {
228229
expect(argv).toContain(reporter);
229230
}
230231
expect(affected[0]).not.toContain('test-file-timings');

‎ui/scripts/test-file-timings.mjs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
* as the `test-file-timings-N` artifact of shard N:
1717
*
1818
* pnpm --dir ui run test --shard=N/M --reporter=default \
19-
* --reporter=github-actions --reporter=./scripts/test-file-timings.mjs
19+
* --reporter=github-actions \
20+
* --reporter="${GITHUB_WORKSPACE}/ui/scripts/test-file-timings.mjs"
2021
* -> $OBJECTUI_TEST_TIMINGS_OUT (no variable, no file: one stderr line)
2122
*
2223
* THE SELECTOR, `select`: the newest completed full-battery `CI` runs on

0 commit comments

Comments
 (0)