@rizom/ops 0.2.0-alpha.735 → 0.2.0-alpha.737
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/brains-ops.js +134 -130
- package/dist/deploy.js +13 -13
- package/dist/index.js +140 -136
- package/package.json +1 -1
- package/templates/rover-pilot/.github/workflows/deploy.yml +2 -0
- package/templates/rover-pilot/docs/operator-playbook.md +13 -1
package/package.json
CHANGED
|
@@ -12,6 +12,7 @@ on:
|
|
|
12
12
|
required: false
|
|
13
13
|
type: boolean
|
|
14
14
|
default: false
|
|
15
|
+
__PREDEPLOY_BACKUP_SKIP_INPUT__
|
|
15
16
|
push:
|
|
16
17
|
branches: ["main"]
|
|
17
18
|
paths:
|
|
@@ -200,6 +201,7 @@ jobs:
|
|
|
200
201
|
exit 1
|
|
201
202
|
|
|
202
203
|
- name: Create verified predeploy backup
|
|
204
|
+
__PREDEPLOY_BACKUP_SKIP_CONDITION__
|
|
203
205
|
env:
|
|
204
206
|
SERVER_IP: ${{ steps.provision.outputs.server_ip }}
|
|
205
207
|
TARGET_HANDLE: ${{ matrix.handle }}
|
|
@@ -102,7 +102,19 @@ Verified snapshots are finalized atomically under:
|
|
|
102
102
|
|
|
103
103
|
Files use mode `0600` and the directory uses `0700`. A `.incomplete` directory is diagnostic evidence, never a rollback point. Checksums and the versioned manifest must verify before finalization. The default retention is five verified snapshots per target; incomplete or unverified directories do not count, and the snapshot created by the current deployment is never pruned.
|
|
104
104
|
|
|
105
|
-
These are same-server rollback snapshots, not off-host disaster recovery.
|
|
105
|
+
These are same-server rollback snapshots, not off-host disaster recovery. Push, reconcile and ordinary manual deploys always take one, and there is no automatic restore.
|
|
106
|
+
|
|
107
|
+
A runtime whose own startup work keeps its job queue busy never passes the idle gate, so no deploy can replace it. For that case only, a manually dispatched Deploy can skip the snapshot once the operator has confirmed that the target's last verified snapshot stands:
|
|
108
|
+
|
|
109
|
+
```sh
|
|
110
|
+
gh workflow run Deploy --ref main \
|
|
111
|
+
-f handle=<handle> \
|
|
112
|
+
-f skip_predeploy_backup=true
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
The input is off by default and scoped to one handle; push and reconcile deploys carry no inputs, so their snapshot always runs.
|
|
116
|
+
|
|
117
|
+
Restoration requires separate approval: stop replacement/application processes, recheck the selected snapshot's checksums, preserve the current state, restore databases and exact Git state, then validate health, queues, Git checkpoints, durable export intents, preview, and production output before reopening the target.
|
|
106
118
|
|
|
107
119
|
## Retired projection job recovery
|
|
108
120
|
|