Skip to content

Comments

Publish echo server binary to bins releases#3688

Closed
Copilot wants to merge 5 commits intomainfrom
copilot/publish-echo-server-binary
Closed

Publish echo server binary to bins releases#3688
Copilot wants to merge 5 commits intomainfrom
copilot/publish-echo-server-binary

Conversation

Copy link
Contributor

Copilot AI commented Feb 3, 2026

The echo server (rust/echo/) is used by envoyproxy/examples but currently rebuilt from source. Publish pre-built binaries in bins releases alongside glint.

Changes

.github/workflows/rust.yml

  • Added build, strip, and upload steps for toolshed-echo (amd64/arm64)
  • Artifacts: rust-artifacts-echo-{version}-{arch}

Scope

Bazel integration deliberately omitted - echo is not consumed by bazel yet. No changes to:

  • bazel/versions.bzl (no SHA tracking)
  • .github/workflows/_release.yml (no version input or SHA updates)

When bazel starts consuming echo, add SHA tracking in a separate PR.

Original prompt

Summary

The glint Rust binary is currently published as part of the bins release, but the echo server (in rust/echo/) is not. The echo server is used by envoyproxy/examples and currently has to be rebuilt from source every time, which slows things down significantly.

Goal

Publish the echo server binary in the same way that glint is published, so it can be downloaded as a pre-built binary rather than compiled from source.

What needs to be done

1. Update .github/workflows/rust.yml

Add build, strip, rename, and upload steps for the echo server binary, similar to how glint is handled:

  • Build echo with cargo build --release -p toolshed-echo
  • Get the echo version from rust/echo/Cargo.toml using cargo metadata
  • Strip the binary with strip rust/target/release/toolshed-echo
  • Rename to echo-{version}-{arch} format (e.g., echo-0.1.0-amd64, echo-0.1.0-arm64)
  • Upload as artifact with name pattern rust-artifacts-echo-{version}-{arch}

The build matrix already handles both amd64 (ubuntu-24.04) and arm64 (ubuntu-24.04-arm) architectures.

2. Update bazel/versions.bzl

Add SHA256 hashes for the echo binary, following the same pattern as glint:

VERSIONS = {
    # ... existing fields ...
    "echo_sha256": {
        "amd64": "",  # Will be populated after first release
        "arm64": "",  # Will be populated after first release
    },
}

3. Update .github/workflows/_release.yml

Extend the bazel release logic that updates glint SHAs to also handle echo SHAs. Look at the existing bins-updates step that processes glint and add similar logic for echo.

Reference

The current glint publishing implementation can be found in:

  • .github/workflows/rust.yml (lines 91-114) - build and upload
  • bazel/versions.bzl (lines 11-13) - SHA256 hashes
  • .github/workflows/_release.yml (lines 224-228) - SHA update logic during bazel release

The echo server source is at rust/echo/ with package name toolshed-echo (version 0.1.0).

This pull request was created from Copilot chat.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@netlify
Copy link

netlify bot commented Feb 3, 2026

Deploy Preview for nifty-bassi-e26446 ready!

Name Link
🔨 Latest commit c4004a4
🔍 Latest deploy log https://app.netlify.com/projects/nifty-bassi-e26446/deploys/698200dfee79000008e37b44
😎 Deploy Preview https://deploy-preview-3688--nifty-bassi-e26446.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI and others added 3 commits February 3, 2026 13:17
Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
Copilot AI changed the title [WIP] Publish echo server binary for pre-built releases Publish echo server binary alongside glint Feb 3, 2026
Copilot AI requested a review from phlax February 3, 2026 13:24
Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
Copilot AI changed the title Publish echo server binary alongside glint Publish echo server binary to bins releases Feb 3, 2026
@phlax phlax closed this Feb 3, 2026
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.

2 participants