Skip to content

Split Cloud Hypervisor enclave smoke harness into focused modules - #11547

Merged
lpcox merged 3 commits into
mainfrom
copilot/refactor-split-cloud-hypervisor-script
Nov 13, 2026
Merged

lpcox merged 3 commits into
mainfrom
copilot/refactor-split-cloud-hypervisor-script

Conversation

Copilot AI commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Module boundaries: Extract focused helpers under scripts/ci/enclave-smoke/; retain the existing entry point as a facade with all 59 exports.
  • Scenario orchestration: Replace the monolithic acceptance sequence with ordered scenario functions sharing run context, including state needed by outer cleanup.
  • Compatibility and security: Preserve sentinel-leak assertions, capability fixtures, VM identity/residue checks, and acceptance gates. Add export-identity, shared-state, and dependency-cycle regression coverage.
  • Integration: Update source-inspection tests, CI path filters and test selection, and related architecture documentation.

Cross-backend parity and acceptance scope remain unchanged.

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
lpcox marked this pull request as ready for review November 13, 2026 15:43
Copilot AI adaptive review requested due to automatic review settings November 13, 2026 15:43
Copilot AI requested a review from lpcox November 13, 2026 15:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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]>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@copilot Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

Copy link
Copy Markdown
Contributor

Documentation Preview

Documentation has been built for this PR.

Download preview artifact

To view locally:

  1. Download the docs-preview-pr-11547 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit 65b169f

'use strict';

const fs = require('fs');
const path = require('path');
@lpcox
lpcox merged commit 5b47bfd into main Nov 13, 2026
42 of 44 checks passed
@lpcox
lpcox deleted the copilot/refactor-split-cloud-hypervisor-script branch November 13, 2026 16:31
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.

[Refactoring] Split scripts/ci/cloud-hypervisor-enclave-live-smoke.js into focused modules

4 participants