Repository navigation
fix: handle Cloud Hypervisor version probe failures - #8622
Conversation
There was a problem hiding this comment.
🟡 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.
|
@copilot address the review feedback |
Addressed in |
|
✅ Copilot review passed with no inline comments. @copilot Add the |
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit b64dac7 |
|
| 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
|
Chroot tests failed Smoke Chroot failed - See logs for details.
|
|
🚀 Security Guard has started processing this pull request |
|
❌ Smoke Gemini reports failed. Facets need polishing...
|
|
❌ Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed...
|
|
📰 DEVELOPING STORY: Smoke Docker Sbx reports failed. Our correspondents are investigating the incident...
|
|
❌ Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed...
|
|
EGRESS_RESULT allow=pass deny=pass ✅ Allowed domain (api.github.com) reachable — HTTP 200 Overall: PASS
|
|
Smoke Test: Services Connectivity — PASS
Overall: PASS
|
|
Fix Refactoring Scanner safe-output fallback Warning Firewall blocked 7 domainsThe following domains were blocked by the firewall during workflow execution:
To allow these domains, add them to the 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.
|
Chroot Version Comparison Results
Overall: FAILED — Node.js version mismatch between host and chroot environments.
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤
|
Smoke Test: Copilot Engine — PASS ✅
Overall: PASS cc
|
Cloud Hypervisor preflight could surface
cloud-hypervisor --versionfailures asexit 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.exitCodeandsignalCode.Artifact validation
Unsupported-host fallback
CloudHypervisorUnsupportedHostError.Regression coverage