Skip to content

fix: pkgutil namespace package __init__.py collisions when multiple wheels share a namespace stub#1270

Open
xangcastle wants to merge 2 commits into
mainfrom
xangcastle/main-namespace-collision
Open

fix: pkgutil namespace package __init__.py collisions when multiple wheels share a namespace stub#1270
xangcastle wants to merge 2 commits into
mainfrom
xangcastle/main-namespace-collision

fix - reproducing package collision

57025ec
Select commit
Loading
Failed to load commit list.
Aspect Workflows / aspect / test-examples-multi_version-bazel-9 succeeded Jul 7, 2026 in 59s

✅ test //... · Tests passed

✅ Succeeded · 📅 Tue Jul 7 19:52:08 UTC 2026 · ⏱ 1m — 🔧 Setup 6.5s · 🧪 Test 54.4s
👤 runner · 🖥 runnervmkkn4f · 💎 aspect-cli v2026.28.2
📦 5 targets · ⚡ 106 of 121 actions executed (12% cached) · 🧪 2 of 2 tests executed (0% cached) · 🔧 bazel v9.1.1 test · 🎯 x86_64 · ⚙️ fastbuild
🐙 GitHub Actions

💬 Last update: test task complete

Details

🎯 Bazel targets (5)

✅ 2 Tests Passed
Label                      | Target Type       | Duration
---------------------------+-------------------+---------
//:py_version_default_test | py_venv_exec_test | 336ms   
//:py_version_test         | py_venv_exec_test | 338ms   
✅ 3 Targets Built
Label                | Target Type    
---------------------+----------------
//:__test__          | py_library     
//:__test___template | _py_pytest_main
//:multi_version     | py_venv_exec   

📎 Artifacts

Artifacts · Profile · BEP

⏱️ Task timing

Phase | Description                  | Duration
------+------------------------------+---------
Setup | Prepare the task environment | 6.5s    
Test  | Run bazel tests              | 54.4s   
------+------------------------------+---------
Total |                              | 1m      

🧮 Bazel details

📟 Command line · bazel test //...
bazel test \
  --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/0ac72369-ab57-4051-a840-bd394eb4c945.profile.gz \
  --color=yes \
  --build_metadata=ASPECT_TASK_NAME=Test \
  --build_metadata=ASPECT_TASK_ID=5fd807ae-5ae6-4c4b-ac84-6d65b72faf1b \
  --build_event_publish_all_actions \
  --build_event_binary_file_upload_mode=fully_async \
  --build_event_binary_file=/tmp/build-event-out-780acdd2-02dd-40d8-8faa-bfbc2a971604.bin \
  -- \
  //...
ℹ️ Invocation details
  • Invocation ID: aab5fdeb-75ec-41d5-ba0b-6585a40a5850
  • Command: test
  • Bazel version: 9.1.1
  • Start time: Tue Jul 7 19:52:08 UTC 2026
  • End time: Tue Jul 7 19:52:54 UTC 2026
  • User: runner
  • Host name: runnervmkkn4f
  • CPU Target: x86_64
  • Mode: fastbuild
  • Working directory: /home/runner/work/rules_py/rules_py/examples/multi_version
  • Workspace directory: /home/runner/work/rules_py/rules_py/examples/multi_version
  • Server PID: 2405
⏱ Timing
  • Elapsed time: 46.3s
  • Analysis time: 36.8s
  • Execution time: 39.8s
  • Bazel server time: 46.7 cpu-seconds
  • Executed Tests Time: 0.6 cpu-seconds
📦 Build graph
  • Targets: 5 targets (5,663 configured, 1 aspect application)
  • Actions: 106 actions (121 created)
  • Packages: 138 packages loaded
💾 Cache stats
  • Actions: 15 of 121 cached (12%)
  • Tests: 0 of 2 cached (0%)
⚡ Actions by mnemonic (12)
Mnemonic                   | Count | %    
---------------------------+-------+------
UnresolvedSymlink          | 47    | 44.3%
WhlInstall                 | 17    | 16.0%
FileWrite                  | 16    | 15.0%
TemplateExpand             | 5     | 4.7% 
Action                     | 3     | 2.8% 
RepoMappingManifest        | 3     | 2.8% 
RunfilesTree               | 3     | 2.8% 
SourceSymlinkManifest      | 3     | 2.8% 
Symlink                    | 3     | 2.8% 
SymlinkTree                | 3     | 2.8% 
TestRunner                 | 2     | 1.8% 
BazelWorkspaceStatusAction | 1     | 0.9% 
🏃 Actions by runner (2)
Runner                         | Count | %    
-------------------------------+-------+------
internal                       | 84    | 79.2%
processwrapper-sandbox · Local | 22    | 20.7%
🏠 Workspace status (4)
  • BUILD_HOST: runnervmkkn4f
  • BUILD_TIMESTAMP: 1783453933
  • BUILD_USER: runner
  • FORMATTED_DATE: 2026 Jul 07 19 52 13 Tue
🏷️ Build metadata (2)
  • ASPECT_TASK_ID: 5fd807ae-5ae6-4c4b-ac84-6d65b72faf1b
  • ASPECT_TASK_NAME: Test
🎛️ Startup options (11)
--connect_timeout_secs=30
--failure_detail_out=/home/runner/.cache/bazel/_bazel_runner/431fb95a5d7e1a6e766a108bb7093d03/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/431fb95a5d7e1a6e766a108bb7093d03
--output_user_root=/home/runner/.cache/bazel/_bazel_runner
--write_command_log
🎛️ Command options (12)
--build_event_binary_file=/tmp/build-event-out-780acdd2-02dd-40d8-8faa-bfbc2a971604.bin
--build_event_binary_file_upload_mode=fully_async
--build_event_publish_all_actions
--build_metadata=ASPECT_TASK_ID=5fd807ae-5ae6-4c4b-ac84-6d65b72faf1b
--build_metadata=ASPECT_TASK_NAME=Test
--color=yes
--disk_cache=/home/runner/.cache/bazel-disk
--experimental_profile_include_target_label
--generate_json_trace_profile=1
--profile=/tmp/0ac72369-ab57-4051-a840-bd394eb4c945.profile.gz
--repository_cache=/home/runner/.cache/bazel-repo
--test_tag_filters=-skip-on-bazel9

⏱ Last updated Tue Jul 7 19:52:57 UTC 2026 · 📊 GitHub API quota 1,311/15,000 (9% used, resets in 36m)
🚀 Powered by Aspect CLI (v2026.28.2)  |  Aspect Build · X · LinkedIn · YouTube