Repository navigation
bazel: Generate the build id linker scripts locally - #49288
Merged
Merged
Conversation
`gnu_build_id`/`raw_build_id` write a one-line linker script from the stamp, so they are new with every commit, and every stamped link (the release and test binaries) waits on them. Remotely each waits in the RBE queue for a trivial action: ~20s when the default pool is busy (measured in envoy-ci-staging), and more when it is busier. They run locally, as `volatile-scm-hash` does. Signed-off-by: Ryan Northey <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the change to keep build-ID generation off remote executors.
No open issues 🎉
What changed in this PR
Keeps Envoy’s small stamped build-ID generation actions off remote executors, avoiding remote queue delays on the linking critical path.
Changes:
- Adds
no-remote-execto thegnu_build_idand macOSraw_build_idgeneration rules. - Adds comments explaining the scheduling rationale; generated contents remain unchanged.
| File | Description |
|---|---|
bazel/BUILD |
Disables remote execution for both build-ID generation rules and documents why. |
Review effort: Balanced
ravenblackx
approved these changes
Nov 16, 2026
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
`//bazel:gnu_build_id` (and `raw_build_id` on macOS) write a one-line linker script from the stamp (`BUILD_SCM_REVISION`), so they are new with every commit, and every stamped link (release and test binaries) waits on them. They have no tags, so on RBE each is a remote action queued on the default pool, for an `echo`. In envoy-ci-staging the publish build's `gnu_build_id` spent 19.2s queued (21.7s in all) on the critical path while the pool was busy; locally it takes 1.7s. On a quiet pool, or a fast client, it is hidden behind the client's processing of the cached compiles (the links wait on those until ~50s there anyway), so this is a guard against queueing rather than a saving on every build. Tagged `no-remote-exec`, as `volatile-scm-hash` (next to them) is. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit f0ebe46) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
`//bazel:gnu_build_id` (and `raw_build_id` on macOS) write a one-line linker script from the stamp (`BUILD_SCM_REVISION`), so they are new with every commit, and every stamped link (release and test binaries) waits on them. They have no tags, so on RBE each is a remote action queued on the default pool, for an `echo`. In envoy-ci-staging the publish build's `gnu_build_id` spent 19.2s queued (21.7s in all) on the critical path while the pool was busy; locally it takes 1.7s. On a quiet pool, or a fast client, it is hidden behind the client's processing of the cached compiles (the links wait on those until ~50s there anyway), so this is a guard against queueing rather than a saving on every build. Tagged `no-remote-exec`, as `volatile-scm-hash` (next to them) is. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit f0ebe46) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Nov 17, 2026
`//bazel:gnu_build_id` (and `raw_build_id` on macOS) write a one-line linker script from the stamp (`BUILD_SCM_REVISION`), so they are new with every commit, and every stamped link (release and test binaries) waits on them. They have no tags, so on RBE each is a remote action queued on the default pool, for an `echo`. In envoy-ci-staging the publish build's `gnu_build_id` spent 19.2s queued (21.7s in all) on the critical path while the pool was busy; locally it takes 1.7s. On a quiet pool, or a fast client, it is hidden behind the client's processing of the cached compiles (the links wait on those until ~50s there anyway), so this is a guard against queueing rather than a saving on every build. Tagged `no-remote-exec`, as `volatile-scm-hash` (next to them) is. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit f0ebe46) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
`//bazel:gnu_build_id` (and `raw_build_id` on macOS) write a one-line linker script from the stamp (`BUILD_SCM_REVISION`), so they are new with every commit, and every stamped link (release and test binaries) waits on them. They have no tags, so on RBE each is a remote action queued on the default pool, for an `echo`. In envoy-ci-staging the publish build's `gnu_build_id` spent 19.2s queued (21.7s in all) on the critical path while the pool was busy; locally it takes 1.7s. On a quiet pool, or a fast client, it is hidden behind the client's processing of the cached compiles (the links wait on those until ~50s there anyway), so this is a guard against queueing rather than a saving on every build. Tagged `no-remote-exec`, as `volatile-scm-hash` (next to them) is. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit f0ebe46) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
`//bazel:gnu_build_id` (and `raw_build_id` on macOS) write a one-line linker script from the stamp (`BUILD_SCM_REVISION`), so they are new with every commit, and every stamped link (release and test binaries) waits on them. They have no tags, so on RBE each is a remote action queued on the default pool, for an `echo`. In envoy-ci-staging the publish build's `gnu_build_id` spent 19.2s queued (21.7s in all) on the critical path while the pool was busy; locally it takes 1.7s. On a quiet pool, or a fast client, it is hidden behind the client's processing of the cached compiles (the links wait on those until ~50s there anyway), so this is a guard against queueing rather than a saving on every build. Tagged `no-remote-exec`, as `volatile-scm-hash` (next to them) is. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit f0ebe46) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
`//bazel:gnu_build_id` (and `raw_build_id` on macOS) write a one-line linker script from the stamp (`BUILD_SCM_REVISION`), so they are new with every commit, and every stamped link (release and test binaries) waits on them. They have no tags, so on RBE each is a remote action queued on the default pool, for an `echo`. In envoy-ci-staging the publish build's `gnu_build_id` spent 19.2s queued (21.7s in all) on the critical path while the pool was busy; locally it takes 1.7s. On a quiet pool, or a fast client, it is hidden behind the client's processing of the cached compiles (the links wait on those until ~50s there anyway), so this is a guard against queueing rather than a saving on every build. Tagged `no-remote-exec`, as `volatile-scm-hash` (next to them) is. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit f0ebe46) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
`//bazel:gnu_build_id` (and `raw_build_id` on macOS) write a one-line linker script from the stamp (`BUILD_SCM_REVISION`), so they are new with every commit, and every stamped link (release and test binaries) waits on them. They have no tags, so on RBE each is a remote action queued on the default pool, for an `echo`. In envoy-ci-staging the publish build's `gnu_build_id` spent 19.2s queued (21.7s in all) on the critical path while the pool was busy; locally it takes 1.7s. On a quiet pool, or a fast client, it is hidden behind the client's processing of the cached compiles (the links wait on those until ~50s there anyway), so this is a guard against queueing rather than a saving on every build. Tagged `no-remote-exec`, as `volatile-scm-hash` (next to them) is. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit f0ebe46) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
`//bazel:gnu_build_id` (and `raw_build_id` on macOS) write a one-line linker script from the stamp (`BUILD_SCM_REVISION`), so they are new with every commit, and every stamped link (release and test binaries) waits on them. They have no tags, so on RBE each is a remote action queued on the default pool, for an `echo`. In envoy-ci-staging the publish build's `gnu_build_id` spent 19.2s queued (21.7s in all) on the critical path while the pool was busy; locally it takes 1.7s. On a quiet pool, or a fast client, it is hidden behind the client's processing of the cached compiles (the links wait on those until ~50s there anyway), so this is a guard against queueing rather than a saving on every build. Tagged `no-remote-exec`, as `volatile-scm-hash` (next to them) is. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit f0ebe46) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 18, 2026
`//bazel:gnu_build_id` (and `raw_build_id` on macOS) write a one-line linker script from the stamp (`BUILD_SCM_REVISION`), so they are new with every commit, and every stamped link (release and test binaries) waits on them. They have no tags, so on RBE each is a remote action queued on the default pool, for an `echo`. In envoy-ci-staging the publish build's `gnu_build_id` spent 19.2s queued (21.7s in all) on the critical path while the pool was busy; locally it takes 1.7s. On a quiet pool, or a fast client, it is hidden behind the client's processing of the cached compiles (the links wait on those until ~50s there anyway), so this is a guard against queueing rather than a saving on every build. Tagged `no-remote-exec`, as `volatile-scm-hash` (next to them) is. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit f0ebe46) Signed-off-by: Ryan Northey <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Message: bazel: Generate the build id linker scripts locally
Additional Description:
//bazel:gnu_build_id(andraw_build_idon macOS) write a one-line linker script from the stamp (BUILD_SCM_REVISION), so they are new with every commit, and every stamped link (release and test binaries) waits on them. They have no tags, so on RBE each is a remote action queued on the default pool, for anecho.In envoy-ci-staging the publish build's
gnu_build_idspent 19.2s queued (21.7s in all) on the critical path while the pool was busy; locally it takes 1.7s. On a quiet pool, or a fast client, it is hidden behind the client's processing of the cached compiles (the links wait on those until ~50s there anyway), so this is a guard against queueing rather than a saving on every build.Tagged
no-remote-exec, asvolatile-scm-hash(next to them) is.Risk Level: low
Testing: CI, envoy-ci-staging
Docs Changes: n/a
Release Notes: n/a