Skip to content

Run each packed-consumer TypeScript check once per compiler - #473

Merged
woksin merged 2 commits into
mainfrom
components-453-consumer-check-dedupe
Oct 29, 2026
Merged

woksin merged 2 commits into
mainfrom
components-453-consumer-check-dedupe

Conversation

@woksin

@woksin woksin commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Changed

The TypeScript consumers jobs ran the public-types verifier, and the
verify-public-types job ran it again for the same compiler with the same
build recipe. Add --skip-public-types to the consumers script and use it in
CI, and make Build wait for verify-public-types so the check stays in the
aggregate. The script still runs every verifier by default and now logs how
long each one takes and when it skips one.
The standalone no-Pixi and spatial consumer jobs ran the same scripts as the
TypeScript consumers job for compiler 7, on the same build recipe. Both
compilers still run them in the consumers job, which Build already waits for.
@woksin woksin added the no-release Merging publishes no package, image, release, or deployment label Oct 29, 2026
@woksin woksin self-assigned this Oct 29, 2026
@woksin

woksin commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

Reviewer notes

  • First slice of Measure and reduce frontend build and spec time (tsc, lint, vitest, build, story tests) #453, chosen from CI job timings. The TypeScript 6 public-types check took about 116 s inside TypeScript consumers (6), the longest TypeScript job at a 243 s median, and verify-public-types (6/7) runs the same check from the same build recipe. The consumers jobs now pass --skip-public-types, and verify-public-types is added to Build's needs, so Build still fails when it fails.
  • verify-no-pixi-consumer and verify-spatial-consumer are removed because TypeScript consumers (7) already runs both checks; the no-pixi and spatial checks still run for compilers 6 and 7. This takes the workflow from 54 jobs to 52 (matrix legs counted). Branch protection and rulesets on main are empty, so no required check names change.
  • With no arguments, verify-typescript-consumers.mjs still runs all 7 verifiers for compilers 6 then 7 in the original order, with the same exit handling. It now prints a timing line per verifier and a visible skip line.
  • Local checks: node --test scripts/verify-typescript-consumers.test.mjs (19/19) and actionlint. typescript-compiler.test.mjs and the real consumer builds need node_modules, so this PR's CI is the proof.
  • Expected effect: about 200–300 s less runner time per run, with TypeScript consumers (6) at roughly 120–170 s. I'll compare job durations against main runs 40892593269, 40860861536 and 40845583404 when CI finishes.
  • Moving heavy jobs to other runners would be a later slice and needs a runner and cost decision.
  • Review: the plan had a cross-provider review, and a full review of the change passed with no findings.

@woksin
woksin merged commit a5e1d62 into main Oct 29, 2026
55 of 56 checks passed
@woksin
woksin deleted the components-453-consumer-check-dedupe branch October 29, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-release Merging publishes no package, image, release, or deployment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant