Skip to content

fix: handle Cloud Hypervisor version probe failures - #8622

Merged
lpcox merged 7 commits into
mainfrom
copilot/awf-fix-cloud-hypervisor-probe
Sep 16, 2026
Merged

lpcox merged 7 commits into
mainfrom
copilot/awf-fix-cloud-hypervisor-probe

Conversation

Copilot AI commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Cloud Hypervisor preflight could surface cloud-hypervisor --version failures as exit code undefined, masking signal termination, spawn failures, or incomplete staged artifacts. Unsupported KVM/runner hosts could also hard-fail the engine path instead of continuing with Docker.

  • Version probe diagnostics
    • Report both exitCode and signalCode.
    • Distinguish normal nonzero exits, signal termination, and spawn/executable failures.
"/run/.../cloud-hypervisor --version" terminated by signal SIGKILL (exitCode=null, signalCode=SIGKILL): ...
  • Artifact validation

    • Require staged artifacts to have nonzero size before hashing or executing them.
    • Keep SHA-256 validation before any version probe.
  • Unsupported-host fallback

    • Introduce a typed CloudHypervisorUnsupportedHostError.
    • Fall back to the standard Docker backend for unsupported runner/KVM host conditions.
    • Preserve fail-closed behavior for artifact trust, digest, version, and configuration errors.
  • Regression coverage

    • Add focused tests for signal-terminated probes, spawn failures, empty staged artifacts, and Docker fallback on missing KVM support.

Copilot AI changed the title [WIP] Fix cloud-hypervisor version probe exit code Handle Cloud Hypervisor version probe failures Sep 16, 2026
Copilot AI requested a review from lpcox September 16, 2026 15:19
@lpcox
lpcox marked this pull request as ready for review September 16, 2026 16:12
Copilot AI balanced review requested due to automatic review settings September 16, 2026 16:12

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

Spawn failures remain misclassified, invalid configurations can bypass fail-closed validation, and the architecture documentation contradicts the new fallback behavior.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds actionable Cloud Hypervisor probe diagnostics, artifact-size validation, and Docker fallback for unsupported hosts.

Changes:

  • Introduces typed unsupported-host errors and Docker fallback.
  • Improves version-probe diagnostics and rejects empty artifacts.
  • Adds regression tests for fallback and probe failures.
File summaries
File Description
src/commands/validators/config-assembly.ts Adds validation-time fallback.
src/commands/validators/config-assembly-api-proxy.test.ts Tests validation fallback.
src/commands/main-action.ts Adds preflight fallback and dynamic cleanup handling.
src/commands/main-action.test.ts Tests runtime fallback.
src/cloud-hypervisor/preflight.ts Improves probes, size checks, and host errors.
src/cloud-hypervisor/preflight.test.ts Adds probe and artifact regressions.
src/cloud-hypervisor/host-eligibility.ts Uses typed unsupported-host errors.
src/cloud-hypervisor/errors.ts Defines error classification and warning helpers.
Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 3
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/cloud-hypervisor/preflight.ts Resolved
Comment thread src/commands/main-action.ts Resolved
@lpcox

lpcox commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

@copilot address the review feedback

Copilot AI commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

@copilot address the review feedback

Addressed in 1017994 and bcd53ad: Execa 5 resolved spawn errors are classified with code/details, trust/config validation now precedes host fallback, and the architecture docs describe the limited fallback. Targeted tests and type checks pass.

@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

github-actions Bot commented Sep 16, 2026 •

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-8622 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit b64dac7

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Coverage Regression Detected

This PR decreases test coverage. Please add tests to maintain coverage levels.

Overall Coverage

