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-9
succeeded
Jul 7, 2026 in 3m 39s
✅ test //... · Tests passed
✅ Succeeded · 📅 Tue Jul 7 19:52:02 UTC 2026 · ⏱ 3m 40s — 🔧 Setup 4.7s · 🧪 Test 3m 35s
👤 runner · 🖥 runnervmjbsos · 💎 aspect-cli v2026.28.2
📦 463 targets · ⚡ 16,533 of 28,596 actions executed (42% cached) · 🧪 186 of 186 tests executed (0% cached) · 🔧 bazel v9.1.1 test · 🎯 x86_64 · ⚙️ fastbuild
🐙 GitHub Actions
💬 Last update: test task complete
Details
🎯 Bazel targets (463)
✅ 186 Tests Passed
Label | Target Type | Duration -------------------------------------------------------------------------------+---------------------------------------+--------- //:snapshots_0_test | _diff_test | 165ms //:snapshots_10_test | _diff_test | 208ms //:snapshots_11_test | _diff_test | 122ms //:snapshots_12_test | _diff_test | 132ms //:snapshots_13_test | _diff_test | 208ms //:snapshots_14_test | _diff_test | 221ms //:snapshots_15_test | _diff_test | 229ms //:snapshots_16_test | _diff_test | 204ms //:snapshots_17_test | _diff_test | 211ms //:snapshots_18_test | _diff_test | 97ms //:snapshots_1_test | _diff_test | 117ms //:snapshots_20_test | _diff_test | 93ms //:snapshots_21_test | _diff_test | 64ms //:snapshots_22_test | _diff_test | 76ms //:snapshots_23_test | _diff_test | 586ms //:snapshots_2_test | _diff_test | 175ms //:snapshots_3_test | _diff_test | 194ms //:snapshots_4_test | _diff_test | 200ms //:snapshots_5_test | _diff_test | 184ms //:snapshots_6_test | _diff_test | 196ms //:snapshots_7_test | _diff_test | 205ms //:snapshots_8_test | _diff_test | 126ms //:snapshots_9_test | _diff_test | 224ms //arch-alias-marker:arch_alias_marker | py_venv_exec_test | 163ms //arch-alias-marker:inactive_marker_package_test | inactive_marker_package_test | 49ms //arch-alias-marker:inactive_marker_wheel_test | inactive_marker_wheel_test | 57ms //cross-repo-610:test | py_venv_exec_test | 176ms //cross-repo-610:venv_test | py_venv_exec_test | 107ms //current-py-toolchain-896:test | sh_test | 46ms //current-py-toolchain-bazel-env-896:test | sh_test | 77ms //inactive-marker:inactive_marker_test_py313 | py_venv_exec_test | 347ms //interpreter-exec-under-glibc-target:interpreter_exec_under_glibc_target_test | _empty_test | 83ms //interpreter-local-pyvenv-home:test_pyvenv_home | py_venv_exec_test | 137ms //interpreter-provisioning:test | py_venv_exec_test | 235ms //interpreter-provisioning:venv_test | py_venv_exec_test | 138ms //interpreter-version-541:test_3_10_classic | py_venv_exec_test | 833ms //interpreter-version-541:test_3_10_venv | py_venv_exec_test | 489ms //interpreter-version-541:test_3_11_classic | py_venv_exec_test | 258ms //interpreter-version-541:test_3_11_venv | py_venv_exec_test | 173ms //interpreter-version-541:test_3_9_classic | py_venv_exec_test | 238ms //interpreter-version-541:test_3_9_venv | py_venv_exec_test | 746ms //multi-project-hub:alpha_dev | py_venv_exec_test | 128ms //multi-project-hub:alpha_unit_tests | py_venv_exec_test | 132ms //multi-project-hub:beta | py_venv_exec_test | 206ms //namespace-init-collision:test | py_venv_exec_test | 219ms //oci/py_image_layer:my_app_host_test | py_venv_exec_test | 150ms //oci/py_venv_image_layer:my_app_host_test | py_venv_exec_test | 236ms //pep517-frontend-exec-group:frontend_exec_platform_test | _empty_test | 112ms //pth-install-tree-fallback:test | py_venv_exec_test | 117ms //pth-namespace-547:test | py_venv_exec_test | 338ms //pth-namespace-547:test_legacy | py_venv_exec_test | 325ms //pth-namespace-547:test_partial_merge | py_venv_exec_test | 314ms //py-library-defaultinfo-891:default_info_no_transitive_srcs_test | _default_info_no_transitive_srcs_test | 137ms //pytest-anyio-plugin:test_anyio_plugin | py_venv_exec_test | 995ms //pytest-main-867:test_collection_check | py_venv_exec_test | 1.7s //pytest-main-867:test_naming_regression | py_venv_exec_test | 1s //pytest-mock-530:test_mock_py_venv_test | py_venv_exec_test | 1.4s //pytest-subdir-imports:test_subdir_import | py_venv_exec_test | 1s //pytest-xdist-integration:test_xdist | py_venv_exec_test | 2.2s //root-dir-paths-538:test_root_dir | sh_test | 62ms //root-dir-paths-538:test_root_dir_expose_venv | sh_test | 67ms //root-dir-paths-538:test_root_dir_venv | sh_test | 158ms //single-project-hub:single_project_hub | py_venv_exec_test | 210ms //tools/verify_venv:verify_venv_test | py_venv_exec_test | 130ms //uv-bare-linux-wheels:test | sh_test | 200ms //uv-conflict-817:test_a | py_venv_exec_test | 412ms //uv-conflict-817:test_a_venv_test | py_venv_exec_test | 395ms //uv-conflict-817:test_b | py_venv_exec_test | 469ms //uv-conflict-817:test_b_venv_test | py_venv_exec_test | 401ms //uv-conflict-gte:test_a | py_venv_exec_test | 95ms //uv-conflict-gte:test_a_venv_test | py_venv_exec_test | 98ms //uv-conflict-gte:test_b | py_venv_exec_test | 111ms //uv-conflict-gte:test_b_venv_test | py_venv_exec_test | 143ms //uv-conflict-max-863:test_a | py_venv_exec_test | 70ms //uv-conflict-max-863:test_a_venv_test | py_venv_exec_test | 54ms //uv-conflict-max-863:test_b | py_venv_exec_test | 106ms //uv-conflict-tilde-856:test_a | py_venv_exec_test | 82ms //uv-conflict-tilde-856:test_a_venv_test | py_venv_exec_test | 76ms //uv-conflict-tilde-856:test_b | py_venv_exec_test | 73ms //uv-console-script-extras:black_console_scripts_test | console_scripts_metadata_test | 102ms //uv-console-script-extras:google_auth_oauthlib_console_scripts_test | console_scripts_metadata_test | 315ms //uv-dep-hashes:test_lockfile_hashless | sh_test | 197ms //uv-deps-650/crossbuild:exec_toolchain_resolution_test | sh_test | 97ms //uv-deps-650/say:say_venv_test | py_venv_exec_test | 142ms //uv-dup-lock-records:test_merged_wheels | py_venv_exec_test | 408ms //uv-duplicate-whl-labels:test_import | py_venv_exec_test | 398ms //uv-include-group:include_group | py_venv_exec_test | 1.3s //uv-incompatible-wheel-source:test | py_venv_exec_test | 260ms //uv-invalid-build-overrides:custom_patches_test | _empty_test | 122ms //uv-no-sdist-754:test | py_venv_exec_test | 368ms //uv-platform-filter-844:test | sh_test | 215ms //uv-plus-version:encoded_plus_metadata_test | wheel_metadata_test | 55ms //uv-plus-version:literal_plus_metadata_test | wheel_metadata_test | 72ms //uv-toolchain:test | sh_test | 225ms //uv-workspace-789:test | py_venv_exec_test | 571ms //uv-workspace-789:venv_test | py_venv_exec_test | 601ms //venv-conflict-608:test_no_venv_conflict | _empty_test | 47ms //venv-internal-symlinks:test_internal_symlinks | py_venv_exec_test | 650ms //venv-isolated-mode-703:test | py_venv_exec_test | 339ms //windows-crossbuild-837:test | sh_test | 202ms _86 more not shown._
✅ 259 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_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 //cross-repo-610:venv_test.venv | _py_venv //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_10_venv.venv | _py_venv //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/validator-exec-config:app | py_venv_exec //pbs-symlink-prefix-1048:action_probe_310 | py_venv_exec //pbs-symlink-prefix-1048:action_probe_310.venv | _py_venv //pbs-symlink-prefix-1048:action_probe_310_output | genrule //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 //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-bare-linux-wheels:grpcio_targets | genquery //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-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/extras:extras_venv_test.venv | _py_venv //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_airflow_whls | platform_transition_filegroup //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-gazelle-778:gazelle_python_manifest | _modules_mapping //uv-gazelle-778:gazelle_python_manifest.update | sh_binary //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-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-whl-install-output-group:venv_test.venv | _py_venv //uv-workspace-789:venv_test.venv | _py_venv //venv-conflict-608:app | py_venv_exec //venv-conflict-608:app.venv | _py_venv //venv-internal-symlinks:test_internal_symlinks.venv | _py_venv //venv-isolated-mode-703:test.venv | _py_venv //windows-crossbuild-837:windows_arm64_toolchain_deps | genquery //windows-crossbuild-837:windows_x64_toolchain_deps | genquery _113 more not shown._
⤵️ 18 Targets Skipped
Label | Target Type --------------------------------------------------------+------------------------- //interpreter-features-836:test | container_structure_test //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 | 4.7s Test | Run bazel tests | 3m 35s ------+------------------------------+--------- Total | | 3m 40s
🧮 Bazel details
📟 Command line · bazel test //...
bazel test \ --experimental_output_paths=strip \ --disk_cache=/home/runner/.cache/bazel-disk \ --test_tag_filters=-skip-on-bazel9 \ --generate_json_trace_profile=1 \ --experimental_profile_include_target_label \ --profile=/tmp/1b5fbc63-a812-4c88-ae07-734e2e2dcc56.profile.gz \ --color=yes \ --build_metadata=ASPECT_TASK_NAME=Test \ --build_metadata=ASPECT_TASK_ID=5de856b5-a8c9-42da-a132-5032e98d892c \ --build_event_publish_all_actions \ --build_event_binary_file_upload_mode=fully_async \ --build_event_binary_file=/tmp/build-event-out-87a9e83b-fe9b-40a4-a53a-ddfce5fdd6b0.bin \ -- \ //...
ℹ️ Invocation details
- Invocation ID:
de59c96a-13df-432f-9606-b152c2349cfe - Command:
test - Bazel version:
9.1.1 - Start time:
Tue Jul 7 19:52:02 UTC 2026 - End time:
Tue Jul 7 19:55:29 UTC 2026 - User:
runner - Host name:
runnervmjbsos - CPU Target:
x86_64 - 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:
2826
⏱ Timing
- Elapsed time:
3m 27s - Analysis time:
1m 58s - Execution time:
3m 22s - Bazel server time:
21.9 cpu-minutes - Executed Tests Time:
1.6 cpu-minutes
📦 Build graph
- Targets: 463 targets (904,202 configured, 1,478 aspect applications)
- Actions: 16,533 actions (28,596 created)
- Packages: 1,596 packages loaded
💾 Cache stats
- Actions: 12,063 of 28,596 cached (42%)
- Tests: 0 of 186 cached (0%)
⚡ Actions by mnemonic (20)
Mnemonic | Count | % ----------------------+-------+------ UnresolvedSymlink | 5,737 | 35.1% CppCompile | 5,400 | 33.0% FileWrite | 1,172 | 7.1% Symlink | 653 | 3.9% WhlInstall | 431 | 2.6% RepoMappingManifest | 367 | 2.2% RunfilesTree | 367 | 2.2% SourceSymlinkManifest | 367 | 2.2% TemplateExpand | 312 | 1.9% CppArchive | 252 | 1.5% Action | 226 | 1.3% CppModuleMap | 218 | 1.3% TestRunner | 186 | 1.1% CppLink | 160 | 0.9% CopyToDirectory | 134 | 0.8% …5 more (352 actions)
🏃 Actions by runner (5)
Runner | Count | % ------------------------+-------+------ internal | 9,218 | 55.1% linux-sandbox · Local | 7,305 | 43.7% disk cache hit · Remote | 151 | 0.9% deduplicated · Remote | 27 | 0.1% local · Local | 3 | 0.0%
🏠 Workspace status (4)
- BUILD_HOST:
runnervmjbsos - BUILD_TIMESTAMP:
1783453927 - BUILD_USER:
runner - FORMATTED_DATE:
2026 Jul 07 19 52 07 Tue
🏷️ Build metadata (2)
- ASPECT_TASK_ID:
5de856b5-a8c9-42da-a132-5032e98d892c - ASPECT_TASK_NAME:
Test
🎛️ Startup options (11)
--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 --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-87a9e83b-fe9b-40a4-a53a-ddfce5fdd6b0.bin --build_event_binary_file_upload_mode=fully_async --build_event_publish_all_actions --build_metadata=ASPECT_TASK_ID=5de856b5-a8c9-42da-a132-5032e98d892c --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/1b5fbc63-a812-4c88-ae07-734e2e2dcc56.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-bazel9
⏱ Last updated Tue Jul 7 19:55:32 UTC 2026 · 📊 GitHub API quota 1,384/15,000 (9% used, resets in 34m)
🚀 Powered by Aspect CLI (v2026.28.2) | Aspect Build · X · LinkedIn · YouTube
Loading