Coder Social home page Coder Social logo

Comments (6)

fmeum avatar fmeum commented on August 16, 2024

@hvadehra

from bazel.

hvadehra avatar hvadehra commented on August 16, 2024

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.

mvukov avatar mvukov commented on August 16, 2024

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.

hvadehra avatar hvadehra commented on August 16, 2024

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.

fmeum avatar fmeum commented on August 16, 2024

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.

mvukov avatar mvukov commented on August 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.