Skip to content

distribution: Gzip the deb data, with all the cores - #49296

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:distribution-deb-pigz
Nov 16, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:distribution-deb-pigz

Conversation

@phlax

@phlax phlax commented Nov 15, 2026

Copy link
Copy Markdown
Member

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", -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.

Risk Level: low
Testing: CI (Packages, verify_distro), envoy-ci-staging
Docs Changes: n/a
Release Notes: n/a

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]>

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

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 pigz compressor to produce data.tar.gz for both package variants.
  • Passes -n to 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

@phlax
phlax merged commit e70d9f9 into envoyproxy:main Nov 16, 2026
26 checks passed
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]>
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]>
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