Test failure due to concurrency issue
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- rust
- Domain
- testing-qa
Research direction
Start in tests/test_pileup.rs at the referenced test_pileup_with_header and test_pileup_no_filt locations, then inspect the corresponding modkit/tests/test_pileup.rs test. Run the release-profile tests with multiple threads to reproduce the failure. Done means the pileup tests no longer interfere with one another when tests run in parallel.
Written by the indexing model from the issue text.
Description
test_pileup_with_header and test_pileup_no_filt write to the same file:
https://github.com/nanoporetech/modkit/blob/8fa79e3e55c5735637f9ea3115c3e621b58fd74c/tests/test_pileup.rs#L24
https://github.com/nanoporetech/modkit/blob/8fa79e3e55c5735637f9ea3115c3e621b58fd74c/tests/test_pileup.rs#L901
This leads to test failures when tests are run in parallel.
Workaround: cargo test --profile=release -- --test-threads=1
- Dominant language
- Rust
- Stars
- 274
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nanoporetech/modkit
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 65/100
nanoporetech/modkit#336 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
nanoporetech/modkit#723 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 66/100
nanoporetech/modkit#721 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
nanoporetech/modkit#719 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
nanoporetech/modkit#718 ·
All issues in nanoporetech/modkit
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·