Skip to content

test: update pcbPack and ngspice half-bridge snapshots - #5971

Merged
0hmX merged 1 commit into
mainfrom
chore/update-pcbpack-ngspice-snapshots
Nov 29, 2026
Merged

0hmX merged 1 commit into
mainfrom
chore/update-pcbpack-ngspice-snapshots

Conversation

@0hmX

@0hmX 0hmX commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Every core PR whose tests started after about 2026-11-28 18:00 UTC fails the same two snapshots, including PRs unrelated to each other (#5965, #5966, #5967, #5968, #5969). main's tests last ran on 2026-11-27 and passed then; nothing has merged since that would explain it.

  • test (1): tests/repros/repro-pcb-pack-static-target-layer-collision-contrast.test.tsx (0.58% diff)
  • test (8): tests/features/spice-analysis/ngspice-spice-analysis03-half-bridge-rectifier.test.tsx

This PR only regenerates those two snapshots. All numeric assertions in both tests already pass.

Snapshot Before After
pcbPack collision contrast before after
ngspice half-bridge before after

In the pcbPack board, R_TOP now sits just below the green courtyard instead of to its right. It still clears the courtyard (topCenterDistance > 2.7 passes). The half-bridge schematic is laid out differently; the simulated waveforms are unchanged.

The root cause of the layout change is not identified. The test workflow runs a plain bun install rather than --frozen-lockfile, so a dependency change is one candidate, but not confirmed.

🤖 Generated with Claude Code

Both snapshots fail on every PR whose tests started after about
2026-11-28 18:00 UTC, with no matching change on main. The layouts moved
(R_TOP now sits below the courtyard instead of to its right; the
half-bridge schematic is laid out differently), while every numeric
assertion in both tests still passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tscircuit-core-benchmarks Ready Ready Preview Nov 29, 2026 6:58am UTC

Request Review

@0hmX
0hmX marked this pull request as ready for review November 29, 2026 06:59

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0hmX the sch became really bad, we gotta see why this happened

@0hmX
0hmX merged commit dfc49fb into main Nov 29, 2026
22 checks passed
@0hmX
0hmX deleted the chore/update-pcbpack-ngspice-snapshots branch November 29, 2026 15:01
@tscircuitbot

Copy link
Copy Markdown
Contributor

Thank you for your contribution! 🎉

PR Rating: ⭐
Impact: Tiny

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


seveibar added a commit that referenced this pull request Nov 30, 2026
Use @flatten-js/core 1.6.16, which was used to record both layout snapshots in #5971. This addresses the version mismatch identified in #5979.

This branch was successfully deployed

1 active deployment
Preview — 68be8823 Deployed Nov 29, 2026 by vercel[bot]
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.

4 participants