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

Gitlab: Cannot transition status via :enqueue from :pending #4067

Open
3 tasks done
lukashass opened this issue Aug 29, 2024 · 2 comments
Open
3 tasks done

Gitlab: Cannot transition status via :enqueue from :pending #4067

lukashass opened this issue Aug 29, 2024 · 2 comments
Labels
bug Something isn't working forge/gitlab gitlab forge related

Comments

@lukashass
Copy link
Member

lukashass commented Aug 29, 2024

Component

server

Describe the bug

Gitlab jobs show the following error:

{"level":"error","error":"POST https://git.redacted/api/v4/projects/89/statuses/redacted: 400 {message: Cannot transition status via :enqueue from :running (Reason(s): Status cannot transition via \"enqueue\")}","time":"2024-08-29T14:22:18Z","message":"error setting commit status for redacted/redacted/redacted"}
{"level":"error","error":"POST https://git.redacted/api/v4/projects/89/statuses/redacted: 400 {message: Cannot transition status via :enqueue from :pending (Reason(s): Status cannot transition via \"enqueue\")}","time":"2024-08-29T14:26:51Z","message":"error setting commit status for redacted/redacted/redacted"}

Steps to reproduce

  1. Updated to next
  2. Run a Gitlab pipeline

Expected behavior

No response

System Info

{"source":"https://github.com/woodpecker-ci/woodpecker","version":"next-42e7d71680"}

Additional context

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
@lukashass lukashass added the bug Something isn't working label Aug 29, 2024
@lukashass lukashass added this to the 3.0.0 milestone Aug 29, 2024
@woodpecker-ci woodpecker-ci deleted a comment from jungminjun824 Aug 29, 2024
@lukashass
Copy link
Member Author

@lukashass lukashass changed the title Gitlab pipeline does not start: Cannot transition status via :enqueue from :pending Gitlab: Cannot transition status via :enqueue from :pending Aug 29, 2024
@qwerty287 qwerty287 added the forge/gitlab gitlab forge related label Aug 31, 2024
@pat-s
Copy link
Contributor

pat-s commented Oct 28, 2024

I had a closer look at this.

The underlying issue is that GL cannot update a pipeline status with the same status it is already in.

I also tried the fix from atlantis - however, even when changing pending/running (or only use running), the error still persists as some part of the WP is trying to change a pipeline state to the same value it is already in.
I assume this might be coming from matrix workflows or similar.

FWIW this error is not of any harm as everything else continues to work as intended - and likely also hard to fix as only GL complains about it and fixing it would likely require a rewrite of some pipeline status update logic when then would maybe break other forges.

@pat-s pat-s removed this from the 3.0.0 milestone Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forge/gitlab gitlab forge related
Projects
None yet
Development

No branches or pull requests

3 participants