Skip to content

Fix parallel test race condition in PDN tests#10754

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
calewis:fix-pdn-test-race-condition
Jun 25, 2026
Merged

Fix parallel test race condition in PDN tests#10754
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
calewis:fix-pdn-test-race-condition

Conversation

@calewis

@calewis calewis commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Ran into this issue earlier today in a different PR, https://jenkins.openroad.tools/job/OpenROAD-Public/job/PR-10642-merge/14/stages/

Pretty sure that both the core_grid_with_M6_min_area and core_grid_with_M6_min_area_rule tests were configured to write their temporary runtime DEF output to the exact same filename: core_grid_with_M6_min_area-tcl.def inside the src/pdn/test/results/ directory.

Which caused a race condition and caused the test to fail during the file close/rename stage, throwing a filesystem error: cannot rename: No such file or directory error.

I think we can fix it by changing the name of one of the output files.

Signed-off-by: Drew Lewis <cannada@google.com>
@calewis calewis requested a review from a team as a code owner June 25, 2026 18:42
@calewis calewis requested a review from gadfort June 25, 2026 18:42

@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

This pull request updates the test script core_grid_with_M6_min_area_rule.tcl to use the correct result file name core_grid_with_M6_min_area_rule.def instead of core_grid_with_M6_min_area.def. There are no review comments, and I have no feedback to provide.

@calewis

calewis commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

Error looked like:

Error: close for /OpenROAD/src/pdn/test/results/core_grid_with_M6_min_area-tcl.def failed: filesystem error: cannot rename: No such file or directory [/OpenROAD/src/pdn/test/results/core_grid_with_M6_min_area-tcl.def.1] [/OpenROAD/src/pdn/test/results/core_grid_with_M6_min_area-tcl.def]

@maliberty maliberty merged commit d679188 into The-OpenROAD-Project:master Jun 25, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants