Skip to content

build: fix Bazel build constraints and bump bazel-orfs - #4398

Merged
maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
oharboe:bazel-build-fixes
Aug 5, 2026
Merged

maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
oharboe:bazel-build-fixes

Conversation

@oharboe

@oharboe oharboe commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Separating out Bazel drive-by fixes from the FakeRAM PR.

These changes were originally part of the FakeRAM auto-memories work but are completely independent and solve existing build validation failures with Bazel:

  • Bumped bazel-orfs commit in MODULE.bazel to pull latest upstream patches.
  • Fixed an invalid label reference (bazel/install.sh -> //bazel:install.sh) in BUILD.bazel.
  • Added allow_empty = True to patches glob in bazel/BUILD to prevent failures when no patches exist.
  • Removed unsupported extra argument from orfs_design in flow/designs/design.bzl.
  • Added missing variable scopes (user_arguments, local_arguments, user_sources) to design BUILD files for gf180 and ihp-sg13g2 to pass bazel-orfs strict validation.

@oharboe
oharboe force-pushed the bazel-build-fixes branch from b5d0c3f to 05e5f75 Compare August 5, 2026 18:32

@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 Bazel build configurations, bumps the BAZEL_ORFS_COMMIT version, and refactors the design macro calls across several design configurations to specify local/user arguments and sources. Feedback suggests removing the now-unused private helper function _engine_variant_targets in flow/designs/design.bzl to avoid dead code, and cleaning up unnecessary blank lines introduced in MODULE.bazel.

Comment thread flow/designs/design.bzl Resolved
Comment thread MODULE.bazel Resolved
- Bumped bazel-orfs commit in MODULE.bazel to pull latest upstream patches.
- Fixed an invalid label reference (bazel/install.sh -> //bazel:install.sh) in BUILD.bazel.
- Added `allow_empty = True` to patches glob in bazel/BUILD to prevent failures when no patches exist.
- Removed unsupported `extra` argument from orfs_design in flow/designs/design.bzl.
- Added missing variable scopes (user_arguments, local_arguments, user_sources) to design BUILD files for gf180 and ihp-sg13g2 to pass bazel-orfs strict validation.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@oharboe
oharboe force-pushed the bazel-build-fixes branch from 05e5f75 to 5328af2 Compare August 5, 2026 18:35
@oharboe

oharboe commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator Author

/gemini review

@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 BAZEL_ORFS_COMMIT in MODULE.bazel, modifies BUILD.bazel and bazel/BUILD to properly export and reference the install.sh script, and updates the tools/OpenROAD subproject commit. Additionally, it removes the unused _engine_variant_targets function from flow/designs/design.bzl and updates several design BUILD files (aes-hybrid, aes, and i2c-gpio-expander) with specific local_arguments, user_arguments, and user_sources. There are no review comments, and I have no feedback to provide.

@oharboe
oharboe requested a review from maliberty August 5, 2026 18:39
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@maliberty
maliberty enabled auto-merge August 5, 2026 18:40
@openroad-ci

openroad-ci commented Aug 5, 2026 •

Copy link
Copy Markdown
Member

🔍 QoR check

Metrics reflect the PR merge build — i.e. what will land on the target branch. Advisory — results are log-only and do not affect build status. The authoritative QoR gate remains the local rules-file check.

Commit a5eaf89 · Jenkins build #4 · Baseline: build

61 design(s) checked — 0 with regression(s), 7 without a comparable baseline.
Design Variant Verdict local vs inline passed / failed / missing
asap7/aes base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/aes-block base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/aes-mbff base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/aes_lvt base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/cva6 base ✅ pass ✅ MATCH 12 / 0 / 0
asap7/ethmac base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/ethmac_lvt base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/gcd base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/gcd-ccs base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/ibex base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/jpeg base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/jpeg_lvt base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/mock-alu base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/mock-cpu base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/riscv32i base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/riscv32i-mock-sram base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/swerv_wrapper base ✅ pass ✅ MATCH 23 / 0 / 0
asap7/uart base ✅ pass ✅ MATCH 23 / 0 / 0
gf180/aes base ✅ pass ✅ MATCH 23 / 0 / 0
gf180/aes-hybrid base ✅ pass ✅ MATCH 23 / 0 / 0
gf180/ibex base ✅ pass ✅ MATCH 23 / 0 / 0
gf180/jpeg base ✅ pass ✅ MATCH 23 / 0 / 0
gf180/riscv32i base ✅ pass ✅ MATCH 23 / 0 / 0
gf180/uart-blocks base ✅ pass ✅ MATCH 23 / 0 / 0
gt2n/aes base ➖ inconclusive ➖ N/A 0 / 0 / 457
gt2n/gcd base ➖ inconclusive ➖ N/A 0 / 0 / 451
gt2n/jpeg base ➖ inconclusive ➖ N/A 0 / 0 / 456
ihp-sg13g2/aes base ✅ pass ✅ MATCH 23 / 0 / 0
ihp-sg13g2/gcd base ✅ pass ✅ MATCH 23 / 0 / 0
ihp-sg13g2/i2c-gpio-expander base ✅ pass ✅ MATCH 23 / 0 / 0
ihp-sg13g2/ibex base ✅ pass ✅ MATCH 23 / 0 / 0
ihp-sg13g2/jpeg base ✅ pass ✅ MATCH 23 / 0 / 0
ihp-sg13g2/riscv32i base ✅ pass ✅ MATCH 23 / 0 / 0
ihp-sg13g2/spi base ✅ pass ✅ MATCH 23 / 0 / 0
nangate45/aes base ✅ pass ✅ MATCH 23 / 0 / 0
nangate45/ariane133 base ✅ pass ✅ MATCH 23 / 0 / 0
nangate45/ariane136 base ✅ pass ✅ MATCH 23 / 0 / 0
nangate45/black_parrot — ➖ inconclusive ➖ N/A no reports directory — flow produced no output
nangate45/bp_be_top — ➖ inconclusive ➖ N/A no reports directory — flow produced no output
nangate45/bp_fe_top — ➖ inconclusive ➖ N/A no reports directory — flow produced no output
nangate45/bp_multi_top — ➖ inconclusive ➖ N/A no reports directory — flow produced no output
nangate45/dynamic_node base ✅ pass ✅ MATCH 23 / 0 / 0
nangate45/gcd base ✅ pass ✅ MATCH 23 / 0 / 0
nangate45/ibex base ✅ pass ✅ MATCH 23 / 0 / 0
nangate45/jpeg base ✅ pass ✅ MATCH 23 / 0 / 0
nangate45/mempool_group base ✅ pass ✅ MATCH 12 / 0 / 0
nangate45/swerv base ✅ pass ✅ MATCH 23 / 0 / 0
nangate45/swerv_wrapper base ✅ pass ✅ MATCH 23 / 0 / 0
nangate45/tinyRocket base ✅ pass ✅ MATCH 23 / 0 / 0
sky130hd/aes base ✅ pass ✅ MATCH 23 / 0 / 0
sky130hd/chameleon base ✅ pass ✅ MATCH 23 / 0 / 0
sky130hd/gcd base ✅ pass ✅ MATCH 23 / 0 / 0
sky130hd/ibex base ✅ pass ✅ MATCH 23 / 0 / 0
sky130hd/jpeg base ✅ pass ✅ MATCH 23 / 0 / 0
sky130hd/microwatt base ✅ pass ✅ MATCH 23 / 0 / 0
sky130hd/riscv32i base ✅ pass ✅ MATCH 23 / 0 / 0
sky130hs/aes base ✅ pass ✅ MATCH 23 / 0 / 0
sky130hs/gcd base ✅ pass ✅ MATCH 23 / 0 / 0
sky130hs/ibex base ✅ pass ✅ MATCH 23 / 0 / 0
sky130hs/jpeg base ✅ pass ✅ MATCH 23 / 0 / 0
sky130hs/riscv32i base ✅ pass ✅ MATCH 23 / 0 / 0

@oharboe

oharboe commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator Author

@maliberty looks like master problems, because bazek us not to CI for ORFS

@maliberty
maliberty merged commit c2cdadd into The-OpenROAD-Project:master Aug 5, 2026
7 of 8 checks passed
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