Repository navigation
fix(roadmap): judge a pyproject tool setting by its diff - #6089
Conversation
ab74676 to
6cccf92
Compare
Fix of the failing checksThe branch is rebased onto
Proof: The body of the pull request now names the new replay total. Note: no production caller passes |
6cccf92 to
41849c5
Compare
Follow-up: Fail-to-PassNew head
Proof: |
A change that edits only tool settings in pyproject.toml needs no spec delta. The paths gate read the whole file instead of its diff, so a change of a tool setting failed when other tables existed. Now the stage check parses the diff of pyproject.toml with unidiff. When every changed key is under a [tool.*] table, the check refuses a spec delta. When another table changes or when a dependency changes, the check accepts a spec delta. Case 2163 in the golden set now moves from missed to caught. Closes #3491
mypy refused the import of PatchSet from the unidiff package, which does not export it; it now comes from unidiff.patch, as in implement_eval_properties.py. A diff that unidiff cannot parse raises UnidiffParseError, so the check catches that class, not every exception. The diff of case 2163 was a constant of stage_eval_gates.py, keyed by the issue number. It is now the pyproject_diff of the facts file of the case, as task 2.1 of the change says, so product code holds no case. The paths gate now judges case 2163, so the replay judges 86 of the 322 known defects, not 85. The replay tests record the new total.
A new key in facts.json fails to load on a base whose CaseFacts does not know it, so every test that loads the golden set failed on base and the Fail-to-Pass check refused the change. The diff now sits in pyproject.diff in the case folder, which the loader reads into pyproject_diff when it is present, as it reads trace.json.
Changed-line coverage was 87%, under the floor of 90%: no test reached an empty diff, a file other than pyproject.toml, a table header that only the base file holds, an added table header, a comment or blank line, or the no-newline marker. One parametrized test gives each case and the answer it must get.
41849c5 to
7d55799
Compare
Follow-up: changed-line coverageNew head
Finding: the classifier resolves a removed line only from the base text. With no base text, a removed key under Proof: the eval tests give 156 passed, and |
🤖 I have created a release *beep* *boop* --- ## [0.171.0](v0.170.0...v0.171.0) (2026-11-17) ### Features * **roadmap:** Run review scanners in the runner pod ([#6114](#6114)) ([ddde85a](ddde85a)) * **service:** Roll the Service with a surge release ([#6146](#6146)) ([a459b65](a459b65)) ### Bug Fixes * **k8s:** Run kube-linter on the Argo CD builds in CI ([#6112](#6112)) ([dba90f1](dba90f1)), closes [#6068](#6068) * **k8s:** Take the k8s area of the config-read list to zero ([#6124](#6124)) ([0857ee5](0857ee5)), closes [#6119](#6119) * **roadmap:** judge a pyproject tool setting by its diff ([#6089](#6089)) ([0a787eb](0a787eb)), closes [#3491](#3491) * **roadmap:** Name both command registration forms ([#6148](#6148)) ([0d3b1e1](0d3b1e1)) * **roadmap:** Read the files of a named pull request ([#6144](#6144)) ([5a29fed](5a29fed)) * **roadmap:** refuse a placeholder group title in a plan ([#6092](#6092)) ([cfd820b](cfd820b)) * **service:** the metrics row sends too many counted requests ([#6095](#6095)) ([b3fc5dc](b3fc5dc)) --- 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>
A change that edits only tool settings in pyproject.toml needs no spec delta. The paths gate read the whole file instead of its diff, so a change of a tool setting failed when other tables existed.
Now the stage check parses the diff of pyproject.toml with unidiff. When every changed key is under a [tool.*] table, the check refuses a spec delta. When another table changes or when a dependency changes, the check accepts a spec delta.
The folder of case 2163 holds its pyproject.toml diff in
pyproject.diff, which the case loader reads when it is present, so the replay judges the case with the gatepaths. The replay now judges 86 of the 322 known defects, not 85, and the replay tests record the new total.Closes #3491
Change:
openspec/changes/archive/2026-11-17-3491-pyproject-tool-diff/