Harden staging rolling replacement
Deploy story
What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.
Not deployed through the forge lane
No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.
Changed files
-
modified
docs/operations/release-deployment-fallbacks.md -
modified
infra/staging/main.tf -
modified
infra/staging/templates/deployer-startup.sh.tftpl -
modified
infra/staging/templates/fleet-startup.sh.tftpl -
modified
infra/staging/tests/safety.tftest.hcl -
modified
lib/openagents/forge/rolling_provider/gcp.ex -
modified
lib/openagents/forge/rolling_provider/gcp/deployer.ex -
added
test/openagents/forge/rolling_provider/gcp/deployer_test.exs -
modified
test/openagents/forge/rolling_provider/gcp_test.exs
Diff
9 files changed, +133 -8
docs/operations/release-deployment-fallbacks.md modified +5 -4
@@ -155,10 +155,11 @@ For each node, the coordinator performs this sequence:
| 155 | 155 |
|
| 156 | 156 |
|
| 157 | 157 |
|
| 158 |
|
|
| 159 |
|
|
| 160 |
|
|
| 161 |
|
|
| 158 |
|
|
| 159 |
|
|
| 160 |
|
|
| 161 |
|
|
| 162 |
|
|
| 162 | 163 |
|
| 163 | 164 |
|
| 164 | 165 |
|
infra/staging/main.tf modified +6 -2
@@ -750,8 +750,12 @@ resource "google_compute_instance" "deployer" {
| 750 | 750 |
|
| 751 | 751 |
|
| 752 | 752 |
|
| 753 |
|
|
| 754 |
|
|
| 753 |
|
|
| 754 |
|
|
| 755 |
|
|
| 756 |
|
|
| 757 |
|
|
| 758 |
|
|
| 755 | 759 |
|
| 756 | 760 |
|
| 757 | 761 |
|
infra/staging/templates/deployer-startup.sh.tftpl modified +5
@@ -71,6 +71,11 @@ docker run --detach \
| 71 | 71 |
|
| 72 | 72 |
|
| 73 | 73 |
|
| 74 |
|
|
| 75 |
|
|
| 76 |
|
|
| 77 |
|
|
| 78 |
|
|
| 74 | 79 |
|
| 75 | 80 |
|
| 76 | 81 |
|
infra/staging/templates/fleet-startup.sh.tftpl modified +4
@@ -154,6 +154,10 @@ mkdir -p "$DOCKER_CONFIG"
| 154 | 154 |
|
| 155 | 155 |
|
| 156 | 156 |
|
| 157 |
|
|
| 158 |
|
|
| 159 |
|
|
| 160 |
|
|
| 157 | 161 |
|
| 158 | 162 |
|
| 159 | 163 |
|
infra/staging/tests/safety.tftest.hcl modified +17
@@ -46,6 +46,23 @@ run "isolated_topology" {
| 46 | 46 |
|
| 47 | 47 |
|
| 48 | 48 |
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|
| 57 |
|
|
| 58 |
|
|
| 59 |
|
|
| 60 |
|
|
| 61 |
|
|
| 62 |
|
|
| 63 |
|
|
| 64 |
|
|
| 65 |
|
|
| 49 | 66 |
|
| 50 | 67 |
|
| 51 | 68 |
|
lib/openagents/forge/rolling_provider/gcp.ex modified +1 -2
@@ -136,8 +136,7 @@ defmodule OpenAgents.Forge.RollingProvider.Gcp do
| 136 | 136 |
|
| 137 | 137 |
|
| 138 | 138 |
|
| 139 |
|
|
| 140 |
|
|
| 139 |
|
|
| 141 | 140 |
|
| 142 | 141 |
|
| 143 | 142 |
|
lib/openagents/forge/rolling_provider/gcp/deployer.ex modified +41
@@ -9,6 +9,7 @@ defmodule OpenAgents.Forge.RollingProvider.Gcp.Deployer do
| 9 | 9 |
|
| 10 | 10 |
|
| 11 | 11 |
|
| 12 |
|
|
| 12 | 13 |
|
| 13 | 14 |
|
| 14 | 15 |
|
@@ -19,7 +20,47 @@ defmodule OpenAgents.Forge.RollingProvider.Gcp.Deployer do
| 19 | 20 |
|
| 20 | 21 |
|
| 21 | 22 |
|
| 23 |
|
|
| 22 | 24 |
|
| 23 | 25 |
|
| 24 | 26 |
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|
| 57 |
|
|
| 58 |
|
|
| 59 |
|
|
| 60 |
|
|
| 61 |
|
|
| 62 |
|
|
| 63 |
|
|
| 64 |
|
|
| 65 |
|
|
| 25 | 66 |
|
test/openagents/forge/rolling_provider/gcp/deployer_test.exs added +44
@@ -0,0 +1,44 @@
| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
test/openagents/forge/rolling_provider/gcp_test.exs modified +10
@@ -123,6 +123,16 @@ defmodule OpenAgents.Forge.RollingProvider.GcpTest do
| 123 | 123 |
|
| 124 | 124 |
|
| 125 | 125 |
|
| 126 |
|
|
| 127 |
|
|
| 128 |
|
|
| 129 |
|
|
| 130 |
|
|
| 131 |
|
|
| 132 |
|
|
| 133 |
|
|
| 134 |
|
|
| 135 |
|
|
| 126 | 136 |
|
| 127 | 137 |
|
| 128 | 138 |
|