Skip to content

fix(actions): Wait for Checkpoint can miss terminal supervisor state #529

Closed

Description

@lastobelus

Wait for Checkpoint can finish with reason: "no-state" even when the observed checkpoint completed successfully. This has recurred across several resumable Action runs.

The successful case was verified independently: the terminal supervisor state reported status: "success" and phase: "complete", all 74 Full CI steps passed, and the immutable checkpoint tag and promoted main pointed to the expected candidate. The Action instead reported that its observed process exited without matching terminal state.

In scripts/lastcode-wait-for-checkpoint.ts, terminal correlation requires currentState.launchdPid === pid. The process observed through launchd and the PID recorded by the nested supervisor differed. Inspect that identity boundary; do not accept an unrelated predecessor's terminal state as proof of the current run.

Expected: the resumable observer reports the terminal outcome for the same checkpoint run, including when a scheduler wrapper launches the supervisor. Genuine missing state and replacement runs must remain distinguishable. A false observer result must not request another checkpoint when publication already succeeded.

This report records the observer defect separately from the completed checkpoint recovery; it does not request a service restart or a new checkpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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