Skip to content

test(cadence): fixture and regression test for a populated top-level property bag - #232

Merged
valentinozegna merged 2 commits into
mainfrom
test/opencellular-sdr-fixture
Sep 22, 2026
Merged

valentinozegna merged 2 commits into
mainfrom
test/opencellular-sdr-fixture

Conversation

@valentinozegna

Copy link
Copy Markdown
Contributor

Stacked on #231; refs #230. Merge after #231, then this PR reduces to the test, the golden file and the submodule bump.

Summary

  • Adds a regression test on the new opencellular-sdr fixture (Add a Cadence fixture with per-page reference ranges (OpenCellular SDR) test-fixtures#12): a 34-page OrCAD design that sets per-page reference ranges and was re-annotated, so its Hierarchy stream carries a populated top-level property bag. None of the existing 15 Cadence fixtures does.
  • The test pins that the stream parses and that every one of the 1,133 references on the board's upstream assembly BOM is reported under its annotated designator. On main's parser both assertions fail: the stream throws, the parser falls back to inline references, 242 BOM references go missing and 323 stale designators appear.
  • Adds the fixture's golden output and points the submodule at the fixture commit. The submodule pointer needs a final bump once test-fixtures#12 merges.

Test plan

  • npm test: 1,374 passed on this branch
  • The two new tests fail with main's hierarchy-parser.ts swapped in (Expected occurrence (type 66), got 5; 1,214 components instead of 1,210)
  • npm run type-check and npm run lint clean

🤖 Generated with Claude Code

https://claude.ai/code/session_016wBHd6ZnfPGgAY5sdv9wD6

…ed property bag

The OpenCellular SDR fixture sets per-page reference ranges and was
re-annotated afterwards, so its Hierarchy stream carries trailing preamble
data before the occurrence count and occurrence designators that differ from
the inline page copies. The test pins that the stream parses and that every
reference on the board's assembly BOM is reported under its annotated name;
both assertions fail on the parser that skips a fixed 8 bytes there.
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.

1 participant