Repository navigation
Split Cloud Hypervisor enclave smoke harness into focused modules - #11547
Merged
Merged
Conversation
…odules Co-authored-by: lpcox <[email protected]>
Copilot
AI
changed the title
[WIP] Refactor cloud hypervisor smoke test script into focused modules
Split Cloud Hypervisor enclave smoke harness into focused modules
Nov 13, 2026
lpcox
marked this pull request as ready for review
November 13, 2026 15:43
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Negative assertions scan only selected modules, so unattested-artifact overrides or direct-executor bypasses elsewhere in the harness could escape detection.
1 open issue
What changed in this PR
Refactors the Cloud Hypervisor enclave smoke harness for #11542 into focused modules behind the existing CommonJS interface.
Changes:
- Separates artifact preparation, diagnostics, readiness checks, probes, fixtures, and crash recovery.
- Organizes acceptance scenarios around shared run context used by launch callbacks and cleanup.
- Adds compatibility and dependency-cycle coverage, and updates CI integration and documentation.
| File | Description |
|---|---|
scripts/ci/test-cloud-hypervisor-enclave-workflow.test.ts |
Checks CI path coverage for extracted modules. |
scripts/ci/enclave-smoke/vm-readiness.js |
Extracts VM identity, readiness, and residue checks. |
scripts/ci/enclave-smoke/startup-evidence.js |
Centralizes startup evidence validation and readiness diagnostics. |
scripts/ci/enclave-smoke/scenarios.js |
Defines ordered acceptance scenario functions. |
scripts/ci/enclave-smoke/runner.js |
Coordinates setup, shared context, scenarios, and cleanup. |
scripts/ci/enclave-smoke/mcp-client.js |
Extracts public MCP transport and result assertions. |
scripts/ci/enclave-smoke/guest-probes.js |
Groups guest diagnostics and resource-limit probe builders. |
scripts/ci/enclave-smoke/fixtures.js |
Extracts configuration, gateway, and AWF lifecycle fixtures. |
scripts/ci/enclave-smoke/diagnostic-files.js |
Groups bounded diagnostic reads and sentinel-leak checks. |
scripts/ci/enclave-smoke/crash-recovery.js |
Extracts invocation tracking and recovery verification. |
scripts/ci/enclave-smoke/constants.js |
Centralizes shared assets, identities, and failure stages. |
scripts/ci/enclave-smoke/commands.js |
Shares command execution and container-log capture. |
scripts/ci/enclave-smoke/artifacts.js |
Extracts artifact preparation and profile validation. |
scripts/ci/cloud-hypervisor-enclave-modules.test.ts |
Adds export, shared-state, load-safety, and dependency-cycle checks. |
scripts/ci/cloud-hypervisor-enclave-live-smoke.test.ts |
Redirects source-inspection assertions to extracted modules. |
scripts/ci/cloud-hypervisor-enclave-diagnostics.test.ts |
Locates diagnostic-retention checks in the new runner. |
docs/filesystem-sharing-contract.md |
Notes helper locations and unchanged verification limits. |
docs/enclaves-architecture.md |
Documents module boundaries and unchanged acceptance scope. |
.github/workflows/test-cloud-hypervisor-enclaves.yml |
Adds module path filtering and compatibility-test selection. |
Review effort: Max (dynamic)
Add test to ensure global safety guards are preserved. Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Contributor
|
✅ Copilot review passed with no inline comments. @copilot Add the |
Contributor
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit 65b169f |
| 'use strict'; | ||
|
|
||
| const fs = require('fs'); | ||
| const path = require('path'); |
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.

The 3,050-line smoke harness mixed artifact preparation, diagnostics, VM lifecycle checks, probes, and acceptance scenarios. This refactor separates those concerns while preserving its public interface and acceptance behavior.
scripts/ci/enclave-smoke/; retain the existing entry point as a facade with all 59 exports.Cross-backend parity and acceptance scope remain unchanged.