lemon-yak-80782
10/12/2023, 7:30 AM-ltrace
does not provide any information. If I run pants test src/go/module/some_test.go
the execution stops at Prepare Go test binary
. Did anyone have a similar issue. For me it seems like it has something to do with certain dependencies being imported. In my case the open policy agent sdk. If I run the tests directly with the go cli everything works as expected.gorgeous-winter-99296
10/12/2023, 8:00 AMpants.d/exceptions.log
? When you say "stops at", does it seem to crash?lemon-yak-80782
10/12/2023, 8:39 AMexceptions.log
file is also empty.gorgeous-winter-99296
10/12/2023, 8:46 AM--keep-sandboxes=always
and looking in the last sandbox it points at. There should be a __run.sh
in there that you could try running and see what it outputs. There's also --no-pantsd --no-local-cache
in case there's a cache issue, but it'll give you massive amounts of logs and make things very slow.gorgeous-winter-99296
10/12/2023, 8:47 AMlemon-yak-80782
10/12/2023, 8:50 AM2.17
What I saw in the log file of the run is:
10:47:45.93 [DEBUG] Launching 1 roots (poll=true).
10:47:46.45 [DEBUG] Launching 1 roots (poll=true).
10:47:46.98 [DEBUG] Launching 1 roots (poll=true).
10:47:47.28 [35m[TRACE][0m Canceled: select
10:47:47.28 [32m[DEBUG][0m Canceled: `test` goal
I will try your hints.gorgeous-winter-99296
10/12/2023, 8:52 AMpants test src/go/module::
does it run any tests?lemon-yak-80782
10/12/2023, 8:52 AMlemon-yak-80782
10/12/2023, 8:53 AM[Debug]
line until I cancelgorgeous-winter-99296
10/12/2023, 8:53 AMgorgeous-winter-99296
10/12/2023, 8:54 AMlemon-yak-80782
10/12/2023, 8:56 AMlemon-yak-80782
10/12/2023, 10:57 AMpants --print-stacktrace --keep-sandboxes=always --no-pantsd --no-local-cache test
The last sandbox created is:
12:56:21.81 [INFO] Preserving local process execution dir /private/var/folders/tz/fnc3x59j4f9fhq4q09yk_fl00000gn/T/pants-sandbox-4tR6hc for Create embed mapping for crypto/internal/nistec
The output of `__run.sh`is : {"EmbedConfig":{"Patterns":{"p256_asm_table.bin":["p256_asm_table.bin"]},"Files":{"p256_asm_table.bin":"/usr/local/go/src/crypto/internal/nistec/p256_asm_table.bin"}}}
lemon-yak-80782
10/12/2023, 10:59 AMgo test -v ./...
in the module works perfectly fine. I am not sure how to further debug this. I guess I need to create a repo to reproduce this issue.gorgeous-winter-99296
10/12/2023, 11:01 AMlemon-yak-80782
10/12/2023, 3:00 PMhappy-kitchen-89482
10/12/2023, 9:55 PM