Open anatol opened 4 years ago
Shards version is 0.12.0 and here is how I run the tests:
CRYSTAL_OPTS="--release" make
make test
We configure all our test environments to use
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git config --global column.ui always
In https://github.com/crystal-lang/crystal/pull/9640 a more resilient approach was used to set up the git config file. If that's the reason of the failure I guess we could go that way.
Please, confirm if the issue is only a miss configuration of git.
Arch Linux builds production packages in a sanitized chroot environment. That chroot environment has default git settings (i.e. no user.email/user.name). If shards tests require special config option it makes sense to setup the testing environment automatically (in the test code itself) before running the tests.
And even if I set the git config options from https://github.com/crystal-lang/shards/issues/430#issuecomment-670099759 tests still fail with:
crystal spec ./spec/unit/
crystal spec ./spec/integration/
Unable to create directory: '/build/.cache/crystal/build-shards-src-shards-0.12.0-spec': File exists (File::AlreadyExistsError)
from ???
from ???
from ???
from ???
from ???
from ???
from ???
from __crystal_main
from main
from __libc_start_main
from _start
from ???
Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues
make: *** [Makefile:48: test_unit] Error 1
make: *** Waiting for unfinished jobs....
...................................................*..........................................................................................................
Pending:
install updates locked commit when switching between branches (if locked commit is not reachable)
Finished in 31.57 seconds
158 examples, 0 failures, 0 errors, 1 pending
I am building
shards
with Arch chroot build environment and tests fail for me: