#12842 Please remove file from lookaside cache
Closed: Duplicate a month ago by kevin. Opened a month ago by asn.

Describe what you would like us to do:

Please remove sccache-0.11.0.crate. It looks like the crate got updated by upstream. It is only 388kb in size now. I would like to upload a the new sccache-0.11.0.crate.


When do you need this to be done by? (YYYY/MM/DD)

2025-10-15



Metadata Update from @zlopez:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: low-gain, low-trouble, ops

a month ago

There shouldn't be any need to remove it. Just upload the new one... things are referenced by hash, so if the has is different it will just have a different path and sources file.

Also, please tell upstream re-releasing the same version with different contents is really bad and they shouldn't do it. ;(

I don't understand what is wrong here, uploading a new crate doesn't work, and the one fedpkg downloads is obviously wrong ...

I have no idea what is in the lookaside cache.

$ cat sources 
SHA512 (sccache-0.11.0.crate) = 4aec2c8672e2683f180f94f3c9ecb70e978bc30edd95e3783025b1bbd54ef12671c0c6e4f14968189a0ec03a8f7630f539ed74f9e6f81e3e0cfc741aea1b4a59

$ sha512sum sccache-0.11.0.crate                                     
4aec2c8672e2683f180f94f3c9ecb70e978bc30edd95e3783025b1bbd54ef12671c0c6e4f14968189a0ec03a8f7630f539ed74f9e6f81e3e0cfc741aea1b4a59  sccache-0.11.0.crate

$ fedpkg new-sources sccache-0.11.0.crate
Uploading: sccache-0.11.0.crate to https://src.fedoraproject.org/repo/pkgs/upload.cgi     
File already uploaded: sccache-0.11.0.crate                                               
All sources were already uploaded.

$ rm sccache-0.11.0.crate

$ fedpkg prep                                                                                                                       [0/1465]
Downloading sccache-0.11.0.crate from https://src.fedoraproject.org/repo/pkgs

Could not execute prep: sccache-0.11.0.crate failed checksum

$ sha512sum sccache-0.11.0.crate                
10100242f91f300cead14fcb137da1f8d224ca55eea65dfaae9c28e90186ddcc800724b4cf8c3a697125f52dd8af3ab93ced7286b88fc37c00e467eac7ea5634  sccache-0.11.0.crate

Maybe try remove the line from sources file, it could check the hash against it and decides that it's already uploaded as the hash in sources file is the same.

Doesn't seem to work. :-(

$ echo > sources                                            

$ fedpkg new-sources sccache-0.11.0.crate
Uploading: sccache-0.11.0.crate to https://src.fedoraproject.org/repo/pkgs/upload.cgi
File already uploaded: sccache-0.11.0.crate
All sources were already uploaded.

Ah, so this is a duplicate of https://pagure.io/fedora-infrastructure/issue/12812

ie, you are getting a uncompressed one downloaded, when it should be gzipped.

I'll flip things off for now, but follow over there for progress on a real fix. :)

Metadata Update from @kevin:
- Issue close_status updated to: Duplicate
- Issue status updated to: Closed (was: Open)

a month ago

Log in to comment on this ticket.

Metadata