Skip to content

Conversation

@FujiZ
Copy link
Contributor

@FujiZ FujiZ commented Feb 9, 2025

Try different ways of defining error types in order to get some insights. However, I haven't found a consistent methodology yet. Some of these definitions seem verbose and weird.

@codecov
Copy link

codecov bot commented Feb 9, 2025

Codecov Report

Attention: Patch coverage is 55.35714% with 25 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/ibverbs/device_context.rs 55.35% 25 Missing ⚠️

❌ Your patch status has failed because the patch coverage (55.35%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage.

Files with missing lines Coverage Δ
src/ibverbs/device_context.rs 86.58% <55.35%> (-0.57%) ⬇️

@FujiZ
Copy link
Contributor Author

FujiZ commented Feb 16, 2025

Change the definition according to https://gist.github.com/quad/a8a7cc87d1401004c6a8973947f20365. Now it looks more consistent to me.

@FujiZ FujiZ requested a review from dragonJACson February 16, 2025 11:05
@FujiZ FujiZ marked this pull request as ready for review February 16, 2025 11:06
Define error types in the way that conform to the practice mentioned
in https://gist.github.com/quad/a8a7cc87d1401004c6a8973947f20365

- AllocateProtectionDomainError
- QueryDeviceError
- QueryPortError
- QueryGidTableError
- QueryGidError

Signed-off-by: FujiZ <i@fujiz.me>
@dragonJACson dragonJACson self-requested a review February 16, 2025 15:11
@dragonJACson dragonJACson merged commit db43845 into main Feb 17, 2025
4 of 5 checks passed
@dragonJACson dragonJACson deleted the fz/error branch December 6, 2025 14:28
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.

3 participants