[GHC] #15469: Validation doesn't play nicely on a shared computer

#15469: Validation doesn't play nicely on a shared computer -------------------------------------+------------------------------------- Reporter: goldfire | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Test Suite | Version: 8.4.3 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: -------------------------------------+------------------------------------- In my shared Linux server, validation creates a directory structure under `/tmp` to do its work. It then creates a directory named something like `ghctest-52ezqtk2` under which the tests live. However, some of the tests in the testsuite are library tests. These end up in a `libraries` directory, accessed with prefixes like `../../libraries/xyz`. That is, the `libraries` directory ends up to be `/tmp/libraries`. The problem is that I share this Linux server with my students, who are also attempting to run validation. After the occasional cleanout of `/tmp`, whoever validates first creates the `/tmp/libraries` directory and then owns that directory -- anyone else who tries to validate gets permission errors until the next cleanout of `tmp`. Even with the presumably quick fix of changing the permissions on `libraries`, the very use of that folder means that two people cannot validate simultaneously on the same machine. Can we fix this? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15469 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15469: Validation doesn't play nicely on a shared computer -------------------------------------+------------------------------------- Reporter: goldfire | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Test Suite | Version: 8.4.3 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 thomie): Do you know which tests are writing to `/tmp/libraries`? haddock.base and haddock.Cabal? Possibly relevant commit (but I'm sure there is a better solution than reinstating this hack): https://git.haskell.org/ghc.git/blobdiff/e02beb1849416f5af8ec56acd17f37b5dc7... {{{ - # Hack. A few tests depend on files in ancestor directories - # (e.g. extra_files(['../../../../libraries/base/dist- install/haddock.t'])) - # Make sure tempdir is sufficiently "deep", such that copying/linking those - # files won't cause any problems. - # - # If you received a framework failure about adding an extra level: - # * add one extra '../' to the startswith('../../../../../') in do_test - # * add one more number here: - tempdir = os.path.join(tempdir, '1', '2', '3') }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15469#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15469: Validation doesn't play nicely on a shared computer -------------------------------------+------------------------------------- Reporter: goldfire | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Test Suite | Version: 8.4.3 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 goldfire): All the libraries tests do this, including those for `libraries/base`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15469#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15469: Validation doesn't play nicely on a shared computer -------------------------------------+------------------------------------- Reporter: goldfire | Owner: thomie Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Test Suite | Version: 8.4.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5039 Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * owner: (none) => thomie * differential: => Phab:D5039 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15469#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15469: Validation doesn't play nicely on a shared computer
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner: thomie
Type: bug | Status: new
Priority: normal | Milestone: 8.6.1
Component: Test Suite | Version: 8.4.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D5039
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Krzysztof Gogolewski

#15469: Validation doesn't play nicely on a shared computer -------------------------------------+------------------------------------- Reporter: goldfire | Owner: thomie Type: bug | Status: closed Priority: normal | Milestone: 8.6.1 Component: Test Suite | Version: 8.4.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5039 Wiki Page: | -------------------------------------+------------------------------------- Changes (by monoidal): * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15469#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC