Repository navigation
refactor(tests): remove tests that force a version or a setting - #7234
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 25, 2026 20:08
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/ortests/.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. Undersrc/only comments change.Closes #7229
Change:
openspec/changes/archive/2026-11-25-7229-remove-version-forcing-tests/