Move wait for log uploads logic out of logger and tracer into pipeline runtime#6471
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
|
we get rid of all the hacks more and more 🎉 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6471 +/- ##
==========================================
- Coverage 41.25% 41.19% -0.06%
==========================================
Files 431 431
Lines 28792 28779 -13
==========================================
- Hits 11878 11856 -22
- Misses 15847 15853 +6
- Partials 1067 1070 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
this is also the successor to #6263 |
|
PS: if you want to verify non flakyness, just runn this on main and this pull head: (run can take a few minutes...(depending on how insane you go with count)) |
current flaky-ness:
flaky-ness is gone:
|
8c5b01a to
8df3d7b
Compare
|
Surge PR preview deployment was removed |
|
sorry i tested this as hard as i could .. by running manual real pipelines in local and docker backend, rerun tests suite a lot and catch all imposible bugs etc ... still I should have just tested "services" in a real pipeline. i did not :/ -> #6507 this here make sure traces are uploaded before we return, but we depend on return to fully stop the workflow ATM ... the mentioned pull makes workflow shutdown explizite and still has defer for cases we have an error etc... |


fix https://ci.woodpecker-ci.org/repos/3780/pipeline/33635/39 as the dummy backend just returns to fast and so sometimes the uploads wait group was just to slow, now we remove the wait from the logger and tracer implementation into the runtime where it belongs
PS: this race also ocures in real world usage, where the agent operates on ram disks
this is also the successor to #6263