# HG changeset patch # User Pierre-Yves David # Date 1710158941 -3600 # Node ID 8b77ad54d67a32bfdd7d7f74defcf781c81879b2 # Parent 25055932042ab6665d0e2b52775712e9bfbd563c test-chg: stabilize the log checking The "worker process exited" line have been making the CI flaky for a long time. Lets sort this out. diff -r 25055932042a -r 8b77ad54d67a tests/test-chg.t --- a/tests/test-chg.t Mon Mar 11 12:03:40 2024 +0100 +++ b/tests/test-chg.t Mon Mar 11 13:09:01 2024 +0100 @@ -288,7 +288,9 @@ preserved (since setprocname isn't available on py3 and pure version, the 10th-most-recent line is different when using py3): - $ cat log/server.log.1 log/server.log | tail -10 | filterlog +(the "worker process exited" line is matched independently as it order is unstable with the "exiting" line, the worker might exit before the server decide to exit). + + $ cat log/server.log.1 log/server.log | tail -10 | grep -v "worker process exited" | filterlog YYYY/MM/DD HH:MM:SS (PID)> confighash = ... mtimehash = ... (no-setprocname !) YYYY/MM/DD HH:MM:SS (PID)> forked worker process (pid=...) YYYY/MM/DD HH:MM:SS (PID)> setprocname: ... (setprocname !) @@ -298,8 +300,9 @@ YYYY/MM/DD HH:MM:SS (PID)> setenv: ... YYYY/MM/DD HH:MM:SS (PID)> confighash = ... mtimehash = ... YYYY/MM/DD HH:MM:SS (PID)> validate: [] + YYYY/MM/DD HH:MM:SS (PID)> $TESTTMP/extreload/chgsock/server-... is not owned, exiting. + $ cat log/server.log.1 log/server.log | tail -10 | grep "worker process exited" | filterlog YYYY/MM/DD HH:MM:SS (PID)> worker process exited (pid=...) - YYYY/MM/DD HH:MM:SS (PID)> $TESTTMP/extreload/chgsock/server-... is not owned, exiting. global data mutated by schems -----------------------------