Skip to content

Commit 540cf0e

Browse files
Merge pull request #2577 from martijnbastiaan/bump-tasty
Bump Tasty to released version (1.5)
2 parents 8ec6e24 + edf3f1b commit 540cf0e

28 files changed

+101
-84
lines changed

.ci/build.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ if [[ "$GHC_HEAD" != "yes" ]]; then
2323
fi
2424
set -u
2525

26-
cabal v2-build clash-prelude --write-ghc-environment-files=always
27-
# Undo mmap crash workaround for clash-cosim, see PR #2572.
28-
# It uses a custom setup, which can't be linked with -rtsopts
29-
GHCRTS="" cabal v2-build clash-cosim --write-ghc-environment-files=always
30-
3126
# Build with default constraints
3227
cabal v2-build all --write-ghc-environment-files=always
3328

.ci/cabal.project.local

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ package *
1010

1111
package clash-prelude
1212
ghc-options: -Werror
13-
flags: +doctests +multiple-hidden
13+
flags: +doctests +multiple-hidden -workaround-ghc-mmap-crash
1414
tests: True
1515
benchmarks: True
1616

@@ -20,10 +20,11 @@ package clash-prelude
2020
package clash-lib
2121
ghc-options: -Werror
2222
tests: True
23-
flags: +debug
23+
flags: +debug -workaround-ghc-mmap-crash
2424

2525
package clash-ghc
2626
ghc-options: -Werror
27+
flags: -workaround-ghc-mmap-crash
2728

2829
package clash-cosim
2930
ghc-options: -Werror
@@ -47,7 +48,7 @@ package clash-lib-hedgehog
4748
package clash-testsuite
4849
ghc-options: -Werror
4950
-- enable cosim
50-
flags: +cosim +multiple-hidden
51+
flags: +cosim +multiple-hidden -workaround-ghc-mmap-crash
5152

5253
package clash-benchmark
5354
ghc-options: -Werror

.ci/clash-ffi-example-build.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

.ci/gitlab/common.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
variables:
66
# Note that we copy+paste the image name into CACHE_FALLBACK_KEY. If we don't,
77
# $GHC_VERSION gets inserted at verbatim, instead of resolving to some ghc version.
8-
CACHE_FALLBACK_KEY: $CI_JOB_NAME-master-ghcr.io/clash-lang/clash-ci-$GHC_VERSION:2023-08-22-1-3-non_protected
8+
CACHE_FALLBACK_KEY: $CI_JOB_NAME-master-ghcr.io/clash-lang/clash-ci-$GHC_VERSION:2023-08-22-2-3-non_protected
99
GIT_SUBMODULE_STRATEGY: recursive
1010
TERM: xterm-color
1111
retry:
@@ -14,15 +14,14 @@
1414
- runner_system_failure
1515
- stuck_or_timeout_failure
1616
cache:
17-
key: $CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_JOB_IMAGE-1
17+
key: $CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_JOB_IMAGE-2
1818
when: always
1919
paths:
2020
- cache.tar.zst
2121
before_script:
2222
- export THREADS=$(./.ci/effective_cpus.sh)
2323
- export CABAL_JOBS=$(./.ci/effective_cpus.sh)
2424
- export CABAL_DIR=$HOME/.cabal
25-
- if [[ "$WORKAROUND_GHC_MMAP_CRASH" == "yes" ]]; then export GHCRTS="-xm20000000"; fi
2625
- export
2726
- tar -xf cache.tar.zst -C / || true
2827
- .ci/setup.sh

.ci/gitlab/test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ stages:
2828
- export CABAL_DIR=$HOME/.cabal
2929
- export clash_lib_datadir=$(pwd)/clash-lib/
3030
- export clash_cosim_datadir=$(pwd)/clash-cosim/
31-
- if [[ "$WORKAROUND_GHC_MMAP_CRASH" == "yes" ]]; then export GHCRTS="-xm20000000"; fi
3231
- export
3332
- tar -xf dist.tar.zst -C /
3433

@@ -51,7 +50,6 @@ stages:
5150
- export CABAL_DIR=$HOME/.cabal
5251
- export clash_lib_datadir=$(pwd)/clash-lib/
5352
- export clash_cosim_datadir=$(pwd)/clash-cosim/
54-
- if [[ "$WORKAROUND_GHC_MMAP_CRASH" == "yes" ]]; then export GHCRTS="-xm20000000"; fi
5553
- export
5654
- tar -xf cache.tar.zst -C / || true
5755
- tar -xf dist.tar.zst -C /
@@ -169,7 +167,6 @@ ffi:example:
169167
- export clash_cosim_datadir=$(pwd)/clash-cosim/
170168
- export MASKBINS="$(mktemp -d)"
171169
- PATH="$MASKBINS:$PATH"
172-
- if [[ "$WORKAROUND_GHC_MMAP_CRASH" == "yes" ]]; then export GHCRTS="-xm20000000"; fi
173170
- export
174171
- tar -xf cache.tar.zst -C / || true
175172
# The iverilog on CI cannot run the example, we only test it builds
@@ -180,7 +177,6 @@ ffi:example:
180177
# Make sure we get custom cabals setting in the clash-example project too
181178
- cp cabal.project.local clash-ffi/example
182179
script:
183-
- if [[ "$WORKAROUND_GHC_MMAP_CRASH" == "yes" ]]; then ./.ci/clash-ffi-example-build.sh; fi
184180
- cd clash-ffi/example && ./run-iverilog.sh
185181
after_script:
186182
- tar -cf - /root/.cabal | zstd -T${THREADS} -3 > cache.tar.zst

.ci/setup.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ if [ ! -f cabal.project.local ]; then
7878
fi
7979

8080
set +u
81+
if [[ "$WORKAROUND_GHC_MMAP_CRASH" == "yes" ]]; then
82+
sed -i 's/-workaround-ghc-mmap-crash/+workaround-ghc-mmap-crash/g' cabal.project.local
83+
fi
84+
8185
if [[ "$GHC_HEAD" == "yes" ]]; then
8286
cat .ci/cabal.project.local.append-HEAD >> cabal.project.local
8387
fi
@@ -92,6 +96,11 @@ cat cabal.project.local
9296
rm -f ${HOME}/.cabal/config
9397
cabal user-config init
9498
sed -i "s/-- ghc-options:/ghc-options: -j$THREADS/g" ${HOME}/.cabal/config
99+
set +u
100+
if [[ "$WORKAROUND_GHC_MMAP_CRASH" == "yes" ]]; then
101+
sed -i "s/ghc-options:/ghc-options: +RTS -xm20000000 -RTS -with-rtsopts=-xm20000000/g" ${HOME}/.cabal/config
102+
fi
103+
set -u
95104
sed -i "s/^[- ]*jobs:.*/jobs: $CABAL_JOBS/g" ${HOME}/.cabal/config
96105
sed -i "/remote-repo-cache:.*/d" ${HOME}/.cabal/config
97106
cat ${HOME}/.cabal/config

.ci/stack-8.10.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,4 @@ extra-deps:
1818
- docopt-0.7.0.7@sha256:a3d2eac54cd77d8c0b306ff96fb57be55542f143d81766aa1ae51458ad790dbe,3655
1919
- prettyprinter-interp-0.2.0.0@sha256:45299b61bd6c27d594c1a72b5a8dd5734e791a59828725e4f4e420f3cc37232b,2016
2020
- infinite-list-0.1@sha256:4de250517ce75e128c766fbc1f23b5a778ea964e695e47f8e83e0f3b293091bf,2383
21-
- git: https://github.com/UnkindPartition/tasty.git
22-
commit: e0e71bc40fcc1fa410f98a5963b9ed8eefa1e92d
23-
subdirs:
24-
- core
21+
- tasty-1.5@sha256:c62c96da1e9d65bf61ce583e9f7085eed1daeb62a45f3106ca252bf9ef87025b,2763

.ci/stack-8.6.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,4 @@ extra-deps:
3030
- string-interpolate-0.3.1.2@sha256:4d0987f453c66040aa8e482fe28a7d3cdc9d8df01b698bc92f42a592cfb337db,4268
3131
- prettyprinter-interp-0.2.0.0@sha256:45299b61bd6c27d594c1a72b5a8dd5734e791a59828725e4f4e420f3cc37232b,2016
3232
- infinite-list-0.1@sha256:4de250517ce75e128c766fbc1f23b5a778ea964e695e47f8e83e0f3b293091bf,2383
33-
- git: https://github.com/UnkindPartition/tasty.git
34-
commit: e0e71bc40fcc1fa410f98a5963b9ed8eefa1e92d
35-
subdirs:
36-
- core
33+
- tasty-1.5@sha256:c62c96da1e9d65bf61ce583e9f7085eed1daeb62a45f3106ca252bf9ef87025b,2763

.ci/stack-8.8.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,4 @@ extra-deps:
2525
- string-interpolate-0.3.1.2@sha256:4d0987f453c66040aa8e482fe28a7d3cdc9d8df01b698bc92f42a592cfb337db,4268
2626
- prettyprinter-interp-0.2.0.0@sha256:45299b61bd6c27d594c1a72b5a8dd5734e791a59828725e4f4e420f3cc37232b,2016
2727
- infinite-list-0.1@sha256:4de250517ce75e128c766fbc1f23b5a778ea964e695e47f8e83e0f3b293091bf,2383
28-
- git: https://github.com/UnkindPartition/tasty.git
29-
commit: e0e71bc40fcc1fa410f98a5963b9ed8eefa1e92d
30-
subdirs:
31-
- core
28+
- tasty-1.5@sha256:c62c96da1e9d65bf61ce583e9f7085eed1daeb62a45f3106ca252bf9ef87025b,2763

.ci/stack-9.0.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,4 @@ packages:
1515
extra-deps:
1616
- prettyprinter-interp-0.2.0.0@sha256:45299b61bd6c27d594c1a72b5a8dd5734e791a59828725e4f4e420f3cc37232b,2016
1717
- infinite-list-0.1@sha256:4de250517ce75e128c766fbc1f23b5a778ea964e695e47f8e83e0f3b293091bf,2383
18-
- git: https://github.com/UnkindPartition/tasty.git
19-
commit: e0e71bc40fcc1fa410f98a5963b9ed8eefa1e92d
20-
subdirs:
21-
- core
18+
- tasty-1.5@sha256:c62c96da1e9d65bf61ce583e9f7085eed1daeb62a45f3106ca252bf9ef87025b,2763

0 commit comments

Comments
 (0)