Skip to content

Conversation

@cole-miller
Copy link
Member

@cole-miller cole-miller commented Jul 22, 2025

We see periodic failures of zed-industries/zed CI when the cc builder in the webrtc-sys build script fails to find some webrtc header files that are supposed to be downloaded using this function:

pub fn download_webrtc() -> Result<(), Box<dyn Error>> {

This downloads a zip from the assets attached to a specific livekit/rust-sdks release, and unpacks it under OUT_DIR. My guess is that sometimes the download step fails and produces a corrupt downloaded zip, without signaling the failure in a way that would stop the build. This PR tries to fix that by having the download step check the SHA-256 digest of the downloaded zip (using a manually-computed list of good digests; I'd like to use digests from the GitHub API but the particular artifacts we download don't have them).

If we confirm that this is the source of the problem, I'll follow up with a change to retry the download in the build script.

@cole-miller cole-miller merged commit 383e537 into main Jul 25, 2025
4 checks passed
cole-miller added a commit to zed-industries/zed that referenced this pull request Jul 25, 2025
Let's see if zed-industries/livekit-rust-sdks#6
helps.

Release Notes:

- N/A

---------

Signed-off-by: Cole Miller <cole@zed.dev>
cole-miller added a commit that referenced this pull request Jul 30, 2025
cole-miller added a commit that referenced this pull request Jul 30, 2025
Ensure that we download the webrtc release anew each time
download_webrtc is called (from either the livekit-ffi build script or
the webrtc-sys build script). This is another stab at fixing the build
errors we've been seeing in Zed CI, or at least making them easier to
understand.

Also reverts #6 since it seems the integrity of the downloaded zip was a
red herring.
orual pushed a commit to orual/zed that referenced this pull request Aug 23, 2025
Let's see if zed-industries/livekit-rust-sdks#6
helps.

Release Notes:

- N/A

---------

Signed-off-by: Cole Miller <cole@zed.dev>
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.

1 participant