feat: optimize py_binary start-up times: build venv with symlink actions instead of during py_binary bootstrap phase#944
Open
gregmagolan wants to merge 7 commits intomainfrom
Open
feat: optimize py_binary start-up times: build venv with symlink actions instead of during py_binary bootstrap phase#944gregmagolan wants to merge 7 commits intomainfrom
gregmagolan wants to merge 7 commits intomainfrom
Conversation
5de72ac to
cc215c4
Compare
|
51aff4f to
6a61c17
Compare
jbedard
reviewed
Apr 24, 2026
jbedard
reviewed
Apr 24, 2026
jbedard
reviewed
Apr 24, 2026
jbedard
reviewed
Apr 24, 2026
5cdfc60 to
e6249ef
Compare
e6249ef to
959ece0
Compare
jbedard
reviewed
Apr 24, 2026
| default = "error", | ||
| values = ["error", "warning", "ignore"], | ||
| ), | ||
| "interpreter_options": attr.string_list( |
jbedard
reviewed
Apr 24, 2026
| # PyWheelsInfo (hand-written py_unpacked_wheel without `top_levels`, or | ||
| # non-wheel py_library deps) falls through to the .pth path below. | ||
| wheels_depset = _py_library.make_wheels_depset(ctx) | ||
| wheels = wheels_depset.to_list() |
Member
There was a problem hiding this comment.
Did you think about avoiding the to_list() calls?
jbedard
reviewed
Apr 24, 2026
| test_attrs = _test_attrs, | ||
| toolchains = [ | ||
| PY_TOOLCHAIN, | ||
| VENV_TOOLCHAIN, |
Member
There was a problem hiding this comment.
Does this mean the entire toolchain can be deleted?
…stead of during py_binary bootstrap phase
729fa53 to
dfaff69
Compare
dfaff69 to
f6f2a7c
Compare
95d83d5 to
6ad48de
Compare
@gawk is failing (05:40:22) ERROR: /mnt/ephemeral/output/rules_py/__main__/external/gawk+/BUILD.bazel:58:11: Compiling support/regex.c [for tool] failed: (Exit 1): clang failed: error executing CppCompile command (from target @@gawk+//:support) external/llvm++_repo_rules+llvm-toolchain-minimal-22.1.3-linux-amd64/bin/clang -target x86_64-linux-gnu -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__=redacted' ... (remaining 70 arguments skipped) Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging In file included from external/gawk+/support/regex.c:71: external/gawk+/support/regexec.c:188:36: error: call to undeclared function '_REGEX_NELTS'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 188 | size_t nmatch, regmatch_t pmatch[_REGEX_NELTS (nmatch)], int eflags) | ^ 1 error generated.
5635c83 to
e25d4b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




No description provided.