[GHC] #15071: :set usage in ghci tests breaks platform independence of output

#15071: :set usage in ghci tests breaks platform independence of output -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: high | Milestone: 8.6.1 Component: Test Suite | Version: 8.2.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Numerous GHCi tests are currently failing on Windows due to the use of `:set`, which prints the default flag set, which is platform dependent. For instance: {{{ --- "/tmp/ghctest-eo_ri0ye/test spaces/./ghci/scripts/ghci024.run/ghci024.stdout.normalised" 2018-04-19 18:35:50.927278200 +0000 +++ "/tmp/ghctest-eo_ri0ye/test spaces/./ghci/scripts/ghci024.run/ghci024.run.stdout.normalised" 2018-04-19 18:35:50.927278200 +0000 @@ -7,7 +7,6 @@ GHCi-specific dynamic flag settings: other dynamic, non-language, flag settings: -fno-diagnostics-show-caret - -fexternal-dynamic-refs -fignore-optim-changes -fignore-hpc-changes -fno-ghci-history }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15071 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15071: :set usage in ghci tests breaks platform independence of output -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: high | Milestone: 8.6.1 Component: Test Suite | Version: 8.2.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): The affected tests are, {{{ ghci024 ghci057 T9293 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15071#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15071: :set usage in ghci tests breaks platform independence of output -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: high | Milestone: 8.6.1 Component: Test Suite | Version: 8.2.2 Resolution: | Keywords: ci-breakage Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * keywords: => ci-breakage -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15071#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15071: :set usage in ghci tests breaks platform independence of output -------------------------------------+------------------------------------- Reporter: bgamari | Owner: RolandSenn Type: bug | Status: new Priority: high | Milestone: 8.8.1 Component: Test Suite | Version: 8.2.2 Resolution: | Keywords: ci-breakage Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * owner: (none) => RolandSenn Comment: I'll work on this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15071#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15071: :set usage in ghci tests breaks platform independence of output -------------------------------------+------------------------------------- Reporter: bgamari | Owner: RolandSenn Type: bug | Status: patch Priority: high | Milestone: 8.8.1 Component: Test Suite | Version: 8.2.2 Resolution: | Keywords: ci-breakage Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Windows: make | test TESTS="ghci057 T9293" Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:5125 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * testcase: => Windows: make test TESTS="ghci057 T9293" * status: new => patch * differential: => Phab:5125 Comment: I checked Harbormaster build log 297356 (https://phabricator.haskell.org/harbormaster/log/view/297356/) of build 52621 (https://phabricator.haskell.org/harbormaster/build/52621/) from Sun, Sep 2, 5:14 PM and found the following: - Two ghci tests (''ghci057'' and ''T9293'') fail because of differences in the stdout file, as described in this ticket. The offending line in stdout is no longer ''-fexternal-dynamic-refs'' but ''-fghci-leak-check''. Both tests specify a ''-fno-ghci-leak-check'' flag, so it's Ok, that '':set'' does not list this flag. I uploaded a patch (https://phabricator.haskell.org/D5125) that changes the expected stdout files. - The test ''ghci024'' is working and does no longer fail. - Two other ghci tests (''T5975a'' and ''T5975b'') fail while setting up the test with ''pre-cmd(touch föøbàr1.hs''). I never encounter problems, when I use German Umlauts in file names. On my Windows machine both tests run successfully. I guess this is not a GHC error, but some issue with your CI machine. Maybe either Windows, MinGW or Python is outdated. On my machine I'm using: - Windows: Edition Windows 10 Home, version 1803, build 17134.228. - msys64: 20180531 - python: 3.6.6 Most of the many other failing tests are a plugin issues and have nothing to do with this ticket! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15071#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15071: :set usage in ghci tests breaks platform independence of output -------------------------------------+------------------------------------- Reporter: bgamari | Owner: RolandSenn Type: bug | Status: patch Priority: high | Milestone: 8.8.1 Component: Test Suite | Version: 8.2.2 Resolution: | Keywords: ci-breakage Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Windows: make | test TESTS="ghci057 T9293" Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5125 Wiki Page: | -------------------------------------+------------------------------------- Changes (by potato44): * differential: Phab:5125 => Phab:D5125 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15071#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15071: :set usage in ghci tests breaks platform independence of output
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner: RolandSenn
Type: bug | Status: patch
Priority: high | Milestone: 8.8.1
Component: Test Suite | Version: 8.2.2
Resolution: | Keywords: ci-breakage
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case: Windows: make
| test TESTS="ghci057 T9293"
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D5125
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Krzysztof Gogolewski

#15071: :set usage in ghci tests breaks platform independence of output -------------------------------------+------------------------------------- Reporter: bgamari | Owner: RolandSenn Type: bug | Status: closed Priority: high | Milestone: 8.8.1 Component: Test Suite | Version: 8.2.2 Resolution: fixed | Keywords: ci-breakage Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Windows: make | test TESTS="ghci057 T9293" Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5125 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15071#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC