Comments (6)
from bazel.
I'm not familiar with github actions/cache but I suspect the issue lies there.
From the CI run logs, I see it starts with:
key: v3-bazel-repo-cache-gcc-8724efc64ec2ae6f9c8726587d03c992069750154b944bc682b0d378f7f9a03c
restore-keys: v3-bazel-repo-cache-gcc-
and at the end:
Cache restored successfully
Cache restored from key: v3-bazel-repo-cache-gcc-31b31c1d4e0c637ac53d7075d262ffafe4bac9f95f42e50866e71a607f2e9184
ISTM this might be an incorrect usage of restore-keys
(I would have expected at the very least the bazel version as well to be included?)
from bazel.
Hi, thanks for reaching out. I updated the key, but that didn't help unfortunately, please see https://github.com/mvukov/rules_ros2/actions/runs/9756344735/job/26926475145?pr=331.
For the reference, this was never a problem until Bazel 7.2.0.
from bazel.
Thanks for trying, it was just a shot in the dark :)
I presume this issue only occurs on CI, or have you managed to reproduce locally as well? If not, could you please let me know the simplest way to trigger CI so I can experiment?
from bazel.
This line is problematic: https://github.com/mvukov/rules_ros2/blob/6b4ccf52bc43b1903467adb37f8bc71e30e602ea/.github/workflows/ci.bazelrc#L7
Bazel doesn't resolve ~
to the home directory and instead creates the cache in a subdirectory of the WORKSPACE called ~
. It then descends into this "package" during the build, causing all kinds of weird issues.
Try passing in the path from the CI workflow's command line instead of via .bazelrc
.
from bazel.
@fmeum Thanks so much for the pointer. I also had to set XDG_CACHE_HOME
as an absolute path. The PR builds now.
from bazel.
Related Issues (20)
- Provide convenience symlinks information in `bazel info`
- embed_label option fails with setuptools >70.3.0 HOT 1
- [7.3.0] [7.2.0] Make rules_android mobile-install v3 compatible with Bazel 7.2.0 HOT 1
- [7.3.0] Set public visibility for R8 desugar binary HOT 4
- [7.3.0] Path map executable paths
- Loading language specific rules removed from Bazel
- [7.3.0] Document source of truth for `rctx.download*` cache key HOT 2
- [7.3.0] Fix javadocs for Runfiles HOT 1
- Status of Bazel 8.0.0-pre.20240710.4
- Illegal instruction (core dumped) in risc-v HOT 1
- Possible regression between 6.4.0 and 7.x: `cc_library` does not propagate `linkopts` option
- Contributing.md should describe a development workflow HOT 3
- no matching toolchains found for types @bazel_tools//tools/jdk:runtime_toolchain_type HOT 1
- [7.3.0] Deduplicate locally executed path mapped spawns HOT 2
- cc_common.compile API broken/changed for virtual_includes in 7.2.1 to 6.2.1 HOT 6
- Backport the incompatible flag to the latest LTS release (Flag is available in the latest minor release of Bazel 7, default to true).
- Bazel crashes with internal error when trying to concat dictionary with select on rules getting string_list_dict
- [Mirror] cpython HOT 1
- [7.3.0] --experimental_remote_cache_async: Profile upload events. HOT 1
- Add `build_file` attribute to `git_override`, `archive_override` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bazel.