The GitHub Actions job "Required Checks" on texera.git/main has failed.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
f8c127e6dd51cb74d623cd34f5c8d92b7367c556 / carloea2 <[email protected]>
feat(amber): reject invalid dashboard resource type (#8144)

### What changes were proposed in this PR?

Return `BadRequestException` for an unknown dashboard resource type
instead of an unhandled `IllegalArgumentException`.

Before: invalid resource types return 500.
After: they return 400 with a specific message.

Update the exception assertions in both dashboard test suites.

### Any related issues, documentation, discussions?

Closes #8143

### How was this PR tested?

Retested in a fresh detached worktree from upstream main at
`7426431337`, which includes #8938. The regression assertions failed
before the implementation change: 3 failed and 83 passed. After the
change, all 86 focused tests pass.

Used JDK 17 and a disposable PostgreSQL database initialized from
`sql/texera_ddl.sql`. The tests use embedded PostgreSQL. Object-storage
endpoints were isolated for the passing run.

```powershell
$env:STORAGE_JDBC_URL='jdbc:postgresql://127.0.0.1:55489/oct15_review?currentSchema=texera_db,public'
$env:STORAGE_S3_ENDPOINT='http://127.0.0.1:1'
$env:STORAGE_LAKEFS_ENDPOINT='http://127.0.0.1:1/api/v1'
sbt -batch "WorkflowExecutionService/testOnly *DashboardResourceSpec 
*dashboard.file.WorkflowResourceSpec -- -oDF" "scalafixAll --check" 
scalafmtCheckAll
```

Repository lint, formatting and whitespace checks pass.

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

Generated-by: Codex

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

With regards,
GitHub Actions via GitBox

Reply via email to