Metric Base PR Delta
Lines 94.12% 94.16% 📈 +0.04%
Statements 92.80% 92.84% 📈 +0.04%
Functions 93.44% 93.37% 📉 -0.07%
Branches 86.63% 86.59% 📉 -0.04%
📁 Per-file Coverage Changes (5 files)
File Lines (Before → After) Statements (Before → After)
src/commands/main-action.ts 96.8% → 96.0% (-0.79%) 96.9% → 96.1% (-0.78%)
src/cloud-hypervisor/preflight.ts 93.8% → 93.4% (-0.39%) 93.0% → 92.7% (-0.32%)
src/cloud-hypervisor/runtime-validation.ts 96.1% → 98.0% (+1.96%) 96.1% → 98.0% (+1.96%)
src/log-directory-setup.ts 96.2% → 100.0% (+3.78%) 96.3% → 100.0% (+3.71%)
src/commands/validators/config-assembly.ts 73.7% → 86.4% (+12.68%) 73.7% → 86.4% (+12.68%)
✨ New Files (1 files)
  • src/cloud-hypervisor/errors.ts: 100.0% lines

Coverage comparison generated by scripts/ci/compare-coverage.ts

@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Chroot tests failed Smoke Chroot failed - See logs for details.

Tested by Smoke Chroot

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Security Guard has started processing this pull request

@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

❌ Smoke Gemini reports failed. Facets need polishing...

💎 Faceted by Smoke Gemini

@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

❌ Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed...

🔑 BYOK (AOAI api-key) report filed by Smoke Copilot BYOK AOAI (api-key)

@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

📰 DEVELOPING STORY: Smoke Docker Sbx reports failed. Our correspondents are investigating the incident...

📰 BREAKING: Report filed by Smoke Docker Sbx

@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

❌ Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed...

🔑 BYOK (AOAI api-key) report filed by Smoke Copilot BYOK AOAI (api-key)

@github-actions

Copy link
Copy Markdown
Contributor

EGRESS_RESULT allow=pass deny=pass

✅ Allowed domain (api.github.com) reachable — HTTP 200
✅ Non-allowlisted domain (example.com) blocked — CONNECT tunnel 403

Overall: PASS

@lpcox

🛡️ Egress verdict from Smoke Copilot Network Isolation
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test: Services Connectivity — PASS

  • ✅ Redis PING → PONG
  • ✅ PostgreSQL pg_isready → accepting connections
  • ✅ PostgreSQL SELECT 1 → 1

Overall: PASS

🔌 Service connectivity validated by Smoke Services
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Fix Refactoring Scanner safe-output fallback
Fix Duplicate Code Detector Copilot model
GitHub reads ✅
Playwright ✅
File write ✅
Build ✅
Discussion comment ✅
Overall: PASS

Warning

Firewall blocked 7 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • msfeed25.pkgs.visualstudio.com
  • update.googleapis.com
  • www.google.com
  • www.gstatic.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "msfeed25.pkgs.visualstudio.com"
    - "update.googleapis.com"
    - "www.google.com"
    - "www.gstatic.com"

See Network Configuration for more information.

🔮 The oracle has spoken through Smoke Codex
Add label ready-for-aw to run again

@github-actions

Copy link
Copy Markdown
Contributor

Chroot Version Comparison Results

Runtime Host Version Chroot Version Match?
Python Python 3.12.14 Python 3.12.14 ✅ YES
Node.js v24.21.0 v22.23.2 ❌ NO
Go go1.22.12 go1.22.12 ✅ YES

Overall: FAILED — Node.js version mismatch between host and chroot environments. smoke-chroot label not added.

Tested by Smoke Chroot
Add label ready-for-aw to run again

@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

📰 BREAKING: Report filed by Smoke Copilot

@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test: Copilot Engine — PASS ✅

Overall: PASS

cc @lpcox

📰 BREAKING: Report filed by Smoke Copilot
Add label ready-for-aw to run again

This branch was previously deployed

1 inactive deployment
aoai-model — 1c575439 Deployed Sep 16, 2026 by lpcox via conclusion #1679
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[awf] cloud-hypervisor: version probe fails with undefined exit code, killing engine run

3 participants