Skip to content

Restart recovery test races the registry after an in-function metric #1281

Closed

Description

@frahlg

TestRegistryRestartDefaultFailureBlocksNewGeneration can fail while recovery is still correctly in progress. Its Lua fixture emits default_attempt=2 inside driver_default_mode. The test waits for that metric, then immediately requires the registry to have recorded the successful function return. Those are two different events.

Observed once in a full local make verify run on base 8650c58 plus unrelated storage changes: the metric was visible while ControlStatus still had Blocked=true, DefaultConfirmed=false and RecoveryPending=true. Twenty isolated repeats passed. The equivalent fresh-process recovery test in the same file already waits for the final control-state transition.

Make the restart test wait for that same observable transition within the existing two-second test deadline. Keep the preceding assertion that control is blocked after the failed startup default, and the final command-dispatch assertion. This is a test synchronization fix, not evidence that production opens control too early.

Activity

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