Ma77Ball opened a new pull request, #5077:
URL: https://github.com/apache/texera/pull/5077
### What changes were proposed in this PR?
Stop version-tracking the betterproto-generated Python files under
`amber/src/main/python/proto/`. Add a `genPythonProto` sbt task that runs
`bin/python-proto-gen.sh` as a dependency of
`WorkflowExecutionService/Compile/compile`, with a graceful skip when `protoc`
is missing. Wire `protoc` 3.19.4 (matching `PB.protocVersion`) and
`betterproto[compiler]==2.0.0b7` into the three image build stages
(worker,master, web-app) and the three CI jobs that touch Python proto
(`python`, `python-state-materialization-mac`, `amber-integration`). The 14th
tracked file (`proto/org/apache/texera/web/__init__.py`) had no corresponding
`.proto` source and is gone after regen; grep confirms no callers.
### Any related issues, documentation, or discussions?
Closes: #4102
### How was this PR tested?
Local: skip path validated by running the sbt task without `protoc`. Happy
path validated end-to-end via `sbt clean WorkflowExecutionService/compile`
(regenerated 13 files, 43s) and `pytest -m "not integration"` (462 passed).
Docker validation: built `computing-unit-worker` (build stage),
`computing-unit-master` (full image, confirmed Python imports resolve in the
runtime container), and `texera-web-application` (build stage) end-to-end. CI
will exercise the workflow YAML on push.
### Was this PR authored or co-authored using generative AI tooling?
Co-authored with Claude Opus 4.7 in compliance with ASF
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]