I created bazel build rules for the daml tool operations from the sdk. The sdk is set up hermetically from its tar bal as an external bazel workspace and the tools from the sdk are wired into a bazel toolchain.
When the test rule executes daml test
during the bazel test
execution, I see these error messages:
on macos:
damlc: ScenarioServiceException "Failed to run java: fd:21:
hGetContents: invalid argument (invalid byte sequence)"
and on some linux configurations:
damlc: ScenarioServiceException "Failed to run java: java:
readCreateProcessWithExitCode: posix_spawnp:
does not exist (No such file or directory)"
while on other linux configurations the test just works fine. This is all under bazel 5.0.0 with the daml sdk 1.18.1. Directly executing the test executable that bazel creates always works.
I suspect it’s an interaction with the bazel sandbox, but I don’t know where those error messages come from, so I don’t quite understand what exactly is missing or misplaced inside the sandbox.
Do those error messages ring a bell with anyone who could point me to the place they are from?
Thanks a lot!
mesch.