#11683 drop an accidently added .rpm.scr off the qatzip repo
Opened 7 months ago by vladis. Modified 6 months ago

Hi,

Our partners happened to add a certain .src.rpm file to the qatzip repo (https://src.fedoraproject.org/rpms/qatzip) by accident. They have removed it, but this blob will stay in the repo and in all the future branches forever:

https://src.fedoraproject.org/rpms/qatzip/c/fc122d5e6ed5369e6e4fe3c98c0469b3b418fe00?branch=rawhide

I'm seeking a person with admin access to this repo to remove this blob completely with git-filer-branch/git-filter-repo/etc. Can you please help? This is a concern of repo size and repo cleanliness.


Metadata Update from @phsmoura:
- Issue tagged with: low-gain, low-trouble, ops

7 months ago

ok, that took entirely too long for me to find the last time we looked at this.

So basically we cannot re-write the repo without breaking all existing checkouts and all koji build hashes, but we can make a archive branch, move that to that branch where will be ignored (checkouts won't get that branch unless specifically fetched)
See:

https://pagure.io/fedora-infrastructure/issue/7467

and

https://pagure.io/releng/issue/7265

Is that workable for you?

thanks a ton for looking into this, Kevin.
yes, this looks like a good solution, could you please apply it?

noting for posterity: only "rawhide" branch is affected (commit https://src.fedoraproject.org/rpms/qatzip/c/bb06497e8826251745ce4e39bab9e619659021be?branch=rawhide )

Here are the command that need to be run on the git server:

$ FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch --force --index-filter  'git rm -r --cached --ignore-unmatch results_blender *.src.rpm' --original refs/archive -- rawhide
$ mv refs/archive/refs/heads/rawhide refs/archive/rawhide   
$ rm refs/archive/refs/ -r

But I am not sure this will work in this case. We are talking about rawhide. Can we just move rawhide to the archive? Even if we can rawhide is pulled every time we do rawhide builds so the branch will be pulled in.

Login to comment on this ticket.

Metadata
Boards 1
Ops Status: Backlog