BR image does not provide link to project when no build happened #94
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The image such as https://br.opensuse.org/status/Java:packages/jameica has no link to the build project when no build happened.
This can be because all builds are blocked by other packages or because there is some other problem (such as all build architectures are disabled). Even in these cases a link to the build project should be available.
this probably belongs outside of the br.opensuse.org? So, in this case, it would be something like
and gets rendered as,
Alternatively, what link are you actually looking for?
The image has embedded links to the project for cases where build finished or is in progress. for the blocked case there is no link. If all architectures were disabled there would not be any link, either.
Users should not need to use different way to get to the project depending on package state.
FWIW adding the project&package name for which the build results are for in the image with a link to the project would likely resolve this.
Not only the build result but also the architecture could be linkified. That would resolve the blocking problem.
Question here is what are you trying to do? Are you parsing this with some script? Or you want visual output? Visually, you can see the repository and arch.
If you prefer other input, with more information,
curl -H 'accept: application/obs+xml' https://br.opensuse.org/status/Java:packages/jameicacurl -H 'accept: application/json' https://br.opensuse.org/status/Java:packages/jameicafor non-svg output type.
I want a link in the image so that I can navigate to the repository in question. At all times, whether it is building or not. So that I do not have to manually provide a separate link in case the image is generated with no link whatsoever. I don't want visual representation of the repository. I want a valid hyperlink that a web browser can understand.
But where do you want it to link to? Gitea? OBS? What about project level build results?
These images are really meant to be embedded in the repository where you do code contributions. I guess I do not understand this issue. The only links we have currently is to build logs, but that link could change as it currently is just a redirector to OBS frontend instead of providing the build logs directly.
And how do you go from the gitea repository to the OBS repository when all builds are blocked?
You have no link.
And not providing the link to last build result when build is blocked is also somewhat stupid
Patches welcome. We added recently last build results on the Redis backend, but that's not exported yet. Caching these build results on disk when staging project disappears is probably a nice feature too.
Above is where the package link is created. And it's added here to the package build results.
I do not understand what other link you'd like and where to put it. If you'd like to always have a link to the build log, no matter what, then the patch seems simple here. But if you'd like another link, like to last successful build or last build, then maybe another place on the SVG would need to be added as a link.
yes, just a way to go to OBS even in the states that currently do not provide a link