Repository navigation
distribution: Gzip the deb data, with all the cores - #49296
Merged
Merged
Conversation
The debs held their data uncompressed (`data.tar`): the release binary, as is. It is gzipped (`data.tar.gz`, which every dpkg reads, unlike zstd before dpkg 1.21.18) with the toolshed pigz, so the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. Signed-off-by: Ryan Northey <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the Debian package compression change.
No open issues 🎉
What changed in this PR
This PR compresses Debian package payloads for Envoy and Envoy Contrib to reduce package size and packaging overhead.
Changes:
- Uses toolshed’s hermetic, parallel
pigzcompressor to producedata.tar.gzfor both package variants. - Passes
-nto omit gzip filename and timestamp metadata for reproducibility.
| File | Description |
|---|---|
distribution/debian/packages.bzl |
Enables reproducible gzip compression for standard and contrib Debian package payloads. |
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
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
This was referenced Nov 16, 2026
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> Backport note (release/v1.39): with toolshed's pigz set up for WORKSPACE (`setup_pigz()` and `load_pigz_toolchains()`, `bazel/repositories_extra.bzl`). (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> Backport note (release/v1.39): with toolshed's pigz set up for WORKSPACE (`setup_pigz()` and `load_pigz_toolchains()`, `bazel/repositories_extra.bzl`). (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> Backport note (release/v1.38): with toolshed's pigz set up for WORKSPACE (`setup_pigz()` and `load_pigz_toolchains()`, `bazel/repositories_extra.bzl`). (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> Backport note (release/v1.38): with toolshed's pigz set up for WORKSPACE (`setup_pigz()` and `load_pigz_toolchains()`, `bazel/repositories_extra.bzl`). (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> Backport note (release/v1.37): with toolshed's pigz set up for WORKSPACE (`setup_pigz()` and `load_pigz_toolchains()`, `bazel/repositories_extra.bzl`). (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> Backport note (release/v1.37): with toolshed's pigz set up for WORKSPACE (`setup_pigz()` and `load_pigz_toolchains()`, `bazel/repositories_extra.bzl`). (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> Backport note (release/v1.37): with toolshed's pigz set up for WORKSPACE (`setup_pigz()` and `load_pigz_toolchains()`, `bazel/repositories_extra.bzl`). (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> Backport note (release/v1.37): with toolshed's pigz set up for WORKSPACE (`setup_pigz()` and `load_pigz_toolchains()`, `bazel/repositories_extra.bzl`). (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> Backport note (release/v1.37): with toolshed's pigz set up for WORKSPACE (`setup_pigz()` and `load_pigz_toolchains()`, `bazel/repositories_extra.bzl`). (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> Backport note (release/v1.38): with toolshed's pigz set up for WORKSPACE (`setup_pigz()` and `load_pigz_toolchains()`, `bazel/repositories_extra.bzl`). (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> Backport note (release/v1.37): with toolshed's pigz set up for WORKSPACE (`setup_pigz()` and `load_pigz_toolchains()`, `bazel/repositories_extra.bzl`). (cherry picked from commit e70d9f9) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 18, 2026
The debs' data (`data.tar`, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (`compressor = "@envoy_toolshed//pigz"`, `-n` for reproducibility), so `data.tar.gz`: the debs are a fraction of the size, and quicker to package (`pkg_deb` copies the data, and hashes the deb for the `.changes`), bundle, checksum, sign and upload. In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core. Signed-off-by: Ryan Northey <[email protected]> Backport note (release/v1.37): with toolshed's pigz set up for WORKSPACE (`setup_pigz()` and `load_pigz_toolchains()`, `bazel/repositories_extra.bzl`). (cherry picked from commit e70d9f9) 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: distribution: Gzip the deb data, with all the cores
Additional Description:
The debs' data (
data.tar, which every dpkg reads) is gzipped with the toolshed's hermetic pigz (compressor = "@envoy_toolshed//pigz",-nfor reproducibility), sodata.tar.gz: the debs are a fraction of the size, and quicker to package (pkg_debcopies the data, and hashes the deb for the.changes), bundle, checksum, sign and upload.In envoy-ci-staging, on a 2-core runner, MakeDeb and the packaging around it were among the steps the client was CPU-starved on; pigz uses every core.
Risk Level: low
Testing: CI (Packages, verify_distro), envoy-ci-staging
Docs Changes: n/a
Release Notes: n/a