Test-More / Test-More/test-more

Test2::Tools::Spec, async occasionally hangs test

Open
#962 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Perl
Stars
149
Forks
98
PR merge metrics
No merged PRs in 30d

Description

Very rarely tests that have blocks with async => 1 hang forever. This happenes to many tests, but very rarely, like 1 in 10,000 so it is VERY hard to preproduce, and is likely a race condition. Mainly seeing this with yath, not sure if it also effects prove, but likely does.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Test2::Tools::Spec tests using blocks with async => 1 and reproduce the hang under yath, then check whether prove shows the same behavior. Trace the intermittent async execution until the race condition is isolated; done means the hang is fixed and a regression test covers it.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
testing-qa
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.