cockroachdb / cockroachdb/cockroach

bazel: speed up `dev gen go` (`//pkg/gen:code`)

Open
#123,164 0 comments 0 reactions 0 assignees View on GitHub
A-build-system C-enhancement T-dev-inf
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

This is far and away the slowest part of code generation (`dev gen`). We should eliminate dependencies wherever possible to make this faster.

See also #123159

Epic: [CRDB-17171](https://cockroachlabs.atlassian.net/browse/CRDB-17171)

Jira issue: CRDB-38220

Epic CRDB-17171

Contributor guide

Open the contributing guide

Research direction

Start at the `//pkg/gen:code` Bazel target invoked by `dev gen go`, and review the related issue #123159 for context. Inspect its dependency graph and measure the current code-generation time; done means removing unnecessary dependencies and making this generation step faster.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.