Open eckter opened 1 month ago
:warning: Please install the to ensure uploads and comments are reliably processed by Codecov.
Attention: Patch coverage is 5.55556%
with 17 lines
in your changes missing coverage. Please review.
Project coverage is 37.49%. Comparing base (
3fc524d
) to head (03e0082
).
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The current situation
There was a confusion around "hard infra error" types
The original error was used in
InfraManager
and its only content is that the infra couldn't be loaded. "source operation" described at what step it failed. It had no other context.Then it was also used to describe any infra error. "Source operation" was used with strings instead, with the error message.
The error in
InfraManager
is actually thrown any time something was thrown while loading an infra, which removes any kind of context or explanation.Content of this PR
The two use cases have been split. The original use remains as it is.
A new error has been created for generic infra errors. It still lacks details and eventually we should have different errors for each case.
When the original error is thrown because of another exception, the original error is now included in the context.
Open questions
InfraManager
to wrap everything in its own error? It seems to be used to identify "soft error" / "hard error". Could we use another method instead?