@feigi/fleet-ctl 3.73.2 → 3.73.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/suite-slot.mjs +12 -5
package/package.json
CHANGED
package/scripts/suite-slot.mjs
CHANGED
|
@@ -25,11 +25,18 @@
|
|
|
25
25
|
// the home directory rather than a workspace's `.fleet/` because the bound is
|
|
26
26
|
// host-wide and a review's snapshot is no repository. The holder stamps its own
|
|
27
27
|
// pid and releases on exit; a holder killed without releasing is taken over by
|
|
28
|
-
// the next waiter, so a SIGKILLed wrapper never wedges a slot.
|
|
29
|
-
//
|
|
30
|
-
//
|
|
31
|
-
//
|
|
32
|
-
// running.
|
|
28
|
+
// the next waiter, so a SIGKILLed wrapper never wedges a slot. The takeover
|
|
29
|
+
// does not stop the dead holder's test run, so a wrapper killed with SIGKILL
|
|
30
|
+
// alone leaves its run going uncounted and the host over its bound until that
|
|
31
|
+
// run ends; stop a wrapper with SIGTERM, which it forwards to the `sh -c`
|
|
32
|
+
// running its entrypoint, releasing its slot once that shell exits. The run
|
|
33
|
+
// stops with it only if that shell execs the run, as `exec node --test` does;
|
|
34
|
+
// a compound entrypoint (`cd sub && make test`), or a script that neither
|
|
35
|
+
// execs nor relays the signal, can leave the run going past the release,
|
|
36
|
+
// uncounted as after a SIGKILL. What the takeover cannot clear — an empty or
|
|
37
|
+
// partial lock whose writer died before stamping its pid, and a leftover
|
|
38
|
+
// `<i>.lock.reap` — is named on the way out of an expired wait, for the
|
|
39
|
+
// operator to remove by hand once nothing is running.
|
|
33
40
|
//
|
|
34
41
|
// Environment:
|
|
35
42
|
// FLEET_SUITE_SLOTS number of slots N, a positive integer. Default 2.
|