Skip to content

chore(dev): make the local dotli stack buildable - #419

Merged
TarikGul merged 2 commits into
mainfrom
tg/dotli-local-stack
Aug 16, 2026
Merged

chore(dev): make the local dotli stack buildable#419
TarikGul merged 2 commits into
mainfrom
tg/dotli-local-stack

Conversation

@TarikGul

Copy link
Copy Markdown
Member

The vendored dotli pin predates a breaking change in @parity/truapi, where DerivationIndex stopped being a string, so hosts/dotli no longer typechecks against this checkout and make dev cannot start. Bumps it to dotli main.

dev-bootstrap also forced the dev WASM profile, which builds an artifact several times dotli's service-worker precache limit; vite-plugin-pwa treats that as a build error, so the preview never starts. Drops the override so the release profile applies, and reads the limit out of dotli's own vite config in dev-link-check to fail at bootstrap with the reason rather than part-way through a dotli build.

The vendored dotli pin predates a breaking change in @parity/truapi, where
DerivationIndex stopped being a string, so hosts/dotli no longer typechecks
against this checkout and make dev cannot start. Bumps it to dotli main.

dev-bootstrap also forced the dev WASM profile, which builds an artifact several
times dotli's service-worker precache limit; vite-plugin-pwa treats that as a
build error, so the preview never starts. Drops the override so the release
profile applies, and reads the limit out of dotli's own vite config in
dev-link-check to fail at bootstrap with the reason rather than part-way through
a dotli build.
@TarikGul
TarikGul requested a review from a team August 16, 2026 03:15
Review found the check failing closed on inputs it was meant to tolerate. A
`32 * 1024 ** 2` refactor in dotli produced an empty split segment, so the limit
evaluated to zero and every build failed with a size violation that was not one.
A commented-out value earlier in the file won on first-match. A missing or
renamed config threw ENOENT rather than warning, which is what the comment
promised it would not do.

It now reads every occurrence, keeps the largest that parses as a product of
positive integers, and treats anything else as a reason to skip. Moving it out
of the Makefile one-liner into scripts/ is what makes that legible; all three
defects came from the logic being compressed onto one line.

The dev profile is also not the escape hatch the comment described:
dev-bootstrap runs the check unconditionally, so TRUAPI_WASM_PROFILE=dev makes
`make dev` fail rather than trading the preview away, and the old remediation
line suggested a command that reproduced the failure. Both now say so.
@TarikGul
TarikGul added this pull request to the merge queue Aug 16, 2026
Merged via the queue into main with commit 23a6cb1 Aug 16, 2026
16 checks passed
@TarikGul
TarikGul deleted the tg/dotli-local-stack branch August 16, 2026 19:24
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.

2 participants