Nim test runner bug after exercism submit

I’m recently getting AN ERROR OCCURRED on the exercism website after running exercism submit .... Here is a screenshot:

Here is the traceback:

We received the following error when we ran your code:
tcc: error: libtcc1.a not found
Error: execution of an external program failed: 'tcc -o test_clock  -lm -lm -lrt   -ldl    
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@ssystem@sexceptions.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@sstd@ssysatomics.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@sstd@sprivate@sdigitsutils.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@sstd@sassertions.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@sstd@sformatfloat.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@ssystem@sdollars.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@sstd@ssyncio.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@ssystem.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@spure@sstreams.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@spure@shashes.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@spure@smath.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@spure@scollections@stables.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@spure@sparseutils.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@spure@sunicode.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@spure@sstrutils.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@spure@sjson.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@sstd@sexitprocs.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@spure@stimes.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@spure@scollections@ssets.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@sstd@senvvars.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@sstd@scmdline.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@spure@sstrformat.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@spure@sterminal.nim.c.o 
/root/.cache/nim/test_clock_d/@m..@s..@snim@slib@spure@sunittest.nim.c.o 
/root/.cache/nim/test_clock_d/@munittest_json.nim.c.o 
/root/.cache/nim/test_clock_d/@mclock.nim.c.o 
/root/.cache/nim/test_clock_d/@mtest_clock.nim.c.o'


I’m getting the same error with the Hello World exercise, so there seems to be something wrong with the Nim environment

Me too. I tried my old correct exercises as well as copy-pasting working community solutions for new exercises and always the same problem.

How strange. Neither the Nim test runner nor the exercsises have changed in a while as far as I can see.

(cc @ErikSchierboom @ee7-1282)

Actually, the nim test runner will have been rebuilt recently due to a docs syncing commit. I’ll try and revert that deployment. I wonder if something in the base image has changed.

@ErikSchierboom - we probably shouldn’t re-build/deploy all our tooling on these changes.

For @ErikSchierboom:

The latest image has shrunk from 11.92mb to 11.74

I’ve retagged the old image as production with:

I ran:

docker tag 681735686245.dkr.ecr.eu-west-2.amazonaws.com/nim-test-runner:d9c91572b48762755780025fe3785d069a3c5c59 681735686245.dkr.ecr.eu-west-2.amazonaws.com/nim-test-runner:production
docker push 681735686245.dkr.ecr.eu-west-2.amazonaws.com/nim-test-runner:production

This seems to have fixed it.

2 Likes

I confirm it work for me too. Thank you, @iHiD :slight_smile:

2 Likes

But that shouldn’t necessarily mean that the test runner itself has changed, just that the workflow ran. Looking at the workflow, it does look like the Docker cache was no longer valid, so it would have re-run the commands which could lead to changes. Very weird.

I’ve opened ci: allow running CI workflow manually by ErikSchierboom · Pull Request #164 · exercism/nim-test-runner · GitHub which does indeed show that the test run fails. Thus I’ve opened an issue: Error when running smoke tests · Issue #165 · exercism/nim-test-runner · GitHub

Apologies for the breakage here.

The underlying issue should be resolved by this commit to the exercism/nim-test-runner repo. See the commit message for more details.

The latest nim-test-runner state has been deployed. It should work. Please let me know if you see any further problems.

1 Like