Commit d1347d7
test/scripts: harden rc.12 devnet test suite from comprehensive RC validation
Productionising the test-suite findings from a full rc.12 comprehensive
devnet sweep so the same harness reliably guards rc.13+. All changes are
in scripts/; no production code touched.
Fixes uncovered while testing release/rc.12:
v10-rc-validation.sh — migrate to rc.12 API shapes
* publish path: /api/publish (removed) → /api/shared-memory/write +
/api/shared-memory/publish, with selection.rootEntities so re-runs
against a CG that already has SWM content don't trip the rc.12
rootEntity-uniqueness rule
* private quads: rewritten to /api/update + privateMerkleRoot receipt
(rc.12 stores private quads encrypted-at-rest; they are intentionally
not served via /api/query, so the old "publisher sees private back"
assertion is replaced with the storage-receipt check)
* CAS: send a real non-empty conditions array (rc.12 rejects empty)
* chat: { to, text } (was recipientPeerId/text)
* identity: /api/profile (removed) → /api/identity + /api/status
* exit non-zero on any FAIL so the orchestrator picks it up
* timestamp-suffixed entity URIs, sub-graph names, assertion names so
every re-run is collision-free even on a long-lived devnet
* helper rewritten so the JSON-extraction pipeline is heredoc-safe
(was: stdin shadowed by heredoc; expressions with semicolons silently
SyntaxError'd and every parse returned EMPTY)
swm-soak-test.sh — python heredoc bug
* Final-summary block used `<<PYTHON` (unquoted), so bash expanded
every backtick-quoted code reference in Python comments (`m =
re.match(...)`, `s`, `by_cg_final[cg]`, etc.) as command
substitutions, producing a flood of "command not found" lines.
Switched to `<<'PYTHON'` + env-var pass-through.
devnet-test-rfc38-curator-offline-midbatch.sh — wrong endpoint
* wait_for_m1_onchain_id polled `GET /api/context-graph/<id>`, which
is a 404 (no such route) — the test reliably false-failed on every
run. Fixed to use `GET /api/context-graph/list` + client-side lookup,
and made the timeout configurable via RFC38_M1_ONCHAIN_WAIT_S=60.
devnet-test-rfc38-unclean-restart.sh — too-fast catchup + curl ARG_MAX
* Bumped WRITES_COUNT 20 → 200 and WRITE_PAYLOAD_BYTES 4096 → 16384,
and dropped the partial-catchup poll from 1 s → 100 ms, so the test
reliably observes M1 mid-batch at rc.12 catchup speeds (verified:
M1_pre-kill = 159 / 200 on the reference devnet).
* api_call streams large bodies through stdin (`-d @-`) instead of
argv; pre-fix the 3.2 MiB stress body tripped macOS ARG_MAX with
"Argument list too long".
devnet.sh — `stop` is now actually idempotent
* After stopping by pidfile, sweep every devnet port
(HARDHAT_PORT + API_PORT_BASE..+N + LIBP2P_PORT_BASE..+N) with
`lsof` and SIGTERM/SIGKILL any process still LISTENing. Catches
stale processes from prior rc.X devnets that were killed at the
worker layer while the supervisor respawned them. Opt out with
DEVNET_STOP_PORT_SWEEP=0 when running multiple devnets on one host.
Promoted from .rc12-test/ scratch dir to scripts/ for rc.13+:
* devnet-probe-hub-rotation.sh — PR OriginTrail#689 (chain hub rotation)
* devnet-probe-multi-rpc-failover.sh — PR OriginTrail#684 (multi-RPC failover)
* devnet-probe-libp2p-tunables.sh — PR OriginTrail#698 (libp2p tunables)
* devnet-probe-cg-phonebook.sh — PR OriginTrail#700 (agents CG)
* devnet-probe-ack-rejection-reasons.sh — PR OriginTrail#711 (ACK gate diagnostics)
* devnet-test-node-ui-smoke.sh — Vite dev-server smoke
* devnet-comprehensive.sh — orchestrator wiring all of
the above + v10-rc-validation + _devnet-full-sweep + rc11 recovery
+ rfc38-all + soak suite; bash-3.2 safe (no `declare -A`);
SKIP_SOAK / SOAK_ONLY / SKIP_PROBES / SKIP_RFC38_EXTRAS / SKIP_UI
/ FAIL_FAST knobs.
Verified on the rc.12 reference devnet:
- v10-rc-validation: 34 PASS / 0 FAIL / 2 WARN (exit 0)
- rfc38-unclean-restart: PASS (mid-batch window: 159/200)
- rfc38-curator-offline-midbatch: PASS
- 5 promoted probes (new layout): all PASS
- swm-soak (2 cycles, quick): 100.00% on both CGs, no errors
- devnet-comprehensive orchestrator: pre-flight + suite registration OK
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent f75b171 commit d1347d7
12 files changed
Lines changed: 1574 additions & 172 deletions
File tree
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
0 commit comments