Skip to content

fix(ci): the fail-to-pass replay clears the addopts - #6593

Merged
dan-petty merged 1 commit into
mainfrom
fix/5599-replay-keeps-addopts
Nov 21, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/5599-replay-keeps-addopts

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The fail-to-pass replay started pytest with -o addopts=, which sets the addopts of the tree to empty. A test that reads addopts, such as test_the_full_gate_collects_every_test_module, then failed on base and on head, and the check exited 1 for each fix that changes tests/commands/test_test_selection.py.

The replay now gives -n 0 in place of -o addopts=. It keeps addopts, so it also keeps the -p no:randomly, the logfire blocks and the Hypothesis ci profile of a normal run. -n 0 overrides -n logical, so the replay starts no xdist worker and takes no gate slot, as before. addopts holds no --cov, so the replay needs no --no-cov.

Closes #5599

Change: openspec/changes/archive/2026-11-21-5599-replay-keeps-addopts/

The replay gave `-o addopts=`, so a test that reads addopts failed on base
and on head, and the replay ran with pytest-randomly and without the
Hypothesis ci profile. The replay now gives `-n 0`: it keeps addopts and
starts no xdist worker.

Closes #5599
@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 21, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 21, 2026 05:48
@dan-petty
dan-petty merged commit 8bc7afc into main Nov 21, 2026
25 checks passed
@dan-petty
dan-petty deleted the fix/5599-replay-keeps-addopts branch November 21, 2026 05:58
dan-petty-release Bot added a commit that referenced this pull request Nov 21, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.187.0](v0.186.0...v0.187.0)
(2026-11-21)


### Features

* **roadmap:** read project review facts through a catalog
([#6586](#6586))
([752c6ed](752c6ed))


### Bug Fixes

* **ci:** the fail-to-pass replay clears the addopts
([#6593](#6593))
([8bc7afc](8bc7afc)),
closes [#5599](#5599)


### Performance Improvements

* **roadmap:** share the listing snapshot and facts in Valkey
([#6583](#6583))
([b2a277b](b2a277b))

---
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): the fail-to-pass replay clears the addopts

1 participant