Report tests a pull request branch removes from the default branch #43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dario/report-removed-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Evidence
On #28, the local model's merge
5c0c029dropped main'sTestRoleAuthorfrominternal/config/config_test.go. That was the test that would have failed, becauserefinehad no footer name yet.20261120-131013-…-401ce9, session kept) turned "Restore it unchanged and make it pass" into "FixTestRoleAuthorby adding refiner" in its plan. It never checked whether the test existed, and reported in comment 392 that it was fixed.untestedcheck didn't fire, because test files did change.The skill already forbids changing the default branch's tests during a merge (step 1.4). The local model didn't follow it, and nothing else noticed.
Changes
internal/dispatch: after a run with a pull request branch,removedTestscompares the branch with its merge base with the default branch.Test*/Benchmark*/Fuzz*/Example*, Pythontest_*, JS/TSit(...)/test(...)).removed_tests, and a line in the run report: "Removes tests that the default branch has: … If that is intended, the pull request says why."skills/implement-issue/SKILL.md, step 5.4: check the diff for removed tests; a merge keeps all of the default branch's tests; an intended removal is named and justified in the test evidence.skills/review-pr/SKILL.md: a removed test without a reason that holds is a blocking issue.conflictsanduntested.Test evidence
just check: passesTestRemovedTests(real git):TestRemovedTestsAreReported: a run whose branch emptiesx_test.goreportsx_test.go: TestXin the outcome and the run report.🤖 Generated with Claude Code