compose-multiplatform
compose-multiplatform copied to clipboard
Use standard output/error-output for external tools
Our build fails:
Execution failed for task ':desktop:packageDeb'. java.lang.IllegalStateException: External tool execution failed:
* Command: [/usr/lib/jvm/java-17-openjdk-amd64/bin/jpackage, @/opt/buildagent/work/a279182f65298f4c/desktop/build/compose/tmp/packageDeb.args.txt]
* Working dir: []
* Exit code: 1
* Standard output log: /opt/buildagent/work/a279182f65298f4c/desktop/build/compose/logs/packageDeb/jpackage-2023-08-29-13-15-50-out.txt
* Error log: /opt/buildagent/work/a279182f65298f4c/desktop/build/compose/logs/packageDeb/jpackage-2023-08-29-13-15-50-err.txt
Would it be possible to include -out and -err output directly? It would make investigating build failure much easier and wouldn't involve accessing build machine...
@AlexeyTsvetkov Can you comment here? Would this be difficult?
bump
OK, so once again I hit this issue and it was even more annoying because the CI runs are now short-lived tasks (so I had to recreate whole build setup) and kotlin-native doesn't support arm64 linux so I couldn't use my local machine (MBP M1 and neither UTM virtualisation nor using docker image directly) so I had to spin-up x86 machine in the cloud...
I intended to create new issue for this and was looking for a right place to do it only to find... my own issue from almost a year ago...
Same here, similar error but about jlink.
65.60 Execution failed for task ':composeApp:createRuntimeImage'.
65.60 > External tool execution failed:
65.60 * Command: [/usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.fc40.x86_64/bin/jlink, @/app/composeApp/build/compose/tmp/createRuntimeImage.args.txt]
65.60 * Working dir: []
65.60 * Exit code: 2
65.60 * Standard output log: /app/composeApp/build/compose/logs/createRuntimeImage/jlink-2024-07-01-14-04-49-out.txt
65.60 * Error log: /app/composeApp/build/compose/logs/createRuntimeImage/jlink-2024-07-01-14-04-49-err.txt
jlink-2024-07-01-14-04-49-err.txt file is also empty...
This is in a gitlab ci pipeline running Fedora, with openjdk21 and gradle-8.7.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.