Skip to content
Snippets Groups Projects
Commit 8b77ad54 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

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.
parent 25055932
No related branches found
No related tags found
2 merge requests!812Merge stable into default,!806test-chg: stabilize the log checking
......@@ -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,4 +300,6 @@
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=...)
......@@ -301,5 +305,4 @@
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
-----------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment