-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Evaluating the nativelink by bazel test
doesn't work on local Ubuntu machine
#664
Comments
I hope you to leave your opinion, here. @aaronmondal . Thanks. |
That a downgrade to 6.4.0 doesn't work is somewhat expected. There were a lot of changes necessary to get bzlmod working and the Bazel 7 stuff and bzlmod are more or less dependent on each other. So I don't think that the Bzlmod setup will work with Bazel 6.4. The error you're getting is new to me. We still run integration tests in CI against Ubuntu runners, even more than before the bzlmod changes. My initial guess would be that maybe you're using an Ubuntu older than 22.04? Backwards compatibility with older Ubuntu versions is now done via the Lines 75 to 90 in 59d3d28
That config pins the cc toolchain to a toolchain that works with older versions of Ubuntu. Example for non-remote running unit tests:
Building NativeLink against itself using an Ubuntu 20 host: nativelink/.github/workflows/main.yml Line 45 in 59d3d28
Something I'm noticing though is that we don't seem to run the testsuite against that remote configuration on an older Ubuntu. We might want to add some If the issues persist even with |
Thanks for your answers, @aaronmondal . |
Hmm ok I'm suspecting some kind of cache mismatch or some wrong cache reuse triggered by the external dependencies built by Could you run this build again with I'll also try to reproduce over the weekend. |
Ah and one other thing that could be related: What happens if this build is run as a non-root user? This could have impact on some temporary directories/file reads during implicit cargo invocations. |
Try |
Thanks for your opinions. FYI, I've tried on non-root user which I've created but the result was the same, cc: @aaronmondal . Plus, I've already tried Below, I'm showing the screenshot of command execution result having |
This is is fixed in this PR - #669. cc: @aaronmondal , @allada , @MarcusSorealheis . |
Currently, evaluating nativelink by
bazel test
doesn't work on local Ubuntu machine.I've confirmed this issue on my Linux VPS. At first, I thought it was because of the VPS performance but soon I realized that it was because of the bug in our project.
FYI,
bazel
version was upgraded from 6.4.0 to 7.0.0 by this PR -Migrate to Bzlmod
(#626)Currently, with bazel 7.0.0, evaluating nativelink by
bazel test
fails like this.When I downgrade it to bazel 6.4.0, it fails like this. It seems like bazel 6.4.0 is not working anymore on our codebase.
But when I reset the code to the codebase just before that
Migrate to Bzlmod
PR and downgrade bazel to 6.4.0, it works well.It seems like while migrating to Bzlmod, we caused issue so that it fails to run
bazel test
locally.Plus, on the documentation it says bazel requirement is
Bazel 6.4.0+
even though the.bazelversion
file is7.0.0
. Documentation should be updated asBazel 7.0.0+
.nativelink/README.md
Line 99 in 48cadc7
nativelink/.bazelversion
Line 1 in 48cadc7
The text was updated successfully, but these errors were encountered: