The GitHub Actions job "Required Checks" on texera.git/main has failed.
Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).

Head commit for run:
b6f682c2a03a3857be93c00f455683368114607b / Xinyuan Lin <[email protected]>
test(workflow-core): add unit test coverage for StorageUtil (#4761)

### What changes were proposed in this PR?

Add `StorageUtilSpec` covering the loan-pattern wrappers in
`StorageUtil`:

- `withReadLock`, `withWriteLock`, and `withLock` execute the block and
return its value
- Each wrapper releases the underlying lock even when the block throws

### Any related issues, documentation, discussions?

Closes #4759

### How was this PR tested?

`sbt "WorkflowCore/testOnly
org.apache.texera.amber.core.storage.util.StorageUtilSpec"` — 6/6 tests
pass.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 4.7)

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/25280037411

With regards,
GitHub Actions via GitBox

Reply via email to