Closed mpilgrem closed 3 months ago
The 4783-doctest-deps
failure comes at the linking stage for the doctest
executable (extract):
doctest > Preprocessing executable 'doctest' for doctest-0.22.2..
doctest > Building executable 'doctest' for doctest-0.22.2..
doctest > [1 of 2] Compiling Main
doctest > [2 of 2] Compiling Paths_doctest
doctest > [3 of 3] Linking .stack-work/dist/aarch64-linux-dkc042e302e26590e0ec6157676b3df5ee/ghc-9.6.4/build/doctest/doctest
doctest > collect2: fatal error: ld terminated with signal 9 [Killed]
doctest > compilation terminated.
doctest > ghc-9.6.4: `gcc' failed in phase `Linker'. (Exit code: 1)
EDIT: That error is due to memory exhaustion. It is fixed by giving colima
more memory than its default 2 GB.
This pull request folds the idea of #6533 into
etc/scripts/release.hs
itself, and extends it.Currently, the Linux/AArch64 job in
integration-tests.yml
makes use of:You can't use a Docker container on GitHub's macOS/M1-based
macos-14
, but the idea is that you could use on macOS/AArch64 locally:It also seeks to do the same with
release.hs check
, so that you can use on macOS/AArch64 locally:The pull request introduces
--stack-args
, as--docker-stack-exe
is a global flag, not astack build
flag. As before, when--alpine
is passed the global flags--docker
,--system-ghc
and--no-install-ghc
are specified.The pull request distinguishes the target OS from the platform OS. When
--alpine
is passed, the target OS is set toLinux
.In the case of
release.hs check
, the commands are run by the platform's Stack (withstack exec
) so that they can be run in a Docker container, if necessary. This is also done whenstack --version
is examined.With:
the second Stack (the one provided by the Docker image) needs its own
--system-ghc --no-install-ghc
, so those flags are added togCheckStackArgs
when--alpine
is passed.The deprecated
putNormal
is replaced byputInfo
.This is being tested locally on a Mac mini/M1. The
4095-utf8-pure-nix
was failing because Nix can't be used in a Docker container. So, a guard has been added.One other test was failing:
4783-doctest-deps
. That is still being investigated and so this pull request is still draft.Please include the following checklist in your pull request:
Please also shortly describe how you tested your change. Bonus points for added tests! Local testing and also relying on CI.