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-pytest-bazel-9 succeeded Jul 7, 2026 in 1m 26s

✅ test //... · Tests passed

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

💬 Last update: test task complete

Details

🎯 Bazel targets (19)

✅ 9 Tests Passed
Label                             | Target Type       | Duration
----------------------------------+-------------------+---------
//:absolute_main_test             | py_venv_exec_test | 73ms    
//:chdir_test                     | py_venv_exec_test | 940ms   
//:coverage_lcov_shape_test       | sh_test           | 616ms   
//:main_with_colon_test           | py_venv_exec_test | 76ms    
//:pytest_test                    | py_venv_exec_test | 349ms   
//:sharded/test                   | py_venv_exec_test | 1.9s    
//:test_naming_723                | py_venv_exec_test | 726ms   
//subdir:test_with_pytest_main    | py_venv_exec_test | 663ms   
//subdir:test_without_pytest_main | py_venv_exec_test | 90ms    
✅ 10 Targets Built
Label                                       | Target Type    
--------------------------------------------+----------------
//:chdir_main                               | py_library     
//:chdir_main_template                      | _py_pytest_main
//:coverage_manifest                        | genrule        
//:lib                                      | py_library     
//:pytest_test.pytest_paths                 | pytest_paths   
//:sharded/test.pytest_paths                | pytest_paths   
//:test_naming_723_main                     | py_library     
//:test_naming_723_main_template            | _py_pytest_main
//subdir:foo                                | py_library     
//subdir:test_with_pytest_main.pytest_paths | pytest_paths   

📎 Artifacts

Artifacts · Profile · BEP

⏱️ Task timing

Phase | Description                  | Duration
------+------------------------------+---------
Setup | Prepare the task environment | 5.5s    
Test  | Run bazel tests              | 1m 22s  
------+------------------------------+---------
Total |                              | 1m 27s  

🧮 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/6558ee68-e67d-4f35-b7ff-c58ec7fbd1b0.profile.gz \
  --color=yes \
  --build_metadata=ASPECT_TASK_NAME=Test \
  --build_metadata=ASPECT_TASK_ID=22a0dbe3-8c22-4a18-95f5-bdce2e588666 \
  --build_event_publish_all_actions \
  --build_event_binary_file_upload_mode=fully_async \
  --build_event_binary_file=/tmp/build-event-out-de4386cb-cfcd-4508-a795-005268e45368.bin \
  -- \
  //...
ℹ️ Invocation details
  • Invocation ID: e27cadf8-e156-4eb4-abdf-d96d5cf760a7
  • Command: test
  • Bazel version: 9.1.1
  • Start time: Tue Jul 7 19:52:01 UTC 2026
  • End time: Tue Jul 7 19:53:17 UTC 2026
  • User: runner
  • Host name: runnervmkkn4f
  • CPU Target: x86_64
  • Mode: fastbuild
  • Working directory: /home/runner/work/rules_py/rules_py/examples/pytest
  • Workspace directory: /home/runner/work/rules_py/rules_py/examples/pytest
  • Server PID: 2391
⏱ Timing
  • Elapsed time: 1m 15s
  • Analysis time: 58.6s
  • Execution time: 1m 10s
  • Bazel server time: 2 cpu-minutes
  • Executed Tests Time: 5.4 cpu-seconds
📦 Build graph
  • Targets: 19 targets (6,491 configured, 1 aspect application)
  • Actions: 561 actions (576 created)
  • Packages: 243 packages loaded
💾 Cache stats
  • Actions: 15 of 576 cached (2%)
  • Tests: 0 of 9 cached (0%)
⚡ Actions by mnemonic (14)
Mnemonic                   | Count | %    
---------------------------+-------+------
UnresolvedSymlink          | 341   | 60.7%
FileWrite                  | 79    | 14.0%
WhlInstall                 | 60    | 10.6%
TemplateExpand             | 13    | 2.3% 
TestRunner                 | 10    | 1.7% 
Action                     | 9     | 1.6% 
RepoMappingManifest        | 9     | 1.6% 
RunfilesTree               | 9     | 1.6% 
SourceSymlinkManifest      | 9     | 1.6% 
Symlink                    | 9     | 1.6% 
SymlinkTree                | 9     | 1.6% 
Genrule                    | 2     | 0.3% 
BazelWorkspaceStatusAction | 1     | 0.1% 
ExecutableSymlink          | 1     | 0.1% 
🏃 Actions by runner (2)
Runner                         | Count | %    
-------------------------------+-------+------
internal                       | 480   | 85.1%
processwrapper-sandbox · Local | 84    | 14.8%
🏠 Workspace status (4)
  • BUILD_HOST: runnervmkkn4f
  • BUILD_TIMESTAMP: 1783453926
  • BUILD_USER: runner
  • FORMATTED_DATE: 2026 Jul 07 19 52 06 Tue
🏷️ Build metadata (2)
  • ASPECT_TASK_ID: 22a0dbe3-8c22-4a18-95f5-bdce2e588666
  • ASPECT_TASK_NAME: Test
🎛️ Startup options (11)
--connect_timeout_secs=30
--failure_detail_out=/home/runner/.cache/bazel/_bazel_runner/6c853107bc72a3616dd141728867a34d/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/6c853107bc72a3616dd141728867a34d
--output_user_root=/home/runner/.cache/bazel/_bazel_runner
--write_command_log
🎛️ Command options (12)
--build_event_binary_file=/tmp/build-event-out-de4386cb-cfcd-4508-a795-005268e45368.bin
--build_event_binary_file_upload_mode=fully_async
--build_event_publish_all_actions
--build_metadata=ASPECT_TASK_ID=22a0dbe3-8c22-4a18-95f5-bdce2e588666
--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/6558ee68-e67d-4f35-b7ff-c58ec7fbd1b0.profile.gz
--repository_cache=/home/runner/.cache/bazel-repo
--test_tag_filters=-skip-on-bazel9

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