Fix tscircuit main build - #99
Open
techmannih wants to merge 3 commits into
Open
Conversation
techmannih
marked this pull request as ready for review
August 5, 2026 08:47
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
techmannih
force-pushed
the
agent/fix-tscircuit-main-build
branch
from
August 5, 2026 16:52
eee08c8 to
78ea2e2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tscircuitfrom0.0.2139to0.0.2230Root cause
The main-branch release had two failure modes. Rollup intermittently failed to resolve the extensionless
PowerModule_TPSM82823.circuitimport during transpilation. A later release then spent several minutes autorouting simulation-only circuits and running the TPS63802 SPICE simulation before the build RPC disconnected. Reproducing with four workers locally pushed Bun to roughly 2.4 GB and caused a segmentation fault.Impact
Release builds now use the current tscircuit CLI/core/autorouter/ngspice stack, resolve source imports deterministically, skip pointless PCB routing for simulation schematics, and run with lower peak memory. Simulation schematics and SPICE outputs remain enabled.
Validation
npm run typechecknpm run format:checkbunx tscircuit build index.ts --transpile --routing-disabled --ignore-errors --concurrency 1(ESM, CommonJS, and declarations generated successfully)The post-fix full cloud-style build progressed through the component set and into simulations locally, but its terminal result was interrupted by the development session. The PR's external
tscircuit/buildcheck is the final end-to-end validation.