Skip to content

Many profiling tests broken on Windows

In the 9.10.1-alpha1 release job I found that many profiling-related tests are broken on Windows (see https://gitlab.haskell.org/ghc/ghc/-/jobs/1800492, https://gitlab.haskell.org/ghc/ghc/-/jobs/1800548):

Unexpected failures:
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/caller-cc/CallerCc1.run           CallerCc1 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/caller-cc/CallerCc1.run           CallerCc1 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/caller-cc/CallerCc2.run           CallerCc2 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/caller-cc/CallerCc2.run           CallerCc2 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/caller-cc/CallerCc3.run           CallerCc3 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/caller-cc/CallerCc3.run           CallerCc3 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/ignore_scc.run                    ignore_scc [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/ignore_scc.run                    ignore_scc [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/ioprof.run                        ioprof [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/ioprof.run                        ioprof [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/prof-doc-fib.run                  prof-doc-fib [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/prof-doc-fib.run                  prof-doc-fib [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/prof-doc-last.run                 prof-doc-last [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/prof-doc-last.run                 prof-doc-last [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/profinline001.run                 profinline001 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/profinline001.run                 profinline001 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/scc-prof-overloaded-calls001.run  scc-prof-overloaded-calls001 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/scc-prof-overloaded-calls001.run  scc-prof-overloaded-calls001 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/scc-prof-overloaded-calls002.run  scc-prof-overloaded-calls002 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/scc-prof-overloaded-calls002.run  scc-prof-overloaded-calls002 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/scc-prof-overloaded001.run        scc-prof-overloaded001 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/scc-prof-overloaded001.run        scc-prof-overloaded001 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/scc-prof-overloaded002.run        scc-prof-overloaded002 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/scc-prof-overloaded002.run        scc-prof-overloaded002 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/scc001.run                        scc001 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/scc002.run                        scc002 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/scc002.run                        scc002 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/scc003.run                        scc003 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/scc003.run                        scc003 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/scc005.run                        scc005 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/scc005.run                        scc005 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/T12962.run                        T12962 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/T12962.run                        T12962 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/T2552.run                         T2552 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/T2552.run                         T2552 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/T5654-O0.run                      T5654-O0 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/T5654-O1.run                      T5654-O1 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/T5654b-O0.run                     T5654b-O0 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/T5654b-O1.run                     T5654b-O1 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/T680.run                          T680 [bad profile] (prof)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/T680.run                          T680 [bad profile] (profasm)
   C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/toplevel_scc_1.run                toplevel_scc_1 [bad profile] (prof_no_auto)

It appears that the profile wasn't created in most of these cases, failing with output of the form:

*** unexpected failure for profinline001(profasm)
C:/GitLabRunner/builds/0/1800548/tmp/ghctest-m0rwyh7h/test   spaces/testsuite/tests/profiling/should_run/profinline001.run/profinline001.exe.prof does not exist
Edited by Ben Gamari
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information