[Git][ghc/ghc][wip/supersven/cross-compiler-manual-test-jobs] ci: run full testsuite for cross-compilers when 'cross-run-testsuite' MR label is set (#27372)
Sven Tennie pushed to branch wip/supersven/cross-compiler-manual-test-jobs at Glasgow Haskell Compiler / GHC Commits: dedcc241 by Sven Tennie at 2026-06-12T08:21:24+00:00 ci: run full testsuite for cross-compilers when 'cross-run-testsuite' MR label is set (#27372) Some tests are expected to fail under emulation, but this gives an overview and confidence in cross-compiler correctness. The opt-in label is required because emulated testsuite runs take a long time. - - - - - 2 changed files: - .gitlab/ci.sh - + changelog.d/cross-compiler-testsuite Changes: ===================================== .gitlab/ci.sh ===================================== @@ -708,6 +708,17 @@ function test_hadrian() { # --- # > main = putStrLn "hello world" run diff -w expected actual + + if [[ "${CI_MERGE_REQUEST_LABELS:-}" == *"cross-run-testsuite"* ]]; then + EXTRA_HC_OPTS="-fexternal-interpreter" run_hadrian \ + test \ + --summary-junit=./junit.xml \ + --test-have-intree-files \ + --test-compiler="${test_compiler}" \ + "runtest.opts+=${RUNTEST_ARGS:-}" \ + "runtest.opts+=--unexpected-output-dir=$TOP/unexpected-test-output" \ + || fail "hadrian cross full testsuite" + fi elif [[ -n "${REINSTALL_GHC:-}" ]]; then run_hadrian \ test \ ===================================== changelog.d/cross-compiler-testsuite ===================================== @@ -0,0 +1,14 @@ +section: packaging +issues: #27372 +mrs: !16176 +synopsis: Run full testsuite for cross-compilers via 'cross-run-testsuite' MR label + +description: { + Adding the ``cross-run-testsuite`` label to a merge request causes the CI + pipeline to run the full testsuite for cross-compiler targets (riscv64, + aarch64-linux-gnu, loongarch64, aarch64-unknown-mingw32) in addition to + the existing smoke test. Results are expected to have failures under + emulation, but provide an overview and confidence in cross-compiler + correctness. The label is opt-in because emulated test runs take + significantly longer than native ones. +} View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/dedcc2418ec8fb6b12c8b629b40b1c19... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/dedcc2418ec8fb6b12c8b629b40b1c19... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Sven Tennie (@supersven)