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

bazel: never strip output binaries #128128

Merged
merged 1 commit into from
Aug 2, 2024
Merged

Conversation

rickystewart
Copy link
Collaborator

@rickystewart rickystewart commented Aug 1, 2024

To date, binaries are stripped by default when building with Bazel. We skip stripping for release binaries (via -c opt) and if you're building with the dev configuration (many developers use this configuration as dev doctor guides you to). This has led to some confusion as these mechanisms are non-obvious, leading some to wonder why their binaries are (or are not) stripped. We simplify this by never stripping. Since release binaries are not stripped, they are unaffected by this change. Only developers building without the dev config and CI jobs that don't set -c opt would be affected.

Epic: CRDB-17171

Release note: None

@rickystewart rickystewart requested a review from rail August 1, 2024 22:30
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rickystewart rickystewart added backport-23.1.x Flags PRs that need to be backported to 23.1 backport-23.2.x Flags PRs that need to be backported to 23.2. backport-24.1.x Flags PRs that need to be backported to 24.1. backport-24.2.x Flags PRs that need to be backported to 24.2 labels Aug 1, 2024
To date, binaries are stripped by default when building with Bazel. We
skip stripping for release binaries (via `-c opt`) and if you're
building with the `dev` configuration (many developers use this
configuration as `dev doctor` guides you to). This has led to some
confusion as these mechanisms are non-obvious, leading some to wonder
why their binaries are (or are not) stripped. We simplify this by
*never* stripping. Since release binaries are not stripped, they are
unaffected by this change. Only developers building without the `dev`
config and CI jobs that don't set `-c opt` would be affected.

Epic: CRDB-17171

Release note: None
@rickystewart
Copy link
Collaborator Author

bors r=rail

@craig craig bot merged commit 3754d0f into cockroachdb:master Aug 2, 2024
22 checks passed
Copy link

blathers-crl bot commented Aug 2, 2024

Encountered an error creating backports. Some common things that can go wrong:

  1. The backport branch might have already existed.
  2. There was a merge conflict.
  3. The backport branch contained merge commits.

You might need to create your backport manually using the backport tool.


error creating merge commit from 51dc6fb to blathers/backport-release-23.1-128128: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 23.1.x failed. See errors above.


🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1 backport-23.2.x Flags PRs that need to be backported to 23.2. backport-24.1.x Flags PRs that need to be backported to 24.1. backport-24.2.x Flags PRs that need to be backported to 24.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants