[x]
):I updated from 1.8.1 to 1.9.3 because I wanted better status reporting for CI. The report underneath the PR itself works fine, but I see no trace of the feature "Show last commit status in pull request lists" from PR #6465, which to my understanding should be included in 1.9.3, right?
I'm sorry to open a new issue, but commenting isn't possible anymore after the pull request was closed.
Nothing to see really, the little dots are simply not there:
Although the single PR view shows the status just fine:
~The CI status on PR list is not implemented yet I think. We need a PR to resolve that. I think it could be on v1.10.~
Isn't that what #6465 was about? Or am I misinterpreting its screenshots and looking at a wrong place?
@dschmidt missed that. So that should be a bug of that.
FWIW I'm using the Jenkins integration (uargh), in case it's related.
Hmm..
I'm using Jenkins aswell, and it works for me in Gitea Version: 1.10.0+dev-232-gf1c414882.
My backend is Postgres, but I don't think that should matter(?).
What version more specifically are you running?
I may found the bug. When the base repository is the same as the head repository, then it works. If it's from a forked repository, it will not work.
Look at
https://github.com/go-gitea/gitea/blob/master/models/pull.go#L349
it should be baseRepo
here but not headRepo
.
So I think the third case in the linked issue is the origin of the problem
I'm using Jenkins aswell, and it works for me in Gitea Version: 1.10.0+dev-232-gf1c414882.
Okay, that's good to know - I found setting up Jenkins quite wonky and was afraid it might be related to the plugin because it's not being maintained so well :)
I may found the bug. When the base repository is the same as the head repository, then it works. If it's from a forked repository, it will not work.
Maybe several issues here? As you can see in my screenshot I'm also not using forks...
What version more specifically are you running?
As I said I'm using the 1.9.3 docker image, I assume it's built from the v1.9.3 tag.
I finally got some time to look at this, but I didn't manange to reproduce it when building from HEAD, so I'll backtrack to 1.9.3, and check with the same steps there.
Have you managed to see any patterns in which PR's or commits that are missing the build status?
Well, I'm afraid the pattern is "always". I have never seen those little dots in my installation so far, and I've been working with it since I posted this issue...
@dschmidt how many PRs are open in your repositories? Do they show up if you have a full page of PRs in the list?
We have the problem that they're off by some offset (showing on the wrong PR) and the some not having any dot. The pattern is also "always" I'm afraid :-)
Usually only one or two, I could possibly try with more... probably not this week anymore though.
I found the cause of this, and the reason why I couldn't reproduce it in my tests - we were checking against the ID of the issue instead of the ID of the PR. These coincide as long as no issues exists. After the first issue is created, they will not match anymore.
I've also fixed the headRepo/baseRepo mismatch that lunny mentioned above.
I found the cause of this, and the reason why I couldn't reproduce it in my tests - we were checking against the ID of the issue instead of the ID of the PR. These coincide as long as no issues exists. After the first issue is created, they will not match anymore.
I've also fixed the headRepo/baseRepo mismatch that lunny mentioned above.
Is this for the "not shown" issue or "off by some" issue? Because we don't use Gitea issues, just PRs ;-)
@MarkusAmshove hopefully it will fix both cases.
closed by #8316
Most helpful comment
I found the cause of this, and the reason why I couldn't reproduce it in my tests - we were checking against the ID of the issue instead of the ID of the PR. These coincide as long as no issues exists. After the first issue is created, they will not match anymore.
I've also fixed the headRepo/baseRepo mismatch that lunny mentioned above.