Repository navigation
ci: install pyyaml in the root-pytest venv - #4454
joshuaswarren wants to merge 1 commit into
Conversation
tools/test_ci_workflow_conditions.py (landed in 11ef7e6) imports yaml, but the 'No GPU' pytest job builds a bare venv with only pytest, so collection fails on every branch including main: ModuleNotFoundError: No module named 'yaml' Add pyyaml to the pip install so the job can collect the test.
|
I reproduced the collection failure on main The trial merge of The full macOS run finished with 732 passed, 110 skipped and four failures. Two of those also reproduce on main with PyYAML installed because the fixtures use Igor Lessio - AIFLOW LABS |
|
I ran the full root pytest suite on Ubuntu 24.04 ARM64 with Zig 0.17.0 and a fresh Python 3.12 venv. The tested tree was main python3 -m venv /tmp/pytest
/tmp/pytest/bin/pip install --quiet pytest pyyaml
/tmp/pytest/bin/python -m pytest -q -p no:cacheproviderExit 0: 752 passed, 103 skipped, and 777 subtests passed in 7m34s. This confirms root collection and the complete suite on the Ubuntu ARM64 trial with the proposed dependencies. The GitHub-hosted pytest job is still queued. Igor Lessio - AIFLOW LABS |
|
Thanks for catching the missing PyYAML dependency, @joshuaswarren. #4469 has now landed on main I reran the fresh-venv workflow command through collection on macOS ARM64, installing Igor Lessio - AIFLOW LABS |
|
Thanks @joshuaswarren, and sorry: you opened this first, and we landed the same one-line fix two hours later as #4469 without crediting you. The workflow on main now matches this PR byte for byte, so there's nothing left to merge here. We're closing it, and the 1.3.4 changelog line and release notes name you for it.
|
Summary
tools/test_ci_workflow_conditions.py(landed today in 11ef7e6) doesimport yamlat module level, but the 'No GPU' workflow's pytest job builds a bare venv with onlypytestinstalled. Collection fails on every branch, including main:Seen on PR #3417's rebased head — every open PR's pytest check goes red for a reason unrelated to its diff.
Fix
One word:
pip install --quiet pytest pyyamlin the same step.Test plan
tools/test_ci_workflow_conditions.pyinstead of erroring.Generated with Devin