Skip to content

fix(ci): run single-module narrowed tests serially (#5612) - #7196

Merged
dan-petty merged 1 commit into
mainfrom
fix/5612-single-module-serial-tests
Nov 25, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/5612-single-module-serial-tests

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Run a narrowed devops ci test pass that covers zero or one test module serially (-n 0) without spawning a --collect-only pytest subprocess, while keeping multi-module threshold selection and explicit -n overrides unchanged.

  • Return "0" early in _narrowed_workers (src/devops_cli/commands/ci.py) when len(targets) <= 1.
  • Clarify the single-module serial behavior in HELP.ci.num_workers (src/devops_cli/lang/en/help.py), docs/TESTING.md, and generated CLI docs (docs/commands/ci.md, docs/CLI_REFERENCE.md).
  • Update two-module collection tests and add unit tests in tests/commands/test_test_selection.py and tests/commands/test_ci_repeat.py.

Closes #5612
Change: openspec/changes/archive/2026-11-25-5612-single-module-serial-tests/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Nov 25, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 25, 2026 16:51
@dan-petty
dan-petty merged commit 7b3289c into main Nov 25, 2026
43 of 47 checks passed
@dan-petty
dan-petty deleted the fix/5612-single-module-serial-tests branch November 25, 2026 16:52
dan-petty-release Bot added a commit that referenced this pull request Nov 25, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.220.0](v0.219.0...v0.220.0)
(2026-11-25)


### Features

* **ai:** enforce gateway first-token timeout
([#6000](#6000))
([#7198](#7198))
([af6958c](af6958c))
* **github:** request dan-petty and automerge all PRs
([#7195](#7195))
([681c6c3](681c6c3))


### Bug Fixes

* **ci:** check ADDED/MODIFIED requirement length
([#5378](#5378))
([#7194](#7194))
([4712043](4712043))
* **ci:** run single-module narrowed tests serially
([#5612](#5612))
([#7196](#7196))
([7b3289c](7b3289c))
* **config:** refuse typesafe/jev-router as decision model
([#6361](#6361))
([#7197](#7197))
([46777dd](46777dd))
* **terraform:** exit non-zero on drift or failed check
([#7193](#7193))
([f24cfc2](f24cfc2)),
closes [#5319](#5319)

---
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/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners 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(ci): a narrowed run of fast tests starts 4 workers

1 participant