stack/apps
Aman Ganapathy 970c01998c
[Refactor] [Bulldozer]: unwrap lmdb errors (#1775)
CommitErrors are hard to parse as they stand so we unwrap them.


<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Unwrap `lmdb` commit failures to surface the real underlying error
(e.g., ENOSPC/MDB_MAP_FULL) instead of the opaque "Commit failed"
wrapper. Improves logs and error propagation across
availability/durability paths.

- **Refactors**
- Added `unwrapLmdbCommitError` to await and rethrow the real `lmdb`
commit error; returns `HexclaveAssertionError` if not an `Error`
(`@hexclave/shared`).
- Routed all availability/durability trackers and batched commit paths
through the unwrapping helper to ensure callers see the true cause.
  - Tests cover pass-through, unwrap behavior, and non-Error assertions.
- Updated a comment in `instant-availability` to note low-level LMDB
unwrapping.

<sup>Written for commit 0a1d69beae.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/hexclave/hexclave/pull/1775?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved LMDB commit error reporting by exposing the underlying cause
instead of an opaque wrapper.
* Ensured pending availability and durability operations receive the
unwrapped commit error.
  * Added handling for commit failures with unexpected error values.

* **Tests**
* Added coverage for wrapped, unwrapped, and non-standard commit error
scenarios.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-17 09:20:19 -07:00
..
backend Fix recurring production Sentry errors (#1768) 2026-07-16 17:20:49 -07:00
bulldozer-js [Refactor] [Bulldozer]: unwrap lmdb errors (#1775) 2026-07-17 09:20:19 -07:00
dashboard Fix item quantity dialog balance preview flicker on submit (#1774) 2026-07-17 09:09:15 -07:00
dev-launchpad chore: update package versions 2026-07-06 23:34:27 +00:00
e2e Fix recurring production Sentry errors (#1768) 2026-07-16 17:20:49 -07:00
hosted-components chore: update package versions 2026-07-06 23:34:27 +00:00
internal-tool chore: update package versions 2026-07-06 23:34:27 +00:00
mcp chore: update package versions 2026-07-06 23:34:27 +00:00
mock-oauth-server chore: update package versions 2026-07-06 23:34:27 +00:00
oauth-mock-server In-source unit tests (#429) 2025-02-14 11:47:52 -08:00
skills chore: update package versions 2026-07-06 23:34:27 +00:00