LinuxSuRen / LinuxSuRen/gogit

Can't update status PR for Gitlab

Open
#50 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
18
Forks
2
PR merge metrics
No merged PRs in 30d

Description

If many workflows run for the same PR, the status of the pipeline always stops Running. And cannot update the final result. Even though onExit was run successfully. Below is how I setup the hook for Argo Workflow

``` yaml
hooks:
running:
arguments:
parameters:
- name: repo_name
value: ""
- name: repo_namespace
value: ""
- name: pr_id
value: ""
- name: step
value: test
expression: workflow.status == "Running"
template: send-notification-git
exit:
arguments:
parameters:
- name: repo_name
value: ""
- name: repo_namespace
value: ""
- name: pr_id
value: ""
- name: step
value: test
template: send-notification-git
`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the hook configuration and the code handling GitLab status updates when multiple workflows target the same pull request. Reproduce the case with the provided running and exit hooks, then trace why the status remains Running despite onExit succeeding. Done means the final pipeline result is published reliably after concurrent workflows finish.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
ci-cd
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.