Skip to content
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

dist-git: provide a way to request cleanup on per-package basis (front-end config) #276

Closed
fedora-copr-github-bot opened this issue Nov 16, 2022 · 1 comment
Labels
code-cleanup RFE Enhancement, feature requests

Comments

@fedora-copr-github-bot
Copy link
Collaborator

fedora-copr-github-bot commented Nov 16, 2022

Original issue: https://pagure.io/copr/copr/issue/276
Opened: 2018-03-23 06:34:29
Opened by: praiskup

Even though I'm sure we should protect the dist-git feature in copr --
there are coprs like https://copr.fedorainfracloud.org/coprs/praiskup/distgen-ci/ where we can expect a lot of different tarballs imported into dist-git (multiple builds for each upstream pull request) - and nobody will ever look at those tarballs (nor we can expect resubmit, etc.).

Generally, we should have an option (can by default on) to request dist-git lookaside cache cleanup, thus keep only the git changes persistent (so the git history for spec files (those are often generated) is persistently presented in cgit).

I know that implementing https://bugzilla.redhat.com/show_bug.cgi?id=1427431 wouldn't be trivial, and that it is not easy to detect that some file (candidate for removal) is not referenced by some other package in distgit (and thus remove anything). So the proposal to make it easy to implement would be:

web-ui frontend checkbox for Package:
[ ] persistent storage for dist-git lookaside cache

dist-git should have two lookaside cache paths, the second one where ..

  • we can safely garbage collected files (e.g. all files older than 24 hours)
  • we don't have to serve the re-submit functionality
  • each build has it's own directory in lookaside storage, so that multiple builds do not share any imported file

clime commented at 2018-03-23 07:50:38:

Even though I'm sure we should protect the dist-git feature in copr --
there are coprs like https://copr.fedorainfracloud.org/coprs/praiskup/distgen-ci/ where we can expect > a lot of different tarballs imported into dist-git (multiple builds for each upstream pull request) - and > nobody will ever look at those tarballs (nor we can expect resubmit, etc.).

We won't be ultimately importing those dynamically built tarballs into copr-dist-git. Instead they will be just stored in srpms on backend for some time and then probably automatically cleaned up by prunerepo. We might make it possible to enable storing them somewhere else by some optional hook in some deployments.


clime commented at 2018-03-23 07:52:25:

I think there already was more than enough discussion about this, so closing. Feel free to reopen.


praiskup commented at 2018-03-23 08:11:37:

We won't be ultimately importing those dynamically built tarballs into copr-dist-git.

It's sometimes useful, and you are too definitive here.

I think there already was more than enough discussion about this,

Obviously not.

Feel free to reopen.

Taking the liberty.


praiskup commented at 2018-03-23 08:22:40:

Obviously not.

Btw., nobody did the research about "how the dist git is useful" in copr in reality, and
whether automatic imports can co-exist with "writeable dist-git" proposal. I know @clime you claimed you'll do the research before even thinking about changing how copr dist-git works (but you consistently keep definitively saying how "we" will change this..; you're not the only one here, really).

I'm ok to setup some survey, should I?


clime commented at 2018-03-23 08:45:46:

Obviously not.

Btw., nobody did the research about "how the dist git is useful" in copr in reality, and
whether automatic imports can co-exist with "writeable dist-git" proposal. I know @clime you claimed you'll do the research before even thinking about changing how copr dist-git works (but you consistently keep definitively saying how "we" will change this..; you're not the only one here, really).
I'm ok to setup some survey, should I?

well, sure, you can. But I would wait until we actually get the point where we need to implement this. Right now, we have an active survey about Github<->COPR CI so I am not sure if we should put up more of them right now (we can pace it a bit).

@fedora-copr-github-bot fedora-copr-github-bot added RFE Enhancement, feature requests code-cleanup labels Nov 24, 2022
@praiskup
Copy link
Member

praiskup commented Jan 3, 2023

Triage mtg: The problem now is reversed, we have automatic cleanup for every project. And opt-out would require a customer.

@praiskup praiskup closed this as completed Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-cleanup RFE Enhancement, feature requests
Projects
Archived in project
Development

No branches or pull requests

2 participants