Skip to content

fleet dispatcher: current-label runner without a unit here still stopped; docs for rename+move race (#346 follow-ups) #356

Closed

Description

@scuttletoby

Follow-ups from the SAFE lens on #346 (fleet dispatcher: only stop old-label runners whose unit is here; fixed #342): #346 (comment)

  1. Current label still gets the Fleet dispatcher: only stop old-label runners whose unit is here; counter tests (#330 follow-ups) #342 failure (.github/scripts/fork-fleet.py ~1159, older than fleet dispatcher: only stop old-label runners whose unit is here; counter tests (#342) #346): name in ours or means an online idle runner with the pool's CURRENT label but no unit on this host still gets a stop that always fails, so the pool is down every pass. Happens when the unit is gone while GitHub still lists the runner online (reboot, crash, unit limit) or when launch moved host without a label change. The lens reproduced it with Dispatch fixtures (nothing started, pool down 5 passes). No test covers it: dropping name in ours or stays green. Fix: name in units[p['name']] for both labels, plus a test that fails first; mutation-check it.
  2. Docs line for a narrow race (fork-fleet.py ~1151, from fleet dispatcher: clean up offline registrations under a pool's retired labels (#57) #309, named in fleet dispatcher: only stop old-label runners whose unit is here; counter tests (#342) #346's "not changed" note): label rename + launch move in one change, old host still on the old config, old-label jobs queued. A few-second window against a 20 s pass; the job is retried up to MAX_TRIES, then the sweep handles it. Suggest a docs line only (rename the label and move launch in two separate changes).

State question for item 1: a runner GitHub lists online whose unit is gone after a reboot, and the same pass running again.

🤖 Generated with Claude Code

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