Skip to content

Conversation

@cthulhu-rider
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Aug 18, 2025

Codecov Report

❌ Patch coverage is 97.36842% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 24.97%. Comparing base (86ea4df) to head (782ad58).
⚠️ Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
pkg/metrics/engine.go 81.81% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3534      +/-   ##
==========================================
+ Coverage   24.81%   24.97%   +0.16%     
==========================================
  Files         674      677       +3     
  Lines       50133    50201      +68     
==========================================
+ Hits        12440    12538      +98     
+ Misses      36698    36669      -29     
+ Partials      995      994       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cthulhu-rider cthulhu-rider force-pushed the engine-ec branch 6 times, most recently from 5f051e0 to deb0a96 Compare August 20, 2025 09:17
@cthulhu-rider cthulhu-rider marked this pull request as ready for review August 20, 2025 12:42
)

// ObjectID is an object ID as error.
type ObjectID oid.ID
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is done only for unwrapping? will there be such real cases? cant it be more descriptive like UnreadableObject?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unwrapping, yes. We often wrap IDs, like return fmt.Errorf("failed to handled object %s: %w", id, err). In some cases caller may wish to handle the ID specifically. This allows to get it for free w/o additional return statement

cant it be more descriptive like UnreadableObject?

i wanna keep it as simple as is, so that each use case can give it a special meaning

will there be such real cases?

may be, this is very generic element

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i meant this is used in engine pkg and returned only by shard pkg, so maybe that is a good place for it. i do understand that it can be used in the future in some other packages. but ok

Will be used to implement #3422.

Signed-off-by: Leonard Lyubich <[email protected]>
Object address is always passed, so it's excessive to polymorph its
interface.

Signed-off-by: Leonard Lyubich <[email protected]>
@cthulhu-rider cthulhu-rider merged commit be59b71 into master Aug 22, 2025
21 of 22 checks passed
@cthulhu-rider cthulhu-rider deleted the engine-ec branch August 22, 2025 10:25
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.

4 participants