openshift-pipelines / pipelines-as-code

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

Puts a mutex lock in ConfigToSettings to avoid race condition #1648

Closed sm43 closed 3 months ago

sm43 commented 3 months ago

in parallel test for adapter, there was a race condition occuring in ConfigToSettings, this adds a lock to avoid it

Changes

Submitter Checklist

codecov[bot] commented 3 months ago

Codecov Report

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

Project coverage is 64.32%. Comparing base (3274759) to head (7bddb72). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1648 +/- ## ========================================== + Coverage 64.11% 64.32% +0.21% ========================================== Files 140 140 Lines 10912 10792 -120 ========================================== - Hits 6996 6942 -54 + Misses 3382 3334 -48 + Partials 534 516 -18 ```

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

chmouel commented 3 months ago

sounds good thanks the go-tet is green, but let's wait for e2e test for this one