Can snapcraft upload skip generating deltas?

Hello Snappers,

is it possible to prevent snapcraft upload from generating delta uploads? One of my snaps has tracks, and when uploading two seperate tracks in succession Snapcraft will generate a delta between them. This takes my PC a while to actually generate, takes a while to upload to the server, and consistently gets rejected by the server for taking too long to apply (60s timeout on the servers side). After 5 minutes of trying to push a delta that never has a chance of working, snapcraft gives up and resorts to submitting the full snap anyway.

As the amount of tracks that gets published increases overtime, this will add up to 5 minutes per upload and begin to dominate the upload process for me, so I’m wondering if there’s already a way to avoid it.

Generating delta for 'root-framework_v6-24-00_amd64.snap'.
Pushing 'root-framework_v6-24-00_amd64.snap.xdelta3' [===============================================================================================================================================] 100%
Processing...|                                                                                                                                                                                             
Error while processing delta...
Error generating delta: There has been a problem while processing a snap delta.
  - Delta service failed to apply delta within 60s
Falling back to uploading full snap...

Cheers.

Delete the cached uploads from your machine, prior to uploading. That way it’ll have nothing to delta against.

1 Like

Do you happen to know where they are? I tried searching for them after the fact and it appears they got cleaned (or I’m looking in the wrong places)

I don’t know, but guessing ~/cache/snapcraft/projects/$SNAP/snap_hashes/$ARCH/