openshift-pipelines / pipelines-as-code

Pipelines-as-Code for Tekton
https://pipelinesascode.com
Apache License 2.0
124 stars 81 forks source link

do not use maps for custom ui console driver #1702

Closed chmouel closed 3 weeks ago

chmouel commented 4 weeks ago

and do a sync.RLock while using it to make sure this don't go off the rails (altho that's should not be absolutely necessary)

https://issues.redhat.com/browse/SRVKP-5507

Changes

Submitter Checklist

codecov[bot] commented 4 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 64.52%. Comparing base (9dcbe19) to head (10cf8ef). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1702 +/- ## ========================================== - Coverage 64.54% 64.52% -0.02% ========================================== Files 143 143 Lines 11098 11093 -5 ========================================== - Hits 7163 7158 -5 Misses 3413 3413 Partials 522 522 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

chmouel commented 4 weeks ago

I don't know how to reproduce since we don't have a clear case from the bug reports (and race are generally hard to reproduce properly), how that race is happening but there is E2E for custom console driver in gitea

savitaashture commented 3 weeks ago

/lgtm