Skip to content

Share stockout zone state and skip unsupported zones in CIT. - #685

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1029530989
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1029530989

Conversation

@copybara-service

Copy link
Copy Markdown

Share stockout zone state and skip unsupported zones in CIT.

When a workflow hits a GCE stockout or quota error, CIT reruns it in the next zone from that workflow's own list. Nothing tells the other workflows in the run, so they keep starting in the zone that just ran out. Every run also hands out zones starting from the first -zones entry, so a rerun starts in the zone that failed. A zone in -zones that does not offer the machine type stops CIT during setup, and a retry into such a zone ends the retries.

Start the zone rotation at a random -zones entry. Build each workflow in the first zone that offers its machine type, and skip zones on retry where the workflow cannot be built. Workflows in one run share the zones where they hit a stockout, per project and machine type, and try other zones first. A stockout is forgotten once a run that started after it passes in that zone.

@copybara-service
copybara-service Bot force-pushed the test_1029530989 branch 2 times, most recently from dffadab to be6caaa Compare November 25, 2026 06:44
When a workflow hits a GCE stockout or quota error, CIT reruns it in the next zone from that workflow's own list. Nothing tells the other workflows in the run, so they keep starting in the zone that just ran out. Every run also hands out zones starting from the first `-zones` entry, so a rerun starts in the zone that failed. A zone in `-zones` that does not offer the machine type stops CIT during setup, and a retry into such a zone ends the retries.

Start the zone rotation at a random `-zones` entry. Build each workflow in the first zone that offers its machine type, and skip zones on retry where the workflow cannot be built. Workflows in one run share the zones where they hit a stockout, per project and machine type, and try other zones first. A stockout is forgotten once a run that started after it passes in that zone.

PiperOrigin-RevId: 1029530989
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 participant