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
fix(tests): a default run deselects every test under tests/k8s #5910
effort/lowEffort Low: little workpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/testsThe test suite, its fixtures, fakes and floorsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
A default test run deselects every test under tests/k8s/: 819 tests, offline tests included. _deselect_by_marker(config, items, "k8s") in tests/conftest.py (from #4007, commit 729dbeb, 2026-11-15) checks "k8s" in item.keywords. pytest puts the name of each parent package in the keywords, so the package tests/k8s matches, and not only the tests marked k8s. With -m k8s the tests are deselected too, because they carry no mark.
Evidence on origin/main (0.159.0):
uv run pytest -n 0 --co -q tests/k8s/ prints no tests collected (819 deselected).
uv run devops ci test tests/k8s/test_k8s_configmap.py prints 21 deselected / 0 selected.
uv run pytest -n 0 -m "k8s or not k8s" tests/k8s/test_k8s_configmap.py runs the 21 tests.
So CI has run no test of tests/k8s/ since 2026-11-15, and a change that breaks one passes the checks. #5903 found this when it changed k8s/devops/configmap.example.yaml.
Expected behavior
A default run deselects only the tests that carry the mark k8s, for example with item.get_closest_marker("k8s").
The offline tests under tests/k8s/ run in CI again.
A test fails if a default run deselects a test that has no k8s mark.
Priority: P1-High. CI has run zero tests under tests/k8s since 2026-11-15, so regressions in that area pass unchecked. The regression commit 729dbeb does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 with the label priority/p0-critical.
Related: fix(ci): narrowed test workers fall back and slow runs #5606, which asks for a different change. Both affect CI test execution, but #5606 fixes a collection exit-code fallback while this fixes a marker-detection bug that silently skips 819 tests.
effort/lowEffort Low: little workpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/testsThe test suite, its fixtures, fakes and floorsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
Activity
dan-petty commentedon Nov 16, 2026
CI has run zero tests under tests/k8s since 2026-11-15, so regressions in that area pass unchecked.The regression commit 729dbeb does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 with the label priority/p0-critical.Both affect CI test execution, but #5606 fixes a collection exit-code fallback while this fixes a marker-detection bug that silently skips 819 tests.fix(tests): deselect only tests that carry k8s marker (#5910)
chore(main): release 0.160.0 (#5907)
devops-cli-service commentedon Nov 16, 2026
Released in v0.160.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.160.0
devops-cli-service commentedon Nov 16, 2026
Live since 2026-11-16 03:02 UTC