Try to identify dSYMs by UUID not channel (#28268)

This should make it possible to more reliably symbolicate crash reports
from nightly, and from users with pending auto-updates.


Release Notes:

- N/A

---------

Co-authored-by: Ben Kunkle <ben.kunkle@gmail.com>
This commit is contained in:
Conrad Irwin 2025-04-07 16:08:38 -06:00 committed by GitHub
parent 862d0c07ca
commit f03efeda73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 17 additions and 7 deletions

View file

@ -53,10 +53,18 @@ else # ips file
mkdir -p target/dsyms/$channel
dsym="$channel/Zed-$version-$arch.dwarf"
# NOTE: if you see "no such file --uuid", you need to update your symbolicate
uuid=$(symbolicate $input_file --uuid || true)
if [[ $? -ne 0 ]]; then
echo "You need to update your symbolicate: cargo install symbolicate"
exit 1
fi
dsym="$uuid.dwarf"
if [[ ! -f target/dsyms/$dsym ]]; then
echo "Downloading $dsym..."
curl -o target/dsyms/$dsym.gz "https://zed-debug-symbols.nyc3.digitaloceanspaces.com/$channel/Zed-$version-$arch.dwarf.gz"
curl -f -o target/dsyms/$dsym.gz "https://zed-debug-symbols.nyc3.digitaloceanspaces.com/by_uuid/${uuid}.dwarf.gz" ||
curl -f -o target/dsyms/$dsym.gz "https://zed-debug-symbols.nyc3.digitaloceanspaces.com/$channel/Zed-$version-$arch.dwarf.gz"
gunzip target/dsyms/$dsym.gz
fi