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

RFE: Ignore scratch builds if Packit config is present #591

Open
penguinpee opened this issue Feb 12, 2024 · 7 comments
Open

RFE: Ignore scratch builds if Packit config is present #591

penguinpee opened this issue Feb 12, 2024 · 7 comments

Comments

@penguinpee
Copy link

NeuroFedora SIG is adding more and more packages it maintains collectively to Packit. Before Packit we relied on scratch builds triggered by Anitya on retrieving a new release.

It seems we often forget to change the monitoring setting in dist-git from "scratch builds" to "monitoring" after having added a Packit config file (.packit.yml or .packit.yaml) to git. One reason is probably the fact that the setting can only be changed by an admin. For most packages the access for neuro-sig, the NeuroFedora group, is limited to commit access, which is more than sufficient.

So, my idea is to have Anitya be smart about it and ignore monitoring status "scratch builds" if it finds a Packit config file in the packages repo. We'd still like to have bugs opened for tracking purposes. Maybe Anitya could add a comment like:

Skipping scratch build due to presence of Packit config. Please consider setting monitoring status to "monitoring".

@penguinpee
Copy link
Author

I see GitHub already did its magic. For completeness and transparency, I've filed a similar request on Packit: packit/packit#2232. I'll keep an eye on both.

@penguinpee
Copy link
Author

One reason is probably the fact that the setting can only be changed by an admin

To clarify, only the main admin (owner) of the package can change it from "scratch builds" to something else. However, for going from "no monitoring" to "monitoring" admin privileges appear to be sufficient.

@Zlopez Zlopez transferred this issue from fedora-infra/anitya Feb 13, 2024
@Zlopez
Copy link
Contributor

Zlopez commented Feb 13, 2024

I transferred this to the-new-hotness as Anitya is not the one who is interacting with dist-git.

I'm not sure if just checking for the packit config file is a good way to do it as it doesn't need to mean that the scratch builds are done by packit. But I will look into this and try to find some solution. We should probably think of something together with packit folks as the-new-hotness and packit are sometimes overlapping in their responsibilities.

@penguinpee
Copy link
Author

Thanks for the transfer. I always seem to get this wrong1.

I thought some more about it and actually came to the same conclusion. Packit is only submitting a PR. But it depends on the package being configured for CI and/or Zuul if a scratch build will be triggered. Thus, there might be packages still relying on the scratch builds triggered by hotness.

I'll leave it to you and the Packit folks to figure out what's sensible here. Maybe the function of the button can be changed or extended or a new button added? Just a thought.

Footnotes

  1. At least there is consistency in my failures. 😉

@Zlopez
Copy link
Contributor

Zlopez commented Feb 13, 2024

Let me look in the packit issue and we try to figure something out.

@sergiomb2
Copy link

if we go from "scratch builds" to "monitoring" , will the-new-hotness open a bugzilla report ?

@Zlopez
Copy link
Contributor

Zlopez commented Mar 4, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants