eugenegujing opened a new issue, #6243:
URL: https://github.com/apache/texera/issues/6243

   ### What happened?
   
   The `genPythonProto` sbt task in `amber/build.sbt` routes every stderr line 
of `bin/python-proto-gen.sh` to sbt's `error` log level 
(`amber/build.sbt:227`). The betterproto code generator writes its normal 
progress output (`Writing __init__.py`, `Writing org/…/__init__.py`, …) to 
stderr, so a fully successful proto generation prints a wall of `[error]` lines 
and still ends in `[success]`.
   
   A command-line `sbt compile` is unaffected, but IntelliJ IDEA parses the 
build output and treats these `[error]` lines as a build failure. As a result, 
the "Build" Before-launch step of every amber-based run configuration 
(`TexeraWebApplication`, `ComputingUnitMaster`, `ComputingUnitWorker`) fails 
and those services never launch, while non-amber services (`ConfigService`, 
`FileService`, `AccessControlService`, `WorkflowCompilingService`, 
`ComputingUnitManagingService`, …) build and run normally because their modules 
do not depend on `genPythonProto` and never emit these lines.
   
   Successful proto generation should not be reported as `[error]`, and all 
services, including the three amber-based ones, should launch.
   
   ### How to reproduce?
   
   Install `protoc` and `betterproto[compiler]` and put both on `PATH` 
(`protoc`, `protoc-gen-python_betterproto`), otherwise the task skips and the 
issue does not appear; then, in IntelliJ IDEA, run the `texera micro services` 
compound run configuration (or just `TexeraWebApplication`). The three 
amber-based services fail to start while the non-amber services start normally, 
whereas a plain terminal `sbt compile` prints the same `[error]` lines but 
still ends in `[success]`.
   
   ### Version/Branch
   
   1.3.0-incubating-SNAPSHOT (main)
   
   ### Commit Hash (Optional)
   
   _No response_
   
   ### What browsers are you seeing the problem on?
   
   _No response_
   
   ### Relevant log output
   
   ```shell
   INFO  Generating JOOQ classes...
   INFO  JOOQ code generation completed successfully
   [error] Writing __init__.py
   [error] Writing org/__init__.py
   [error] Writing org/apache/texera/__init__.py
   [error] Writing org/apache/texera/amber/engine/architecture/rpc/__init__.py
   [error] Writing scalapb/__init__.py
   [success] Total time: 2 s, completed Jul 7, 2026
   ```


-- 
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]

Reply via email to