-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Update rules_python to v0.33.2 #22718
Conversation
815dbd5
to
de6060a
Compare
@aignas Updating to rules_python 0.33.0 results in a CI failure:
Do you have an idea what's up with this? |
It's the end of my day, so will look at this tomorrow. cc @rickeylev, I think this may be something that you might know better. |
Created bazelbuild/rules_python#1953 but I am not sure if it is the right fix. |
de6060a
to
d6744bd
Compare
From //src/test/shell/bazel:bazel_bootstrap_distfile_tar_test:
Looks like bazel/scripts/bootstrap/bootstrap.sh Line 43 in d095e2e
|
" Unknown host: github.com" is indicating an error downloading from github. I've seen this occasionally and its usually transient. Some of the CI jobs succeeded. I hit retry in CI, but it looks like the same error happened again. Is there some other error indicating its an issue with rules_python? Is this, perhaps, because the CI job is running without network access, and something is trying to download python-build-standalone when it shouldn't be? It looks like there's other fetches of other remote repos, though? For posterity: a new feature in 0.33+ is the way programs startup has been rewritten. However, it's disabled by default, so you shouldn't see any change in behavior.
Off-topic from this issue, but: Oh, this is good to know. I've been hoping to get rid of this toolchain, but it appears to be a bit more load bearing than I thought. FYI: Using the bazel_tools one will become harder to use over time. It references the builtin-Bazel python providers, which rules_python tries to gracefully support, but those objects don't have all the same fields, so it can only do so much. Instead, after upgrading to 0.33, you can use |
The particular repo initiating that download is: rules_python~~python~python_3_8_x86_64-unknown-linux-gnu The logs don't tell enough as to why, though. The only other thing that comes to mind is something with pip dependencies? Something relating to @aignas changes? I don't recall those changes forcing usage of the hermetic runtimes, though. That 3.8 is being downloaded is kind of weird. The 3.8 being downloaded (or attempted to be used) reminds me of something we found with bzlmod. I forget the details, but it as something like, if no default python version was specified, it would use the first entry in the versions array, which happens to be 3.8. But this only happened if...I can't remember. If something else wasn't configured right. Or something. |
FYI, I have tagged a new release which should fix the toolchain problems you've been experiencing with 0.33.1. See bazelbuild/bazel-central-registry#2292. |
@aignas Thank you so much!! |
fyi, when importing rules_python 0.33 into google, I found one of the Bazel Java tests (PythonStarlarkApiTest.runtimeSandwich) failed due to bazelbuild/rules_python#1992. If this shows up on the Bazel side of things, we can just delete that test -- it's just verifying the PyRuntimeInfo object bazel exposes can be accessed from Starlark, but there's plenty of other tests that indirectly cover that (both in rules_python in OSS, rules_python in google, and elsewhere in the Bazel Java tests). |
@rickeylev Thanks for the heads up, we'll do that! |
d6744bd
to
dcada3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
This makes the lockfile independent of OS/arch. Closes bazelbuild#22718. PiperOrigin-RevId: 645176563 Change-Id: I23d35c911c20ad115943d276ca5ed49d317f7f83
This makes the lockfile independent of OS/arch. Closes bazelbuild#22718. PiperOrigin-RevId: 645176563 Change-Id: I23d35c911c20ad115943d276ca5ed49d317f7f83
This makes the lockfile independent of OS/arch. Closes #22718. PiperOrigin-RevId: 645176563 Change-Id: I23d35c911c20ad115943d276ca5ed49d317f7f83 Commit 01f6dec Co-authored-by: Fabian Meumertzheim <[email protected]>
This makes the lockfile independent of OS/arch.