.
D 2019-02-19T23:39:00.493
L run-end-spec
P 5166933a8df04f18227e9c93f221578972d32cd8
U mrwellan
W 884
<h2>End of Run detection, rollup and hook handling</h2>
# NOTE: also look at retry
Spec:
# At beginning of each test mark run as RUNNING/ na --> done by the runner NOT the test
# At end of each test call, after marking self as COMPLETED do run-state-status-rollup
# At transition to run COMPLETED/X do hooks
Definition: test_dead if event_time + duration + 1 minute? < current_time
State/status table
# new
# 100% COMPLETED/ (PASS,FAIL,ABORT etc.) ==> COMPLETED / X where X is same as itemized rollup
# > 3 RUNNING with not test_dead do nothing (run should already be RUNNING/ na
# > 0 RUNNING and test_dead then send KILLREQ ==> COMPLETED
# 0 RUNNING ==> this is actually the first condition, should not get here
Other aspects to take care of:
# On rerun of any kind, treat the run as running and follow rules above
Z 4e3917e0af83af2d9a01907dbb155707