Skip to content

refactor(tests): remove tests that force a version or a setting - #7234

Merged
dan-petty merged 2 commits into
mainfrom
test/7229-remove-version-forcing-tests
Nov 25, 2026
Merged

dan-petty merged 2 commits into
mainfrom
test/7229-remove-version-forcing-tests

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Some tests forced a specific version or setting. Such a test failed when a dependency, a manifest, a default or an instruction text changed, although no interface changed: 19 of 109 dependency update commits since 2026-11-01 had to change a file under src/ or tests/.

This change removes 160 test functions that hold a value of a real manifest, workflow or config file, a default or a constant, also where the test guarded a safety property (owner decision of 2026-11-25). 33 tests of source code stay and now compare with the constant or the setting. A test that applies one generic rule and holds no literal of a real file stays, for example "each action is pinned by a commit SHA". The tests that read a committed config file fall from 245 to 127 in config_reads.toml. Under src/ only comments change.

Closes #7229

Change: openspec/changes/archive/2026-11-25-7229-remove-version-forcing-tests/

Remove 160 test functions that hold a value of a real manifest, workflow
or config file, a default or a constant, and the helpers and fixtures
that only they used. Change 33 tests of source code so that they compare
with the constant or the setting. Lower the counts of config_reads.toml
and correct the documents and comments that named a removed test.
@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/tests The test suite, its fixtures, fakes and floor labels Nov 25, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 25, 2026 20:08
@dan-petty
dan-petty merged commit f1bacff into main Nov 25, 2026
38 checks passed
@dan-petty
dan-petty deleted the test/7229-remove-version-forcing-tests branch November 25, 2026 20:11
dan-petty-release Bot added a commit that referenced this pull request Nov 25, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.221.5](v0.221.4...v0.221.5)
(2026-11-25)


### Code Refactoring

* **tests:** remove tests that force a version or a setting
([#7234](#7234))
([f1bacff](f1bacff))

---
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/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(tests): remove tests that force a version or a setting

1 participant