-
Notifications
You must be signed in to change notification settings - Fork 89
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
Unstable test tests::e2e::test_e2e_download #194
Comments
The problem was in listen ports racing with each other and no "good" server being able to listen. Some servers are intentionally "bad" for chaos / recovery testing. As visible from your log there was only 1 out of 128 servers that was able to spin up |
Hmm, no it still bugged out on continuous testing, looking again |
Merged another fix in #196, let's monitor |
Tried a few more times, it's working much better, however there's still a rare issue where it couldn't download to the end, but it wasn't exposed previously. Probably related to #149 |
I've tested latest main, problem still appears, but less often, say around 10% of runs, behavior, while previously here were only 1 live connection, now there is plenty of connected peers, but they disconnect before torrent download is finished, see this extract from log:
Here is full log: Here is a script to replicate test failure: #!/bin/bash
TEST_NO=$1
for i in {1..100}; do
echo -n Running test $i
START=$SECONDS
RUST_LOG=debug RUST_BACKTRACE=1 cargo test -- test_e2e_download --nocapture > /tmp/test_log${TEST_NO}.txt 2>&1
FAIL_CODE=$?
if [ $FAIL_CODE -ne 0 ]; then
echo " - Failed in $(( SECONDS - START )) secs with code $FAIL_CODE"
exit $FAIL_CODE
fi
echo " - Finished in $(( SECONDS - START )) secs"
done |
Yeah that was the one I mentioned. I used this one to run until it fails
|
I've merged a bunch of changes, including fixing this. It required changing some core logic, so new bugs might show up. But I think I nailed down why this particular issue was happening, described here in detail #198. So closing this for now, feel free to reopen / open other ones if new bugs show up |
This test seems to be unstable in some runs it stucks for minutes, then ended with this error:
so it looks on timeout to finish torrent download ...
When running with logging enabled, looks like it stucks early in download:
Below is log from one failed test (failure rate seems to be something like 30% or so, so it was relatively easy to replicate)
test_log.txt.zip
The text was updated successfully, but these errors were encountered: