Skip to content

feat(computers): a computer that follows the clock follows it again once a multi env's reset replaces its container - #648

Closed
williamloo-scale wants to merge 1 commit into
wloo/computer-clock-e2efrom
wloo/computer-clock-reset
Closed

williamloo-scale wants to merge 1 commit into
wloo/computer-clock-e2efrom
wloo/computer-clock-reset

Conversation

@williamloo-scale

Copy link
Copy Markdown
Contributor

What and why

A multi env's reset boots a computer afresh, and its clock follower went with the old container, so the computer showed real time until the next sync_env_clock. Now, while the gateway's clock is armed, the reset starts each such computer's follower again, the same way an arm does and as root. It then waits until the computer shows the clock, reading the follower's status as root. If the clock isn't armed, the follower is left to the next arm.

The follower start is shared between sync_env_clock and the reset (_multi_computers.start_clock_follower), and FOLLOWER_WAIT_S moves to computer/utils/clock.py.

How it was tested

  • Unit tests: follow_clock_again with the clock armed and not armed, and clock.wait_shown.
  • The end-to-end test now resets the env after the other checks. The container is a new one, and its shell and Python agree with the gateway. It passed on local Docker.

Notes

  • Docs to cover: a reset keeps a following computer on the clock.

Stack: follower → sync → e2e → this.

🤖 Generated with Claude Code

…nce a multi env's reset replaces its container

A reset boots the computer afresh, and its clock follower went with the old container, so it showed real time until the
next arm. While the gateway's clock is armed, the multi env's reset now starts each such computer's follower again as an
arm does, as root, and waits until the computer shows the clock; a clock not armed is left to the next sync_env_clock.
The follower start is shared with sync_env_clock, and the end-to-end test resets the env and checks the new container
agrees with the gateway.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@williamloo-scale

Copy link
Copy Markdown
Contributor Author

Closing: superseded by #649, which puts ubuntu-24.04 computers on the gateway's clock from the base image, with core configuring the follower at deploy and after a reset. FD-5477's remaining arm-time work (wait_followers_s and the refusals) stays with its assignee.

@williamloo-scale
williamloo-scale deleted the branch wloo/computer-clock-e2e November 12, 2026 23:38
@williamloo-scale
williamloo-scale deleted the wloo/computer-clock-reset branch November 12, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant