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

Last commit status in pull request lists are not shown #8160

Closed
1 of 7 tasks
dschmidt opened this issue Sep 12, 2019 · 17 comments
Closed
1 of 7 tasks

Last commit status in pull request lists are not shown #8160

dschmidt opened this issue Sep 12, 2019 · 17 comments
Labels
Milestone

Comments

@dschmidt
Copy link

dschmidt commented Sep 12, 2019

  • Gitea version (or commit ref): v1.9.3 from Docker Image
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

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.

Screenshots

Nothing to see really, the little dots are simply not there:
Screenshot_list

Although the single PR view shows the status just fine:
Screenshot_pr

@lunny
Copy link
Member

lunny commented Sep 12, 2019

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.

@lunny lunny added the type/enhancement An improvement of existing functionality label Sep 12, 2019
@dschmidt
Copy link
Author

Isn't that what #6465 was about? Or am I misinterpreting its screenshots and looking at a wrong place?

@lunny
Copy link
Member

lunny commented Sep 12, 2019

@dschmidt missed that. So that should be a bug of that.

@lunny lunny added type/bug and removed type/enhancement An improvement of existing functionality labels Sep 12, 2019
@lunny lunny added this to the 1.9.4 milestone Sep 12, 2019
@dschmidt
Copy link
Author

FWIW I'm using the Jenkins integration (uargh), in case it's related.

@yzzyx
Copy link
Contributor

yzzyx commented Sep 12, 2019

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?
pullrequests

@lunny
Copy link
Member

lunny commented Sep 12, 2019

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.

@MarkusAmshove
Copy link
Contributor

MarkusAmshove commented Sep 13, 2019

#7877 is the same issue and we don't use forks. I couldn't dive deep into the problem, but when there are multiple PRs open, you might see the status from PR 1 at PR 5 for example, so it could just be an off by n issue somewhere in the view :-)
So I think the third case in the linked issue is the origin of the problem

@dschmidt
Copy link
Author

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...

@dschmidt
Copy link
Author

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.

@yzzyx
Copy link
Contributor

yzzyx commented Sep 27, 2019

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?

@dschmidt
Copy link
Author

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...

@MarkusAmshove
Copy link
Contributor

@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 :-)

@dschmidt
Copy link
Author

Usually only one or two, I could possibly try with more... probably not this week anymore though.

@yzzyx
Copy link
Contributor

yzzyx commented Sep 29, 2019

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.

@MarkusAmshove
Copy link
Contributor

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 ;-)

@yzzyx
Copy link
Contributor

yzzyx commented Sep 29, 2019

@MarkusAmshove hopefully it will fix both cases.

@lunny
Copy link
Member

lunny commented Sep 30, 2019

closed by #8316

@lunny lunny closed this as completed Sep 30, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants