Skip to content

Preserve a restored needs-info hold when fleet repair retries (follow-up for #1592, R3) #1700

Closed as duplicate

Description

@jparker2006

Follow-up of #1592 (spec #1223)

R3 (Sweep): skills/launch-fleet/scripts/status.py:500 treats a restored person's hold as a new fleet-owned application if the final fleet-note edit fails. On retry, cleanup selects the fleet's put-back event, deletes the label, and searches only the later events for a person's application. The original application is earlier in the timeline.

User path: A maintainer reapplies needs-info as the fleet removes it. The fleet restores it, but GitHub returns an error on the final status-note edit. At the next successful wake the hold disappears from OpenWiz's “needs you” view.

Proof at eb09c3b39740c9e97f2a7809c4c5693550f18d15: Extend the synthetic R2 scenario with a one-shot HTTP 502 on the PATCH that marks the fleet note done. First wake: exit 2, labels ['ready-for-agent', 'needs-info']. Next wake: exit 0 with no report, labels ['ready-for-agent']. The timeline ends with fleet remove, fleet restore, fleet remove.

Fix: keep the original application and the restored person's hold distinguishable across retries, and cover failure of the final note edit after the restoration succeeds.

Logged after the re-check of openwizdev/WizSkills#68 at eb09c3b39740c9e97f2a7809c4c5693550f18d15 under the 1 + 1 rule.

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

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions