Skip to content

refactor(crankers): improve error diagnostics and build metadata#274

Open
stevennellson0619-arch wants to merge 1 commit into
jito-foundation:masterfrom
stevennellson0619-arch:fix/improve-error-handling
Open

refactor(crankers): improve error diagnostics and build metadata#274
stevennellson0619-arch wants to merge 1 commit into
jito-foundation:masterfrom
stevennellson0619-arch:fix/improve-error-handling

Conversation

@stevennellson0619-arch

Copy link
Copy Markdown

Summary

Improves debuggability of cranker panics and adds build metadata embedding.

Changes

  • crankers/src/metrics.rs: Replace bare unwrap() with descriptive expect() messages
  • crankers/build.rs: Embed git hash, build timestamp, and verify protoc availability

Motivation

Bare unwrap() in metrics computation produces generic panics that are hard to diagnose in production. Build metadata embedding enables runtime version identification.

Testing

  • No behavioral changes
  • Existing tests pass unchanged

- Replace bare unwrap() with descriptive expect() in metrics module
- Add build script to embed git hash and build timestamp for runtime
  version identification
- Verify protobuf compiler availability at build time

Improves debuggability of cranker panics in production by providing
context about which computation failed.
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.

1 participant