external stage (commit status) falsely marked as failed

Summary

Hello.

The external stage (commit status) is falsely marked as failed.

image

The pipeline itself is marked as passed.

image

Steps to reproduce

  1. set a commit status to failed
  2. set it to success

(It seems like our local installation requires a status with description to show this behaviour.)

.gitlab-ci.yml

stages:
- test

test:
  stage: test
  script:
    - |
      curl \
        --request POST \
        --header "PRIVATE-TOKEN: $PRIVATE_API_TOKEN" \
        "https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/statuses/$CI_COMMIT_SHA?state=failed&description=error"
    - |
      curl \
        --request POST \
        --header "PRIVATE-TOKEN: $PRIVATE_API_TOKEN" \
        "https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/statuses/$CI_COMMIT_SHA?state=success&description=ok"

image

Example Project

https://gitlab.com/s.seypt/pipeline-commit-status-bug

What is the current bug behavior?

Gitlab indicates failed.

What is the expected correct behavior?

Gitlab indicates success.

Output of checks

This bug happens on GitLab.com

Assignee Loading
Time tracking Loading