The GitHub Actions job "Sync docs to website" 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:
7d05326551e7d942c97eb61d6eb100a2b451bfd3 / carloea2 <[email protected]>
feat(workflow-operator): support Java UI parameters (#9339)

### What changes were proposed in this PR?



Java UDFs can declare typed parameters and edit their values in the
existing Parameters panel. For example, inside `JavaUDFOpExec`:



```java

@org.apache.texera.amber.operator.udf.java.UiParameter("count")

private int count;

```



The shared model, validation, type manifest, editor, synchronization,
and resource binding serve Python, R, and Java. Java has a separate
syntax parser and javac adapter that validates saved metadata and
inserts field initializers before the constructor runs. Supports six
scalar types, boxed fields, and model/dataset version selectors on
string fields.



The compiling service uses a JDK for Java parameter injection. Bare
templates remain usable on JRE hosts; saved parameters fail explicitly
there instead of losing their values.



### Any related issues, documentation, discussions?



Closes #9337.



[Java UDF
usage](https://github.com/carloea2/texera/blob/59f555857f208d1c7a3d9b18172b39178aed0836/docs/reference/operators/user-defined-functions/java/java-udf.md)
· [UI parameter
architecture](https://github.com/carloea2/texera/blob/59f555857f208d1c7a3d9b18172b39178aed0836/docs/contribution-guidelines/ui-parameter-architecture.md)



### How was this PR tested?

Retested against fresh upstream main at `e9e5fda4bb`.

| Check | Result |
| --- | --- |
| Backend UDF package | 247 passed across 15 suites |
| JRE subprocess regression | Failed before the fix, passed after it |
| Full frontend suite | 7,212 passed, one existing skip |
| Production frontend build and binary dependency check | Passed, 135
bundled packages accounted for |
| Module Scala lint, repository Scala formatting, frontend formatting
and lint | Passed |

The JRE regression covers bare templates, saved parameters, invalid
metadata and one or two workers. The existing JDK tests still initialize
parameter values before constructors and execute real tuples.

```sh
sbt "set DAO / Compile / sourceGenerators := Seq.empty" 
"WorkflowOperator/testOnly *udf.*"
sbt "set DAO / Compile / sourceGenerators := Seq.empty" 
"WorkflowOperator/scalafix --check" "WorkflowOperator/Test/scalafix --check" 
scalafmtCheckAll
```

Local backend tests reused ignored generated jOOQ sources. Full
repository scalafix was blocked by stale generated database classes in
the execution service. The changed module lint and repository formatting
checks pass.

>From `frontend/`, with `NG_BUILD_MAX_WORKERS=2` and
`RAYON_NUM_THREADS=2`:

```sh
node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng.js test 
--watch=false --progress=false --coverage --coverage-reporters=lcovonly
corepack yarn format:ci
node build-version.js
node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng.js build 
--configuration=production --progress=false --source-map=false
```

The production build used an isolated copy of the same source and
dependencies to avoid Windows dependency-junction resolution errors. Its
`dist/3rdpartylicenses.json` passes the repository check:

```sh
python bin/licensing/check_binary_deps.py --ignore-transitive-version npm 
frontend/dist/3rdpartylicenses.json
```

Existing UI verification:

Chromium, 1600 × 1000 viewport: Java UDF properties → Parameters → Add
parameter; add integer/string/boolean rows, enter `42` / `sample run` /
`true`, and reload. Verified inserted Java fields, preserved values, and
locked Name/Type controls.

| Before | After |
| --- | --- |
| ![Java properties without
Parameters](https://raw.githubusercontent.com/carloea2/texera/30a16fde7d22849d3efb64c52eff3288c18a6e51/java-ui-parameters-before.png)
| ![Java properties with typed UI
parameters](https://raw.githubusercontent.com/carloea2/texera/30a16fde7d22849d3efb64c52eff3288c18a6e51/java-ui-parameters-after.png)
|

Both captures use the feature frontend: before with baseline Java
metadata, after with metadata exported by the actual Scala generator.
HTTP fixtures and an isolated in-memory Yjs server supply
workflow/authentication and reload persistence. Execution was
independently verified with the browser-generated source and values
through the real JVM path. [Evidence
details](https://raw.githubusercontent.com/carloea2/texera/30a16fde7d22849d3efb64c52eff3288c18a6e51/EVIDENCE.txt).

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



Generated-by: OpenAI Codex (GPT-6)

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

With regards,
GitHub Actions via GitBox

Reply via email to