Commit c1ed614
authored
test(e2e): accept supervisor gateway recovery (#9090)
<!-- markdownlint-disable MD041 -->
## Summary
The gateway-recovery live target now accepts either successful
production recovery path after terminating the managed gateway. In
[Actions run
31767577321](https://github.com/NVIDIA/NemoClaw/actions/runs/31767577321),
PID 1 replaced the process before `connect --probe-only` completed, so
the CLI correctly reported that the gateway was already running. The
target rejected that result even though its deterministic CLI contract
explicitly requires that output for an automatic supervisor replacement.
The live target still requires a different process identity, the
complete guard chain, healthy inference, and 15 seconds of process
stability.
## Changes
- Accept the controller-recovery and supervisor-recovery success
messages.
- Record which recovery path won the race in the live evidence summary.
- Keep the existing process replacement, guard, inference, and stability
assertions.
- Rename the target phase and title to describe the behavior it proves.
## Type of Change
- [x] Code change (feature, bug fix, or refactor)
- [ ] Code change with doc updates
- [ ] Doc only (prose changes, no code sample modifications)
- [ ] Doc only (includes code sample changes)
## Quality Gates
- [x] Tests added or updated for changed behavior
- [ ] Existing tests cover changed behavior — justification:
- [ ] Tests not applicable — justification:
- [ ] Docs updated for user-facing behavior changes
- [x] Docs not applicable — justification: Production recovery behavior
and CLI output do not change; this corrects one live E2E expectation.
- [ ] Sensitive paths changed (security, policy, credentials, preflight,
onboarding, inference, runner, sandbox, or messaging)
- [ ] Sensitive-path review completed or maintainer-approved waiver
recorded — reviewer/approval link/justification:
- [ ] Non-success, skipped, or missing CI check accepted by maintainer —
check name, approval link, and follow-up issue:
## Documentation Writer Review
- [x] Documentation writer subagent reviewed the completed changes
- Result: `no-docs-needed`
- Evidence: Existing command, recovery, lifecycle-control, and
troubleshooting pages already describe supervisor relaunch and
successful already-running recovery. The docs do not promise which
recovery actor appears in the success line.
- Agent: Codex documentation writer subagent
<!-- docs-review-head-sha: f5cc320 -->
<!-- docs-review-agents-blob-sha: e30afb2 -->
## DGX Station Hardware Evidence
- [ ] Tested on DGX Station
- Tested commit: Not applicable; DGX Station preparation is unchanged.
- Station profile/scenario: Not applicable.
- Result: Not applicable.
- Supporting evidence: Not applicable.
## Verification
- [x] PR description includes a `Signed-off-by:` line and every commit
appears as `Verified` in GitHub
- [x] Normal `pre-commit`, `commit-msg`, and `pre-push` hooks passed, or
`npm run validate:pr` passed after refreshing `origin/main` when hooks
were skipped or unavailable
- [x] Targeted behavior tests pass for the current change set, or tests
are marked not applicable above — deterministic connect recovery: 2
passed; live target collection: passed
- [x] Applicable broad gate passed — exact Vitest project membership,
test-title style, targeted repository hooks, and diff validation passed
- [x] Quality Gates section completed with required justifications or
waivers
- [x] No secrets, API keys, or credentials committed
- [ ] `npm run docs` builds without warnings (doc changes only)
- [ ] Doc pages follow the [style
guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md)
(doc changes only)
- [ ] New doc pages include SPDX header and frontmatter (new pages only)
---
Signed-off-by: Apurv Kumaria <akumaria@nvidia.com>
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Tests**
* Improved crash-loop recovery coverage to accept recovery through
either supported production path.
* Recovery test results now record and report which path successfully
restored service.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Signed-off-by: Apurv Kumaria <akumaria@nvidia.com>1 parent 6e0df3f commit c1ed614
1 file changed
Lines changed: 21 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
242 | 249 | | |
243 | | - | |
244 | | - | |
245 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
246 | 254 | | |
247 | 255 | | |
248 | 256 | | |
| |||
301 | 309 | | |
302 | 310 | | |
303 | 311 | | |
304 | | - | |
| 312 | + | |
305 | 313 | | |
306 | 314 | | |
307 | 315 | | |
308 | 316 | | |
309 | 317 | | |
310 | | - | |
| 318 | + | |
311 | 319 | | |
312 | 320 | | |
313 | 321 | | |
| |||
354 | 362 | | |
355 | 363 | | |
356 | 364 | | |
357 | | - | |
| 365 | + | |
358 | 366 | | |
359 | 367 | | |
360 | 368 | | |
361 | 369 | | |
362 | 370 | | |
363 | 371 | | |
364 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
365 | 377 | | |
366 | 378 | | |
367 | 379 | | |
| |||
386 | 398 | | |
387 | 399 | | |
388 | 400 | | |
| 401 | + | |
389 | 402 | | |
390 | 403 | | |
391 | 404 | | |
| |||
0 commit comments