O4: worker pool, flock locks, account slots, quota pause and requeue (closes #5)
This commit is contained in:
1 parent
afafc41376
commit
47893a4993
10 files changed
+410
-43
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Flake hunt: run tests/e2e.py N times, optionally under CPU load. usage: flake.py N [LOADERS]"""
|
||||
import subprocess, sys
|
||||
|
||||
n = int(sys.argv[1])
|
||||
load = [subprocess.Popen([sys.executable, "-c", "while True: pass"]) for _ in range(int(sys.argv[2]) if len(sys.argv) > 2 else 0)]
|
||||
bad = 0
|
||||
try:
|
||||
for i in range(n):
|
||||
p = subprocess.run([sys.executable, "tests/e2e.py"], capture_output=True, text=True)
|
||||
if p.returncode:
|
||||
bad += 1
|
||||
print(f"run {i} FAILED\n{p.stderr[-800:]}")
|
||||
finally:
|
||||
for l in load:
|
||||
l.terminate()
|
||||
print(f"{n - bad}/{n} ok")
|
||||
sys.exit(1 if bad else 0)
|
||||
Reference in new issue
Block a user