Skip to content

make: print-FOO temp file gaffe for parallel processes - #3852

Merged
maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
Pinata-Consulting:make-print-parallel-gaffe
Feb 1, 2026
Merged

maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
Pinata-Consulting:make-print-parallel-gaffe

Conversation

@oharboe

@oharboe oharboe commented Jan 31, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@oharboe
oharboe requested review from Copilot and maliberty January 31, 2026 09:36

Copilot AI 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.

Pull request overview

This PR fixes a race condition in the print-% make target that could occur when multiple parallel processes attempt to print variables simultaneously. The fix replaces the use of $$ (process ID) for temporary file naming with mktemp, which guarantees unique temporary file names.

Changes:

  • Replaced process ID-based temporary file naming with mktemp for atomic unique file creation
  • Consolidated the multi-line command into a single shell invocation to ensure proper variable scoping and atomic execution

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread flow/scripts/variables.mk Resolved
@oharboe
oharboe removed the request for review from maliberty January 31, 2026 10:23
…rocess

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@oharboe
oharboe force-pushed the make-print-parallel-gaffe branch from 5e7ae11 to 8bb1fd1 Compare January 31, 2026 10:58
@oharboe
oharboe requested a review from Copilot January 31, 2026 10:58

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread flow/scripts/variables.mk Resolved
@oharboe
oharboe requested a review from maliberty January 31, 2026 10:59
oharboe added a commit to The-OpenROAD-Project/megaboom that referenced this pull request Jan 31, 2026
@oharboe

oharboe commented Jan 31, 2026

Copy link
Copy Markdown
Collaborator Author

@maliberty quality of results regressions are unrelated CI issues

@oharboe

oharboe commented Jan 31, 2026

Copy link
Copy Markdown
Collaborator Author

@maliberty More unrelated QoR failures on master. Merge?

@maliberty
maliberty merged commit 3ef8cb7 into The-OpenROAD-Project:master Feb 1, 2026
5 checks passed
@oharboe
oharboe deleted the make-print-parallel-gaffe branch February 2, 2026 17:09
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.

3 participants