The GitHub Actions job "Build and push images" on texera.git/main has failed. Run started by GitHub user bobbai00 (triggered by bobbai00).
Head commit for run: 2538d6a5e4bf99031eec092c6efd51ff87743896 / Meng Wang <[email protected]> test(amber): cover the DB-backed TryLockRequest branches in CollaborationResource (#7254) ### What changes were proposed in this PR? Extends the existing `CollaborationResourceSpec` to cover the `TryLockRequest` branches that consult the database (`amber/src/main/scala/org/apache/texera/web/resource/CollaborationResource.scala`). The prior spec (#6904) left these uncovered because they reach `WorkflowAccessResource.hasWriteAccess`, which needs `SqlServer`. No production code was changed. The suite now also mixes in `MockTexeraDB`: for these three tests a user, a workflow and one `workflow_user_access` row are seeded so `checkIsReadOnly` → `hasWriteAccess` reads a real privilege. The session is still driven through `myOnMsg` with the existing mocked `javax.websocket.Session`, and outgoing events are asserted from the captured send buffer. +3 tests: - read-only user (`workflow_user_access` = READ) → `LockRejectedEvent` + `WorkflowAccessEvent(workflowReadonly=true)`, and the holder slot is set to the `null` sentinel. - writable user (WRITE) with no current holder → `WorkflowAccessEvent(readonly=false)` + `LockGrantedEvent`, and the holder becomes the sender. - writable user when a different session already holds the lock → `WorkflowAccessEvent(readonly=false)` + `LockRejectedEvent`, holder unchanged. ### Any related issues, documentation, discussions? Closes #7228 ### How was this PR tested? Extended unit tests, run locally against embedded Postgres (`MockTexeraDB`). All pass, and the failure path was verified by breaking an assertion to confirm the suite goes red: ``` sbt "WorkflowExecutionService/testOnly *CollaborationResourceSpec" # Tests: succeeded 16, failed 0 sbt "WorkflowExecutionService/Test/scalafmtCheck" # clean sbt "WorkflowExecutionService/Test/scalafix --check" # clean ``` ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Opus 4.8 [1M context]) Report URL: https://github.com/apache/texera/actions/runs/30780760273 With regards, GitHub Actions via GitBox
