Skip to content

Conversation

mattkur
Copy link
Contributor

@mattkur mattkur commented Oct 7, 2025

petri: make inspect public, and
vmm_tests: use inspect to verify some state of the nvme driver in basic relay scenarios.

TODO:

  • Move the child helper to the inspect crate?
  • Fix up test failures (test failures are expected at this point, since the logic isn't solid.
  • Use this technique in more interesting ways.

vmm_tests: use `inspect` to verify some state of the nvme driver in basic relay
scenarios.

TODO:

- [ ] Move the `child` helper to the `inspect` crate?
- [x] Fix up test failures (test failures are expected at this point, since the
      logic isn't solid.
- [ ] Use this technique in more interesting ways.
@mattkur mattkur requested a review from a team as a code owner October 7, 2025 13:01
@Copilot Copilot AI review requested due to automatic review settings October 7, 2025 13:01
@mattkur mattkur requested a review from a team as a code owner October 7, 2025 13:01
@mattkur mattkur requested review from a team and gurasinghMS October 7, 2025 13:01
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the vmm_tests framework to use the inspect API for validating NVMe driver state in OpenHCL scenarios. The changes enable testing of specific NVMe device properties through inspection rather than just verifying basic functionality.

Key changes:

  • Made the inspect function public in the petri crate for broader testing use
  • Added helper functions to extract typed values from inspect nodes
  • Enhanced NVMe relay tests to validate device properties like save/restore support, queue size, and keepalive settings

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
vmm_tests/vmm_tests/tests/tests/x86_64/openhcl_uefi.rs Added inspect validation logic and helper functions for NVMe device property testing
vmm_tests/vmm_tests/Cargo.toml Added inspect crate dependency
petri/src/vm/mod.rs Exposed inspect_openhcl method publicly and refactored error handling

@mattkur
Copy link
Contributor Author

mattkur commented Oct 7, 2025

These tests will get more useful as we complete other work in this space (especially #2087 and other related work). But, I'd like to start getting the structure of these tests in so that we can use them to do that dev work.

Copy link

github-actions bot commented Oct 7, 2025

@gurasinghMS
Copy link
Contributor

Left 2 nit comments but lgtm otherwise

@mattkur mattkur merged commit 2885c7c into microsoft:main Oct 9, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants