The GitHub Actions job "Required Checks" on texera.git/main has succeeded. Run started by GitHub user github-merge-queue[bot] (triggered by github-merge-queue[bot]).
Head commit for run: 48356940005191408ed92a718d1f5a694b67417b / Meng Wang <[email protected]> refactor: move workflow access and result helpers to common (#9219) ### What changes were proposed in this PR? Moves four helpers that result-service (#8995) needs out of amber, into common modules both can depend on. The code moves verbatim and amber's callers import it from the new places, so behaviour is unchanged. | Helper | From (amber) | To | |---|---|---| | Workflow access checks: `hasReadAccess`, `hasWriteAccess`, `getPrivilege`, `isOwner`, `accessibleWids`, `hasGrantedAccess`, `isPublic` | `WorkflowAccessResource`'s companion | `common/auth`: `WorkflowAccess`, next to `ComputingUnitAccess` | | Result URI lookups: `getResultUrisByExecutionId`, `getResultUriByLogicalPortId` | `WorkflowExecutionsResource`'s companion | `common/workflow-core`: `ExecutionResultUris` | | `WarehouseReadGuard` and `WarehouseUnavailableException` | `web/service` | `common/workflow-core`, next to `VFSURIFactory` | | `convertTuplesToJson` and its binary-preview helpers | `ExecutionResultService` | `common/workflow-core`: `TupleUtils`, next to `tuple2json` | `isOwner` and `accessibleWids` were not in the issue's list; they move too so the access checks stay in one place. No `build.sbt` change: `common/auth` already depends on `common/dao`, and `common/workflow-core` on `common/dao` and `common/config`. ### Any related issues, documentation, discussions? Closes #9047. Part of #5363; prerequisite for #8995. ### How was this PR tested? - Every moved function is byte-identical to its original; `WarehouseReadGuard` differs only in its package line. - Tests of the moved functions moved with them: 5 into a new `WorkflowAccessSpec`, 3 into a new `ExecutionResultUrisSpec`, 14 into `TupleUtilsSpec`, and `WarehouseReadGuardSpec` whole. - Coverage is measured per module, so `WorkflowAccessSpec` adds two cases for `hasReadAccess`, `isPublic` and `isOwner`, which only amber's resource tests reached before. - `Auth/test` and the moved `WorkflowCore` specs pass; amber's `org.apache.texera.web.*` specs fail on the same 8 local-environment cases as main, and no others. - `scalafmtCheck` and `scalafix --check` pass for the three modules. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-5-5) Report URL: https://github.com/apache/texera/actions/runs/42311163096 With regards, GitHub Actions via GitBox
