kubewarden / policy-server

Webhook server that evaluates WebAssembly policies to validate Kubernetes requests
https://kubewarden.io
Apache License 2.0
138 stars 18 forks source link

test: add json output as otel assertions custom message #925

Closed fabriziosestito closed 1 month ago

fabriziosestito commented 1 month ago

Description

Sporadically, the test_otel integration test fails in the CI (see #916). However, this proved to be hard to reproduce locally. For this reason, we are adding the full output as a custom message to the failing assertion, so we can debug the flakiness in a later step.

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 63.11%. Comparing base (400ca81) to head (a11c721). Report is 4 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #925 +/- ## ======================================= Coverage 63.11% 63.11% ======================================= Files 17 17 Lines 1052 1052 ======================================= Hits 664 664 Misses 388 388 ``` | [Flag](https://app.codecov.io/gh/kubewarden/policy-server/pull/925/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewarden) | Coverage Δ | | |---|---|---| | [integration-tests](https://app.codecov.io/gh/kubewarden/policy-server/pull/925/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewarden) | `55.56% <ø> (ø)` | | | [unit-tests](https://app.codecov.io/gh/kubewarden/policy-server/pull/925/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewarden) | `38.28% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewarden#carryforward-flags-in-the-pull-request-comment) to find out more.

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