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

Build triggered by Anyita #3515

Open
brianjmurrell opened this issue Nov 16, 2024 · 9 comments
Open

Build triggered by Anyita #3515

brianjmurrell opened this issue Nov 16, 2024 · 9 comments

Comments

@brianjmurrell
Copy link

I have noticed that when you define a package with a PyPI package source you can enable Anitya autorebuild. This is really neat.

I don't see any way to do this for other package types though. I do see Auto-rebuild but AFAIU that requires co-operation from an SCM repository owner to create webhooks for you. If you want to build software from some repository that is unrelated to you, you may not get the co-operation of the repository owner to send COPR a webhook. Anitya is a great substitute for this.

Could an Anitya trigger be added to other source types please?

@nikromen
Copy link
Member

Would you like to specify what source type you want from us to support? Adding anytia for all source types is too general and we won't have the capacity for that to do it in one ticket. But we can cover your specific use case

@brianjmurrell
Copy link
Author

If you covered the Custom type, I suppose that would be the most flexible as any other source type could be implemented with Custom.

@praiskup
Copy link
Member

@brianjmurrell what is happening for gems and python is that anytia
reports us that a "python package Foo gets update with version Bar".

When such message is delivered to Copr, it goes through the database
of all Python packages - and if there a) are such packages, b) they
have this anytia checkbox ON, and c) the latest version built is older
than the newly released version - the build for this package is triggered.

I'm not sure how to map these messages to the custom builds spec. We
only know the "RPM package name", not python package name there.
With the custom method, we don't even know the upstream source clone
url actually.

@brianjmurrell
Copy link
Author

I would think that along with the option to trigger on anytia one would indicate the particular anyita project they want to trigger their Copr build on being updated.

@brianjmurrell
Copy link
Author

brianjmurrell commented Nov 27, 2024

Hrm. I'm observing that in https://release-monitoring.org/ for a given project there are distribution mappings and one of the distributions is COPR. How does that work exactly?

It seems I can add a COPR mapping and map it to my Copr user/project. So what actually happens in Copr as result of that?

@praiskup
Copy link
Member

It seems I can add a COPR mapping and map it to my Copr user/project. So what actually happens in Copr as result of that?

This is interesting. I don't know, @Zlopez would you help us?

@Zlopez
Copy link

Zlopez commented Dec 2, 2024

Nothing happens, as the release-monitoring.org only builds packages that have Fedora mapping and the owner of the repository actually wants them to be build.

If there is some autobuild feature in Copr for Anitya PyPI projects I'm not aware of that.

@brianjmurrell
Copy link
Author

Nothing happens,

This is a real pity, as I think it would resolve this ticket.

as the release-monitoring.org only builds packages that have Fedora mapping and the owner of the repository actually wants them to be build.

So all of the dozens of other mappings at release-monitoring.org do nothing? Why are they there if that's the case? What purpose do they serve?

In any case, maybe we are back to COPR needing to support this more directly.

@Zlopez
Copy link

Zlopez commented Dec 2, 2024

The release-monitoring.org only watches for new releases, other services could listen to messages it emits and do what they want with them. Fedora builds are done by the same way we have a service running called the-new-hotness which is listening for the messages and checks if the maintainer should be notified or not.

Another service that is running and listening to Anitya messages is Flathub x-flatpak-checker which updates flatpaks when release-monitoring.org finds new release.

I only maintain Anitya and the-new-hotness as those are related to Fedora ecosystem.

@nikromen nikromen moved this from Needs triage to Someday in future in CPT Kanban Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Someday in future
Development

No branches or pull requests

4 participants