mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
tests: reload cases that hold on slow runners
The downloads spanning a reload asked httpsrv for 64 KB blocks 60 ms apart, meant as two seconds; but httpsrv sends at most 8 KB a block, so they took 245 waits, some 15 seconds, and on the CI runners, whose timers stretch, more than the 20 the cases waited. They now ask for 400 KB in 8 KB blocks 40 ms apart, two seconds indeed, and are waited for up to a minute. The UDP part of the takeover case slept 1.5 s after the reload adding its udppm and then counted every datagram unanswered as lost; it now asks until the service answers first, and wants more than 20 datagrams through the reloads rather than 100, what a slow runner can send. That none is lost is the check. On a failure, run.py prints every log line with a result code other than 0, not only the last lines, so the reason a connection ended is shown wherever it was logged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
67a73a4132
commit
6428c4423f
4 files changed
+49
-20
No files matched your search
@@ -13,6 +13,7 @@ positive and negative scenarios expected from them.
|
||||
import argparse
|
||||
import importlib.util
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
@@ -119,6 +120,14 @@ def main():
|
||||
if not lines:
|
||||
continue
|
||||
print(f" --- {name} said ---")
|
||||
# why connections ended: the lines with a result code,
|
||||
# wherever they are, then the last few
|
||||
ended = [line for line in lines
|
||||
if re.match(r"\d+\.\d+ \S+ (?!00000 )\d{5} ", line)]
|
||||
for line in ended[-20:]:
|
||||
print(f" {line}")
|
||||
if ended:
|
||||
print(" ...")
|
||||
for line in lines[-12:]:
|
||||
print(f" {line}")
|
||||
|
||||
|
||||
Reference in new issue
Block a user