Skip to content

distribution/docker: Use the compressed .dwps in the debug images - #49354

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:docker-debug-dwp-joined
Nov 17, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:docker-debug-dwp-joined

Conversation

@phlax

@phlax phlax commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Commit Message: distribution/docker: Use the compressed .dwps in the debug images

Additional Description:

The debug images (envoy-debug, envoy-contrib-debug) took the .dwps as llvm-dwp writes them: debug sections uncompressed (over 3GB for contrib, per arch), each a single blob in the remote cache.

#49294 added the .dwps with their debug sections compressed (zlib, which the images' gdb 12 reads) and cached in parts (//distribution:envoy-dwarf-joined, //distribution:envoy-contrib-dwarf-joined), but only the release tarball (//distribution/binary) used them. The images are no longer built from that tarball (#49259), and release.multiarch does not build it (#49331), so nothing published had them.

This points the images' .dwps at the -joined targets, as the comment on the debug layers in this file already describes.

Risk Level: low (the .dwp in the published debug images; the same file the release tarball has had since #49294)
Testing: this PR's Publish (release.multiarch), against the postsubmit of its base (499b706), from the Bazel profiles:

base this PR
oci.x64 / oci.arm64 artifacts 4.10GB / 4.06GB 3.29GB / 3.24GB
Writing the envoy-debug layer (per arch) 159s, 101s 31s, 9s
Writing the envoy-contrib-debug layer (per arch) 121s, 96s 29s, 25s
OCI descriptor of the debug layers 29-54s 9-12s
Compressing the .dwps (new here, remote) - 101-118s
Joining the parts (new here, local) - 7-20s

The compression runs whenever a .dwp changes, so it is not a critical path win by itself (bazel took 360s here, 443s on the base, where the .dwps were regenerated and here were not): the gain is the smaller images and layers, and no multi-GB .dwp blob to fetch.
Docs Changes: n/a
Release Notes: n/a

The debug images took the `.dwp`s as llvm-dwp writes them, with their
debug sections uncompressed (over 3GB for contrib, per arch), and each
as a single blob in the remote cache. The compressed `.dwp`s, cached in
parts (envoyproxy#49294), were only used by the release tarball, which the
images are no longer built from (envoyproxy#49259) and `release.multiarch` does
not build (envoyproxy#49331).

Use them for the images too.

Signed-off-by: Ryan Northey <[email protected]>
@repokitteh-read-only

Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #49354 was opened by phlax.

see: more, trace.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The debug-image packaging change has no active review issues blocking approval.

No open issues 🎉

What changed in this PR

Updates debug-image packaging to use the existing compressed DWARF packages, so published images receive compressed debug information without depending on the release tarball.

Changes:

  • Points core and contrib debug images to their respective -dwarf-joined targets.
  • Clarifies the build comment to describe compressed .dwp debug sections.
File Description
distribution/​docker/​BUILD Selects compressed, reassembled DWARF packages for both debug images.

Review effort: Balanced

@phlax phlax changed the title [WIP] distribution/docker: Use the compressed .dwps in the debug images distribution/docker: Use the compressed .dwps in the debug images Nov 17, 2026
@phlax
phlax marked this pull request as ready for review November 17, 2026 14:06
@phlax
phlax enabled auto-merge (squash) November 17, 2026 14:10
@phlax

phlax commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

related context for this - debugging engflow - it has NEAR FAR and FALLBACK caches - not sure exactly on their meanings or setup

what was clear in debugging - you dont want FALLBACK and these images were almost always coming from there - seemingly due to size

@phlax
phlax merged commit 5e14399 into envoyproxy:main Nov 17, 2026
26 checks passed
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…voyproxy#49354)

The debug images (`envoy-debug`, `envoy-contrib-debug`) took the `.dwp`s
as llvm-dwp writes them: debug sections uncompressed (over 3GB for
contrib, per arch), each a single blob in the remote cache.

envoyproxy#49294 added the `.dwp`s with their debug sections compressed (zlib,
which the images' gdb 12 reads) and cached in parts
(`//distribution:envoy-dwarf-joined`,
`//distribution:envoy-contrib-dwarf-joined`), but only the release
tarball (`//distribution/binary`) used them. The images are no longer
built from that tarball (envoyproxy#49259), and `release.multiarch` does not build
it (envoyproxy#49331), so nothing published had them.

This points the images' `.dwp`s at the `-joined` targets, as the comment
on the debug layers in this file already describes.

Risk Level: low (the `.dwp` in the published debug images; the same file
the release tarball has had since envoyproxy#49294)
Testing: this PR's Publish (`release.multiarch`), against the postsubmit
of its base (499b706), from the Bazel profiles:

| | base | this PR |
| --- | --- | --- |
| `oci.x64` / `oci.arm64` artifacts | 4.10GB / 4.06GB | 3.29GB / 3.24GB
|
| Writing the `envoy-debug` layer (per arch) | 159s, 101s | 31s, 9s |
| Writing the `envoy-contrib-debug` layer (per arch) | 121s, 96s | 29s,
25s |
| OCI descriptor of the debug layers | 29-54s | 9-12s |
| Compressing the `.dwp`s (new here, remote) | - | 101-118s |
| Joining the parts (new here, local) | - | 7-20s |

The compression runs whenever a `.dwp` changes, so it is not a critical
path win by itself (bazel took 360s here, 443s on the base, where the
`.dwp`s were regenerated and here were not): the gain is the smaller
images and layers, and no multi-GB `.dwp` blob to fetch.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 5e14399)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…voyproxy#49354)

The debug images (`envoy-debug`, `envoy-contrib-debug`) took the `.dwp`s
as llvm-dwp writes them: debug sections uncompressed (over 3GB for
contrib, per arch), each a single blob in the remote cache.

envoyproxy#49294 added the `.dwp`s with their debug sections compressed (zlib,
which the images' gdb 12 reads) and cached in parts
(`//distribution:envoy-dwarf-joined`,
`//distribution:envoy-contrib-dwarf-joined`), but only the release
tarball (`//distribution/binary`) used them. The images are no longer
built from that tarball (envoyproxy#49259), and `release.multiarch` does not build
it (envoyproxy#49331), so nothing published had them.

This points the images' `.dwp`s at the `-joined` targets, as the comment
on the debug layers in this file already describes.

Risk Level: low (the `.dwp` in the published debug images; the same file
the release tarball has had since envoyproxy#49294)
Testing: this PR's Publish (`release.multiarch`), against the postsubmit
of its base (499b706), from the Bazel profiles:

| | base | this PR |
| --- | --- | --- |
| `oci.x64` / `oci.arm64` artifacts | 4.10GB / 4.06GB | 3.29GB / 3.24GB
|
| Writing the `envoy-debug` layer (per arch) | 159s, 101s | 31s, 9s |
| Writing the `envoy-contrib-debug` layer (per arch) | 121s, 96s | 29s,
25s |
| OCI descriptor of the debug layers | 29-54s | 9-12s |
| Compressing the `.dwp`s (new here, remote) | - | 101-118s |
| Joining the parts (new here, local) | - | 7-20s |

The compression runs whenever a `.dwp` changes, so it is not a critical
path win by itself (bazel took 360s here, 443s on the base, where the
`.dwp`s were regenerated and here were not): the gain is the smaller
images and layers, and no multi-GB `.dwp` blob to fetch.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 5e14399)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…voyproxy#49354)

The debug images (`envoy-debug`, `envoy-contrib-debug`) took the `.dwp`s
as llvm-dwp writes them: debug sections uncompressed (over 3GB for
contrib, per arch), each a single blob in the remote cache.

envoyproxy#49294 added the `.dwp`s with their debug sections compressed (zlib,
which the images' gdb 12 reads) and cached in parts
(`//distribution:envoy-dwarf-joined`,
`//distribution:envoy-contrib-dwarf-joined`), but only the release
tarball (`//distribution/binary`) used them. The images are no longer
built from that tarball (envoyproxy#49259), and `release.multiarch` does not build
it (envoyproxy#49331), so nothing published had them.

This points the images' `.dwp`s at the `-joined` targets, as the comment
on the debug layers in this file already describes.

Risk Level: low (the `.dwp` in the published debug images; the same file
the release tarball has had since envoyproxy#49294)
Testing: this PR's Publish (`release.multiarch`), against the postsubmit
of its base (499b706), from the Bazel profiles:

| | base | this PR |
| --- | --- | --- |
| `oci.x64` / `oci.arm64` artifacts | 4.10GB / 4.06GB | 3.29GB / 3.24GB
|
| Writing the `envoy-debug` layer (per arch) | 159s, 101s | 31s, 9s |
| Writing the `envoy-contrib-debug` layer (per arch) | 121s, 96s | 29s,
25s |
| OCI descriptor of the debug layers | 29-54s | 9-12s |
| Compressing the `.dwp`s (new here, remote) | - | 101-118s |
| Joining the parts (new here, local) | - | 7-20s |

The compression runs whenever a `.dwp` changes, so it is not a critical
path win by itself (bazel took 360s here, 443s on the base, where the
`.dwp`s were regenerated and here were not): the gain is the smaller
images and layers, and no multi-GB `.dwp` blob to fetch.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 5e14399)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…voyproxy#49354)

The debug images (`envoy-debug`, `envoy-contrib-debug`) took the `.dwp`s
as llvm-dwp writes them: debug sections uncompressed (over 3GB for
contrib, per arch), each a single blob in the remote cache.

envoyproxy#49294 added the `.dwp`s with their debug sections compressed (zlib,
which the images' gdb 12 reads) and cached in parts
(`//distribution:envoy-dwarf-joined`,
`//distribution:envoy-contrib-dwarf-joined`), but only the release
tarball (`//distribution/binary`) used them. The images are no longer
built from that tarball (envoyproxy#49259), and `release.multiarch` does not build
it (envoyproxy#49331), so nothing published had them.

This points the images' `.dwp`s at the `-joined` targets, as the comment
on the debug layers in this file already describes.

Risk Level: low (the `.dwp` in the published debug images; the same file
the release tarball has had since envoyproxy#49294)
Testing: this PR's Publish (`release.multiarch`), against the postsubmit
of its base (499b706), from the Bazel profiles:

| | base | this PR |
| --- | --- | --- |
| `oci.x64` / `oci.arm64` artifacts | 4.10GB / 4.06GB | 3.29GB / 3.24GB
|
| Writing the `envoy-debug` layer (per arch) | 159s, 101s | 31s, 9s |
| Writing the `envoy-contrib-debug` layer (per arch) | 121s, 96s | 29s,
25s |
| OCI descriptor of the debug layers | 29-54s | 9-12s |
| Compressing the `.dwp`s (new here, remote) | - | 101-118s |
| Joining the parts (new here, local) | - | 7-20s |

The compression runs whenever a `.dwp` changes, so it is not a critical
path win by itself (bazel took 360s here, 443s on the base, where the
`.dwp`s were regenerated and here were not): the gain is the smaller
images and layers, and no multi-GB `.dwp` blob to fetch.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 5e14399)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…voyproxy#49354)

The debug images (`envoy-debug`, `envoy-contrib-debug`) took the `.dwp`s
as llvm-dwp writes them: debug sections uncompressed (over 3GB for
contrib, per arch), each a single blob in the remote cache.

envoyproxy#49294 added the `.dwp`s with their debug sections compressed (zlib,
which the images' gdb 12 reads) and cached in parts
(`//distribution:envoy-dwarf-joined`,
`//distribution:envoy-contrib-dwarf-joined`), but only the release
tarball (`//distribution/binary`) used them. The images are no longer
built from that tarball (envoyproxy#49259), and `release.multiarch` does not build
it (envoyproxy#49331), so nothing published had them.

This points the images' `.dwp`s at the `-joined` targets, as the comment
on the debug layers in this file already describes.

Risk Level: low (the `.dwp` in the published debug images; the same file
the release tarball has had since envoyproxy#49294)
Testing: this PR's Publish (`release.multiarch`), against the postsubmit
of its base (499b706), from the Bazel profiles:

| | base | this PR |
| --- | --- | --- |
| `oci.x64` / `oci.arm64` artifacts | 4.10GB / 4.06GB | 3.29GB / 3.24GB
|
| Writing the `envoy-debug` layer (per arch) | 159s, 101s | 31s, 9s |
| Writing the `envoy-contrib-debug` layer (per arch) | 121s, 96s | 29s,
25s |
| OCI descriptor of the debug layers | 29-54s | 9-12s |
| Compressing the `.dwp`s (new here, remote) | - | 101-118s |
| Joining the parts (new here, local) | - | 7-20s |

The compression runs whenever a `.dwp` changes, so it is not a critical
path win by itself (bazel took 360s here, 443s on the base, where the
`.dwp`s were regenerated and here were not): the gain is the smaller
images and layers, and no multi-GB `.dwp` blob to fetch.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 5e14399)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…voyproxy#49354)

The debug images (`envoy-debug`, `envoy-contrib-debug`) took the `.dwp`s
as llvm-dwp writes them: debug sections uncompressed (over 3GB for
contrib, per arch), each a single blob in the remote cache.

envoyproxy#49294 added the `.dwp`s with their debug sections compressed (zlib,
which the images' gdb 12 reads) and cached in parts
(`//distribution:envoy-dwarf-joined`,
`//distribution:envoy-contrib-dwarf-joined`), but only the release
tarball (`//distribution/binary`) used them. The images are no longer
built from that tarball (envoyproxy#49259), and `release.multiarch` does not build
it (envoyproxy#49331), so nothing published had them.

This points the images' `.dwp`s at the `-joined` targets, as the comment
on the debug layers in this file already describes.

Risk Level: low (the `.dwp` in the published debug images; the same file
the release tarball has had since envoyproxy#49294)
Testing: this PR's Publish (`release.multiarch`), against the postsubmit
of its base (499b706), from the Bazel profiles:

| | base | this PR |
| --- | --- | --- |
| `oci.x64` / `oci.arm64` artifacts | 4.10GB / 4.06GB | 3.29GB / 3.24GB
|
| Writing the `envoy-debug` layer (per arch) | 159s, 101s | 31s, 9s |
| Writing the `envoy-contrib-debug` layer (per arch) | 121s, 96s | 29s,
25s |
| OCI descriptor of the debug layers | 29-54s | 9-12s |
| Compressing the `.dwp`s (new here, remote) | - | 101-118s |
| Joining the parts (new here, local) | - | 7-20s |

The compression runs whenever a `.dwp` changes, so it is not a critical
path win by itself (bazel took 360s here, 443s on the base, where the
`.dwp`s were regenerated and here were not): the gain is the smaller
images and layers, and no multi-GB `.dwp` blob to fetch.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 5e14399)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…voyproxy#49354)

The debug images (`envoy-debug`, `envoy-contrib-debug`) took the `.dwp`s
as llvm-dwp writes them: debug sections uncompressed (over 3GB for
contrib, per arch), each a single blob in the remote cache.

which the images' gdb 12 reads) and cached in parts
(`//distribution:envoy-dwarf-joined`,
`//distribution:envoy-contrib-dwarf-joined`), but only the release
tarball (`//distribution/binary`) used them. The images are no longer
built from that tarball (envoyproxy#49259), and `release.multiarch` does not build
it (envoyproxy#49331), so nothing published had them.

This points the images' `.dwp`s at the `-joined` targets, as the comment
on the debug layers in this file already describes.

Risk Level: low (the `.dwp` in the published debug images; the same file
the release tarball has had since envoyproxy#49294)
Testing: this PR's Publish (`release.multiarch`), against the postsubmit
of its base (499b706), from the Bazel profiles:

| | base | this PR |
| --- | --- | --- |
| `oci.x64` / `oci.arm64` artifacts | 4.10GB / 4.06GB | 3.29GB / 3.24GB
|
| Writing the `envoy-debug` layer (per arch) | 159s, 101s | 31s, 9s |
| Writing the `envoy-contrib-debug` layer (per arch) | 121s, 96s | 29s,
25s |
| OCI descriptor of the debug layers | 29-54s | 9-12s |
| Compressing the `.dwp`s (new here, remote) | - | 101-118s |
| Joining the parts (new here, local) | - | 7-20s |

The compression runs whenever a `.dwp` changes, so it is not a critical
path win by itself (bazel took 360s here, 443s on the base, where the
`.dwp`s were regenerated and here were not): the gain is the smaller
images and layers, and no multi-GB `.dwp` blob to fetch.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 5e14399)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…voyproxy#49354)

The debug images (`envoy-debug`, `envoy-contrib-debug`) took the `.dwp`s
as llvm-dwp writes them: debug sections uncompressed (over 3GB for
contrib, per arch), each a single blob in the remote cache.

envoyproxy#49294 added the `.dwp`s with their debug sections compressed (zlib,
which the images' gdb 12 reads) and cached in parts
(`//distribution:envoy-dwarf-joined`,
`//distribution:envoy-contrib-dwarf-joined`), but only the release
tarball (`//distribution/binary`) used them. The images are no longer
built from that tarball (envoyproxy#49259), and `release.multiarch` does not build
it (envoyproxy#49331), so nothing published had them.

This points the images' `.dwp`s at the `-joined` targets, as the comment
on the debug layers in this file already describes.

Risk Level: low (the `.dwp` in the published debug images; the same file
the release tarball has had since envoyproxy#49294)
Testing: this PR's Publish (`release.multiarch`), against the postsubmit
of its base (499b706), from the Bazel profiles:

| | base | this PR |
| --- | --- | --- |
| `oci.x64` / `oci.arm64` artifacts | 4.10GB / 4.06GB | 3.29GB / 3.24GB
|
| Writing the `envoy-debug` layer (per arch) | 159s, 101s | 31s, 9s |
| Writing the `envoy-contrib-debug` layer (per arch) | 121s, 96s | 29s,
25s |
| OCI descriptor of the debug layers | 29-54s | 9-12s |
| Compressing the `.dwp`s (new here, remote) | - | 101-118s |
| Joining the parts (new here, local) | - | 7-20s |

The compression runs whenever a `.dwp` changes, so it is not a critical
path win by itself (bazel took 360s here, 443s on the base, where the
`.dwp`s were regenerated and here were not): the gain is the smaller
images and layers, and no multi-GB `.dwp` blob to fetch.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 5e14399)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…voyproxy#49354)

The debug images (`envoy-debug`, `envoy-contrib-debug`) took the `.dwp`s
as llvm-dwp writes them: debug sections uncompressed (over 3GB for
contrib, per arch), each a single blob in the remote cache.

which the images' gdb 12 reads) and cached in parts
(`//distribution:envoy-dwarf-joined`,
`//distribution:envoy-contrib-dwarf-joined`), but only the release
tarball (`//distribution/binary`) used them. The images are no longer
built from that tarball (envoyproxy#49259), and `release.multiarch` does not build
it (envoyproxy#49331), so nothing published had them.

This points the images' `.dwp`s at the `-joined` targets, as the comment
on the debug layers in this file already describes.

Risk Level: low (the `.dwp` in the published debug images; the same file
the release tarball has had since envoyproxy#49294)
Testing: this PR's Publish (`release.multiarch`), against the postsubmit
of its base (499b706), from the Bazel profiles:

| | base | this PR |
| --- | --- | --- |
| `oci.x64` / `oci.arm64` artifacts | 4.10GB / 4.06GB | 3.29GB / 3.24GB
|
| Writing the `envoy-debug` layer (per arch) | 159s, 101s | 31s, 9s |
| Writing the `envoy-contrib-debug` layer (per arch) | 121s, 96s | 29s,
25s |
| OCI descriptor of the debug layers | 29-54s | 9-12s |
| Compressing the `.dwp`s (new here, remote) | - | 101-118s |
| Joining the parts (new here, local) | - | 7-20s |

The compression runs whenever a `.dwp` changes, so it is not a critical
path win by itself (bazel took 360s here, 443s on the base, where the
`.dwp`s were regenerated and here were not): the gain is the smaller
images and layers, and no multi-GB `.dwp` blob to fetch.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 5e14399)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…voyproxy#49354)

The debug images (`envoy-debug`, `envoy-contrib-debug`) took the `.dwp`s
as llvm-dwp writes them: debug sections uncompressed (over 3GB for
contrib, per arch), each a single blob in the remote cache.

which the images' gdb 12 reads) and cached in parts
(`//distribution:envoy-dwarf-joined`,
`//distribution:envoy-contrib-dwarf-joined`), but only the release
tarball (`//distribution/binary`) used them. The images are no longer
built from that tarball (envoyproxy#49259), and `release.multiarch` does not build
it (envoyproxy#49331), so nothing published had them.

This points the images' `.dwp`s at the `-joined` targets, as the comment
on the debug layers in this file already describes.

Risk Level: low (the `.dwp` in the published debug images; the same file
the release tarball has had since envoyproxy#49294)
Testing: this PR's Publish (`release.multiarch`), against the postsubmit
of its base (499b706), from the Bazel profiles:

| | base | this PR |
| --- | --- | --- |
| `oci.x64` / `oci.arm64` artifacts | 4.10GB / 4.06GB | 3.29GB / 3.24GB
|
| Writing the `envoy-debug` layer (per arch) | 159s, 101s | 31s, 9s |
| Writing the `envoy-contrib-debug` layer (per arch) | 121s, 96s | 29s,
25s |
| OCI descriptor of the debug layers | 29-54s | 9-12s |
| Compressing the `.dwp`s (new here, remote) | - | 101-118s |
| Joining the parts (new here, local) | - | 7-20s |

The compression runs whenever a `.dwp` changes, so it is not a critical
path win by itself (bazel took 360s here, 443s on the base, where the
`.dwp`s were regenerated and here were not): the gain is the smaller
images and layers, and no multi-GB `.dwp` blob to fetch.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 5e14399)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…voyproxy#49354)

The debug images (`envoy-debug`, `envoy-contrib-debug`) took the `.dwp`s
as llvm-dwp writes them: debug sections uncompressed (over 3GB for
contrib, per arch), each a single blob in the remote cache.

which the images' gdb 12 reads) and cached in parts
(`//distribution:envoy-dwarf-joined`,
`//distribution:envoy-contrib-dwarf-joined`), but only the release
tarball (`//distribution/binary`) used them. The images are no longer
built from that tarball (envoyproxy#49259), and `release.multiarch` does not build
it (envoyproxy#49331), so nothing published had them.

This points the images' `.dwp`s at the `-joined` targets, as the comment
on the debug layers in this file already describes.

Risk Level: low (the `.dwp` in the published debug images; the same file
the release tarball has had since envoyproxy#49294)
Testing: this PR's Publish (`release.multiarch`), against the postsubmit
of its base (499b706), from the Bazel profiles:

| | base | this PR |
| --- | --- | --- |
| `oci.x64` / `oci.arm64` artifacts | 4.10GB / 4.06GB | 3.29GB / 3.24GB
|
| Writing the `envoy-debug` layer (per arch) | 159s, 101s | 31s, 9s |
| Writing the `envoy-contrib-debug` layer (per arch) | 121s, 96s | 29s,
25s |
| OCI descriptor of the debug layers | 29-54s | 9-12s |
| Compressing the `.dwp`s (new here, remote) | - | 101-118s |
| Joining the parts (new here, local) | - | 7-20s |

The compression runs whenever a `.dwp` changes, so it is not a critical
path win by itself (bazel took 360s here, 443s on the base, where the
`.dwp`s were regenerated and here were not): the gain is the smaller
images and layers, and no multi-GB `.dwp` blob to fetch.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 5e14399)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…voyproxy#49354)

The debug images (`envoy-debug`, `envoy-contrib-debug`) took the `.dwp`s
as llvm-dwp writes them: debug sections uncompressed (over 3GB for
contrib, per arch), each a single blob in the remote cache.

which the images' gdb 12 reads) and cached in parts
(`//distribution:envoy-dwarf-joined`,
`//distribution:envoy-contrib-dwarf-joined`), but only the release
tarball (`//distribution/binary`) used them. The images are no longer
built from that tarball (envoyproxy#49259), and `release.multiarch` does not build
it (envoyproxy#49331), so nothing published had them.

This points the images' `.dwp`s at the `-joined` targets, as the comment
on the debug layers in this file already describes.

Risk Level: low (the `.dwp` in the published debug images; the same file
the release tarball has had since envoyproxy#49294)
Testing: this PR's Publish (`release.multiarch`), against the postsubmit
of its base (499b706), from the Bazel profiles:

| | base | this PR |
| --- | --- | --- |
| `oci.x64` / `oci.arm64` artifacts | 4.10GB / 4.06GB | 3.29GB / 3.24GB
|
| Writing the `envoy-debug` layer (per arch) | 159s, 101s | 31s, 9s |
| Writing the `envoy-contrib-debug` layer (per arch) | 121s, 96s | 29s,
25s |
| OCI descriptor of the debug layers | 29-54s | 9-12s |
| Compressing the `.dwp`s (new here, remote) | - | 101-118s |
| Joining the parts (new here, local) | - | 7-20s |

The compression runs whenever a `.dwp` changes, so it is not a critical
path win by itself (bazel took 360s here, 443s on the base, where the
`.dwp`s were regenerated and here were not): the gain is the smaller
images and layers, and no multi-GB `.dwp` blob to fetch.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 5e14399)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…voyproxy#49354)

The debug images (`envoy-debug`, `envoy-contrib-debug`) took the `.dwp`s
as llvm-dwp writes them: debug sections uncompressed (over 3GB for
contrib, per arch), each a single blob in the remote cache.

envoyproxy#49294 added the `.dwp`s with their debug sections compressed (zlib,
which the images' gdb 12 reads) and cached in parts
(`//distribution:envoy-dwarf-joined`,
`//distribution:envoy-contrib-dwarf-joined`), but only the release
tarball (`//distribution/binary`) used them. The images are no longer
built from that tarball (envoyproxy#49259), and `release.multiarch` does not build
it (envoyproxy#49331), so nothing published had them.

This points the images' `.dwp`s at the `-joined` targets, as the comment
on the debug layers in this file already describes.

Risk Level: low (the `.dwp` in the published debug images; the same file
the release tarball has had since envoyproxy#49294)
Testing: this PR's Publish (`release.multiarch`), against the postsubmit
of its base (499b706), from the Bazel profiles:

| | base | this PR |
| --- | --- | --- |
| `oci.x64` / `oci.arm64` artifacts | 4.10GB / 4.06GB | 3.29GB / 3.24GB
|
| Writing the `envoy-debug` layer (per arch) | 159s, 101s | 31s, 9s |
| Writing the `envoy-contrib-debug` layer (per arch) | 121s, 96s | 29s,
25s |
| OCI descriptor of the debug layers | 29-54s | 9-12s |
| Compressing the `.dwp`s (new here, remote) | - | 101-118s |
| Joining the parts (new here, local) | - | 7-20s |

The compression runs whenever a `.dwp` changes, so it is not a critical
path win by itself (bazel took 360s here, 443s on the base, where the
`.dwp`s were regenerated and here were not): the gain is the smaller
images and layers, and no multi-GB `.dwp` blob to fetch.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 5e14399)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
…voyproxy#49354)

The debug images (`envoy-debug`, `envoy-contrib-debug`) took the `.dwp`s
as llvm-dwp writes them: debug sections uncompressed (over 3GB for
contrib, per arch), each a single blob in the remote cache.

which the images' gdb 12 reads) and cached in parts
(`//distribution:envoy-dwarf-joined`,
`//distribution:envoy-contrib-dwarf-joined`), but only the release
tarball (`//distribution/binary`) used them. The images are no longer
built from that tarball (envoyproxy#49259), and `release.multiarch` does not build
it (envoyproxy#49331), so nothing published had them.

This points the images' `.dwp`s at the `-joined` targets, as the comment
on the debug layers in this file already describes.

Risk Level: low (the `.dwp` in the published debug images; the same file
the release tarball has had since envoyproxy#49294)
Testing: this PR's Publish (`release.multiarch`), against the postsubmit
of its base (499b706), from the Bazel profiles:

| | base | this PR |
| --- | --- | --- |
| `oci.x64` / `oci.arm64` artifacts | 4.10GB / 4.06GB | 3.29GB / 3.24GB
|
| Writing the `envoy-debug` layer (per arch) | 159s, 101s | 31s, 9s |
| Writing the `envoy-contrib-debug` layer (per arch) | 121s, 96s | 29s,
25s |
| OCI descriptor of the debug layers | 29-54s | 9-12s |
| Compressing the `.dwp`s (new here, remote) | - | 101-118s |
| Joining the parts (new here, local) | - | 7-20s |

The compression runs whenever a `.dwp` changes, so it is not a critical
path win by itself (bazel took 360s here, 443s on the base, where the
`.dwp`s were regenerated and here were not): the gain is the smaller
images and layers, and no multi-GB `.dwp` blob to fetch.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 5e14399)
Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 18, 2026
…voyproxy#49354)

The debug images (`envoy-debug`, `envoy-contrib-debug`) took the `.dwp`s
as llvm-dwp writes them: debug sections uncompressed (over 3GB for
contrib, per arch), each a single blob in the remote cache.

which the images' gdb 12 reads) and cached in parts
(`//distribution:envoy-dwarf-joined`,
`//distribution:envoy-contrib-dwarf-joined`), but only the release
tarball (`//distribution/binary`) used them. The images are no longer
built from that tarball (envoyproxy#49259), and `release.multiarch` does not build
it (envoyproxy#49331), so nothing published had them.

This points the images' `.dwp`s at the `-joined` targets, as the comment
on the debug layers in this file already describes.

Risk Level: low (the `.dwp` in the published debug images; the same file
the release tarball has had since envoyproxy#49294)
Testing: this PR's Publish (`release.multiarch`), against the postsubmit
of its base (499b706), from the Bazel profiles:

| | base | this PR |
| --- | --- | --- |
| `oci.x64` / `oci.arm64` artifacts | 4.10GB / 4.06GB | 3.29GB / 3.24GB
|
| Writing the `envoy-debug` layer (per arch) | 159s, 101s | 31s, 9s |
| Writing the `envoy-contrib-debug` layer (per arch) | 121s, 96s | 29s,
25s |
| OCI descriptor of the debug layers | 29-54s | 9-12s |
| Compressing the `.dwp`s (new here, remote) | - | 101-118s |
| Joining the parts (new here, local) | - | 7-20s |

The compression runs whenever a `.dwp` changes, so it is not a critical
path win by itself (bazel took 360s here, 443s on the base, where the
`.dwp`s were regenerated and here were not): the gain is the smaller
images and layers, and no multi-GB `.dwp` blob to fetch.
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Ryan Northey <[email protected]>
(cherry picked from commit 5e14399)
Signed-off-by: Ryan Northey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants