Skip to content

pad: fix test instability - #9769

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
gadfort:fix-test
Mar 15, 2026
Merged

maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
gadfort:fix-test

Conversation

@gadfort

@gadfort gadfort commented Mar 15, 2026

Copy link
Copy Markdown
Contributor

Closes #9611

Running test 100 times no longer produces failures.

Signed-off-by: Peter Gadfort <peter.gadfort@gmail.com>
@gadfort
gadfort requested a review from maliberty March 15, 2026 17:06
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

The pull request refactors the PadDirectConnectionStraps::refineShapes and refineShape methods. Key changes include migrating from raw Shape* pointers to ShapePtr for improved memory management, simplifying the removal of shapes from ShapeTreeMap and ObstructionTreeMap, and refactoring the refineShape function to accept const references for all_shapes and all_obstructions. This refactoring moves the responsibility of updating these global shape maps to the calling refineShapes method, enhancing modularity and data flow clarity.

@maliberty

Copy link
Copy Markdown
Member

What was the problem that was fixed? I didn't quite follow

@maliberty
maliberty merged commit 6f4b728 into The-OpenROAD-Project:master Mar 15, 2026
12 checks passed
@gadfort
gadfort deleted the fix-test branch March 15, 2026 18:32
@fredowski

Copy link
Copy Markdown
Contributor

What was the problem that was fixed? I didn't quite follow

It was this problem that test //src/pdn/test:pads_black_parrot_flipchip_connect_overpads-tcl_test fails randomly. I noticed that during #9578 where I changed from rand() to mt19937() for platform reproducability.

@maliberty

Copy link
Copy Markdown
Member

I know that, I mean what was the problem in the code that caused that symptom.

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.

Bazel/Regression: //src/pdn/test:pads_black_parrot_flipchip_connect_overpads-tcl_test fails randomly

3 participants