Skip to content

bump: update orfs, openroad, qt-bazel and fix stale patch#663

Merged
oharboe merged 2 commits into
mainfrom
bump-orfs
Apr 9, 2026
Merged

bump: update orfs, openroad, qt-bazel and fix stale patch#663
oharboe merged 2 commits into
mainfrom
bump-orfs

Conversation

@oharboe

@oharboe oharboe commented Apr 8, 2026

Copy link
Copy Markdown
Collaborator
  • orfs -> b6ff3eb63dac (drop patch 0001 merged upstream)
  • openroad -> d34d035725c3
  • qt-bazel -> 886104974c2f
  • rules_shell 0.6.1 -> 0.7.1 (fix version mismatch warning)
  • Regenerate patch 0035 for new upstream MODULE.bazel

oharboe and others added 2 commits April 9, 2026 08:34
Bump dependencies:
- orfs -> 74271e42b301 (removes upstreamed merge_lib patch)
- openroad -> d22045c978d0
- qt-bazel -> 886104974c2f
- rules_pkg -> 1.2.0 (matches resolved graph)

The new OpenROAD replaced the InitRunFiles.cpp global constructor
with tcl_library_init, but its Runfiles::Create() picks up stale
RUNFILES_* env vars left by the Python wrapper that ORFS runs
between OpenROAD calls.  Patch OpenROAD to clear inherited
RUNFILES_DIR/RUNFILES_MANIFEST_FILE before resolving its own
runfiles, and gut the now-dead InitRunFiles.cpp shim.

Also regenerate the ORFS MODULE.bazel patch for the new upstream
(rules_python 1.8.5, shifted line numbers).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Apply the same dependency bumps to gallery, chisel, and sby
submodules: orfs, openroad, qt-bazel commits, remove upstreamed
patch, add openroad-remove-initrunfiles.patch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@oharboe

oharboe commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator Author

@hzeller 🤞

@oharboe

oharboe commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator Author

@hzeller for now caching is mythical for my use-cases... lots of churn to update. Previously I would get a binary directly from ORFS. But previously I would have to wait for the patches to land upstream before I could even think about upgrading. Now I can upgrade and patch upstream and actually test the patches before I consider upstreaming them. Which is great.

But caching remains elusive...

@hzeller

hzeller commented Apr 9, 2026

Copy link
Copy Markdown

If things don't work well with the cache, maybe build a tiny project in the CI and see how it behaves.

I once set up a cache in OpenROAD (while we were still on github actions), that also used time as factor, so you get the latest cache not something that matches alphabetically first with the hash (though not sure that it is still needed; that was needed around 2020 when I first started setting up bazel caches).

One problem can be if the cache size is more than 10GiB, it will exceed what github has to offer.

@oharboe

oharboe commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator Author

Disappointment is mismanaged expectations, could you check how big the cache needs to be and if there is anything we can do about it? I'd like to stay within the github budget.

@oharboe

oharboe commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator Author

@hzeller I want to see if we can whittle the testing setup down so that it fits into github budget. Perhaps we can do something on the openroad side?

@oharboe oharboe merged commit 005a342 into main Apr 9, 2026
1 check passed
@oharboe oharboe deleted the bump-orfs branch April 9, 2026 07:54
@oharboe

oharboe commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator Author

@hzeller The main build of this PR that I just merged. It should have caching. This PR ran in 45 minutes, this should run in much less than that...

@hzeller

hzeller commented Apr 9, 2026

Copy link
Copy Markdown

that ci is still building. Look at the end when it packs up its caches if it runs into trouble
You should be able to inspect your caches in
https://github.com/The-OpenROAD-Project/bazel-orfs/actions/caches

@@ -0,0 +1,140 @@
diff --git a/bazel/BUILD b/bazel/BUILD

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.

@hzeller @maliberty Have you run into this?

Could I be running into this with the static web files?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

can you give more context ?

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.

See link above:

[Warning] Failed to create bazel runfiles: ERROR: external/rules_cc+/cc/runfiles/runfiles.cc(103): cannot find runfiles (argv0="/home/oyvind/OpenROAD-flow-scripts/tools/OpenROAD/tmp/test/orfs/gcd/_main/openroad")
application-specific initialization failed: 

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.

Have to run... so many things in flight, but I'm optimistic that all of these issues will trickle as fixes into OpenROAD and ORFS :-) Takes a bit of time though, step by step...

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is this a recent openroad from after April 2nd ?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

also: I have no idea what this patch is attempting to accomplish

@hzeller

hzeller commented Apr 9, 2026

Copy link
Copy Markdown

https://github.com/The-OpenROAD-Project/bazel-orfs/actions/runs/24179101305/job/70567318431#step:31:2 <- looks like it wants a path of sorts to save something ?
I also have no idea what this bazel setup thing is doing, I'd probably do the bazel install and cache storage manually to know exactly what is done.

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.

2 participants