Skip to content

fix(tests): deselect only tests that carry k8s marker - #5915

Merged
dan-petty merged 1 commit into
mainfrom
fix/5910-k8s-marker-deselect
Nov 16, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/5910-k8s-marker-deselect

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

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 checked "k8s" in item.keywords. pytest puts parent package and directory names in item.keywords, so the package tests/k8s matched and caused all tests under tests/k8s/ to be deselected.

Closes #5910

Change: openspec/changes/archive/2026-11-16-5910-k8s-marker-deselect/

tests/conftest.py checked marker in item.keywords. pytest adds directory names to item.keywords, which deselected every test in tests/k8s. Use item.get_closest_marker to deselect only tests that carry the mark.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/tests The test suite, its fixtures, fakes and floor labels Nov 16, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 16, 2026 01:44
@dan-petty
dan-petty merged commit e6904f5 into main Nov 16, 2026
22 checks passed
@dan-petty
dan-petty deleted the fix/5910-k8s-marker-deselect branch November 16, 2026 02:10
dan-petty pushed a commit that referenced this pull request Nov 16, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.160.0](v0.159.0...v0.160.0)
(2026-11-16)


### Features

* **roadmap:** add toolset comparison to the stage eval
([#5786](#5786))
([27b6d39](27b6d39))
* **roadmap:** fix simple stage gate problems with no model call
([#5902](#5902))
([7d0b38d](7d0b38d))
* **roadmap:** Give each attempt its own strategy
([#5898](#5898))
([a4390b2](a4390b2))
* **roadmap:** name the test module for a changed function
([#5912](#5912))
([7bd61b3](7bd61b3))
* **roadmap:** one watch row for plan and delivery PRs
([#5906](#5906))
([85b15fa](85b15fa)),
closes [#5024](#5024)
* **roadmap:** rebase staged branch onto main before implement
([#5921](#5921))
([42fbc79](42fbc79))


### Bug Fixes

* **k8s:** the config template holds the job limits
([#5913](#5913))
([c1f3259](c1f3259)),
closes [#5583](#5583)
* **roadmap:** each job reads a model setting of its own
([#5909](#5909))
([11390b4](11390b4))
* **roadmap:** Measure and bound the repair return request
([#5883](#5883))
([c5b21a3](c5b21a3))
* **roadmap:** return unbuildable premise items during stage
([#5917](#5917))
([0a7e45c](0a7e45c))
* **tests:** deselect only tests that carry k8s marker
([#5915](#5915))
([e6904f5](e6904f5)),
closes [#5910](#5910)


### Performance Improvements

* **cli:** Cut the shared import cost of a CLI start
([#5890](#5890))
([836cec5](836cec5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/tests The test suite, its fixtures, fakes and floor type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(tests): a default run deselects every test under tests/k8s

1 participant