fix: pkgutil namespace package __init__.py collisions when multiple wheels share a namespace stub#1270
Open
xangcastle wants to merge 2 commits into
Open
fix: pkgutil namespace package __init__.py collisions when multiple wheels share a namespace stub#1270xangcastle wants to merge 2 commits into
xangcastle wants to merge 2 commits into
Aspect Workflows / aspect / test-e2e-bazel-8
succeeded
Jul 7, 2026 in 3m 41s
✅ test //... · Tests passed
✅ Succeeded · 📅 Tue Jul 7 19:52:02 UTC 2026 · ⏱ 3m 43s — 🔧 Setup 5.5s · 🧪 Test 3m 37s
👤 runner · 🖥 runnervmjbsos · 💎 aspect-cli v2026.28.2
📦 463 targets · ⚡ 16,175 of 28,087 actions executed (42% cached) · 🧪 192 of 192 tests executed (0% cached) · 🔧 bazel v8.7.0 test · 🎯 k8 · ⚙️ fastbuild
🐙 GitHub Actions
💬 Last update: test task complete
Details
🎯 Bazel targets (463)
✅ 192 Tests Passed
Label | Target Type | Duration -------------------------------------------------------------------------------+---------------------------------------+--------- //:snapshots_0_test | _diff_test | 236ms //:snapshots_10_test | _diff_test | 89ms //:snapshots_11_test | _diff_test | 267ms //:snapshots_12_test | _diff_test | 204ms //:snapshots_13_test | _diff_test | 225ms //:snapshots_14_test | _diff_test | 135ms //:snapshots_15_test | _diff_test | 95ms //:snapshots_16_test | _diff_test | 66ms //:snapshots_17_test | _diff_test | 87ms //:snapshots_18_test | _diff_test | 156ms //:snapshots_1_test | _diff_test | 234ms //:snapshots_20_test | _diff_test | 139ms //:snapshots_21_test | _diff_test | 252ms //:snapshots_22_test | _diff_test | 80ms //:snapshots_23_test | _diff_test | 103ms //:snapshots_2_test | _diff_test | 284ms //:snapshots_3_test | _diff_test | 186ms //:snapshots_4_test | _diff_test | 157ms //:snapshots_5_test | _diff_test | 108ms //:snapshots_6_test | _diff_test | 143ms //:snapshots_7_test | _diff_test | 98ms //:snapshots_8_test | _diff_test | 197ms //:snapshots_9_test | _diff_test | 124ms //arch-alias-marker:arch_alias_marker | py_venv_exec_test | 228ms //arch-alias-marker:inactive_marker_package_test | inactive_marker_package_test | 97ms //arch-alias-marker:inactive_marker_wheel_test | inactive_marker_wheel_test | 88ms //cross-repo-610:test | py_venv_exec_test | 237ms //cross-repo-610:venv_test | py_venv_exec_test | 271ms //current-py-toolchain-896:test | sh_test | 79ms //current-py-toolchain-bazel-env-896:test | sh_test | 81ms //inactive-marker:inactive_marker_test | py_venv_exec_test | 631ms //inactive-marker:inactive_marker_test_py313 | py_venv_exec_test | 377ms //interpreter-exec-under-glibc-target:interpreter_exec_under_glibc_target_test | _empty_test | 86ms //interpreter-local-pyvenv-home:test_pyvenv_home | py_venv_exec_test | 222ms //interpreter-provisioning:test | py_venv_exec_test | 156ms //interpreter-provisioning:venv_test | py_venv_exec_test | 218ms //interpreter-version-541:test_3_10_classic | py_venv_exec_test | 420ms //interpreter-version-541:test_3_10_venv | py_venv_exec_test | 259ms //interpreter-version-541:test_3_11_classic | py_venv_exec_test | 179ms //interpreter-version-541:test_3_11_venv | py_venv_exec_test | 146ms //interpreter-version-541:test_3_9_classic | py_venv_exec_test | 266ms //interpreter-version-541:test_3_9_venv | py_venv_exec_test | 259ms //multi-project-hub:alpha_dev | py_venv_exec_test | 193ms //multi-project-hub:alpha_unit_tests | py_venv_exec_test | 232ms //oci/py_image_layer:my_app_host_test | py_venv_exec_test | 273ms //oci/py_venv_image_layer:my_app_host_test | py_venv_exec_test | 424ms //pep517-frontend-exec-group:frontend_exec_platform_test | _empty_test | 168ms //pth-install-tree-fallback:test | py_venv_exec_test | 142ms //pth-namespace-547:test | py_venv_exec_test | 547ms //pth-namespace-547:test_legacy | py_venv_exec_test | 379ms //pth-namespace-547:test_partial_merge | py_venv_exec_test | 381ms //py-library-defaultinfo-891:default_info_no_transitive_srcs_test | _default_info_no_transitive_srcs_test | 187ms //repository-rule-deps-299:all_direct | py_venv_exec_test | 85ms //repository-rule-deps-299:test | py_venv_exec_test | 88ms //root-dir-paths-538:test_root_dir | sh_test | 65ms //root-dir-paths-538:test_root_dir_expose_venv | sh_test | 118ms //root-dir-paths-538:test_root_dir_venv | sh_test | 115ms //tools/verify_venv:verify_venv_test | py_venv_exec_test | 197ms //uv-conflict-817:test_b | py_venv_exec_test | 624ms //uv-conflict-817:test_b_venv_test | py_venv_exec_test | 494ms //uv-conflict-gte:test_a | py_venv_exec_test | 141ms //uv-conflict-gte:test_a_venv_test | py_venv_exec_test | 163ms //uv-conflict-gte:test_b | py_venv_exec_test | 130ms //uv-conflict-gte:test_b_venv_test | py_venv_exec_test | 96ms //uv-conflict-max-863:test_a | py_venv_exec_test | 131ms //uv-conflict-max-863:test_a_venv_test | py_venv_exec_test | 174ms //uv-conflict-max-863:test_b | py_venv_exec_test | 155ms //uv-conflict-max-863:test_b_venv_test | py_venv_exec_test | 237ms //uv-conflict-tilde-856:test_a | py_venv_exec_test | 241ms //uv-conflict-tilde-856:test_a_venv_test | py_venv_exec_test | 172ms //uv-conflict-tilde-856:test_b | py_venv_exec_test | 180ms //uv-conflict-tilde-856:test_b_venv_test | py_venv_exec_test | 227ms //uv-console-script-extras:black_console_scripts_test | console_scripts_metadata_test | 68ms //uv-console-script-extras:google_auth_oauthlib_console_scripts_test | console_scripts_metadata_test | 107ms //uv-dep-hashes:test_lockfile_hashless | sh_test | 192ms //uv-deps-650/crossbuild:exec_toolchain_resolution_test | sh_test | 80ms //uv-deps-650/extras:extras_venv_test | py_venv_exec_test | 956ms //uv-deps-650/say:say | py_venv_exec_test | 236ms //uv-deps-650/say:say_venv_test | py_venv_exec_test | 240ms //uv-dup-lock-records:test_import | py_venv_exec_test | 440ms //uv-dup-lock-records:test_merged_wheels | py_venv_exec_test | 513ms //uv-include-group:wheel_root_pth_link_test | sh_test | 439ms //uv-include-group:wheel_root_pth_test | py_venv_exec_test | 161ms //uv-incompatible-wheel-source:test | py_venv_exec_test | 414ms //uv-invalid-build-overrides:custom_patches_test | _empty_test | 63ms //uv-no-sdist-754:test | py_venv_exec_test | 527ms //uv-patching-829:test | py_venv_exec_test | 285ms //uv-patching-829:venv_test | py_venv_exec_test | 255ms //uv-platform-filter-844:test | sh_test | 73ms //uv-plus-version:encoded_plus_metadata_test | wheel_metadata_test | 163ms //uv-plus-version:literal_plus_metadata_test | wheel_metadata_test | 89ms //uv-requirements-bzl:empty_group_test | py_venv_exec_test | 223ms //uv-toolchain:test | sh_test | 156ms //uv-workspace-789:test | py_venv_exec_test | 767ms //venv-bin-scripts-423:test | py_venv_exec_test | 1.6s //venv-bin-scripts-423:test_non_isolated | py_venv_exec_test | 1.5s //venv-bin-scripts-423:venv_test | py_venv_exec_test | 1.6s //venv-conflict-608:test_no_venv_conflict | _empty_test | 112ms //venv-internal-symlinks:test_internal_symlinks_legacy | py_venv_exec_test | 892ms //windows-crossbuild-837:test | sh_test | 90ms _92 more not shown._
✅ 254 Targets Built
Label | Target Type ---------------------------------------------------------------------------------+------------------------------ //:snapshots_0 | _write_source_file //:snapshots_1 | _write_source_file //:snapshots_10 | _write_source_file //:snapshots_11 | _write_source_file //:snapshots_12 | _write_source_file //:snapshots_13 | _write_source_file //:snapshots_14 | _write_source_file //:snapshots_15 | _write_source_file //:snapshots_16 | _write_source_file //:snapshots_17 | _write_source_file //:snapshots_18 | _write_source_file //:snapshots_2 | _write_source_file //:snapshots_20 | _write_source_file //:snapshots_21 | _write_source_file //:snapshots_22 | _write_source_file //:snapshots_23 | _write_source_file //:snapshots_3 | _write_source_file //:snapshots_4 | _write_source_file //:snapshots_5 | _write_source_file //:snapshots_6 | _write_source_file //:snapshots_7 | _write_source_file //:snapshots_8 | _write_source_file //:snapshots_9 | _write_source_file //cross-repo-610/subrepo_a:foo | py_library //cross-repo-610/subrepo_b:bar | py_library //current-py-toolchain-896:python_path | genrule //current-py-toolchain-bazel-env-896:python_env | _bazel_env_rule //interpreter-exec-under-glibc-target:invoke_tool | genrule //interpreter-exec-under-glibc-target:invoke_tool_under_glibc | platform_transition_filegroup //interpreter-exec-under-glibc-target:tool | py_venv_exec //interpreter-features-836:image_write_entrypoint | _write_file //interpreter-features-tkinter:image_write_entrypoint | _write_file //interpreter-local-pyvenv-home:system_py3_runtime | py_runtime //interpreter-local-pyvenv-home:system_runtime_pair | py_runtime_pair //interpreter-local-pyvenv-home:venv_sys | _py_venv //interpreter-provisioning:venv_test.venv | _py_venv //interpreter-version-541:expanded_test_3_10.py | expand_template //interpreter-version-541:expanded_test_3_11.py | expand_template //interpreter-version-541:expanded_test_3_9.py | expand_template //interpreter-version-541:test_3_11_venv.venv | _py_venv //interpreter-version-541:test_3_9_venv.venv | _py_venv //oci/py_image_layer/branding:branding | py_library //oci/py_image_layer:image_load_write_tags | _write_file //oci/py_image_layer:image_write_entrypoint | _write_file //oci/py_image_layer:my_app_bin | py_venv_exec //oci/py_image_layer:my_app_multi_bin | py_venv_exec //oci/py_image_layer:my_app_multi_tier | py_layer_tier //oci/py_image_layer:my_app_tier | py_layer_tier //oci/py_image_layer:server | py_venv_exec //oci/py_image_layer:server_image_write_entrypoint | _write_file //oci/py_venv_image_layer:image_load_write_tags | _write_file //oci/py_venv_image_layer:image_write_entrypoint | _write_file //oci/py_venv_image_layer:my_app_bin.venv | _py_venv //oci/validator-exec-config:app | py_venv_exec //pbs-symlink-prefix-1048:action_probe_311 | py_venv_exec //pbs-symlink-prefix-1048:action_probe_311.venv | _py_venv //pbs-symlink-prefix-1048:action_probe_311.venv.cfg | genrule //pbs-symlink-prefix-1048:action_probe_311_output | genrule //pbs-symlink-prefix-1048:action_probe_313 | py_venv_exec //pbs-symlink-prefix-1048:action_probe_313.venv | _py_venv //pbs-symlink-prefix-1048:action_probe_313.venv.cfg | genrule //pbs-symlink-prefix-1048:action_probe_313_output | genrule //pbs-symlink-prefix-1048:action_probe_39 | py_venv_exec //pbs-symlink-prefix-1048:action_probe_39.venv | _py_venv //pbs-symlink-prefix-1048:action_probe_39_output | genrule //pep517-frontend-exec-group:cc | fake_cc_toolchain //pep517-frontend-exec-group:frontend | sh_binary //pep517-frontend-exec-group:frontend_script | _write_xfile //pep517-frontend-exec-group:linux_aarch64_compiler | _write_xfile //pep517-frontend-exec-group:linux_x86_64_compiler | _write_xfile //pep517-frontend-exec-group:stub_sdist | _write_file //pep517-frontend-exec-group:wheel_linux_aarch64 | platform_transition_filegroup //pep517-frontend-exec-group:wheel_linux_x86_64 | platform_transition_filegroup //pex-interpreter-exclusion:app | py_venv_exec //pth-install-tree-fallback:itfa | py_unpacked_wheel //pth-install-tree-fallback:itfb | py_unpacked_wheel //pth-install-tree-fallback:test.venv | _py_venv //pth-install-tree-fallback:test.venv.pth | genrule //pth-install-tree-fallback:wheel_a | genrule //pth-install-tree-fallback:wheel_b | genrule //pth-namespace-547:test.venv | _py_venv //pth-namespace-547:test.venv.pth | genrule //pth-namespace-547:test_partial_merge.venv | _py_venv //pytest-anyio-plugin:test_anyio_plugin.pytest_paths | pytest_paths //pytest-main-867:test_collection_check.pytest_paths | pytest_paths //pytest-main-867:test_example.pytest_paths | pytest_paths //pytest-main-867:test_multi_src.pytest_paths | pytest_paths //pytest-main-867:test_naming_regression.pytest_paths | pytest_paths //pytest-mock-530:test_mock_py_test.pytest_paths | pytest_paths //pytest-subdir-imports:lib | py_library //pytest-subdir-imports:test_subdir_import.pytest_paths | pytest_paths //pytest-xdist-integration:test_xdist.pytest_paths | pytest_paths //repository-rule-deps-299/direct/directmod:directmod | py_library //repository-rule-deps-299/imported/flat:flat | py_library //repository-rule-deps-299/imported:subdir | py_library //repository-rule-deps-299/toplevel:toplevel | py_library //root-dir-paths-538:check_paths_bin | py_venv_exec //root-dir-paths-538:check_paths_expose_venv | py_venv_exec //root-dir-paths-538:check_paths_expose_venv.venv | _py_venv //root-dir-paths-538:check_paths_via_venv_macro | py_venv_exec //root-dir-paths-538:check_paths_via_venv_macro.venv | _py_venv //tools/verify_venv:verify_venv | py_library //unconstrained-dependencies:get_python_package_version_humble_test.pytest_paths | pytest_paths //unconstrained-dependencies:get_python_package_version_main_test.pytest_paths | pytest_paths //unconstrained-dependencies:print_python_package_version_humble | py_venv_exec //unconstrained-dependencies:print_python_package_version_main | py_venv_exec //uv-conflict-817:test_a_venv_test.venv | _py_venv //uv-conflict-817:test_b_venv_test.venv | _py_venv //uv-conflict-gte:test_a_venv_test.venv | _py_venv //uv-conflict-gte:test_b_venv_test.venv | _py_venv //uv-conflict-max-863:test_a_venv_test.venv | _py_venv //uv-conflict-tilde-856:test_a_venv_test.venv | _py_venv //uv-conflict-tilde-856:test_b_venv_test.venv | _py_venv //uv-console-script-binary:_whoowns_explicit_search | genrule //uv-console-script-binary:_whoowns_explicit_search_binary | py_venv_exec //uv-console-script-binary:_whoowns_search | genrule //uv-console-script-binary:_whoowns_search_binary | py_venv_exec //uv-console-script-binary:whoowns | py_venv_exec //uv-console-script-binary:whoowns_explicit | py_venv_exec //uv-deps-650/crossbuild:image_write_entrypoint | _write_file //uv-deps-650/crossbuild:unpack_path | exec_python_path //uv-deps-650/crossbuild:unpack_path_for_arm64 | exec_python_path //uv-deps-650/crossbuild:unpack_path_for_arm64_transition | platform_transition_filegroup //uv-deps-650/say:say_venv_test.venv | _py_venv //uv-deps-650/third_party/cowsay:cowsay | py_library //uv-dup-lock-records:markupsafe_targets | genquery //uv-gazelle-778:_gazelle_python_manifest_pypi_uv_deps_650_crossbuild_whls | platform_transition_filegroup //uv-gazelle-778:_gazelle_python_manifest_pypi_uv_deps_650_extras_whls | platform_transition_filegroup //uv-gazelle-778:_gazelle_python_manifest_pypi_uv_deps_650_say_whls | platform_transition_filegroup //uv-include-group:wheel_root_pth_test.venv | _py_venv //uv-include-group:wheel_root_pth_test.venv.pth | genrule //uv-include-group:wheel_root_pth_test.venv_link | py_venv_exec //uv-no-sdist-754:pywin32_targets | genquery //uv-patching-829:venv_test.venv | _py_venv //uv-platform-filter-844:watchdog_targets | genquery //uv-toolchain:uv_bazel_fork_version | genrule //uv-toolchain:uv_custom_version | genrule //uv-toolchain:uv_legacy_version | genrule //uv-toolchain:uv_mirror_version | genrule //uv-toolchain:uv_version | genrule //uv-workspace-789:venv_test.venv | _py_venv //venv-bin-scripts-423:venv_test.venv | _py_venv //venv-conflict-608:app | py_venv_exec //venv-conflict-608:app.venv | _py_venv //windows-crossbuild-837:windows_arm64_toolchain_deps | genquery //windows-crossbuild-837:windows_x64_toolchain_deps | genquery _108 more not shown._
⤵️ 17 Targets Skipped
Label | Target Type --------------------------------------------------------+------------------------- //oci/py_venv_image_layer:py_arm64_image_command_test | container_structure_test //pth-namespace-547:jaraco_functools_no_entries | py_unpacked_wheel //unconstrained-dependencies:get_python_package_version | py_library //uv-dep-hashes:test_import | py_venv_exec_test //uv-dep-hashes:test_import.venv | _py_venv //uv-include-group:setuptools_no_top_levels | py_unpacked_wheel //uv-requirements-bzl:all_whl_by_package_data_test | py_venv_exec_test //uv-requirements-bzl:all_whl_data_test | py_venv_exec_test //uv-requirements-bzl:whl_data_test | py_venv_exec_test //uv-sdist-native-build:test | py_venv_exec_test //uv-sdist-native-build:venv_test | py_venv_exec_test //uv-sdist-native-build:venv_test.venv | _py_venv //uv-whl-install-output-group:iniconfig_install_dir | filegroup //uv-whl-install-output-group:test | py_venv_exec_test //uv-whl-install-output-group:venv_test | py_venv_exec_test //uv-workspace-789/packages/foo:foo | py_library //uv-workspace-789/packages/pi:pi | py_library
📎 Artifacts
⏱️ Task timing
Phase | Description | Duration ------+------------------------------+--------- Setup | Prepare the task environment | 5.5s Test | Run bazel tests | 3m 37s ------+------------------------------+--------- Total | | 3m 43s
🧮 Bazel details
📟 Command line · bazel test //...
bazel test \ --experimental_output_paths=strip \ --disk_cache=/home/runner/.cache/bazel-disk \ --test_tag_filters=-skip-on-bazel8 \ --generate_json_trace_profile=1 \ --experimental_profile_include_target_label \ --profile=/tmp/2827c5ee-4ec9-4ac1-a11a-98743e698817.profile.gz \ --color=yes \ --build_metadata=ASPECT_TASK_NAME=Test \ --build_metadata=ASPECT_TASK_ID=97f2e497-2669-49a0-baac-ee3a3df3fd65 \ --build_event_publish_all_actions \ --build_event_binary_file_upload_mode=fully_async \ --build_event_binary_file=/tmp/build-event-out-c985fd2d-80a8-4225-8839-e9bfe0a82b8e.bin \ -- \ //...
ℹ️ Invocation details
- Invocation ID:
d6832d40-4366-4874-998d-64aff984d651 - Command:
test - Bazel version:
8.7.0 - Start time:
Tue Jul 7 19:52:02 UTC 2026 - End time:
Tue Jul 7 19:55:31 UTC 2026 - User:
runner - Host name:
runnervmjbsos - CPU Target:
k8 - Mode:
fastbuild - Working directory:
/home/runner/work/rules_py/rules_py/e2e/cases - Workspace directory:
/home/runner/work/rules_py/rules_py/e2e/cases - Server PID:
2833
⏱ Timing
- Elapsed time:
3m 28s - Analysis time:
2m 1s - Execution time:
3m 21s - Bazel server time:
23.8 cpu-minutes - Executed Tests Time:
2 cpu-minutes
📦 Build graph
- Targets: 463 targets (947,461 configured, 1,478 aspect applications)
- Actions: 16,175 actions (28,087 created)
- Packages: 1,584 packages loaded
💾 Cache stats
- Actions: 11,912 of 28,087 cached (42%)
- Tests: 0 of 192 cached (0%)
⚡ Actions by mnemonic (20)
Mnemonic | Count | % ----------------------+-------+------ UnresolvedSymlink | 5,737 | 35.8% CppCompile | 5,400 | 33.7% FileWrite | 1,239 | 7.7% Symlink | 653 | 4.0% WhlInstall | 431 | 2.6% RepoMappingManifest | 368 | 2.2% SourceSymlinkManifest | 368 | 2.2% TemplateExpand | 312 | 1.9% CppArchive | 252 | 1.5% Action | 226 | 1.4% TestRunner | 192 | 1.1% CppLink | 160 | 0.9% CppModuleMap | 152 | 0.9% CopyToDirectory | 134 | 0.8% CcStage0Compile | 90 | 0.5% …5 more (303 actions)
🏃 Actions by runner (5)
Runner | Count | % ------------------------+-------+------ internal | 8,681 | 53.6% linux-sandbox · Local | 7,313 | 45.2% disk cache hit · Remote | 132 | 0.8% deduplicated · Remote | 46 | 0.2% local · Local | 3 | 0.0%
🏠 Workspace status (4)
- BUILD_HOST:
runnervmjbsos - BUILD_TIMESTAMP:
1783453929 - BUILD_USER:
runner - FORMATTED_DATE:
2026 Jul 07 19 52 09 Tue
🏷️ Build metadata (2)
- ASPECT_TASK_ID:
97f2e497-2669-49a0-baac-ee3a3df3fd65 - ASPECT_TASK_NAME:
Test
🎛️ Startup options (12)
--connect_timeout_secs=30 --failure_detail_out=/home/runner/.cache/bazel/_bazel_runner/bc392e71f7970e3c2154593992262559/failure_detail.rawproto --idle_server_tasks --max_idle_secs=10800 --noclient_debug --nofatal_event_bus_exceptions --noshutdown_on_low_sys_mem --nowatchfs --nowindows_enable_symlinks --output_base=/home/runner/.cache/bazel/_bazel_runner/bc392e71f7970e3c2154593992262559 --output_user_root=/home/runner/.cache/bazel/_bazel_runner --write_command_log
🎛️ Command options (24)
--build_event_binary_file=/tmp/build-event-out-c985fd2d-80a8-4225-8839-e9bfe0a82b8e.bin --build_event_binary_file_upload_mode=fully_async --build_event_publish_all_actions --build_metadata=ASPECT_TASK_ID=97f2e497-2669-49a0-baac-ee3a3df3fd65 --build_metadata=ASPECT_TASK_NAME=Test --color=yes --disk_cache=/home/runner/.cache/bazel-disk --enable_platform_specific_config --experimental_output_paths=strip --experimental_profile_include_target_label --generate_json_trace_profile=1 --host_platform=//:linux_gnu --incompatible_enable_cc_toolchain_resolution --incompatible_strict_action_env --java_runtime_version=remotejdk_11 --lockfile_mode=off --nobuild_runfile_links --platforms=//:linux_gnu --profile=/tmp/2827c5ee-4ec9-4ac1-a11a-98743e698817.profile.gz --remote_download_outputs=minimal --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 --repo_env=BAZEL_NO_APPLE_CPP_TOOLCHAIN=1 --repository_cache=/home/runner/.cache/bazel-repo --test_tag_filters=-skip-on-bazel8
⏱ Last updated Tue Jul 7 19:55:33 UTC 2026 · 📊 GitHub API quota 1,386/15,000 (9% used, resets in 34m)
🚀 Powered by Aspect CLI (v2026.28.2) | Aspect Build · X · LinkedIn · YouTube
Loading