testRegressionIssue3324 should not edit versioned file
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
Hi @dcoutts.
Steps to reproduce:
1. Run `integration-tests2 -p 3324`
2. After some amount of time, C^C the process
Expected result: working directory is clean.
Actual result: `q/q.cabal` is modified!!
Two bugs here. First, `withFileFinallyRestore` does not seem to be working to restore on C^C. Second, you shouldn't be editing the file in the first place.
Contributor guide
Research direction
Start by running `integration-tests2 -p 3324` and inspect the `testRegressionIssue3324` path involving `q/q.cabal` and `withFileFinallyRestore`. Reproduce the interruption with C^C, then determine why the versioned file is edited and not restored. Done means the test no longer modifies `q/q.cabal` and the working directory remains clean after interruption.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- build-system, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100