Skip to content

Rebuild the rollout cell around an explicit five-state machine - #2098

Open
fzyzcjy wants to merge 1 commit into
tom/refactor-miles/op13-119from
tom/refactor-miles/op13-120
Open

Rebuild the rollout cell around an explicit five-state machine#2098
fzyzcjy wants to merge 1 commit into
tom/refactor-miles/op13-119from
tom/refactor-miles/op13-120

Conversation

@fzyzcjy

@fzyzcjy fzyzcjy commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Part of #1837

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from b193c44 to dde9aec Compare August 3, 2026 23:43
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch 2 times, most recently from 12ac8dd to d0a6fbb Compare August 4, 2026 00:38
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from dde9aec to a7b458d Compare August 4, 2026 00:38
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from d0a6fbb to 655543b Compare August 4, 2026 02:36
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch 2 times, most recently from 137f21d to 58a69cf Compare August 4, 2026 06:53
@fzyzcjy
fzyzcjy requested a review from Rockdu as a code owner August 4, 2026 06:53
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from 655543b to e2ba0f1 Compare August 4, 2026 06:53
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from 58a69cf to 47c83b9 Compare August 4, 2026 07:24
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from e2ba0f1 to 1105a58 Compare August 4, 2026 07:24
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from 47c83b9 to 9abc46a Compare August 4, 2026 07:31
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from 1105a58 to 5ad47c4 Compare August 4, 2026 07:31
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from 9abc46a to d0fbbff Compare August 6, 2026 03:46
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from 5ad47c4 to e8d08e6 Compare August 6, 2026 03:46
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from d0fbbff to d58254d Compare August 6, 2026 07:04
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from e8d08e6 to 2b256fc Compare August 6, 2026 07:04
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from d58254d to a3ac4fb Compare August 9, 2026 23:31
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from 2b256fc to 151b9f0 Compare August 9, 2026 23:31
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from a3ac4fb to d825a69 Compare August 10, 2026 00:44
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from 151b9f0 to 976fea2 Compare August 10, 2026 00:44
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from 29be034 to 042fa96 Compare August 10, 2026 16:06
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from 132d90c to f4509ea Compare August 10, 2026 16:33
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from 042fa96 to ed0ca01 Compare August 10, 2026 16:33
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from f4509ea to d663cd0 Compare August 12, 2026 02:48
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from 88ea78b to ca37002 Compare August 12, 2026 09:32
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from d663cd0 to 86c5325 Compare August 12, 2026 09:32
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from ca37002 to 6f8ab9a Compare August 12, 2026 14:31
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch 2 times, most recently from 090417b to 3e27670 Compare August 12, 2026 14:36
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from 6f8ab9a to 262ab1d Compare August 12, 2026 14:36
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from 3e27670 to 59be169 Compare August 12, 2026 23:56
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from 45a326f to e5c5f0c Compare August 13, 2026 01:13
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from 59be169 to d5dbcca Compare August 13, 2026 01:13
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from e5c5f0c to 3d17ff6 Compare August 13, 2026 03:11
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from d5dbcca to 23d2588 Compare August 13, 2026 03:11
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from 3d17ff6 to 4cd949d Compare August 13, 2026 03:25
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from 23d2588 to 17282a3 Compare August 13, 2026 03:25
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch from 4cd949d to 8eee1c8 Compare August 13, 2026 06:00
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch 2 times, most recently from 6ffe4a1 to 9b7a55e Compare August 13, 2026 06:39
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-119 branch 2 times, most recently from 72adb4a to cdfe05f Compare August 14, 2026 04:45
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from 9b7a55e to 736001d Compare August 14, 2026 04:46

if not self.meta.update_weights or self.args.debug_rollout_only:
await self.mark_weights_ready()
self._change_state("mark_pending_weights", StateInitializing, StatePendingWeights(addr_info=addr_info))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Make initialization retries phase-aware

_tick_when_initializing() keeps the cell in StateInitializing across snapshot, release, and resume. If release succeeds server-side but its response is lost, resume fails, or the tick is cancelled after release, the next sweep starts over and snapshots weights that may already have been discarded. This can corrupt the weight-checker baseline or leave a colocated engine stuck after a transient HTTP failure. Please persist or reconcile the completed startup phase so retries resume from the first incomplete operation instead of replaying the whole sequence.

A cell now starts uninitialized, releases its engine's launch gate in
init(), and is carried to pending-weights by the tick sweep once the
engine answers, instead of blocking the caller inside add(). Readiness
polling moves from a blocking wait to a single short-timeout probe per
tick, and dispose() is accepted from every state.
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op13-120 branch from 736001d to 9a80842 Compare August 29, 2026 12: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.

2 participants