Skip to content

Intermittent sccache binary checksum error #274

@hjyamauchi

Description

@hjyamauchi

Hi @hendrikmuhs,

We get this checksum error only intermittently for some reason. The expected checksum 48e88be2ba87dca8d74364f045894ec214b6c850e65e61ab44e5071055c9e6d3 matches the actual checksum of the sccache.exe binary in that referenced tarball and also what's hardcoded in restore.ts. Could the curl or the tar command somehow fail to write the sccache binary and perhaps there was a different version of the binary in the same file path, whose checksum is 75a7ada82884092c1f122bba69e5a2f64fa88cd9723003b2e624eb339737c22d?
Do you have an idea why?

Thank you!

 "C:\Program Files\git\usr\bin\sh.exe" -xc "curl -L 'https://github.com/mozilla/sccache/releases/download/v0.7.6/sccache-v0.7.6-x86_64-pc-windows-msvc.tar.gz' | tar xzf - -O --wildcards '*/sccache.exe' > 'C:\Users\runner\.cargo\bin\sccache.exe'"
  + curl -L https://github.com/mozilla/sccache/releases/download/v0.7.6/sccache-v0.7.6-x86_64-pc-windows-msvc.tar.gz
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
  
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0+ tar xzf - -O --wildcards '*/sccache.exe'
  
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  
   55 7556k   55 4210k    0     0  8739k      0 --:--:-- --:--:-- --:--:-- 8739k
  100 7556k  100 7556k    0     0  11.5M      0 --:--:-- --:--:-- --:--:-- 20.5M
  Error: Restoring cache failed: Error: SHA256 of C:\Users\runner\.cargo\bin\sccache.exe is 75a7ada82884092c1f122bba69e5a2f64fa88cd9723003b2e624eb339737c22d, expected 48e88be2ba87dca8d74364f045894ec214b6c850e65e61ab44e5071055c9e6d3
Screenshot 2025-01-09 at 1 54 43 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions