From 0018751e6dc558e6e4022ca24ab655f0aa52c135 Mon Sep 17 00:00:00 2001 From: tscircuit-bot Date: Mon, 31 Aug 2026 13:26:03 +0000 Subject: [PATCH] Add JSON bug report bug-report-20260831T132544Z --- .../bug-report-20260831T132544Z.page.tsx | 4 + .../bug-report-20260831T132544Z.snap.svg | 91 ++++++++++ .../bug-report-20260831T132544Z.json | 168 ++++++++++++++++++ .../bug-report-20260831T132544Z.test.ts | 12 ++ 4 files changed, 275 insertions(+) create mode 100644 site/bug-reports/bug-report-20260831T132544Z.page.tsx create mode 100644 tests/bug-reports/bug-report-20260831T132544Z/__snapshots__/bug-report-20260831T132544Z.snap.svg create mode 100644 tests/bug-reports/bug-report-20260831T132544Z/bug-report-20260831T132544Z.json create mode 100644 tests/bug-reports/bug-report-20260831T132544Z/bug-report-20260831T132544Z.test.ts diff --git a/site/bug-reports/bug-report-20260831T132544Z.page.tsx b/site/bug-reports/bug-report-20260831T132544Z.page.tsx new file mode 100644 index 000000000..f9ca09d41 --- /dev/null +++ b/site/bug-reports/bug-report-20260831T132544Z.page.tsx @@ -0,0 +1,4 @@ +import { PipelineDebugger } from "site/components/PipelineDebugger" +import inputProblem from "../../tests/bug-reports/bug-report-20260831T132544Z/bug-report-20260831T132544Z.json" + +export default () => diff --git a/tests/bug-reports/bug-report-20260831T132544Z/__snapshots__/bug-report-20260831T132544Z.snap.svg b/tests/bug-reports/bug-report-20260831T132544Z/__snapshots__/bug-report-20260831T132544Z.snap.svg new file mode 100644 index 000000000..171d6d0e8 --- /dev/null +++ b/tests/bug-reports/bug-report-20260831T132544Z/__snapshots__/bug-report-20260831T132544Z.snap.svg @@ -0,0 +1,91 @@ + + + SPI1_CS0SPI1_MISOSPI1_MOSISPI1_CLK + + + 654321XXXXSM06B-SRSS-TB(LF)(SN)SPI1_DISPLAYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + + \ No newline at end of file diff --git a/tests/bug-reports/bug-report-20260831T132544Z/bug-report-20260831T132544Z.json b/tests/bug-reports/bug-report-20260831T132544Z/bug-report-20260831T132544Z.json new file mode 100644 index 000000000..548f01640 --- /dev/null +++ b/tests/bug-reports/bug-report-20260831T132544Z/bug-report-20260831T132544Z.json @@ -0,0 +1,168 @@ +{ + "chips": [ + { + "chipId": "schematic_component_0", + "center": { + "x": 0, + "y": 0 + }, + "width": 1.2000000000000002, + "height": 1.4, + "pins": [ + { + "pinId": "schematic_port_0", + "displayName": "6", + "x": 0.6000000000000001, + "y": 0.5 + }, + { + "pinId": "schematic_port_1", + "displayName": "5", + "x": 0.6000000000000001, + "y": 0.30000000000000004 + }, + { + "pinId": "schematic_port_2", + "displayName": "4", + "x": 0.6000000000000001, + "y": 0.10000000000000009 + }, + { + "pinId": "schematic_port_3", + "displayName": "3", + "x": 0.6000000000000001, + "y": -0.09999999999999998 + }, + { + "pinId": "schematic_port_4", + "displayName": "2", + "x": 0.6000000000000001, + "y": -0.3 + }, + { + "pinId": "schematic_port_5", + "displayName": "1", + "x": 0.6000000000000001, + "y": -0.5 + } + ] + } + ], + "directConnections": [], + "netConnections": [ + { + "netId": "SPI1_CS0", + "isGround": false, + "netLabelWidth": 1.08, + "anchoredNetLabelWidth": 1.08, + "allowInlineNetLabel": true, + "inlineNetLabelHeight": 0.12, + "inlineNetLabelWidth": 0.72, + "pinIds": [ + "schematic_port_0" + ] + }, + { + "netId": "SPI1_MISO", + "isGround": false, + "netLabelWidth": 1.2, + "anchoredNetLabelWidth": 1.2, + "allowInlineNetLabel": true, + "inlineNetLabelHeight": 0.12, + "inlineNetLabelWidth": 0.8, + "pinIds": [ + "schematic_port_1" + ] + }, + { + "netId": "SPI1_MOSI", + "isGround": false, + "netLabelWidth": 1.2, + "anchoredNetLabelWidth": 1.2, + "allowInlineNetLabel": true, + "inlineNetLabelHeight": 0.12, + "inlineNetLabelWidth": 0.8, + "pinIds": [ + "schematic_port_2" + ] + }, + { + "netId": "SPI1_CLK", + "isGround": false, + "netLabelWidth": 1.08, + "anchoredNetLabelWidth": 1.08, + "allowInlineNetLabel": true, + "inlineNetLabelHeight": 0.12, + "inlineNetLabelWidth": 0.72, + "pinIds": [ + "schematic_port_3" + ] + }, + { + "netId": "GND", + "isGround": true, + "netLabelWidth": 0.42, + "netLabelHeight": 0.48, + "pinIds": [ + "schematic_port_4" + ] + }, + { + "netId": "P3V3", + "isGround": false, + "netLabelWidth": 0.42, + "netLabelHeight": 0.6, + "pinIds": [ + "schematic_port_5" + ] + } + ], + "textBoxes": [ + { + "chipId": "schematic_component_0", + "center": { + "x": 1.0599999999999998, + "y": -0.83 + }, + "width": 2.52, + "height": 0.17999999999999994, + "text": "SM06B-SRSS-TB(LF)(SN)" + }, + { + "chipId": "schematic_component_0", + "center": { + "x": 0.52, + "y": 0.815 + }, + "width": 1.56, + "height": 0.25, + "text": "SPI1_DISPLAY" + } + ], + "availableNetLabelOrientations": { + "GND": [ + "y-" + ], + "P3V3": [ + "y+" + ], + "SPI1_CS0": [ + "x-", + "x+" + ], + "SPI1_MISO": [ + "x-", + "x+" + ], + "SPI1_MOSI": [ + "x-", + "x+" + ], + "SPI1_CLK": [ + "x-", + "x+" + ] + }, + "maxMspPairDistance": 2.4, + "_hideRatsNet": false +} diff --git a/tests/bug-reports/bug-report-20260831T132544Z/bug-report-20260831T132544Z.test.ts b/tests/bug-reports/bug-report-20260831T132544Z/bug-report-20260831T132544Z.test.ts new file mode 100644 index 000000000..c37a73dc5 --- /dev/null +++ b/tests/bug-reports/bug-report-20260831T132544Z/bug-report-20260831T132544Z.test.ts @@ -0,0 +1,12 @@ +import { expect, test } from "bun:test" +import { SchematicTracePipelineSolver } from "lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver" +import inputProblem from "./bug-report-20260831T132544Z.json" +import "tests/fixtures/matcher" + +test("bug-report-20260831T132544Z", () => { + const solver = new SchematicTracePipelineSolver(inputProblem as any) + + solver.solve() + + expect(solver).toMatchSolverSnapshot(import.meta.path) +})