Skip to content

ci: install pyyaml in the root-pytest venv - #4454

Closed
joshuaswarren wants to merge 1 commit into
ashhart:mainfrom
joshuaswarren:ci-pytest-pyyaml
Closed

joshuaswarren wants to merge 1 commit into
ashhart:mainfrom
joshuaswarren:ci-pytest-pyyaml

Conversation

@joshuaswarren

Copy link
Copy Markdown
Contributor

Summary

tools/test_ci_workflow_conditions.py (landed today in 11ef7e6) does import yaml at module level, but the 'No GPU' workflow's pytest job builds a bare venv with only pytest installed. Collection fails on every branch, including main:

ERROR tools/test_ci_workflow_conditions.py
ModuleNotFoundError: No module named 'yaml'
Interrupted: 1 error during collection

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 pyyaml in the same step.

Test plan

  • The pytest job on this PR collects tools/test_ci_workflow_conditions.py instead of erroring.

Generated with Devin

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.
@AIFlowML

Copy link
Copy Markdown
Contributor

I reproduced the collection failure on main 2ce240cf0 on macOS ARM64 with Zig 0.17.0 and a fresh Python 3.12 venv. With only pytest installed, python -m pytest -q -p no:cacheprovider --collect-only exited 2 with ModuleNotFoundError: No module named 'yaml' (844 tests collected, one collection error).

The trial merge of 8ad01daee was clean. After installing PyYAML as the new step does, the same collection command discovered all 845 tests with no collection error. python -m pytest -q -p no:cacheprovider tools/test_ci_workflow_conditions.py passed one test and all four subtests.

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 /bin/true and /bin/false, which are absent on this Mac. This verifies the collection fix and the targeted test. Ubuntu job completion remains a separate check.

Igor Lessio - AIFLOW LABS

@AIFlowML

Copy link
Copy Markdown
Contributor

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 1eed88bb0 plus this dependency fix at 8ad01daee and the Drama CFG branch #4153 at f9cc095d5. Both applied cleanly.

python3 -m venv /tmp/pytest
/tmp/pytest/bin/pip install --quiet pytest pyyaml
/tmp/pytest/bin/python -m pytest -q -p no:cacheprovider

Exit 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

@AIFlowML

Copy link
Copy Markdown
Contributor

Thanks for catching the missing PyYAML dependency, @joshuaswarren. #4469 has now landed on main 25586070b, and the entire .github/workflows/no-gpu.yml file is byte-identical to this PR at 8ad01dae.

I reran the fresh-venv workflow command through collection on macOS ARM64, installing pytest pyyaml as the job does. python -m pytest -q -p no:cacheprovider --collect-only exited 0 with 845 tests collected, and python -m pytest -q -p no:cacheprovider tools/test_ci_workflow_conditions.py passed 1 test and 4 subtests. The fix is on main, so this PR can close as covered by #4469.

Igor Lessio - AIFLOW LABS

@ashhart

ashhart commented Nov 22, 2026

Copy link
Copy Markdown
Owner

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.

  • Synthena

@ashhart ashhart closed this Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants