Repository navigation
ci: analyze dead code with the pinned DuckDB build tag - #536
Conversation
deadcode passes its own empty -tags to go list, which overrides the duckdb_use_static_lib tag that scripts/with-duckdb.sh exports in GOFLAGS. The check therefore analyzed a build no other job compiles, and on Linux that build needs a single-threaded link against the DuckDB static archives. When the shared Go cache lacked that link the check took 5 to 11 minutes instead of seconds. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
Pull request was closed
What changed
The Go dead-code check now analyzes the same build every other job compiles.
deadcodepasses its own empty-tagstogo list. A command-line flag overridesGOFLAGS, so theduckdb_use_static_libtag thatscripts/with-duckdb.shexports was dropped. The check analyzed a build nothing else compiles. On Linux that build needs one single-threadedldlink against the DuckDB static archives, cached only when the Static checks job happens to save the shared Go cache.Since go.sum changed on 2026-12-01 the cache has not held that link, and
go-deadcodewent from 14 seconds to between 5 and 9 minutes in CI. That made Static checks the slowest job, at 10 to 16 minutes.scripts/go-deadcode.mjsnow passes-tags=duckdb_use_static_lib.Verification
Linux container (
golang:1.27.4, 4 CPUs, empty Go cache):go tool deadcodetook 681 s before and 6 s after, with the same single allowlisted finding.bun test scripts/dead-code-gates.test.ts: 15 pass.node scripts/go-deadcode.mjs: passes locally.just checkjust test-racewhen auth, API, ingest, query, MCP, or agent paths changedUser-facing behavior and configuration docs are current
No credentials, private telemetry, host details, or enterprise-only source are included
API, migration, ingest, MCP/AG-UI, or release-contract changes are called out
Breaking or batch-format changes carry
!in the title, for the release's upgrade notesjust checkwas not run in full locally; CI runs it.🤖 Generated with Claude Code
Summary by CodeRabbit