-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"stdout" test stalls temporarily sometimes #478
Comments
Workarounds/solutions:
|
|
The timer ticks at 0.05s intervals, so slower machines are more likely to encounter the error (maybe yours is fast). It's moreso the conflicting uses of stdout between hspec and the conduit tests than one or the other individually that's causing this issue. PR: #480 |
When running the tests for
cabal
, I noticed it hangs 20% of the time on thestdout
test:conduit/conduit/test/Spec.hs
Lines 350 to 353 in f371e82
That
82/100
is coming from where hspec prints test progress which prints asynchronously while looping through 100 examples generated by QuickCheck. The test sometimes captures output from a concurrent hspec stdout write and fails:Although I couldn't repro by injecting failures, I think that because of QuickCheck's shrinking, it keeps trying to find an input that fails again after it hits a failure (it never will because progress won't be printed), and the memory usage skyrockets to over 26GB:
After the test stopped or got killed, the total memory usage on my system dropped back down:
I captured a heap profile with
ghcoptions: -Wall -rtsopts -with-rtopts=-h
, and the memory rose (very slowly, I stopped it after a couple minutes):Environment:
stack --version
prints Version 2.7.3, Git revision 7927a3aec32e2b2e5e4fb5be76d0d50eddcc197f x86_64 hpack-0.34.4The text was updated successfully, but these errors were encountered: