Sven Tennie pushed to branch wip/supersven/cross-compiler-manual-test-jobs at Glasgow Haskell Compiler / GHC
Commits:
-
7ae6c7ae
by Sven Tennie at 2026-06-07T08:31:05+00:00
2 changed files:
Changes:
| ... | ... | @@ -589,6 +589,10 @@ modifyValidateRules _ r = error $ "Applying validate rule to nightly/release job |
| 589 | 589 | manualRule :: OnOffRules -> OnOffRules
|
| 590 | 590 | manualRule rules = rules { when = Manual }
|
| 591 | 591 | |
| 592 | +renameRule :: String -> OnOffRules -> OnOffRules
|
|
| 593 | +renameRule n (OnOffRules (ValidateOnly _ rs) w) = OnOffRules (ValidateOnly n rs) w
|
|
| 594 | +renameRule _ r = r
|
|
| 595 | + |
|
| 592 | 596 | -- Given 'OnOffRules', returns a list of ALL rules with their toggled status.
|
| 593 | 597 | -- For example, even if you don't explicitly disable a rule it will end up in the
|
| 594 | 598 | -- rule list with the OFF state.
|
| ... | ... | @@ -1009,15 +1013,16 @@ release arch opsys bc = |
| 1009 | 1013 | -- The test job downloads the build job's bindist artifact and runs the full testsuite.
|
| 1010 | 1014 | crossTestJob :: NamedJob Job -> NamedJob Job
|
| 1011 | 1015 | crossTestJob (NamedJob buildName buildJob) =
|
| 1012 | - NamedJob (buildName ++ "-manual-testsuite") $
|
|
| 1016 | + NamedJob testName $
|
|
| 1013 | 1017 | buildJob
|
| 1014 | 1018 | { jobNeeds = ["hadrian-ghc-in-ghci"]
|
| 1015 | 1019 | , jobNeedsWithArtifacts = [buildName]
|
| 1016 | 1020 | , jobScript = testScript (jobPlatform buildJob)
|
| 1017 | - , jobRules = manualRule (jobRules buildJob)
|
|
| 1021 | + , jobRules = renameRule testName $ manualRule (jobRules buildJob)
|
|
| 1018 | 1022 | , jobAllowFailure = True
|
| 1019 | 1023 | }
|
| 1020 | 1024 | where
|
| 1025 | + testName = buildName ++ "-manual-testsuite"
|
|
| 1021 | 1026 | testScript (_, opsys) =
|
| 1022 | 1027 | [ "sudo chown ghc:ghc -R ." | Linux {} <- [opsys] ] ++
|
| 1023 | 1028 | [ ".gitlab/ci.sh setup"
|
| ... | ... | @@ -459,7 +459,7 @@ |
| 459 | 459 | "rules": [
|
| 460 | 460 | {
|
| 461 | 461 | "allow_failure": true,
|
| 462 | - "if": "((($ONLY_JOBS) && ($ONLY_JOBS =~ /.*\\baarch64-linux-deb12-wine-int_native-cross_aarch64-unknown-mingw32-validate\\+llvm(\\s|$).*/)) || (($ONLY_JOBS == null) && ((($CI_MERGE_REQUEST_LABELS =~ /.*full-ci.*/) || ($CI_MERGE_REQUEST_LABELS =~ /.*marge_bot_batch_merge_job.*/) || ($CI_COMMIT_BRANCH == \"master\") || ($CI_COMMIT_BRANCH =~ /ghc-[0-9]+\\.[0-9]+/)) || (($CI_MERGE_REQUEST_LABELS =~ /.*aarch64.*/) && ($CI_MERGE_REQUEST_LABELS =~ /.*Windows.*/) && ($CI_MERGE_REQUEST_LABELS =~ /.*LLVM backend.*/))))) && ($RELEASE_JOB != \"yes\") && ($NIGHTLY == null)",
|
|
| 462 | + "if": "((($ONLY_JOBS) && ($ONLY_JOBS =~ /.*\\baarch64-linux-deb12-wine-int_native-cross_aarch64-unknown-mingw32-validate\\+llvm-manual-testsuite(\\s|$).*/)) || (($ONLY_JOBS == null) && ((($CI_MERGE_REQUEST_LABELS =~ /.*full-ci.*/) || ($CI_MERGE_REQUEST_LABELS =~ /.*marge_bot_batch_merge_job.*/) || ($CI_COMMIT_BRANCH == \"master\") || ($CI_COMMIT_BRANCH =~ /ghc-[0-9]+\\.[0-9]+/)) || (($CI_MERGE_REQUEST_LABELS =~ /.*aarch64.*/) && ($CI_MERGE_REQUEST_LABELS =~ /.*Windows.*/) && ($CI_MERGE_REQUEST_LABELS =~ /.*LLVM backend.*/))))) && ($RELEASE_JOB != \"yes\") && ($NIGHTLY == null)",
|
|
| 463 | 463 | "when": "manual"
|
| 464 | 464 | }
|
| 465 | 465 | ],
|
| ... | ... | @@ -545,7 +545,7 @@ |
| 545 | 545 | "rules": [
|
| 546 | 546 | {
|
| 547 | 547 | "allow_failure": true,
|
| 548 | - "if": "((($ONLY_JOBS) && ($ONLY_JOBS =~ /.*\\baarch64-linux-deb12-wine-int_native-cross_aarch64-unknown-mingw32-validate(\\s|$).*/)) || (($ONLY_JOBS == null) && ((($CI_MERGE_REQUEST_LABELS =~ /.*full-ci.*/) || ($CI_MERGE_REQUEST_LABELS =~ /.*marge_bot_batch_merge_job.*/) || ($CI_COMMIT_BRANCH == \"master\") || ($CI_COMMIT_BRANCH =~ /ghc-[0-9]+\\.[0-9]+/)) || (($CI_MERGE_REQUEST_LABELS =~ /.*aarch64.*/) && ($CI_MERGE_REQUEST_LABELS =~ /.*Windows.*/))))) && ($RELEASE_JOB != \"yes\") && ($NIGHTLY == null)",
|
|
| 548 | + "if": "((($ONLY_JOBS) && ($ONLY_JOBS =~ /.*\\baarch64-linux-deb12-wine-int_native-cross_aarch64-unknown-mingw32-validate-manual-testsuite(\\s|$).*/)) || (($ONLY_JOBS == null) && ((($CI_MERGE_REQUEST_LABELS =~ /.*full-ci.*/) || ($CI_MERGE_REQUEST_LABELS =~ /.*marge_bot_batch_merge_job.*/) || ($CI_COMMIT_BRANCH == \"master\") || ($CI_COMMIT_BRANCH =~ /ghc-[0-9]+\\.[0-9]+/)) || (($CI_MERGE_REQUEST_LABELS =~ /.*aarch64.*/) && ($CI_MERGE_REQUEST_LABELS =~ /.*Windows.*/))))) && ($RELEASE_JOB != \"yes\") && ($NIGHTLY == null)",
|
|
| 549 | 549 | "when": "manual"
|
| 550 | 550 | }
|
| 551 | 551 | ],
|
| ... | ... | @@ -6561,7 +6561,7 @@ |
| 6561 | 6561 | "rules": [
|
| 6562 | 6562 | {
|
| 6563 | 6563 | "allow_failure": true,
|
| 6564 | - "if": "((($ONLY_JOBS) && ($ONLY_JOBS =~ /.*\\bx86_64-linux-deb13-cross_aarch64-linux-gnu-validate(\\s|$).*/)) || (($ONLY_JOBS == null) && ((($CI_MERGE_REQUEST_LABELS =~ /.*full-ci.*/) || ($CI_MERGE_REQUEST_LABELS =~ /.*marge_bot_batch_merge_job.*/) || ($CI_COMMIT_BRANCH == \"master\") || ($CI_COMMIT_BRANCH =~ /ghc-[0-9]+\\.[0-9]+/))))) && ($RELEASE_JOB != \"yes\") && ($NIGHTLY == null)",
|
|
| 6564 | + "if": "((($ONLY_JOBS) && ($ONLY_JOBS =~ /.*\\bx86_64-linux-deb13-cross_aarch64-linux-gnu-validate-manual-testsuite(\\s|$).*/)) || (($ONLY_JOBS == null) && ((($CI_MERGE_REQUEST_LABELS =~ /.*full-ci.*/) || ($CI_MERGE_REQUEST_LABELS =~ /.*marge_bot_batch_merge_job.*/) || ($CI_COMMIT_BRANCH == \"master\") || ($CI_COMMIT_BRANCH =~ /ghc-[0-9]+\\.[0-9]+/))))) && ($RELEASE_JOB != \"yes\") && ($NIGHTLY == null)",
|
|
| 6565 | 6565 | "when": "manual"
|
| 6566 | 6566 | }
|
| 6567 | 6567 | ],
|
| ... | ... | @@ -6943,7 +6943,7 @@ |
| 6943 | 6943 | "rules": [
|
| 6944 | 6944 | {
|
| 6945 | 6945 | "allow_failure": true,
|
| 6946 | - "if": "((($ONLY_JOBS) && ($ONLY_JOBS =~ /.*\\bx86_64-linux-deb13-riscv-cross_riscv64-linux-gnu-validate(\\s|$).*/)) || (($ONLY_JOBS == null) && ((($CI_MERGE_REQUEST_LABELS =~ /.*full-ci.*/) || ($CI_MERGE_REQUEST_LABELS =~ /.*marge_bot_batch_merge_job.*/) || ($CI_COMMIT_BRANCH == \"master\") || ($CI_COMMIT_BRANCH =~ /ghc-[0-9]+\\.[0-9]+/)) || ($CI_MERGE_REQUEST_LABELS =~ /.*RISC-V.*/)))) && ($RELEASE_JOB != \"yes\") && ($NIGHTLY == null)",
|
|
| 6946 | + "if": "((($ONLY_JOBS) && ($ONLY_JOBS =~ /.*\\bx86_64-linux-deb13-riscv-cross_riscv64-linux-gnu-validate-manual-testsuite(\\s|$).*/)) || (($ONLY_JOBS == null) && ((($CI_MERGE_REQUEST_LABELS =~ /.*full-ci.*/) || ($CI_MERGE_REQUEST_LABELS =~ /.*marge_bot_batch_merge_job.*/) || ($CI_COMMIT_BRANCH == \"master\") || ($CI_COMMIT_BRANCH =~ /ghc-[0-9]+\\.[0-9]+/)) || ($CI_MERGE_REQUEST_LABELS =~ /.*RISC-V.*/)))) && ($RELEASE_JOB != \"yes\") && ($NIGHTLY == null)",
|
|
| 6947 | 6947 | "when": "manual"
|
| 6948 | 6948 | }
|
| 6949 | 6949 | ],
|
| ... | ... | @@ -7887,7 +7887,7 @@ |
| 7887 | 7887 | "rules": [
|
| 7888 | 7888 | {
|
| 7889 | 7889 | "allow_failure": true,
|
| 7890 | - "if": "((($ONLY_JOBS) && ($ONLY_JOBS =~ /.*\\bx86_64-linux-ubuntu24_04-loongarch-cross_loongarch64-linux-gnu-validate(\\s|$).*/)) || (($ONLY_JOBS == null) && ((($CI_MERGE_REQUEST_LABELS =~ /.*full-ci.*/) || ($CI_MERGE_REQUEST_LABELS =~ /.*marge_bot_batch_merge_job.*/) || ($CI_COMMIT_BRANCH == \"master\") || ($CI_COMMIT_BRANCH =~ /ghc-[0-9]+\\.[0-9]+/)) || ($CI_MERGE_REQUEST_LABELS =~ /.*loongarch.*/)))) && ($RELEASE_JOB != \"yes\") && ($NIGHTLY == null)",
|
|
| 7890 | + "if": "((($ONLY_JOBS) && ($ONLY_JOBS =~ /.*\\bx86_64-linux-ubuntu24_04-loongarch-cross_loongarch64-linux-gnu-validate-manual-testsuite(\\s|$).*/)) || (($ONLY_JOBS == null) && ((($CI_MERGE_REQUEST_LABELS =~ /.*full-ci.*/) || ($CI_MERGE_REQUEST_LABELS =~ /.*marge_bot_batch_merge_job.*/) || ($CI_COMMIT_BRANCH == \"master\") || ($CI_COMMIT_BRANCH =~ /ghc-[0-9]+\\.[0-9]+/)) || ($CI_MERGE_REQUEST_LABELS =~ /.*loongarch.*/)))) && ($RELEASE_JOB != \"yes\") && ($NIGHTLY == null)",
|
|
| 7891 | 7891 | "when": "manual"
|
| 7892 | 7892 | }
|
| 7893 | 7893 | ],
|