Filter directories from shared library glob results#4094
Conversation
Co-authored-by: jayhawk-commits <145489236+jayhawk-commits@users.noreply.github.com> Agent-Logs-Url: https://github.com/ROCm/TheRock/sessions/d48ab527-8176-4ba0-8c43-cbb408934710
|
I triggered some python package builds using artifacts from the rocm-systems submodule update (#3984) that first started showing the test failures from #3999
gfx94X: https://github.com/ROCm/TheRock/actions/runs/23366236318 Once those builds complete (8-15 minutes) we can also trigger https://github.com/ROCm/TheRock/actions/workflows/test_rocm_wheels.yml to run |
|
Test run: https://github.com/ROCm/TheRock/actions/runs/23366544519/job/67981590817 Triggered with inputs matching the CI run that failed, but using the workflow run id from the build run triggered earlier: https://github.com/ROCm/TheRock/actions/runs/23223625075/job/67610796675#step:1:17 amdgpu_family: gfx1151
test_runs_on: linux-gfx1151-gpu-rocm
package_index_url_base:
- package_find_links_url: https://therock-ci-artifacts.s3.amazonaws.com/23223625075-linux/python/gfx1151/index.html
+ package_find_links_url: https://therock-ci-artifacts.s3.amazonaws.com/23366263964-linux/python/gfx1151/index.html
python_version: 3.12
rocm_version: 7.13.0.dev0+6b5c0600b79528b949881f1856deda28c5ec438aSuccess: |
path.glob("**/*.so.*")and similar patterns can match directories, not just files, causing unexpected behavior inget_module_shared_libraries.Changes
build_tools/packaging/python/templates/rocm/src/rocm_sdk/tests/utils.py: Replacelist(path.glob(...))with list comprehensions filtered byp.is_file()for all three patterns (.so.*,.so,.dll).Original prompt
This pull request was created from Copilot chat.
⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.