test: xnet from/to deleted cloud engine#10566
Draft
mraszyk wants to merge 17 commits into
Draft
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds coverage for CloudEngine subnet deletion behavior when there are in-flight XNet messages, ensuring messages are rejected appropriately and that remaining stream data from the deleted subnet is not pulled.
Changes:
- Introduces a new XNet system test binary that deletes a CloudEngine subnet while messages are in flight and asserts expected reject codes.
- Adds a
StateMachine-based analogue test that simulates the same scenario with a shared registry and mocked XNet layer. - Wires the new tests into Cargo and Bazel build/test targets.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| rs/tests/message_routing/xnet/cloud_engine_subnet_delete_test.rs | New system test for CloudEngine subnet deletion with in-flight XNet messages. |
| rs/tests/message_routing/xnet/Cargo.toml | Adds dependencies and registers the new system test binary. |
| rs/tests/message_routing/xnet/BUILD.bazel | Adds Bazel system_test target for the new test binary and adjusts runtime deps. |
| rs/state_machine_tests/tests/mod.rs | Registers the new state machine test module. |
| rs/state_machine_tests/tests/cloud_engine_subnet_delete.rs | New StateMachine-based test exercising subnet deletion behavior. |
| rs/state_machine_tests/BUILD.bazel | Includes the new state machine test source in the integration test target. |
| Cargo.lock | Lockfile updates for the new/adjusted dependencies. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.