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-py_venv-bazel-9 succeeded Jul 7, 2026 in 25s

✅ test //... · Tests passed

✅ Succeeded · 📅 Tue Jul 7 19:51:57 UTC 2026 · ⏱ 27.3s — 🔧 Setup 5.1s · 🧪 Test 22.2s
👤 runner · 🖥 runnervmkkn4f · 💎 aspect-cli v2026.28.2
📦 9 targets · ⚡ 80 of 90 actions executed (11% cached) · 🧪 3 of 3 tests executed (0% cached) · 🔧 bazel v9.1.1 test · 🎯 x86_64 · ⚙️ fastbuild
🐙 GitHub Actions

💬 Last update: test task complete

Details

🎯 Bazel targets (9)

✅ 3 Tests Passed
Label                 | Target Type | Duration
----------------------+-------------+---------
//:test_exposed_venv  | sh_test     | 64ms    
//:test_internal_venv | sh_test     | 128ms   
//:test_simple_binary | sh_test     | 107ms   
✅ 6 Targets Built
Label                 | Target Type    
----------------------+----------------
//:exposed_venv       | py_venv_exec   
//:exposed_venv.venv  | _py_venv       
//:internal_venv      | py_venv_exec   
//:internal_venv.venv | _py_venv       
//:simple_binary      | py_venv_exec   
//:stamped            | expand_template

📎 Artifacts

Artifacts · Profile · BEP

⏱️ Task timing

Phase | Description                  | Duration
------+------------------------------+---------
Setup | Prepare the task environment | 5.1s    
Test  | Run bazel tests              | 22.2s   
------+------------------------------+---------
Total |                              | 27.3s   

🧮 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/62605abb-4137-4408-b157-4cfb39d9d26a.profile.gz \
  --color=yes \
  --build_metadata=ASPECT_TASK_NAME=Test \
  --build_metadata=ASPECT_TASK_ID=b0bdcd7a-0215-47f3-ac8b-332039c4c377 \
  --build_event_publish_all_actions \
  --build_event_binary_file_upload_mode=fully_async \
  --build_event_binary_file=/tmp/build-event-out-5c6eaa1e-d64a-4eff-a390-b0b467288a98.bin \
  -- \
  //...
ℹ️ Invocation details
  • Invocation ID: 3de9b2eb-747e-4cc0-bd90-908beabe9be6
  • Command: test
  • Bazel version: 9.1.1
  • Start time: Tue Jul 7 19:51:57 UTC 2026
  • End time: Tue Jul 7 19:52:13 UTC 2026
  • User: runner
  • Host name: runnervmkkn4f
  • CPU Target: x86_64
  • Mode: fastbuild
  • Working directory: /home/runner/work/rules_py/rules_py/examples/py_venv
  • Workspace directory: /home/runner/work/rules_py/rules_py/examples/py_venv
  • Server PID: 2434
⏱ Timing
  • Elapsed time: 16.6s
  • Analysis time: 9.3s
  • Execution time: 5.2s
  • Bazel server time: 37.7 cpu-seconds
  • Executed Tests Time: 0.2 cpu-seconds
📦 Build graph
  • Targets: 9 targets (4,736 configured, 1 aspect application)
  • Actions: 80 actions (90 created)
  • Packages: 117 packages loaded
💾 Cache stats
  • Actions: 10 of 90 cached (11%)
  • Tests: 0 of 3 cached (0%)
⚡ Actions by mnemonic (13)
Mnemonic                   | Count | %    
---------------------------+-------+------
UnresolvedSymlink          | 15    | 18.7%
FileWrite                  | 12    | 15.0%
RepoMappingManifest        | 8     | 10.0%
RunfilesTree               | 8     | 10.0%
SourceSymlinkManifest      | 8     | 10.0%
SymlinkTree                | 8     | 10.0%
TemplateExpand             | 7     | 8.7% 
Action                     | 3     | 3.7% 
ExecutableSymlink          | 3     | 3.7% 
Symlink                    | 3     | 3.7% 
TestRunner                 | 3     | 3.7% 
BazelWorkspaceStatusAction | 1     | 1.2% 
WhlInstall                 | 1     | 1.2% 
🏃 Actions by runner (2)
Runner                         | Count | %    
-------------------------------+-------+------
internal                       | 73    | 87.9%
processwrapper-sandbox · Local | 10    | 12.0%
🏠 Workspace status (4)
  • BUILD_HOST: runnervmkkn4f
  • BUILD_TIMESTAMP: 1783453921
  • BUILD_USER: runner
  • FORMATTED_DATE: 2026 Jul 07 19 52 01 Tue
🏷️ Build metadata (2)
  • ASPECT_TASK_ID: b0bdcd7a-0215-47f3-ac8b-332039c4c377
  • ASPECT_TASK_NAME: Test
🎛️ Startup options (11)
--connect_timeout_secs=30
--failure_detail_out=/home/runner/.cache/bazel/_bazel_runner/c8025ae0a37a263fb6e10605e4275258/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/c8025ae0a37a263fb6e10605e4275258
--output_user_root=/home/runner/.cache/bazel/_bazel_runner
--write_command_log
🎛️ Command options (12)
--build_event_binary_file=/tmp/build-event-out-5c6eaa1e-d64a-4eff-a390-b0b467288a98.bin
--build_event_binary_file_upload_mode=fully_async
--build_event_publish_all_actions
--build_metadata=ASPECT_TASK_ID=b0bdcd7a-0215-47f3-ac8b-332039c4c377
--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/62605abb-4137-4408-b157-4cfb39d9d26a.profile.gz
--repository_cache=/home/runner/.cache/bazel-repo
--test_tag_filters=-skip-on-bazel9

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