Repository navigation
Catch reshaped assertions, verify shared-fixture patches, drop the checker list - #117
Merged
Merged
Conversation
…ecker list Three gaps behind the 2026-09-04..06 task PRs on transformers. expectation_guard: rule 2 asks whether removing literals leaves both sides identical, so a *new identifier* reads as a real code change. transformers#48553 added `.flatten()` to `output.sequences.squeeze().tolist()` — an assertion rewrite wearing a method call — and was classified a real fix, keeping its verification claim. A residue difference explained entirely by shape/ordering operations appearing on one side is now expectation-only, reported with its own sentence. `.to(...)`/`.float()`/`.cpu()` stay out of the set: those change the value, not its shape, so a patch that adds one keeps its claim. verify: the gate re-runs the failure group's own node-ids, which is full coverage for a patch confined to those tests and no coverage at all for one that edits the scaffolding they share. transformers#48425 changed the `input_audio` `cached_property` from one 2-channel sample to two mono samples, verified its 6 targeted tests green, and left `test_to_rus_speech` — same class, same fixture — comparing a nested list against a flat expectation; #48553 then tried to paper over it. `patch_needs_collateral` spots a hunk that shows scaffolding (`setUp`, `tearDown`, `@cached_property`, `@classmethod`) or a `def` that is not one of the targeted tests, and turns the collateral suite on for that run even when `VERIFY_RUN_COLLATERAL` is off. Judged from the hunk text alone: the patch is the model's proposal, so its `@@` headers carry no function context to trust. prod.yaml: the normalizer spelled out 23 checker names instead of calling `make fix-repo`, and had drifted — `noisy_comments`, `reviewers` and `add_dates` were missing, so a patch could clear the gate and still land a red `check-code-quality` / `Check repository consistency`. transformers' Makefile derives `fix-repo` from the CI sets precisely so the list cannot drift, and its `checkers-requirements.txt` is already written for this `--network none` sandbox. `TRANSFORMERS_SKIP_CHECKER_REQUIREMENTS=1` keeps even the opt-in installs from burning retries. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.
Three gaps behind the 2026-09-04..06 task PRs on transformers.
expectation_guard: an assertion rewrite wearing a method callRule 2 asks whether removing literals leaves both sides identical, so a new identifier reads as a real code change. transformers#48553 added
.flatten()tooutput.sequences.squeeze().tolist()and was therefore classified a real fix, keeping its verification claim — for a patch that cannot make the test pass.A residue difference explained entirely by shape/ordering operations appearing on one side is now
expectation_only, with its own sentence inreason()("rewrites how an assertion compares its values… a shape or ordering difference is a sign the inputs changed")..to(...),.cpu(),.float()are deliberately not in the set: those change the value rather than its shape, so a patch adding one keeps its claim. The module stays a label, not a blocker.verify: the gate cannot see what it does not runextract_verify_targetsreturns the failure group's own node-ids, which is full coverage for a patch confined to those tests and none at all for one that edits scaffolding they share. transformers#48425 changed theinput_audiocached_propertyfrom one 2-channel sample to two mono samples, verified its 6 targeted tests green, and lefttest_to_rus_speech— same class, same fixture — comparing a nested list against a flat expectation. #48553 then tried to paper over that.patch_needs_collateral(patch, node_ids)spots a hunk that shows scaffolding (setUp,tearDown,setUpClass,@cached_property,@classmethod,@property) or adefthat is not one of the targeted tests, and_make_verify_gateturns the collateral suite on for that run even whenVERIFY_RUN_COLLATERALis off. The mechanism already existed; it just had to be asked for.It is judged from the hunk text alone — the patch is the model's proposal, so its
@@headers carry no function context to trust. A change inside a targeted test's body, or an expectation hunk whose context shows nodef, does not trigger it.prod.yaml: the checker list had driftedTASK_NORMALIZE_COMMANDspelled out 23 checker names instead of callingmake fix-repo, and was missingnoisy_comments,reviewersandadd_dates— all three of which transformers' CI runs. A patch could clear this gate and still land a redcheck-code-quality/Check repository consistency. (noisy_commentsis the one that stings: it flags comments that restate the code, which is exactly what an LLM patch adds.)transformers' Makefile derives
fix-repofrom the CI sets precisely so the list cannot drift, and itsutils/checkers-requirements.txtis already written for this--network nonesandbox (per-checker opt-in).TRANSFORMERS_SKIP_CHECKER_REQUIREMENTS=1keeps even those installs from burning retries.makeis guaranteed bydocker/Dockerfile.task-runner.948 passed, 3 skipped(tests/test_app.pydeselected — it needsflask, absent from my local env and unrelated).