haskell / haskell/cabal

Tests for --with-repl are flaky on windows

Open
#11,026 0 comments 0 reactions 0 assignees View on GitHub
needs triage platform: windows type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

See #10996

The tests on windows fail with

```
D:\a\_temp\cabal-testsuite-12064\cabal-multi.dist\work\.\dist\multi-out-63884\paths\cabal-with-repl-exe-0.1.0.0-inplace-test-exe: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\D:\\a\\_temp\\cabal-testsuite-12064\\cabal-multi.dist\\work\\dist\\multi-out-63884\\paths\\cabal-with-repl-exe-0.1.0.0-inplace-test-exe": permission denied (The process cannot access the file because it is being used by another process.)
```

It appears the tests work fine but then the error happens during cleanup. Therefore the tests are skipped on CI on windows.

Contributor guide

Open the contributing guide

Research direction

Start by reading #10996 and locating the tests for --with-repl, then reproduce or inspect the Windows cleanup failure described here. Done means the tests are no longer skipped on Windows and their cleanup completes without the permission-denied error.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
ci-cd, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.