Skip to content

Test failures in Hadrian/Windows job

While the Windows/Hadrian CI job currently fails to merely run the testsuite, !2589 (closed) fixes this and gives back a few hundred test failures: https://gitlab.haskell.org/alp/ghc/-/jobs/250488

I have another patch that enables iserv on Windows for Hadrian, which apparently fixes all but 4 unexpected failures: https://gitlab.haskell.org/alp/ghc/-/jobs/254121

Here are the remaining failures (from the 2nd job's output).

Wrong exit code for T12971()(expected 0 , actual 2 )
Stdout ( T12971 ):
b'[1 of 1] Compiling Main             ( T12971.hs, T12971.o )\nLinking T12971.exe ...'
Stderr ( T12971 ):
b'realgcc.exe: error: SH;.MSC: No such file or directory\nC:\\GitLabRunner\\builds\\pA2hwqzM\\0\\alp\\ghc\\_build\\install\\lib\\../mingw/bin/windres.exe: "C:\\GitLabRunner\\builds\\pA2hwqzM\\0\\alp\\ghc\\_build\\install\\lib\\../mingw/bin/gcc.exe exited with status 1\n`windres.exe\' failed in phase `Windres\'. (Exit code: 1)\nmake: *** [Makefile:670: T12971] Error 1'
b'*** unexpected failure for T12971(normal)'

Actual stdout output differs from expected:
b'*** unexpected failure for tough(normal)'

Actual stdout output differs from expected:
b'*** unexpected failure for tough2(normal)'

Actual stdout output differs from expected:
b'*** unexpected failure for hpc001(normal)'

For the hpc/tough tests, the following output is related (it appears a lot earliere):

--- "C:/GitLabRunner/builds/pA2hwqzM/0/alp/ghc/tmp/ghctest-1vay9t4w/test   spaces/libraries/hpc/tests/simple/hpc001.run/hpc001.stdout.normalised"	2020-02-06 11:24:29.698153000 +0000
+++ "C:\\GitLabRunner\\builds\\pA2hwqzM\\0\\alp\\ghc\\tmp\\ghctest-1vay9t4w\\test   spaces\\libraries\\hpc\\tests\\simple\\hpc001.run\\hpc001.run.stdout.normalised"	2020-02-06 11:24:29.699130800 +0000
@@ -1,113 +1,70 @@
 "Hello"
 
 
- 75% expressions used (3/4)
-100% boolean coverage (0/0)
-     100% guards (0/0)
-     100% 'if' conditions (0/0)
-     100% qualifiers (0/0)
-100% alternatives used (0/0)
-100% local declarations used (0/0)
-100% top-level declarations used (1/1)
-
-
------<module Main>-----
- 75% expressions used (3/4)
-100% boolean coverage (0/0)
-     100% guards (0/0)
-     100% 'if' conditions (0/0)
-     100% qualifiers (0/0)
-100% alternatives used (0/0)
-100% local declarations used (0/0)
-100% top-level declarations used (1/1)
-
-
-Writing: Main.hs.html
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<style type="text/css">
-span.lineno { color: white; background: #aaaaaa; border-right: solid white 12px }
-span.nottickedoff { background: yellow}
-span.istickedoff { background: white }
-span.tickonlyfalse { margin: -1px; border: 1px solid #f20913; background: #f20913 }
-span.tickonlytrue  { margin: -1px; border: 1px solid #60de51; background: #60de51 }
-span.funcount { font-size: small; color: orange; z-index: 2; position: absolute; right: 20 }
-span.decl { font-weight: bold }
-span.spaces    { background: white }
-</style>
-</head>
-<body>
-<pre>
-<span class="decl"><span class="nottickedoff">never executed</span> <span class="tickonlytrue">always true</span> <span class="tickonlyfalse">always false</span></span>
-</pre>
-<pre>
-<span class="lineno">    1 </span><span class="decl"><span class="istickedoff">main = print (const "Hello" <span class="nottickedoff">"World"</span>)</span></span>
-
-</pre>
-</body>
-</html>
-Writing: hpc_index.html
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css">table.bar { background-color: #f25913; }
-td.bar { background-color: #60de51;  }
-td.invbar { background-color: #f25913;  }
-table.dashboard { border-collapse: collapse  ; border: solid 1px black }
-.dashboard td { border: solid 1px black }
-.dashboard th { border: solid 1px black }
-</style>
-</head><body><table class="dashboard" width="100%" border=1>
-<tr><th rowspan=2><a href="hpc_index.html">module</a></th><th colspan=3><a href="hpc_index_fun.html">Top Level Definitions</a></th><th colspan=3><a href="hpc_index_alt.html">Alternatives</a></th><th colspan=3><a href="hpc_index_exp.html">Expressions</a></th></tr><tr><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th></tr><tr>
-<td>  <tt>module <a href="Main.hs.html">Main</a></tt></td>
-<td align="right">100%</td><td>1/1</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="100%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">- </td><td>0/0</td><td width=100> </td><td align="right">75%</td><td>3/4</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="75%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
-<tr></tr><tr style="background: #e0e0e0">
-<th align=left>  Program Coverage Total</tt></th>
-<td align="right">100%</td><td>1/1</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="100%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">- </td><td>0/0</td><td width=100> </td><td align="right">75%</td><td>3/4</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="75%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
-</table></body></html>
-Writing: hpc_index_fun.html
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css">table.bar { background-color: #f25913; }
-td.bar { background-color: #60de51;  }
-td.invbar { background-color: #f25913;  }
-table.dashboard { border-collapse: collapse  ; border: solid 1px black }
-.dashboard td { border: solid 1px black }
-.dashboard th { border: solid 1px black }
-</style>
-</head><body><table class="dashboard" width="100%" border=1>
-<tr><th rowspan=2><a href="hpc_index.html">module</a></th><th colspan=3><a href="hpc_index_fun.html">Top Level Definitions</a></th><th colspan=3><a href="hpc_index_alt.html">Alternatives</a></th><th colspan=3><a href="hpc_index_exp.html">Expressions</a></th></tr><tr><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th></tr><tr>
-<td>  <tt>module <a href="Main.hs.html">Main</a></tt></td>
-<td align="right">100%</td><td>1/1</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="100%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">- </td><td>0/0</td><td width=100> </td><td align="right">75%</td><td>3/4</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="75%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
-<tr></tr><tr style="background: #e0e0e0">
-<th align=left>  Program Coverage Total</tt></th>
-<td align="right">100%</td><td>1/1</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="100%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">- </td><td>0/0</td><td width=100> </td><td align="right">75%</td><td>3/4</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="75%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
-</table></body></html>
-Writing: hpc_index_alt.html
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css">table.bar { background-color: #f25913; }
-td.bar { background-color: #60de51;  }
-td.invbar { background-color: #f25913;  }
-table.dashboard { border-collapse: collapse  ; border: solid 1px black }
-.dashboard td { border: solid 1px black }
-.dashboard th { border: solid 1px black }
-</style>
-</head><body><table class="dashboard" width="100%" border=1>
-<tr><th rowspan=2><a href="hpc_index.html">module</a></th><th colspan=3><a href="hpc_index_fun.html">Top Level Definitions</a></th><th colspan=3><a href="hpc_index_alt.html">Alternatives</a></th><th colspan=3><a href="hpc_index_exp.html">Expressions</a></th></tr><tr><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th></tr><tr>
-<td>  <tt>module <a href="Main.hs.html">Main</a></tt></td>
-<td align="right">100%</td><td>1/1</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="100%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">- </td><td>0/0</td><td width=100> </td><td align="right">75%</td><td>3/4</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="75%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
-<tr></tr><tr style="background: #e0e0e0">
-<th align=left>  Program Coverage Total</tt></th>
-<td align="right">100%</td><td>1/1</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="100%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">- </td><td>0/0</td><td width=100> </td><td align="right">75%</td><td>3/4</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="75%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
-</table></body></html>
-Writing: hpc_index_exp.html
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css">table.bar { background-color: #f25913; }
-td.bar { background-color: #60de51;  }
-td.invbar { background-color: #f25913;  }
-table.dashboard { border-collapse: collapse  ; border: solid 1px black }
-.dashboard td { border: solid 1px black }
-.dashboard th { border: solid 1px black }
-</style>
-</head><body><table class="dashboard" width="100%" border=1>
-<tr><th rowspan=2><a href="hpc_index.html">module</a></th><th colspan=3><a href="hpc_index_fun.html">Top Level Definitions</a></th><th colspan=3><a href="hpc_index_alt.html">Alternatives</a></th><th colspan=3><a href="hpc_index_exp.html">Expressions</a></th></tr><tr><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th></tr><tr>
-<td>  <tt>module <a href="Main.hs.html">Main</a></tt></td>
-<td align="right">100%</td><td>1/1</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="100%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">- </td><td>0/0</td><td width=100> </td><td align="right">75%</td><td>3/4</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="75%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
-<tr></tr><tr style="background: #e0e0e0">
-<th align=left>  Program Coverage Total</tt></th>
-<td align="right">100%</td><td>1/1</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="100%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">- </td><td>0/0</td><td width=100> </td><td align="right">75%</td><td>3/4</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="75%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
-</table></body></html>
+Error: unable to find tix file for:hpc001exe.tix
+Usage: hpc report [OPTION] .. <TIX_FILE> [<MODULE> [<MODULE> ..]]
+Output textual report about program coverage
+
+
+Options:
+
+    --per-module                  show module level detail
+    --decl-list                   show unused decls
+    --exclude=[PACKAGE:][MODULE]  exclude MODULE and/or PACKAGE
+    --include=[PACKAGE:][MODULE]  include MODULE and/or PACKAGE
+    --srcdir=DIR                  path to source directory of .hs files
+                                  multi-use of srcdir possible
+    --hpcdir=DIR                  append sub-directory that contains .mix files
+                                  default .hpc [rarely used]
+    --reset-hpcdirs               empty the list of hpcdir's
+                                  [rarely used]
+    --xml-output                  show output in XML
+    --verbosity=[0-2]             verbosity level, 0-2
+                                  default 1
+
+
+
+Error: unable to find tix file for:hpc001exe.tix
+Usage: hpc report [OPTION] .. <TIX_FILE> [<MODULE> [<MODULE> ..]]
+Output textual report about program coverage
+
+
+Options:
+
+    --per-module                  show module level detail
+    --decl-list                   show unused decls
+    --exclude=[PACKAGE:][MODULE]  exclude MODULE and/or PACKAGE
+    --include=[PACKAGE:][MODULE]  include MODULE and/or PACKAGE
+    --srcdir=DIR                  path to source directory of .hs files
+                                  multi-use of srcdir possible
+    --hpcdir=DIR                  append sub-directory that contains .mix files
+                                  default .hpc [rarely used]
+    --reset-hpcdirs               empty the list of hpcdir's
+                                  [rarely used]
+    --xml-output                  show output in XML
+    --verbosity=[0-2]             verbosity level, 0-2
+                                  default 1
+
+
+
+Error: unable to find tix file for: hpc001exe.tix
+Usage: hpc markup [OPTION] .. <TIX_FILE> [<MODULE> [<MODULE> ..]]
+Markup Haskell source with program coverage
+
+
+Options:
+
+    --exclude=[PACKAGE:][MODULE]  exclude MODULE and/or PACKAGE
+    --include=[PACKAGE:][MODULE]  include MODULE and/or PACKAGE
+    --srcdir=DIR                  path to source directory of .hs files
+                                  multi-use of srcdir possible
+    --hpcdir=DIR                  append sub-directory that contains .mix files
+                                  default .hpc [rarely used]
+    --reset-hpcdirs               empty the list of hpcdir's
+                                  [rarely used]
+    --fun-entry-count             show top-level function entry counts
+    --highlight-covered           highlight covered code, rather that code gaps
+    --destdir=DIR                 path to write output to
+    --verbosity=[0-2]             verbosity level, 0-2
+                                  default 1
+

We're failing to find a .tix file and therefore can't process it to deliver the expected output.

Not sure what the windres failure is about yet.

I will use this ticket to track my work on getting those tests to pass.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information