Skip to content

refactor: upgrade Actions to Node 24, split remaining 800+ line files, and add website/stable-topology tests - #98

Merged
alowpoly merged 5 commits into
mainfrom
housekeeping-all-pillars
Dec 4, 2026
Merged

alowpoly merged 5 commits into
mainfrom
housekeeping-all-pillars

Conversation

@alowpoly

@alowpoly alowpoly commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Four non-feature housekeeping pillars verified against main:

  1. CI & release hygiene (ae818033, 832cd034, 7c28d7e3):
    • Upgraded all pinned GitHub Actions across setup-workspace, ci.yml, deploy-website.yml, and publish-packages.yml to Node 24 releases (checkout v7.0.1, setup-node v7.2.0, pnpm/action-setup v6.1.1, upload-artifact v7.0.2, configure-pages v6.0.0, upload-pages-artifact v5.0.0, deploy-pages v5.0.1).
    • Removed duplicate version: 10.32.1 from setup-workspace (single source of truth in package.json#packageManager).
    • Scoped npm auth in publish-packages.yml via a temp NPM_CONFIG_USERCONFIG strictly to the Publish to npm step so pre-publish steps emit zero NODE_AUTH_TOKEN stderr warnings under setup-node@v7.
    • Set ASTRO_TELEMETRY_DISABLED=1 on website build as well as typecheck.
  2. Final 800+ line splits (3429a576):
    • Decomposed packages/morph/src/contracts/validation.ts (885 → 127 lines), packages/polycss/src/api/controls/gizmoEngine.ts (801 → 194 lines), website/src/components/GalleryWorkbench/hooks/useRouteSync.ts (825 → 136 lines + pure routeCodec*.ts), website/src/components/BuilderWorkbench/components/BuilderScene.tsx (827 → 297 lines), and website/src/components/GalleryWorkbench/GalleryWorkbench.tsx (910 → 342 lines) into 24 acyclic submodules. Zero package source files remain above 800 lines.
  3. Tests, examples typecheck & last as any (1325992d, 7c28d7e3):
    • Removed the last as any in packages/*/src and website/src (VanillaScene.tsx:567).
    • Added test:website (11 unit tests covering routeCodec and Builder terrain via website/scripts/run-unit-tests.mjs), wired website/tests into check-boundaries.mjs, and wired test:website + typecheck:examples into pnpm verify, CI, and AGENTS.md.
    • Added typed stableTopologyUpdate.test.ts (lifting branch coverage on stableTopologyUpdate.ts 48.3% → 75.4% and stableTriangleFrame.ts 48.0% → 82.9%) and extended packages/morph/src/contracts/validation.test.ts leaf-tag scan across all 5 new validation/*.ts files.
  4. Engine quality audit (measured, no behavioral changes):
    • compat-hunter: 80/80 external models parsed clean with 0 throws/warnings (40 Poly Haven + 40 GitHub VOX, 1.66M polygons).
    • Chrome trace on saucer dynamic light motion confirmed script 0.38 ms/frame and layout 0.01 ms/frame (Document::recalcStyle accounts for 92% of main-frame cost).

Verification

  • pnpm verify (all guards, 8 package test suites, test:website, build:packages, typecheck, typecheck:website, typecheck:examples, check:ir, check:packs, bench:build, examples/*)
  • pnpm test:coverage (8/8 packages)
  • pnpm build:website (23 pages) + test:domformat-tools (2/2) + verify:domformat (304 models)
  • pnpm bench:gate:lifecycle (13/13)
  • pnpm bench:gate:ci vs main (55/55 at 0 px on Chromium + Firefox, software backend)
  • pnpm bench:gate:perf vs main (9/9)
  • Bit-exact council falsification: 187/187 morph/validation + 535/535 gizmoEngine checks at 0 diffs + @layoutit/polycss-morph test:package pass

@alowpoly
alowpoly merged commit c147abc into main Dec 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant