Skip to content

train 1122235507: #4688 #4690 (CI only) - #4692

Closed
ashhart wants to merge 6 commits into
mainfrom
lead/train-1122235507
Closed

ashhart wants to merge 6 commits into
mainfrom
lead/train-1122235507

Conversation

@ashhart

@ashhart ashhart commented Nov 23, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #4688 #4690 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.

…ane thread's timed waits

A score or decide asker waited untimed on the host's wake condition, which
the lane thread also waits on, timed, when idle. std.Io.Condition hands a
broadcast's signals to the waiters registered at that moment, and each takes
one only once its futex wait returns. When the lane thread answered an ask
and went back to its idle wait before the woken asker had taken its signal,
the lane thread's new timed wait found that signal when it expired and took
it; the asker then found none and slept on with its answer ready, until some
other work broadcast wake again.

Askers now wait untimed on the score queue's own condition, broadcast when
answers are set or the host closes; the lane thread keeps wake.

test-lane-condition-stress-host makes that schedule certain rather than
hoping load hits it: it runs the real host, lane thread and Engine.score on
std.testing.io with its futex waits observed, holding the asker once woken
until the lane thread has begun two timed waits on wake. With the asker on
wake the answer never arrives (the test reports it after three seconds and
the host's close frees the asker); on its own condition it returns at once.
… cancel's timed waits

A cancel waits for its response's end with a deadline on the manager's ended
condition; the server's shutdown waited untimed on the same condition for
every job to leave. std.Io.Condition lets a timed waiter that waits again
take a signal a broadcast left for another waiter. Today no wake shutdown
needs can be taken that way: a cancel waits again only while its own job is
still listed, so the last job's end, the one wake shutdown waits for, is
never followed by a cancel's wait.

Shutdown now waits untimed on drained, broadcast with ended when a job
leaves, so that a later timed waiter on ended cannot take it either. No
behaviour changes today; the test the first version carried, a copy of the
manager's wait shape, is dropped (it never ran the manager's code).
… thread's are

Two tests waited untimed on the host's wake for the halt reason while the
lane thread, which also waits on wake with timeouts when idle, was running:
the shape the score askers had. The lane thread is held inside the backend
there today, so nothing strands, but a timed wait that re-checks the reason
cannot strand however the lane thread waits.
@ashhart

ashhart commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

Landed: #4688 #4690 as main 95ae408. This PR only carried their CI.

@ashhart ashhart closed this Nov 23, 2026
@ashhart
ashhart deleted the lead/train-1122235507 branch November 23, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant