mozilla / sccache

Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.
Apache License 2.0
5.78k stars 545 forks source link

sccache-dist corrupt deflate toolchain #453

Open drahnr opened 5 years ago

drahnr commented 5 years ago

My wifi died while the toolchain was packaged and uploaded.

On the server side there then was a corrupted/incomplete toolchain archive which caused all subsequent compiles to fail since the archive failed to deflate.

The manual solution was to delete toolchain and restart the server+scheduler.

I'd be happy to implement this to automatically delete toolchain files if they are corrupted.

drahnr commented 5 years ago

I suspect the root cause here is that during the upload the toolchain is already marked as available, and as such the deflate stream is still incomplete and thus considered corrupted.