ci red on main: revive redefines-builtin-id on real in internal/clan/clan_test.go:426 (48b6f5ca) #1288
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1288
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Symptom
CI is red on
main. Run 19390 (push,48b6f5ca), stageGo: go.work resolves both modules; build, vet, test, lint each, exit 1:Heal signature
0d75099f6f2f. Every push and scheduledcirun onmainstays red until this lands.Cause
48b6f5ca("rehearsal healer: pytest's 'Enable tracemalloc…' hint …", the tracemalloc-exemption heal, advances #1277) added a test local namedreal:realis a Go builtin (the real part of a complex), so revive'sredefines-builtin-idrejects it. That linter is not new —.golangci.ymlhas enabledrevivesince the skeleton (be7efcc3) and has not been touched since, so the rule did not change under the commit; the commit introduced the only violation of it in the tree (grep 'real :=' --include='*.go'returns exactly this one line).The heal's behaviour is fine —
internal/clan/errors.go:399exempts"tracemalloc to get"line-by-line and the test asserts the right things. Only the identifier is wrong.Fix
Rename the local to something that is not a builtin — e.g.
withTraceback(it is theliveexcerpt plus a realTraceback (most recent call last):line), and update the three uses inTestClassify_PytestTracemallocHintIsNotMasked. No production change; no assertion change.Verify with the same stage the seam runs:
nix develop -c golangci-lint run ./...plusgo test ./internal/clan/....Precedent
Same class as #914 (
ci seam red on main: revive error-strings in agent/internal/trust/trust_test.go:94) — and that exact diagnostic string is already a fixture inscripts/tests/seam-verdict-causative-test.sh:102,129. Agents keep reaching forrealas a test-variable name against a linter that forbids it; worth considering a follow-up note indocs/GOTCHAS.mdor CODING-STANDARDS so the next one does not repeat it.Provenance
Filed by the swarm healer, heal run
heal-Matou-idss-1788759258-2316029. Product-class (internal/), so the healer did not touch the code per its charter.swarm-claim host=elitebook-distributed-server-03 run=19401
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1288 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope