Skip to content

Add PortAllocator.alloc and thread the shared allocator through allocation - #1872

Open
fzyzcjy wants to merge 1 commit into
tom/refactor-miles/op5-7from
tom/refactor-miles/op5-9
Open

Add PortAllocator.alloc and thread the shared allocator through allocation#1872
fzyzcjy wants to merge 1 commit into
tom/refactor-miles/op5-7from
tom/refactor-miles/op5-9

Conversation

@fzyzcjy

@fzyzcjy fzyzcjy commented Jul 28, 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/op5-9 branch from 19e1383 to ad0099e Compare July 28, 2026 13:31
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-7 branch 2 times, most recently from 97cf640 to c98cff5 Compare August 3, 2026 23:45
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-9 branch 2 times, most recently from 3a15050 to db83a17 Compare August 4, 2026 00:39
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-7 branch 2 times, most recently from 6e7d155 to 7637998 Compare August 4, 2026 06:58
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-9 branch 2 times, most recently from aee8181 to cd98f14 Compare August 6, 2026 07:03
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-7 branch 2 times, most recently from 82c96d8 to 0294ac2 Compare August 10, 2026 06:08
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-9 branch 4 times, most recently from d0f85d5 to ec894a6 Compare August 12, 2026 02:48
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-7 branch from 1c68f0e to 5a2046a Compare August 12, 2026 14:31
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-9 branch from ec894a6 to 1d15a1d Compare August 12, 2026 14:31
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-7 branch from 5a2046a to bd8fd4a Compare August 12, 2026 23:56
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-9 branch from 1d15a1d to 416b664 Compare August 12, 2026 23:56
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-7 branch from bd8fd4a to a15b461 Compare August 13, 2026 01:13
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-9 branch 2 times, most recently from 00f5ee9 to c33ba50 Compare August 13, 2026 03:25
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-7 branch from 359da2b to ee3d09b Compare August 13, 2026 06:01
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-9 branch from c33ba50 to b848c48 Compare August 13, 2026 06:01
…ation

allocate_rollout_engine_addr_and_ports_normal now mutates the caller's
PortAllocator via alloc(node_ip) instead of growing a private cursor dict
and returning a replacement, which also removes the base_port chaining
(assign/next_base_port). alloc keeps the engine's free-port probe: a
recovery allocator starts empty, and only the probe prevents it from
re-issuing ports that live engines already hold.

@guapisolo guapisolo left a comment

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.

Reviewed in stack context. The shared per-node allocator change is sound, with no active findings requiring follow-up before safe merge checkpoint #2176. LGTM.

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