You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: the local gate's lint lane fails without a system PyYAML (test_ccache_launcher_installed.py) #1196
On master, the lint lane of the local gate fails on a host without a system PyYAML:
$ ./lint
...
==== test_ccache_launcher_installed.py
ModuleNotFoundError: No module named 'yaml'
FAILED (errors=1)
== lane lint: FAILED (1)
Seen on Debian 13 (system Python 3.13 without python3-yaml) on ee120df9f. With uv run --with pyyaml ci/local_gate.py --lane lint the lane passes.
Cause
ci/test_ccache_launcher_installed.py (from #1183 / #1184) declares PyYAML as an inline script dependency:
# /// script# dependencies = ["pyyaml"]# ///
That metadata only applies when the file runs as a script (uv run --script ci/test_ccache_launcher_installed.py). The gate runs every ci/test_*.py as a module, sys.executable -m unittest discover -s ci -p <file> (ci/local_gate.py), and CI's "ci/ Self-Tests" step runs uv run python -m unittest discover -s ci -p "test_*.py". Neither installs the inline dependency. CI passes only because its runner's Python already has PyYAML. It is the only ci/test_*.py with an inline dependency; the other tests use the standard library only.
Fix options
Read the workflow without PyYAML in this test (the check needs only the step order and the run: text of build-project.yaml), so that ci/test_*.py stays standard-library only.
Declare PyYAML for the ci/ tests where both runners see it (for example run the gate's unittest and CI's self-tests with uv run --with pyyaml), and add a check that no ci/test_*.py has inline dependencies that the runners ignore.
Option 1 keeps the current rule ("plain-Python ci/ tests", check-format.yaml) intact.
Test plan
RED: a ci/ test that fails when a ci/test_*.py imports a module outside the standard library (or declares inline dependencies). GREEN: the chosen fix.
Claiming: branch fix/ci-tests-stdlib-only. Plan: option 1 (read the workflow without PyYAML), with a RED check that every ci/test_*.py imports only the standard library and ci/ modules.
Activity
vpacher commentedon Oct 17, 2026
Claiming: branch
fix/ci-tests-stdlib-only. Plan: option 1 (read the workflow without PyYAML), with a RED check that everyci/test_*.pyimports only the standard library andci/modules.ci: Keep the ci/ tests standard-library only (no PyYAML) (obs-rust#1199)
benchmarks: Record full-app recording runs and report the 5% gate (Refs