Skip to content

fork kit handoff: follow-ups from the #548 reviews (fallback, systemctl in window, race tests) #550

Closed

Description

@scuttletoby

Follow-ups from the two reviews of #548 (comments 7019680033 and 7019718750). Neither reviewer marked any of them blocking.

  1. The 20 s fallback is not "safe, just slower". When the kit falls back to the timeout, upstream's new server gives up after 250 ms (exit 78) and the launcher idles. T3 is then down for about a minute, and a pending update trial can lose its database backup or fail. The new rule reaches this fallback on every run where /proc/locks can't be read, or where the kit runs in a different pid namespace from the service.
    Fix: before stopping T3, check that the kit can see its own owner lock in /proc/locks. If it can't, use the old rule, or refuse with a clear message, instead of waiting for the timeout.
  2. systemctl show runs inside the handover window, with a 30 s timeout. On a busy machine it eats into the server's 250 ms wait.
    Fix: read MainPID once per start and remember it between polls, or check the holder's cgroup instead, and give the call a short timeout.
  3. The end-to-end race tests rarely catch a missing MainPID check. A mutant with that check removed passed 3 of 3 runs in one review and 3 of 5 in the other. The unit tests always catch it.
    Fix: keep probing for about 10 more checks after the kit first meets a probe.
  4. Nit: contract.test.py:119 still says the marker lasts 60 s. With the 1 s backdate it lasts 59 s.

General vs project: all general fork-kit code; nothing project-specific.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions