Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrapped errors support on metered persistence wrappers #6035

Conversation

3vilhamster
Copy link
Member

@3vilhamster 3vilhamster commented May 21, 2024

What changed?
Added support for wrapped errors on metered wrappers. Once this is landed I'll go through the code and migrate all err.(type) cases to errors.As.

Why?
To improve error tracing with wrapping in the future.

How did you test it?
Unit tests.

Potential risks

Release notes

Documentation Changes

Copy link

codecov bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.05%. Comparing base (02c7efb) to head (4212d6f).
Report is 1 commits behind head on master.

Additional details and impacted files
Files Coverage Δ
common/persistence/wrappers/metered/base.go 98.47% <100.00%> (+42.74%) ⬆️

... and 10 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 02c7efb...4212d6f. Read the comment docs.

@3vilhamster 3vilhamster merged commit cc75f6f into cadence-workflow:master May 21, 2024
20 checks passed
@3vilhamster 3vilhamster deleted the metered-wrappers-to-wrapped-errors branch May 21, 2024 14:24
timl3136 pushed a commit to timl3136/cadence that referenced this pull request Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants