hadrian: Introduce enableDebugInfo flavour transformer

Also refactor things a bit to eliminate repetition.
21 jobs for master in 414 minutes and 51 seconds (queued for 10 seconds)
Status Name Job ID Coverage
  Lint
passed lint-linters #180072
lint

00:00:13

passed lint-submods-branch #180075
lint

00:00:19

passed lint-testsuite #180073
lint

00:00:16

passed typecheck-testsuite #180074
lint

00:00:14

 
  Quick Build
passed hadrian-ghc-in-ghci #180076
x86_64-linux

00:19:30

 
  Build
passed release-x86_64-linux-deb9-dwarf #180079
x86_64-linux

01:02:59

passed validate-x86_64-linux-deb9-debug #180078
x86_64-linux

03:07:47

passed validate-x86_64-linux-deb9-hadrian #180077
x86_64-linux

01:52:21

 
  Full Build
failed validate-aarch64-linux-deb9 #180081
aarch64-linux allowed to fail

01:02:25

passed validate-i386-linux-deb9 #180082
x86_64-linux

01:58:34

passed validate-x86_64-darwin #180080
x86_64-darwin

00:55:20

passed validate-x86_64-linux-deb9-integer-simple #180083
x86_64-linux

00:55:20

passed validate-x86_64-linux-deb9-unreg #180084
x86_64-linux

02:50:49

passed validate-x86_64-linux-fedora27 #180085
x86_64-linux

00:52:28

failed validate-x86_64-windows #180087
x86_64-windows allowed to fail

00:46:58

failed validate-x86_64-windows-hadrian #180086
x86_64-windows allowed to fail

00:52:16

 
  Cleanup
passed cleanup-darwin #180088
x86_64-darwin

00:00:06

 
  Packaging
failed doc-tarball #180089
x86_64-linux allowed to fail

00:01:03

 
  Testing
manual hackage #180090
x86_64-linux allowed to fail manual
passed perf-nofib #180091
x86_64-linux

00:25:48

 
  Deploy
failed pages #180092
x86_64-linux allowed to fail

00:00:14

 
Name Stage Failure
failed
validate-aarch64-linux-deb9 Full Build
$ cp -Rf $HOME/.cabal cabal-cache
Uploading artifacts...
WARNING: ghc-*.tar.xz: no matching files
WARNING: junit.xml: no matching files
ERROR: No files to upload
Uploading artifacts...
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
validate-x86_64-windows-hadrian Full Build
Runtime platform                                    arch=amd64 os=windows pid=6276 revision=1f513601 version=11.10.1
WARNING: ghc.tar.xz: no matching files
WARNING: junit.xml: no matching files
ERROR: No files to upload
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=532 revision=1f513601 version=11.10.1
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 1
failed
validate-x86_64-windows Full Build
Runtime platform                                    arch=amd64 os=windows pid=6492 revision=1f513601 version=11.10.1
WARNING: ghc-*.tar.xz: no matching files
WARNING: junit.xml: no matching files
ERROR: No files to upload
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=2520 revision=1f513601 version=11.10.1
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 2
failed
doc-tarball Packaging
Synchronizing submodule url for 'utils/hsc2hs'
$ git submodule update --init --recursive
$ git checkout .gitmodules
$ git fetch https://gitlab.haskell.org/ghc/ghc-performance-notes.git refs/notes/perf:refs/notes/perf || true
From https://gitlab.haskell.org/ghc/ghc-performance-notes
4d63770763..726b65773b refs/notes/perf -> refs/notes/perf
$ if [ ! -f "$LINUX_BINDIST" ]; then # collapsed multi-line command
Error: ghc-x86_64-mingw32.tar.xz does not exist. Did the 64-bit Windows job fail?
ERROR: Job failed: exit code 1
failed
pages Deploy
Synchronizing submodule url for 'utils/hsc2hs'
$ git submodule update --init --recursive
$ git checkout .gitmodules
$ git fetch https://gitlab.haskell.org/ghc/ghc-performance-notes.git refs/notes/perf:refs/notes/perf || true
$ mkdir -p public/doc
$ tar -xf haddock.html.tar.xz -C public/doc
tar: haddock.html.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
ERROR: Job failed: exit code 1