From 3519cb643e37a4505d4196244d920703fae60286 Mon Sep 17 00:00:00 2001 From: tscircuit-bot Date: Fri, 31 Jul 2026 05:22:48 +0000 Subject: [PATCH] Add JSON bug report bug-report-20260731T052229Z --- .../bug-report-20260731T052229Z.page.tsx | 4 + .../bug-report-20260731T052229Z.snap.svg | 93 ++++++ .../bug-report-20260731T052229Z.json | 299 ++++++++++++++++++ .../bug-report-20260731T052229Z.test.ts | 12 + 4 files changed, 408 insertions(+) create mode 100644 site/bug-reports/bug-report-20260731T052229Z.page.tsx create mode 100644 tests/bug-reports/bug-report-20260731T052229Z/__snapshots__/bug-report-20260731T052229Z.snap.svg create mode 100644 tests/bug-reports/bug-report-20260731T052229Z/bug-report-20260731T052229Z.json create mode 100644 tests/bug-reports/bug-report-20260731T052229Z/bug-report-20260731T052229Z.test.ts diff --git a/site/bug-reports/bug-report-20260731T052229Z.page.tsx b/site/bug-reports/bug-report-20260731T052229Z.page.tsx new file mode 100644 index 000000000..b2552c214 --- /dev/null +++ b/site/bug-reports/bug-report-20260731T052229Z.page.tsx @@ -0,0 +1,4 @@ +import { PipelineDebugger } from "site/components/PipelineDebugger" +import inputProblem from "../../tests/bug-reports/bug-report-20260731T052229Z/bug-report-20260731T052229Z.json" + +export default () => diff --git a/tests/bug-reports/bug-report-20260731T052229Z/__snapshots__/bug-report-20260731T052229Z.snap.svg b/tests/bug-reports/bug-report-20260731T052229Z/__snapshots__/bug-report-20260731T052229Z.snap.svg new file mode 100644 index 000000000..8a9e62d9e --- /dev/null +++ b/tests/bug-reports/bug-report-20260731T052229Z/__snapshots__/bug-report-20260731T052229Z.snap.svg @@ -0,0 +1,93 @@ + \ No newline at end of file diff --git a/tests/bug-reports/bug-report-20260731T052229Z/bug-report-20260731T052229Z.json b/tests/bug-reports/bug-report-20260731T052229Z/bug-report-20260731T052229Z.json new file mode 100644 index 000000000..a619ea4af --- /dev/null +++ b/tests/bug-reports/bug-report-20260731T052229Z/bug-report-20260731T052229Z.json @@ -0,0 +1,299 @@ +{ + "chips": [ + { + "chipId": "schematic_component_0", + "center": { + "x": 0, + "y": 0 + }, + "width": 3.8, + "height": 5.6, + "pins": [ + { + "pinId": "schematic_port_0", + "x": -1.9, + "y": 2.550000000000001 + }, + { + "pinId": "schematic_port_1", + "x": -1.9, + "y": 2.350000000000001 + }, + { + "pinId": "schematic_port_2", + "x": 1.9, + "y": 1.7500000000000004 + }, + { + "pinId": "schematic_port_3", + "x": 1.9, + "y": 1.5500000000000003 + }, + { + "pinId": "schematic_port_4", + "x": 1.9, + "y": 1.3500000000000005 + }, + { + "pinId": "schematic_port_5", + "x": 1.9, + "y": 1.1500000000000004 + }, + { + "pinId": "schematic_port_6", + "x": 1.9, + "y": 0.9500000000000002 + }, + { + "pinId": "schematic_port_7", + "x": 1.9, + "y": 0.75 + }, + { + "pinId": "schematic_port_8", + "x": -1.9, + "y": 0.7500000000000013 + }, + { + "pinId": "schematic_port_9", + "x": 1.9, + "y": 0.5499999999999998 + }, + { + "pinId": "schematic_port_10", + "x": 1.9, + "y": 0.34999999999999964 + }, + { + "pinId": "schematic_port_11", + "x": 1.9, + "y": 0.14999999999999947 + }, + { + "pinId": "schematic_port_12", + "x": 1.9, + "y": -0.05000000000000071 + }, + { + "pinId": "schematic_port_13", + "x": 1.9, + "y": -0.2500000000000009 + }, + { + "pinId": "schematic_port_14", + "x": 1.9, + "y": -0.45000000000000107 + }, + { + "pinId": "schematic_port_15", + "x": 1.9, + "y": -0.6500000000000012 + }, + { + "pinId": "schematic_port_16", + "x": -1.9, + "y": 0.5500000000000014 + }, + { + "pinId": "schematic_port_17", + "x": -1.9, + "y": 1.950000000000001 + }, + { + "pinId": "schematic_port_18", + "x": -1.9, + "y": 0.15000000000000124 + }, + { + "pinId": "schematic_port_19", + "x": -1.9, + "y": -0.049999999999998934 + }, + { + "pinId": "schematic_port_20", + "x": -1.9, + "y": -0.2499999999999991 + }, + { + "pinId": "schematic_port_21", + "x": -1.9, + "y": -0.4499999999999993 + }, + { + "pinId": "schematic_port_22", + "x": -1.9, + "y": -0.6499999999999995 + }, + { + "pinId": "schematic_port_23", + "x": -1.9, + "y": -0.8499999999999996 + }, + { + "pinId": "schematic_port_24", + "x": 1.9, + "y": 2.150000000000001 + }, + { + "pinId": "schematic_port_25", + "x": -1.9, + "y": -1.65 + }, + { + "pinId": "schematic_port_26", + "x": -1.9, + "y": -2.2500000000000004 + }, + { + "pinId": "schematic_port_27", + "x": -1.9, + "y": 1.1500000000000012 + }, + { + "pinId": "schematic_port_28", + "x": -1.9, + "y": 1.750000000000001 + }, + { + "pinId": "schematic_port_29", + "x": -1.9, + "y": -2.650000000000001 + }, + { + "pinId": "schematic_port_30", + "x": -1.9, + "y": 1.5500000000000012 + }, + { + "pinId": "schematic_port_31", + "x": -1.9, + "y": -1.0499999999999998 + }, + { + "pinId": "schematic_port_32", + "x": -1.9, + "y": -1.25 + }, + { + "pinId": "schematic_port_33", + "x": -1.9, + "y": 2.1500000000000012 + }, + { + "pinId": "schematic_port_34", + "x": 1.9, + "y": -1.0500000000000012 + }, + { + "pinId": "schematic_port_35", + "x": 1.9, + "y": -1.6500000000000012 + }, + { + "pinId": "schematic_port_36", + "x": 1.9, + "y": -2.050000000000001 + }, + { + "pinId": "schematic_port_37", + "x": -1.9, + "y": 1.3500000000000012 + }, + { + "pinId": "schematic_port_38", + "x": 1.9, + "y": 2.550000000000001 + }, + { + "pinId": "schematic_port_39", + "x": 1.9, + "y": -2.450000000000001 + }, + { + "pinId": "schematic_port_40", + "x": 1.9, + "y": -2.6500000000000012 + } + ] + } + ], + "directConnections": [], + "netConnections": [ + { + "netId": "VDDR", + "netLabelWidth": 0.42, + "netLabelHeight": 0.6, + "pinIds": [ + "schematic_port_0", + "schematic_port_1", + "schematic_port_33" + ] + }, + { + "netId": "VDDIO", + "netLabelWidth": 0.42, + "netLabelHeight": 0.72, + "pinIds": [ + "schematic_port_8", + "schematic_port_16" + ] + }, + { + "netId": "VDDS", + "netLabelWidth": 0.42, + "netLabelHeight": 0.6, + "pinIds": [ + "schematic_port_17", + "schematic_port_28", + "schematic_port_30", + "schematic_port_37" + ] + }, + { + "netId": "VDDD", + "netLabelWidth": 0.42, + "netLabelHeight": 0.6, + "pinIds": [ + "schematic_port_27" + ] + } + ], + "textBoxes": [ + { + "chipId": "schematic_component_0", + "center": { + "x": -0.41999999999999993, + "y": -2.9299999999999997 + }, + "width": 2.16, + "height": 0.17999999999999972, + "text": "CC2745R10E0WRHARQ1" + }, + { + "chipId": "schematic_component_0", + "center": { + "x": -1.38, + "y": 2.915 + }, + "width": 0.3600000000000001, + "height": 0.24999999999999956, + "text": "U1" + } + ], + "availableNetLabelOrientations": { + "VDDR": [ + "y+" + ], + "VDDS": [ + "y+" + ], + "VDDD": [ + "y+" + ], + "VDDIO": [ + "y+" + ] + }, + "maxMspPairDistance": 2.4, + "_hideRatsNet": false +} diff --git a/tests/bug-reports/bug-report-20260731T052229Z/bug-report-20260731T052229Z.test.ts b/tests/bug-reports/bug-report-20260731T052229Z/bug-report-20260731T052229Z.test.ts new file mode 100644 index 000000000..e94385e88 --- /dev/null +++ b/tests/bug-reports/bug-report-20260731T052229Z/bug-report-20260731T052229Z.test.ts @@ -0,0 +1,12 @@ +import { expect, test } from "bun:test" +import { SchematicTracePipelineSolver } from "lib/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver" +import inputProblem from "./bug-report-20260731T052229Z.json" +import "tests/fixtures/matcher" + +test("bug-report-20260731T052229Z", () => { + const solver = new SchematicTracePipelineSolver(inputProblem as any) + + solver.solve() + + expect(solver).toMatchSolverSnapshot(import.meta.path) +})