You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "Yicong-Huang (via GitHub)" <gi...@apache.org> on 2026/05/11 00:23:20 UTC

[I] Add error-path tests for WorkflowCompilationResource [texera]

Yicong-Huang opened a new issue, #5020:
URL: https://github.com/apache/texera/issues/5020

   ### Task Summary
   
   `workflow-compiling-service/src/test/scala/.../WorkflowCompilationResourceSpec.scala` currently has a single happy-path test (filter + limit + projection chain compiles successfully). The service's compiler always runs in lenient mode — it accumulates per-operator errors and returns a `WorkflowCompilationResult` with `physicalPlan = None` when any error occurs — and that contract has no direct coverage today.
   
   Add cases exercising the error paths the frontend depends on:
   
   - Scan source with no `fileName` set: `resolveScanSourceOpFileName(Some(errorList))` should accumulate, not throw; response is `WorkflowCompilationFailure` with the scan op in `operatorIdToError`.
   - Schema mismatch (e.g. projection of a non-existent attribute): per-port schema reported as `None`, op present in `operatorIdToError`.
   - Python codegen `#EXCEPTION DURING CODE GENERATION:` regex path: error captured, compile does not throw.
   - REST response shape: failure cases serialize as `WorkflowCompilationFailure` JSON the frontend can parse.
   
   These tests lock the lenient-mode contract before any refactor that consolidates this compiler with amber's copy.
   
   ### Task Type
   
   - [x] Testing / QA


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add error-path tests for WorkflowCompilationResource [texera]

Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang closed issue #5020: Add error-path tests for WorkflowCompilationResource
URL: https://github.com/apache/texera/issues/5020


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org