Sled Agent x Falcon: Use VMMs for Sled Agent testing #5226
Labels
Sled Agent
Related to the Per-Sled Configuration and Management
Testing & Analysis
Tests & Analyzers
TL:DR
It's time to introduce a test wrapper for Sled Agent tests to execute within a VMM.
Summary
Sled Agent tests used mocks to interface with the OS (intercepting calls to the system). Then, to a limited degree, they used fakes (see: #2422) to simulate the system. However, these tests still require a significant amount of plumbing, test-only interfaces, and constraints to execute correctly.
We'd benefit significantly from using a combination of falcon and nextest features to wrap "the ability to run your code in the context of a new, isolated VMM".
Background
Goal
Here's what would be a really nice end-state:
cargo nextest run
, pointing specifically to this test target, and we could be able to run them with apfexec
invocation, so the test runner could successfully launch VMMs.cargo xtask
, and itself added to CI.Tasks
vmm_test
s, which spins up a node, mounts test binaries, and runs commands within the new VM.cargo nextest run
invocation is not broken when executed without adequate permissions.pfexec
from nextest, granting adequate permissions to the specific tests wanting to launch VMMsThe text was updated successfully, but these errors were encountered: