Commit status indicator doesn't show latest status #3429

Closed
opened 2025-11-02 05:12:41 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @dr-consit on GitHub (Jun 5, 2019).

Description

On my commits a seemingly random status is shown instead of the latest status.
In the screenshotted example there are 4 statuses:
https://gist.github.com/dr-consit/2dc0ccf34c5246dc9ec7de8fc60a5c97
As can be seen the last status (id: 4) is success, but as seen on the screenshot the failure is the one that is shown.

Screenshots

image

Originally created by @dr-consit on GitHub (Jun 5, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version: 1.8.2 built with go1.12.5 : bindata, sqlite, sqlite_unlock_notify - Git version: 2.20.1 - Operating system: Ubuntu Server 19.04 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [X] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [X] No - [ ] Not relevant - Log gist: xorm.log: https://gist.github.com/dr-consit/a17dd521ca658187b9393006b931c9ff ## Description On my commits a seemingly random status is shown instead of the latest status. In the screenshotted example there are 4 statuses: https://gist.github.com/dr-consit/2dc0ccf34c5246dc9ec7de8fc60a5c97 As can be seen the last status (id: 4) is success, but as seen on the screenshot the failure is the one that is shown. ## Screenshots ![image](https://user-images.githubusercontent.com/26381190/58981013-c2f10200-87d1-11e9-8519-f3604fd73201.png)
Author
Owner

@dr-consit commented on GitHub (Jun 5, 2019):

OK, I have been poking about in the code and can see that it's because it shows the "worst" of the last statuses by context.
So if I have "error" as the last status of context "test" and "success" as last status of context "build", then even if the "build" status is newer than the "test" status, the shown status is still the "test" status.

I suppose this is by design.

@dr-consit commented on GitHub (Jun 5, 2019): OK, I have been poking about in the code and can see that it's because it shows the "worst" of the last statuses by context. So if I have "error" as the last status of context "test" and "success" as last status of context "build", then even if the "build" status is newer than the "test" status, the shown status is still the "test" status. I suppose this is by design.
Author
Owner

@lunny commented on GitHub (Jun 6, 2019):

@dr-consit yes, this is also which github's design I think.

@lunny commented on GitHub (Jun 6, 2019): @dr-consit yes, this is also which github's design I think.
Author
Owner

@dr-consit commented on GitHub (Jun 6, 2019):

@lunny Yeah, I suppose it's sane enough, I just never considered it. Maybe if the UI element had a hint with the context(s) and status it would be more "obvious" - or maybe I'm just oblivious ;-)

@dr-consit commented on GitHub (Jun 6, 2019): @lunny Yeah, I suppose it's sane enough, I just never considered it. Maybe if the UI element had a hint with the context(s) and status it would be more "obvious" - or maybe I'm just oblivious ;-)
Author
Owner

@lunny commented on GitHub (Jun 8, 2019):

I have a PR to add status report on PR UI. see #6845

@lunny commented on GitHub (Jun 8, 2019): I have a PR to add status report on PR UI. see #6845
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3429