Repository navigation
flow: route 'run' target through run_command.py for consistent logging - #4340
Merged
maliberty merged 1 commit intoJul 8, 2026
Merged
Conversation
Every flow stage logs through `$(RUN_CMD) --log ... --tee -- ...` (scripts/run_command.py) except the generic `run` target, which was the lone holdout still shelling out to `2>&1 | tee`. Route it through run_command.py like the rest. This is a consistency cleanup, not a bugfix: .SHELLFLAGS already sets `-o pipefail`, so the old pipeline propagated OpenROAD's exit status correctly, and run_command.py returns the child's returncode, so exit behavior is unchanged. One logging mechanism instead of two reduces cognitive load and removes a copy-and-paste divergence. As a side effect, the `run` target now gains the per-step timing and peak-memory line run_command.py emits for every other stage, and the RUNFILES_* scrubbing that keeps a parent Bazel invocation's runfiles environment from leaking into the OpenROAD subprocess. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the run target in flow/Makefile to execute the OpenROAD command via $(RUN_CMD) with logging options instead of using a subshell with tee. The reviewer suggests adding a fallback mechanism for RUN_LOG_NAME_STEM using GNU Make's $(or ...) function to prevent generating a hidden .log file when the variable is undefined.
Member
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
maliberty
approved these changes
Jul 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every flow stage logs through
$(RUN_CMD) --log ... --tee -- ...(scripts/run_command.py) except the genericruntarget, which was the lone holdout still shelling out to2>&1 | tee. Route it through run_command.py like the rest.This is a consistency cleanup, not a bugfix: .SHELLFLAGS already sets
-o pipefail, so the old pipeline propagated OpenROAD's exit status correctly, and run_command.py returns the child's returncode, so exit behavior is unchanged. One logging mechanism instead of two reduces cognitive load and removes a copy-and-paste divergence.As a side effect, the
runtarget now gains the per-step timing and peak-memory line run_command.py emits for every other stage, and the RUNFILES_* scrubbing that keeps a parent Bazel invocation's runfiles environment from leaking into the OpenROAD subprocess.