Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev: remove --strip=never configuration from .bazelrc.user #137804

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rickystewart
Copy link
Collaborator

@rickystewart rickystewart commented Dec 19, 2024

Previously we unconditionally disabled stripping; however, this has a negative impact on performance (linking gets much more expensive when you do not strip). This is a cost we paid both locally in the development cycle as well as in CI.

Removing this line from .bazelrc restores the default behavior of stripping iff the compilation_mode is fastbuild (which is the default). This will give developers the desired quick iteration behavior. You now have to opt into disabling stripping.

Going forward we may evaluate if it is worth it to disable stripping for unit tests in CI to enable the use of side-eye (#136839). Until that point, there is no reason to disable stripping in this context.

Stripping can be enabled with --strip=always or by passing -c dbg or -c opt. Notably, dev build --cross, the release process, and the roachtest nightlies all currently use -c opt when building, so there is nothing else to be done in these cases: they are all correctly not stripping.

Epic: CRDB-17171
Release note: None

@rickystewart rickystewart requested review from rail and jlinder December 19, 2024 22:29
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rickystewart rickystewart added the backport-24.3.x Flags PRs that need to be backported to 24.3 label Dec 19, 2024
Previously we unconditionally disabled stripping; however, this has a
negative impact on performance (linking gets much more expensive when
you do not strip). This is a cost we paid both locally in the
development cycle as well as in CI.

Removing this line from `.bazelrc` restores the default behavior of
stripping iff the `compilation_mode` is `fastbuild` (which is the
default). This will give developers the desired quick iteration
behavior. You now have to opt into disabling stripping.

Going forward we may evaluate if it is worth it to disable stripping
for unit tests in CI to enable the use of `side-eye` (cockroachdb#136839). Until
that point, there is no reason to disable stripping in this context.

Stripping can be enabled with `--strip=always` or by passing `-c dbg` or
`-c opt`. Notably, `dev build --cross`, the release process, and the
`roachtest` nightlies all currently use `-c opt` when building, so there
is nothing else to be done in these cases: they are all correctly not
stripping.

Epic: CRDB-17171
Release note: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-24.3.x Flags PRs that need to be backported to 24.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants