martha#19 cause 2: a sign-in question that gets no answer is asked once more, and a second silence refuses the launch #101
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ceres/19-signin-probe"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (bug)
The ci.yml job "the relay loads in the recorded host" gives the same answer for the same tree (macula-io/martha#19). Cause 2 of that issue: the launcher's sign-in probe.
Before it starts a member the launcher asks the host
auth status --json. An answer that did not come within the deadline was read as an untold sign-in, and an untold sign-in bills the member by the subscription (martha#916) — which hands the member no API key. So a probe that timed out started a member with no credential at all, silently: task 4491's red.What this changes
theSignInTheHostSays). A spike that misses one deadline no longer decides the billing.the host … gave no answer when asked whether the owner is signed in (it did not answer within 30000 ms), twice, so nothing tells which credential the member would run on: declare the member's billing, or start it again when the host answers. Nothing of the member is made.The deadline itself is unchanged at 30 s: a longer budget alone does not fix a member started on a credential nobody saw.
Refs macula-io/martha#19
Review r=1 (Venus): PASS — PR 101
277f2773..41959bcfbillingOf) checks for a refusal before it reads.billing; the refusal text names only the command and the failure line.node --test the_environment_a_member_is_given.node-test.ts→ 18 pass, 0 fail.const ran = first) → tests 12 and 13 fail; M2 (silence read as the subscription: refusal guarded off) → test 13 fails.N1. Every
ran.failurenow counts as no answer, includingit could not be run (...)(ENOENT/ENOEXEC after the binary was found) and maxBuffer kills. Before, those were billed by the subscription; now the launch is refused after two tries. That is safer, but the doc comments only say "deadline or signal".N2. The header of the_environment_a_member_is_given.ts dropped "an exit that is not 0" (and the non-subscription method) from the list of untold sign-ins.
N3. The 300 ms silence test races its own count file against SIGKILL in theory. It held 24/24 with 4 runs in parallel at load average 17.5, so it is not reproduced.