From ba8159b4d324d137e08993d85fb023b484388ede Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Tue, 6 Oct 2026 11:30:37 +0000 Subject: [PATCH] wezel: Use bundle-linux for size measurements (#65234) ## Summary Right now we're measuring size of artifacts from `cargo b --release`, which doesn't match what we're actually distributing. ## Testing Manually test your changes; report results, mention platforms if relevant. How can reviewers test this easily? Include setup and steps. ## Self-review - [ ] I've reviewed my diff for quality, security, reliability, and performance. - [ ] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [ ] Tests cover the new or changed behavior. Release Notes: - N/A --- .github/workflows/wezel.yml | 2 ++ .../experiments/binary-size/experiment.toml | 22 +++++++------------ 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/wezel.yml b/.github/workflows/wezel.yml index a0535b810be..72f132307f5 100644 --- a/.github/workflows/wezel.yml +++ b/.github/workflows/wezel.yml @@ -35,6 +35,8 @@ jobs: ref: ${{ inputs.commit_sha }} - name: Install Linux build dependencies run: ./script/linux + - name: Download WASI SDK + run: ./script/download-wasi-sdk - uses: wezel-build/gh-action@49be2cba2eaa12f1b99ae1c3ee9af3c815cb3125 # v1.0.1 with: token: ${{ secrets.WEZEL_RUNNER_TOKEN }} diff --git a/.wezel/experiments/binary-size/experiment.toml b/.wezel/experiments/binary-size/experiment.toml index 971fc50845c..6a9c7668f88 100644 --- a/.wezel/experiments/binary-size/experiment.toml +++ b/.wezel/experiments/binary-size/experiment.toml @@ -1,19 +1,13 @@ #:schema ../../schema.json -description = "Measures stripped and unstripped release binary size" +description = "Measures the size of the Zed binary shipped in the Linux bundle" -[step.cargo.build-release] -command = "build" -build_target = ["zed"] -profile = "release" +[step.exec.bundle-linux] +cmd = "./script/bundle-linux --skip-sentry" -[step.filesize.measure-unstripped] -glob = "target/release/zed" -summary.unstripped-binary-size = { outcome = "target/release/zed" } +[step.exec.extract-bundled-binary] +cmd = "editor_path=$(tar -tzf target/release/zed-linux-$(uname -m).tar.gz | grep '/libexec/zed-editor$') && tar -xOzf target/release/zed-linux-$(uname -m).tar.gz \"$editor_path\" > target/release/zed-bundled" -[step.exec.strip-copy] -cmd = "cp target/release/zed target/release/zed-stripped && strip target/release/zed-stripped" - -[step.filesize.measure-stripped] -glob = "target/release/zed-stripped" -summary.stripped-binary-size = { outcome = "target/release/zed-stripped" } +[step.filesize.measure-bundled] +glob = "target/release/zed-bundled" +summary.bundled-binary-size = { outcome = "target/release/zed-bundled" }