pipelines-as-code icon indicating copy to clipboard operation
pipelines-as-code copied to clipboard

skipped run doesn't seem to be cleared after being allowed

Open chmouel opened this issue 3 years ago • 4 comments

if:

  • non allowed user submit a PR
  • PAC deny it with a :

image

  • other Allowed user send a /ok-to-test
  • PR gets started
  • it gets tested as such :

image

  • but old status is still there :

image

when it should have been cleared,

I did add some code for this to clear the old statuses, i wonder since we moved to a reconciler we lost that feature..

example in this repo: https://github.com/redhat-appstudio/application-service/pull/133

cc @sm43

chmouel avatar Jul 20 '22 08:07 chmouel

not sure 🤔 usually while testing this case never occurred 😅 https://github.com/openshift-pipelines/pipelines-as-code/blob/1814723efe1daea9fb2fb687fb0060f7664fb79c/pkg/provider/github/status.go#L58 we need a check here if title is skipped then delete it wdyt? I am sure where we used to handle that 🤔

sm43 avatar Jul 25 '22 08:07 sm43

maybe check in there if there is multiple check runs previously that is coming from pipelines as code that has "skipped" status and clear it? i guess that woudl work because at this time we are in allowed and running mode?

(sorry if this is not clear)

chmouel avatar Jul 25 '22 10:07 chmouel

maybe check in there if there is multiple check runs previously that is coming from pipelines as code that has "skipped" status and clear it? i guess that woudl work because at this time we are in allowed and running mode?

(sorry if this is not clear)

yeah this would work, checking status and clearing them

sm43 avatar Jul 27 '22 09:07 sm43

still hapenning

image

chmouel avatar Oct 17 '22 14:10 chmouel

https://github.com/openshift-pipelines/pipelines-as-code/pull/964 fixed

sm43 avatar Nov 14 '22 10:11 sm43