crystal icon indicating copy to clipboard operation
crystal copied to clipboard

Unable to run spec with Github Actions

Open kalinon opened this issue 3 years ago • 3 comments

Bug Report

When preparing for my next release of the kube-client.cr i am unable to run crystal spec in github actions due to the following error:

cc: error: N-amedT-uple40spe-7d7e8234f0de678a2b8c7d292c4c5492.o: No such file or directory
Error: execution of command failed with code: 1: `cc "${@}" -o /home/runner/.cache/crystal/crystal-run-spec.tmp  -rdynamic -L/home/runner/work/_temp/crystal-1.5-true-undefined/bin/../lib/crystal -lz `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto'` -lyaml -lxml2 -lpcre -lm -lgc -lpthread -levent -lrt -lpthread -ldl`
Error: Process completed with exit code 1.

I've truncated the list of No such file or directory errors thrown. You can see the full output

Successful action run on master: https://github.com/spoved/kube-client.cr/actions/runs/2819264691 Failed action on v0.4.5: https://github.com/spoved/kube-client.cr/runs/7708870098?check_suite_focus=true

Here is the PR with reproducible code and changes that may cause the issue: https://github.com/spoved/kube-client.cr/pull/10

Both runs used the same crystal version:

shards --version

Shards 0.17.0 [85b30b5] (2022-03-24)

crystal --version
Crystal 1.4.0 [ef05e26d6] (2022-04-06)

LLVM: 10.0.0
Default target: x86_64-unknown-linux-gnu

kalinon avatar Aug 08 '22 16:08 kalinon

same No such file or directory error with 1.5.0 as well: https://github.com/spoved/kube-client.cr/runs/7728027055?check_suite_focus=true

kalinon avatar Aug 08 '22 16:08 kalinon

I presume crystal spec runs correctly locally and this failure only appears in GHA?

The error likely indicates an issue with the file system or memory. Perhaps the worker is just running out of RAM. Or free disk space. So might be related to #7993.

straight-shoota avatar Aug 14 '22 14:08 straight-shoota

@straight-shoota yes it completes successfully locally.

kalinon avatar Sep 05 '22 13:09 kalinon