Skip to content

chore: turn on bzlmod #513

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

chore: turn on bzlmod #513

wants to merge 6 commits into from

Conversation

alexeagle
Copy link
Member

@alexeagle alexeagle commented Jan 25, 2025

@illicitonion I probably need similar help greening this up that we had to do in silo.

It was only here for a container test, but we have replaced this functionality with py_image_layer which is based on rules_oci.

Pre-factoring for switching to bzlmod; we don't want to try loading rules_docker from MODULE.bazel
Copy link

github-actions bot commented Jan 25, 2025

LCOV of commit 70fa13e during CI #1628

Summary coverage rate:
  lines......: 100.0% (2 of 2 lines)
  functions..: 100.0% (1 of 1 function)
  branches...: no data found

Files changed coverage rate: n/a

Copy link

aspect-workflows bot commented Jan 25, 2025

Test

⚠️ Buildkite build #54 failed.

//py/tools/venv_bin:venv_linux_x86_64_build failed to build

process_wrapper failed: error executing Rustc command (from target //py/tools/venv_bin:venv_linux_x86_64_build) bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper --arg-file ... (remaining 62 arguments skipped)
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
error: linking with `external/musl-1_2_3-platform-x86_64-unknown-linux-gnu-target-x86_64-linux-musl/bin/x86_64-linux-musl-gcc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="bazel-out/k8-opt-exec-ST-09c120548838/bin/external/rules_rust~~rust~rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools/rust_toolchain/lib/rustlib/x86_64-unknown-linux-gnu/bin:/mnt/ephemeral/output/rules_py/__main__/external/rules_rust~~rust~rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools/lib/rustlib/x86_64-unknown-linux-gnu/bin:/mnt/ephemeral/output/rules_py/__main__/external/rules_rust~~rust~rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools/lib/rustlib/x86_64-unknown-linux-gnu/bin:/bin:/usr/bin:/usr/local/bin" VSLANG="1033" "external/musl-1_2_3-platform-x86_64-unknown-linux-gnu-target-x86_64-linux-musl/bin/x86_64-linux-musl-gcc" "-m64" "/tmp/rustc10Bsjm/symbols.o" "bazel-out/k8-opt-exec-ST-09c120548838/bin/py/tools/venv_bin/venv.venv.2fd1d851c72ebf9a-cgu.00.rcgu.o" "bazel-out/k8-opt-exec-ST-09c120548838/bin/py/tools/venv_bin/venv.venv.2fd1d851c72ebf9a-cgu.01.rcgu.o" "bazel-out/k8-opt-exec-ST-09c120548838/bin/py/tools/venv_bin/venv.venv.2fd1d851c72ebf9a-cgu.02.rcgu.o" "bazel-out/k8-opt-exec-ST-09c120548838/bin/py/tools/venv_bin/venv.venv.2fd1d851c72ebf9a-cgu.03.rcgu.o" "bazel-out/k8-opt-exec-ST-09c120548838/bin/py/tools/venv_bin/venv.venv.2fd1d851c72ebf9a-cgu.04.rcgu.o" "bazel-out/k8-opt-exec-ST-09c120548838/bin/py/tools/venv_bin/venv.venv.2fd1d851c72ebf9a-cgu.05.rcgu.o" "bazel-out/k8-opt-exec-ST-09c120548838/bin/py/tools/venv_bin/venv.venv.2fd1d851c72ebf9a-cgu.06.rcgu.o" "bazel-out/k8-opt-exec-ST-09c120548838/bin/py/tools/venv_bin/venv.venv.2fd1d851c72ebf9a-cgu.07.rcgu.o" "bazel-out/k8-opt-exec-ST-09c120548838/bin/py/tools/venv_bin/venv.venv.2fd1d851c72ebf9a-cgu.08.rcgu.o" "bazel-out/k8-opt-

... 88121 chars truncated
process_wrapper failed: error executing Rustc command (from target //py/tools/venv_bin:venv_linux_x86_64_build) bazel-out/k8-opt-exec-ST-8c9395b5dad9/bin/external/rules_rust~/util/process_wrapper/process_wrapper --arg-file ... (remaining 62 arguments skipped)
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
error: linking with `external/musl-1_2_3-platform-x86_64-unknown-linux-gnu-target-x86_64-linux-musl/bin/x86_64-linux-musl-gcc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="bazel-out/k8-fastbuild-ST-81dc1326cc8f/bin/external/rules_rust~~rust~rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools/rust_toolchain/lib/rustlib/x86_64-unknown-linux-gnu/bin:/mnt/ephemeral/output/rules_py/__main__/external/rules_rust~~rust~rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools/lib/rustlib/x86_64-unknown-linux-gnu/bin:/mnt/ephemeral/output/rules_py/__main__/external/rules_rust~~rust~rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools/lib/rustlib/x86_64-unknown-linux-gnu/bin:/bin:/usr/bin:/usr/local/bin" VSLANG="1033" "external/musl-1_2_3-platform-x86_64-unknown-linux-gnu-target-x86_64-linux-musl/bin/x86_64-linux-musl-gcc" "-m64" "/tmp/rustcTDYgml/symbols.o" "bazel-out/k8-fastbuild-ST-81dc1326cc8f/bin/py/tools/venv_bin/venv.venv.2fd1d851c72ebf9a-cgu.0.rcgu.o" "bazel-out/k8-fastbuild-ST-81dc1326cc8f/bin/py/tools/venv_bin/venv.venv.2fd1d851c72ebf9a-cgu.1.rcgu.o" "bazel-out/k8-fastbuild-ST-81dc1326cc8f/bin/py/tools/venv_bin/venv.712os9y6oejzycu7v3xpioyng.rcgu.o" "-Wl,--as-needed" "-L" "bazel-out/k8-fastbuild-ST-81dc1326cc8f/bin/external/rules_rust~~rust~rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools/rust_toolchain/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "bazel-out/k8-fastbuild-ST-81dc1326cc8f/bin/external/rules_rust~~crate~crate_index__either-1.13.0" "-L" "bazel-out/k8-fastbuild-ST-81dc1326cc8f/bin/external/rules_rust~~crate~crate_index__itertools-0.13.0" "-L" "bazel-out/k8-fastbuild-ST-81dc1326cc8f/bin/external/rules_rust~~crate~crate_index__cfg-if-1.0.0" "-L" "bazel-out/k8-fastbuild-ST-81dc1326cc8f/bin/external/rules_rust~~crate~crate_index__rustc-demangle-0

... 87707 chars truncated
process_wrapper failed: error executing Rustc command (from target //py/tools/venv_bin:venv_linux_x86_64_build) bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper --arg-file ... (remaining 62 arguments skipped)
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
error: linking with `external/musl-1_2_3-platform-x86_64-unknown-linux-gnu-target-x86_64-linux-musl/bin/x86_64-linux-musl-gcc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="bazel-out/k8-fastbuild-ST-09c120548838/bin/external/rules_rust~~rust~rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools/rust_toolchain/lib/rustlib/x86_64-unknown-linux-gnu/bin:/mnt/ephemeral/output/rules_py/__main__/external/rules_rust~~rust~rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools/lib/rustlib/x86_64-unknown-linux-gnu/bin:/mnt/ephemeral/output/rules_py/__main__/external/rules_rust~~rust~rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools/lib/rustlib/x86_64-unknown-linux-gnu/bin:/bin:/usr/bin:/usr/local/bin" VSLANG="1033" "external/musl-1_2_3-platform-x86_64-unknown-linux-gnu-target-x86_64-linux-musl/bin/x86_64-linux-musl-gcc" "-m64" "/tmp/rustcODwYM3/symbols.o" "bazel-out/k8-fastbuild-ST-09c120548838/bin/py/tools/venv_bin/venv.venv.2fd1d851c72ebf9a-cgu.0.rcgu.o" "bazel-out/k8-fastbuild-ST-09c120548838/bin/py/tools/venv_bin/venv.venv.2fd1d851c72ebf9a-cgu.1.rcgu.o" "bazel-out/k8-fastbuild-ST-09c120548838/bin/py/tools/venv_bin/venv.712os9y6oejzycu7v3xpioyng.rcgu.o" "-Wl,--as-needed" "-L" "bazel-out/k8-fastbuild-ST-09c120548838/bin/external/rules_rust~~rust~rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools/rust_toolchain/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "bazel-out/k8-fastbuild-ST-09c120548838/bin/external/rules_rust~~crate~crate_index__either-1.13.0" "-L" "bazel-out/k8-fastbuild-ST-09c120548838/bin/external/rules_rust~~crate~crate_index__itertools-0.13.0" "-L" "bazel-out/k8-fastbuild-ST-09c120548838/bin/external/rules_rust~~crate~crate_index__cfg-if-1.0.0" "-L" "bazel-out/k8-fastbuild-ST-09c120548838/bin/external/rules_rust~~crate~crate_index__rustc-demangle-0

... 87707 chars truncated

@@protobuf~//:protoc failed to build

cc_wrapper.sh failed: error executing CppLink command (from target @@protobuf~//:protoc) external/llvm_toolchain/bin/cc_wrapper.sh @bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/protobuf~/protoc-2.params
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
 
ld.lld: error: undefined symbol: operator delete(void*)
>>> referenced by main.cc
>>>               bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/protobuf~/_objs/protoc/main.o:(google::protobuf::compiler::ProtobufMain(int, char**))
>>> referenced by main.cc
>>>               bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/protobuf~/_objs/protoc/main.o:(google::protobuf::compiler::ProtobufMain(int, char**))
>>> referenced by main.cc
>>>               bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/protobuf~/_objs/protoc/main.o:(google::protobuf::compiler::ProtobufMain(int, char**))
>>> referenced 11314 more times
 
ld.lld: error: undefined symbol: operator new(unsigned long)
>>> referenced by main.cc
>>>               bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/protobuf~/_objs/protoc/main.o:(google::protobuf::compiler::ProtobufMain(int, char**))
>>> referenced by main.cc
>>>               bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/protobuf~/_objs/protoc/main.o:(google::protobuf::compiler::ProtobufMain(int, char**))
>>> referenced by main.cc
>>>               bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/protobuf~/_objs/protoc/main.o:(google::protobuf::compiler::ProtobufMain(int, char**))
>>> referenced 3074 more times
 
ld.lld: error: undefined symbol: __gxx_personality_v0
>>> referenced by main.cc
>>>               bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/protobuf~/_objs/protoc/main.o:(DW.ref.__gxx_personality_v0)
 
ld.lld: error: undefined symbol: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::assign(char const*)
>>> referenced by code_generator.cc
>>>               bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/protobuf~/_objs/protoc_lib/code_generator.o:(google::protobuf::compiler::CodeGenerator::GenerateAll(std::__1::vector<google::protobuf::FileDescriptor const*, std::__1::allocator<google::protobuf::FileDescriptor const*>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, google::protobuf::compiler::GeneratorContext*, std::__1::basic_string<char, std::__1::char_traits<char>,

... 11328 chars truncated

//py/tools/pex:pex_unpacked failed to build

unpack_linux_x86_64_build failed: error executing PyUnpackedWheel command (from target //py/tools/pex:pex_unpacked) bazel-out/k8-fastbuild-ST-09c120548838/bin/py/tools/unpack_bin/unpack_linux_x86_64_build --into bazel-out/k8-fastbuild/bin/py/tools/pex/pex_unpacked --wheel ... (remaining 3 arguments skipped)
 
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging

2 other actions failed to build.

Failed tests (1)
//py/tests/import-pathing:py_library_import_pathing_test_suite_test_0 [k8-fastbuild]                 🔗

💡 To reproduce the build failures, run

bazel build //py/tools/venv_bin:venv_linux_x86_64_build @@protobuf~//:protoc //py/tools/venv_bin:venv_linux_x86_64_build //py/tools/venv_bin:venv_linux_x86_64_build //py/tools/pex:pex_unpacked

💡 To reproduce the test failures, run

bazel test //py/tests/import-pathing:py_library_import_pathing_test_suite_test_0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant