ci: add deadcode check - #84
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 7, 2026, 11:40 PM ET / 03:40 UTC. Summary Reproducibility: not applicable. this is a CI cleanup PR, not a user-facing bug report. The relevant check is whether the PR head passes the new workflow gate. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the new deadcode gate only after the protected CI/toolchain owners accept the enforcement policy and CI passes on the current PR head. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a CI cleanup PR, not a user-facing bug report. The relevant check is whether the PR head passes the new workflow gate. Is this the best way to solve the issue? Yes: placing the check in the existing lint job is the narrow maintainable path if maintainers want deadcode to be enforced. The only safer alternative is to make it non-blocking until the CI policy is accepted. AGENTS.md: not found in the target repository. Codex review notes: model gpt-5.5, reasoning high; reviewed against f1ca1ceabac1. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Summary
golang.org/x/tools/cmd/deadcode@v0.45.0Validation
git diff --checkgo run golang.org/x/tools/cmd/deadcode@v0.45.0 -test ./...GOTOOLCHAIN=go1.26.4+auto go test -count=1 ./...GOTOOLCHAIN=go1.26.4+auto go run golang.org/x/vuln/cmd/govulncheck@v1.3.0 ./...go build ./cmd/discrawlautoreview --mode branch --base origin/main --no-web-search --thinking lowclean