Skip to content

bazel: reinstate ditch-docker via archive_override for orfs#10334

Merged
maliberty merged 1 commit intoThe-OpenROAD-Project:masterfrom
oharboe:reinstate-ditch-docker-archive-override
May 6, 2026
Merged

bazel: reinstate ditch-docker via archive_override for orfs#10334
maliberty merged 1 commit intoThe-OpenROAD-Project:masterfrom
oharboe:reinstate-ditch-docker-archive-override

Conversation

@oharboe
Copy link
Copy Markdown
Collaborator

@oharboe oharboe commented May 5, 2026

Reinstates #10237 (reverted in #10333) with one change: the orfs module override switches from git_override to archive_override so PII machines that block direct git access to github.com (but allow HTTPS tarball downloads) can resolve the module graph without going through the docker image.

The other overrides introduced by #10237 (bazel-orfs, bazel-orfs-verilog, yosys-slang) stay on git_overrideyosys-slang needs init_submodules, and tarball-aware bumping support for bazel-orfs is being added separately.

cc @maliberty — feel free to push fixups to this branch.

Test plan

  • bazelisk mod deps resolves cleanly without git access to github.com/The-OpenROAD-Project/OpenROAD-flow-scripts.git
  • bazelisk build //... from tools/OpenROAD/
  • bazelisk test //test/orfs/mock-array/...
  • CI green on PII infrastructure

Reinstates The-OpenROAD-Project#10237 (reverted in The-OpenROAD-Project#10333) with one change: the orfs module
override switches from git_override to archive_override so PII machines
that block direct git access to github.com (but allow HTTPS tarball
downloads) can resolve the module graph without going through the
docker image.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@oharboe
Copy link
Copy Markdown
Collaborator Author

oharboe commented May 5, 2026

@hzeller @maliberty This should sort out the concern that ORFS public git repo is not available from inside PII: use source tar.gz instead.

Comment thread MODULE.bazel
ORFS_COMMIT = "10a2baea2171059ec14cda9a5855aa26dd7572c6"

bazel_dep(name = "orfs", dev_dependency = True)
archive_override(
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoids git protocol for ORFS

@oharboe oharboe requested a review from maliberty May 5, 2026 06:04
Copy link
Copy Markdown
Contributor

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

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 dependency and introduces an archive_override for the orfs module to ensure compatibility in environments with restricted git access. It also adds yosys and yosys-slang dependencies, configures the slang.so plugin, and includes a patch to strip root-only overrides from the orfs module. In the mock-array test, ARRAY_COLS and ARRAY_ROWS are moved to user_arguments. I have no feedback to provide.

@oharboe
Copy link
Copy Markdown
Collaborator Author

oharboe commented May 5, 2026

@vvbandeira Not a problem, just a heads up... 1 hr for clang-tidy 😺

image

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

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

@oharboe
Copy link
Copy Markdown
Collaborator Author

oharboe commented May 5, 2026

@hzeller Looks good?

@maliberty maliberty merged commit d406025 into The-OpenROAD-Project:master May 6, 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