The GitHub Actions job "Comment commands" on texera.git/main has succeeded.
Run started by GitHub user Raja-Hamid (triggered by Raja-Hamid).

Head commit for run:
baca3f9ed5d2fda7dbf047aa6641b62605a61d87 / Xinyuan Lin <[email protected]>
test(workflow-operator): add unit test coverage for source operator enums 
(#6042)

### What changes were proposed in this PR?

Pin behavior of four previously-untested source operator enums in
`common/workflow-operator`. No production-code changes.

| Spec | Source enum | Tests |
| --- | --- | --- |
| `FileAttributeTypeSpec` | `FileAttributeType` | 4 |
| `FileDecodingMethodSpec` | `FileDecodingMethod` | 2 |
| `DecodingMethodSpec` | `DecodingMethod` | 2 |
| `RedditSourceOperatorFunctionSpec` | `RedditSourceOperatorFunction` |
2 |

**Behavior pinned**

| Surface | Contract |
| --- | --- |
| wire mapping | each constant's `@JsonValue` string (e.g.
`FileDecodingMethod.ASCII` → `US_ASCII`,
`FileAttributeType.LARGE_BINARY` → `large binary`,
`DecodingMethod.RAW_BYTES` → `RAW BYTES`) + constant counts |
| `FileAttributeType` extras | `getType` → core `AttributeType`;
`isSingle` true only for `SINGLE_STRING`/`BINARY`/`LARGE_BINARY`;
`toString` == wire name |
| Jackson round-trip | `@JsonValue` serialize + deserialize back to the
constant |

### Any related issues, documentation, discussions?

Part of the ongoing `workflow-operator` unit-test coverage effort.

### How was this PR tested?

- `sbt "WorkflowOperator/testOnly *FileAttributeTypeSpec
*FileDecodingMethodSpec *DecodingMethodSpec
*RedditSourceOperatorFunctionSpec"` — 10 tests, all green
- `sbt "WorkflowOperator/Test/scalafmtCheck"` and `sbt
"WorkflowOperator/scalafixAll --check"` — clean
- CI to confirm

### 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/28542207459

With regards,
GitHub Actions via GitBox

Reply via email to