-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deleted packages not removed from repodata #3507
Comments
A workaround is to go to the Settings tab and under "3. Other options" set "Repo priority:" to "100". After that rust-unicase_serde is installed from the Fedora repository and not my nonexisting COPR package. |
hmmm this seems like a regression, could this be a bug from adding the pulp features and moving corresponding code around, @FrostyX ? |
I think COPR used to regenerate /devel repo(with enabled "Create repositories manually") when a build is deleted, but doesn't do it anymore. |
Thank you for the hint. That sounds like it could be the problem, but I think Copr still regenerates the devel repo when deleting a build. At least to me it seems so. I created a project with manual createrepo enabled and Copr generated this repository The repository was created at Then I submitted a build. The repository was regenerated at Then I deleted the build and the repository was regenerated at So it seems fine to me. Do you have a different reproducer? |
@wojnilowicz can you please link the specific Copr build where this happened? |
Looking at the code, we should do exactly this. copr/backend/copr_backend/storage.py Lines 152 to 172 in a01d746
|
I dunno... I did the same steps (created a project with manual createrepo enabled, submitted a build with fedpkg copr-build, deleted the build via the web interface) and it's still there:
|
Thank you very much for helping me debug this @solopasha. I probably wouldn't find the culprit otherwise. I played with it, and it seems to ignore the manual createrepo flag. I will send a PR to fix it. |
@nikromen it indeed seems to be a regression caused by the features you are mentioning. We previously did this |
Fix fedora-copr#3507 The issue was introduced in PR fedora-copr#3330. We previously did this on the backend: devel = uses_devel_repo(self.front_url, ownername, projectname) It looks like an unnecessary request, so I am sending the attribute as a part of the action data.
Fix fedora-copr#3507 The issue was introduced in PR fedora-copr#3330. We previously did this on the backend: devel = uses_devel_repo(self.front_url, ownername, projectname) It looks like an unnecessary request, so I am sending the attribute as a part of the action data.
Steps that lead me to this issue:
Behavior:
It failed with
Additional information:
copr regenerate-repos
doesn't help.Suggested fix:
Could you make
copr regenerate-repos
to purge whole repodata beforehand, so no nonexistent packages linger there?The text was updated successfully, but these errors were encountered: