haskell / haskell/cabal

Intermittent cabal-install integration test failure on Windows

Open
#3,123 3 comments 0 reactions 0 assignees View on GitHub
cabal-install: tests/integration-tests old-milestone: ⊥ platform: windows status: consider closing type: bug type: testing
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

I noticed a weird failure while testing cabal on AppVeyor:

```
exec
should_run
adds_sandbox_bin_directory_to_path.sh (ignoring stderr): FAIL
Exception: RemoveDirectory "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cabal-install-test-1924\\should_run\\.cabal-sandbox\\bin": unsatisified constraints (The directory is not empty.)
auto_configures_on_exec.sh (ignoring stderr): OK (0.50s)
can_run_executables_installed_in_sandbox.sh (ignoring stderr): OK (8.76s)
```

Here is the full log: https://ci.appveyor.com/project/grayjay/cabal/build/1.0.26

The test passed in four other AppVeyor builds, and I haven't been able to reproduce it locally.

EDIT: These tests also need to be enabled in appveyor.yml.

Contributor guide

Open the contributing guide

Research direction

Start with the failing should_run test, adds_sandbox_bin_directory_to_path.sh, the full AppVeyor log, and appveyor.yml, where the issue says these tests need enabling. Compare the failing Windows cleanup behavior with the passing builds and determine what makes the integration test reliable; done means the enabled tests pass consistently on AppVeyor.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.