Skip to content

Forward-merge release/0.8 into main - #972

Merged
GPUtester merged 1 commit into
mainfrom
release/0.8
Sep 2, 2026
Merged

Forward-merge release/0.8 into main#972
GPUtester merged 1 commit into
mainfrom
release/0.8

Conversation

@rapids-bot

@rapids-bot rapids-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

Forward-merge triggered by push to release/0.8 that creates a PR to keep main up-to-date. If this PR is unable to be immediately merged due to conflicts, it will remain open for the team to manually merge. See forward-merger docs for more info.

#### Overview

Recover managed MCP gateways that stop answering health checks, while making port conflicts actionable in operational logs.

- [x] I confirm this contribution is my own work, or I have the right to submit it under this project's license.
- [x] I searched existing issues and open pull requests, and this does not duplicate existing work.

#### Details

- Terminate an unhealthy managed gateway, wait one second, then force-kill its detached process tree before bootstrap starts a replacement.
- Preserve unmanaged-listener protection and add endpoint, health classification, remediation, and detailed failure context to bootstrap conflict logs.
- Add stale-owner and forced-termination regression coverage.
- Validated with `just test-rust`, focused bootstrap tests, commit hooks, and `cargo clippy -p nemo-relay-cli --all-targets -- -D warnings`.

#### Where should the reviewer start?

Start with `crates/cli/src/bootstrap/mod.rs` for bootstrap classification and conflict events, then `crates/cli/src/bootstrap/state.rs` for process termination.

#### Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

- Relates to: none


## Summary by CodeRabbit

* **Bug Fixes**
  * Unhealthy managed gateways are now stopped before replacement gateways start.
  * Stale ownership records for unreachable gateways are cleaned up safely.
  * Managed gateway cleanup verifies ownership before stopping processes, leaving unowned gateways unaffected.
  * Gateway processes and related child processes are fully terminated when necessary.
  * Gateway conflicts and recovery failures now provide clearer diagnostic details, including failure classification and remediation information.

Authors:
  - Will Killian (https://github.com/willkill07)

Approvers:
  - Maryam Najafian (https://github.com/mnajafian-nv)

URL: #971
@rapids-bot
rapids-bot Bot requested a review from a team as a code owner September 2, 2026 02:34
@GPUtester
GPUtester merged commit 96987f7 into main Sep 2, 2026
2 checks passed
@rapids-bot

rapids-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown
Author

SUCCESS - forward-merge complete.

@github-actions github-actions Bot added size:M PR is medium lang:rust PR changes/introduces Rust code labels Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang:rust PR changes/introduces Rust code size:M PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants