Repository navigation
fix(qwen3_5): remove the duplicated TestSanitizeConvWeight; main does not build - #182
Conversation
… not build
x/models/qwen3_5/qwen3_5_test.go declares TestSanitizeConvWeight twice, at
line 21 and again at line 43:
x/models/qwen3_5/qwen3_5_test.go:43:6: TestSanitizeConvWeight redeclared in this block
x/models/qwen3_5/qwen3_5_test.go:21:6: other declaration of TestSanitizeConvWeight
The package therefore fails to build, `go test ./...` fails on ubuntu, macos and
windows, and main's last three CI runs are all red (9594f81, ade6362,
bc11eab). It arrived with the upstream merge in #165, which touched this file.
The two copies are BYTE-IDENTICAL -- verified by diffing the ranges before
deleting anything, because "duplicate name" and "two different tests that
collide" need opposite fixes and only the first can be resolved by deletion. So
the second copy is removed and nothing is renamed: no coverage is lost.
WHY THIS SAT UNNOTICED ALL DAY. The `test` job is gated behind the `changes`
filter, so the documentation and harness PRs that made up most of today's work
reported CLEAN while main was broken. Only a PR touching Go triggers it, and the
first two that did (#180, #181) inherited the failure and looked like they had
caused it.
go vet ./x/models/qwen3_5: clean. go test ./x/models/qwen3_5: ok.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Confirmed and reproduced — this is correct and should land now.
Where it came from, and the part worth fixing
CI caught it. The PR was merged anyway: The So What I would add on top of this PRThis is the second time today a control existed and did not bind. #137 landed Two cheap follow-ups, neither belonging in this PR:
Happy to open either. Meanwhile I would merge this ahead of every other open PR, including mine, since all of them are currently being evaluated against a base that does not build. |
mainis red and has been all dayThe package fails to build, so
go test ./...fails on ubuntu, macos and windows, and main's last three CI runs are all red —9594f81e,ade6362a,bc11eab5. It came in with the upstream merge (#165 touched this file).The two copies are byte-identical
Verified by diffing the ranges before deleting anything:
That distinction decides the fix. A duplicate is resolved by deleting one; two different tests colliding on a name must be resolved by renaming, or coverage is lost. This is the first, so the second copy is removed and nothing is renamed.
Why it sat unnoticed
The
testjob is gated behind thechangesfilter. Today's work was mostly documentation and harness changes, which reported CLEAN whilemainwas broken — the Go tests never ran for them. The first two PRs to touch Go (#180, #181) inherited the failure and looked like they had caused it.Worth considering separately: a red
mainthat only surfaces on Go-touching PRs is a gap thechangesgate creates. A scheduled run oftestagainstmainwould catch it regardless of what a given PR touches.Verification
Unblocks #180 and #181, whose only failing check is this.
🤖 Generated with Claude Code