Ma77Ball opened a new pull request, #5358: URL: https://github.com/apache/texera/pull/5358
### What changes were proposed in this PR? - Restore the `genPythonProto` sbt task and wire it to `Compile / compile`, so a local `sbt` build regenerates the Python betterproto bindings (`amber/src/main/python/proto/`) via `bin/python-proto-gen.sh`. - Guard the task: if `protoc` or `protoc-gen-python_betterproto` is not on PATH it logs a warning and skips, so JDK-only and docker stages (which already run the script out-of-band) are unaffected. - Make the Python worker entrypoint exit with an actionable message when the `proto` package is missing, instead of a raw `ModuleNotFoundError`. ### Any related issues, documentation, or discussions? Closes: #5357 ### How was this PR tested? - Verified the worker entrypoint exits with the actionable message when the `proto` package is absent (simulated a missing `proto` import). - Confirmed `bin/python-proto-gen.sh` regenerates a complete, importable `proto/` tree (protoc 3.19.x, `betterproto[compiler]==2.0.0b7`). - Confirmed the PR diff is limited to the two intended files (`amber/build.sbt`, `texera_run_python_worker.py`). ### Was this PR authored or co-authored using generative AI tooling? Co-authored with Claude Opus 4.8 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]
