Skip to content

Enable gitea status in flakes#1232

Open
DarkKirb wants to merge 1 commit intoNixOS:masterfrom
DarkKirb:gitea-flake
Open

Enable gitea status in flakes#1232
DarkKirb wants to merge 1 commit intoNixOS:masterfrom
DarkKirb:gitea-flake

Conversation

@DarkKirb
Copy link
Contributor

@DarkKirb DarkKirb commented Jul 1, 2022

Curently the GiteaStatus plugin only works for legacy inputs, as it attempts to read repository metadata from the jobsetevalinputs (which I don’t think can be set for flakes).

This PR adds support for many gitea instances by checkng whether the domain is hosting gitea. This is done by querying the /api/swagger endpoint, as that is a small static page that contains “Gitea” even when the instance has been renamed.

Gitea instances that are hosted in a subfolder are not supported.

Curently the GiteaStatus plugin only works for legacy inputs, as it
attempts to read repository metadata from the `jobsetevalinput`s (which
I don’t think can be set for flakes).

This Commit adds support for many gitea instances by checkng whether the
domain is hosting gitea. This is done by querying the /api/swagger
endpoint, as that is a small static page that contains “Gitea” even when
the instance has been renamed.

[Gitea instances that are hosted in a
subfolder](https://docs.gitea.io/en-us/reverse-proxies/#nginx-with-a-sub-path)
are not supported.
@Ma27
Copy link
Member

Ma27 commented Oct 7, 2022

Even though the UI prohibits it, it's perfectly possible to specify both a flake-ref and jobset inputs.
I changed this in #922. With that patch you can do both (and I actually use it for precisely your use-case: building flakes in Hydra and pushing the status to gitea, see for instance https://hydra.ist.nicht-so.sexy/eval/795#tabs-inputs).

@jiriks74
Copy link

jiriks74 commented Mar 5, 2025

I ran into this as well. Took me some time to get hydra running and for it to build my system but now I've hit a roadblock.

My systems are defined in a flake but I can't propagate the build status if the jobset is a flake and I don't know if it's possible to load it from a flake. Would be helpful to move this along.

@dasJ dasJ added plugins notify hydra-notify component labels Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notify hydra-notify component plugins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants