haskell / haskell/cabal

testRegressionIssue3324 should not edit versioned file

Open
#3,538 0 comments 0 reactions 0 assignees View on GitHub
cabal-install: tests/integration-tests2 type: bug
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.