Repository navigation
Retry transient Cloud Hypervisor version-probe failures in preflight - #8801
Conversation
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The retry behavior is bounded, fail-closed, and adequately covered by focused tests.
Review effort: Balanced
Findings: None
What changed in this PR
Adds bounded retries for transient Cloud Hypervisor preflight version-probe failures while preserving fail-fast behavior for deterministic execution errors.
Changes:
- Retries both binary version probes up to three times.
- Preserves structured execution error codes for classification.
- Adds retry, exhaustion, and permanent-error tests.
| File | Description |
|---|---|
src/cloud-hypervisor/preflight.ts |
Implements classified version-probe retries and warnings. |
src/cloud-hypervisor/preflight.test.ts |
Covers successful retries, exhaustion, and fail-fast errors. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
✅ Copilot review passed with no inline comments. @copilot Add the |
|
| Metric | Base | PR | Delta |
|---|---|---|---|
| Lines | 93.29% | 93.30% | ➡️ +0.01% |
| Statements | 91.97% | 91.98% | 📈 +0.01% |
| Functions | 92.16% | 92.17% | 📈 +0.01% |
| Branches | 85.80% | 85.77% | 📉 -0.03% |
📁 Per-file Coverage Changes (3 files)
| File | Lines (Before → After) | Statements (Before → After) |
|---|---|---|
src/nvx/one-shot-adapter.ts |
80.4% → 79.8% (-0.58%) | 77.8% → 77.3% (-0.54%) |
src/cloud-hypervisor/preflight.ts |
94.3% → 94.8% (+0.50%) | 93.6% → 94.2% (+0.60%) |
src/log-directory-setup.ts |
96.2% → 100.0% (+3.78%) | 96.3% → 100.0% (+3.71%) |
Coverage comparison generated by scripts/ci/compare-coverage.ts
|
📰 DEVELOPING STORY: Smoke Docker Sbx reports failed. Our correspondents are investigating the incident...
|
|
🚀 Security Guard has started processing this pull request |
|
❌ Smoke Copilot BYOK AOAI (Entra) reports failed. AOAI BYOK (Entra) mode investigation needed...
|
|
✅ Build Test Suite completed successfully!
|
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅
|
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓
|
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "msfeed25.pkgs.visualstudio.com"See Network Configuration for more information.
|
|
❌ Smoke Copilot BYOK AOAI (api-key) reports failed. AOAI BYOK (api-key) mode investigation needed...
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤
|
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.
|
|
🔌 Smoke Services — All services reachable! ✅
|
|
EGRESS_RESULT allow=pass deny=pass ✅ Allowed domain (github.com) reachable: Overall: PASS cc Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "example.com"See Network Configuration for more information.
|
Smoke Test: Copilot Engine
Recent PRs: #8800 Deduplicate nested-KVM connectivity probe test setup · #8785 feat: add NVX Phase 3a confinement foundations Overall: PASS cc
|
Smoke Test: Claude Engine Validation
Overall result: PASS Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "api.anthropic.com"See Network Configuration for more information.
|
Smoke Test: Copilot BYOK (Direct) ✅ PASS
Mode: Direct BYOK (
|
📡 Smoke Test: API Proxy OTel Tracing — Results
All 5 scenarios passed. Live spans were exported end-to-end through the OTLP pipeline with correct GenAI/GitHub attributes and parent-context propagation. No regressions detected.
|
Chroot Version Comparison Results
Overall: FAILED — Node.js version mismatch between host and chroot environments. The
|
Smoke Test: Services Connectivity
Overall: PASS
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — PASS Notes:
|
Smoke Test
Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "msfeed25.pkgs.visualstudio.com"See Network Configuration for more information.
|
…follow-up (#8854) * Initial plan * docs: update D14 runner-doctor catalog with #8801 retry fix * docs: align D14 citations across mirrored catalog files --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]>
The "sbx, gVisor & Cloud Hypervisor Documentation Updater" workflow failed with an opaque "engine terminated before producing output" error. The actual failure occurred earlier, in AWF's Cloud Hypervisor preflight: the
--versionprobe on the stagedcloud-hypervisorbinary failed withexited with code undefined, even though the binary's SHA-256 digest had already been verified against the trusted manifest. Both the initial attempt and the automatic AWF startup retry hit the identical failure, aborting the run before the copilot engine ever started.Root cause
Since the artifact's digest is verified before the
--versionprobe runs, a probe failure at that point reflects a transient exec/host hiccup (not a corrupt or wrong binary) — butrunCloudHypervisorPreflighthad no retry around it, so any single flaky exec failed the whole run.Changes
src/cloud-hypervisor/preflight.tsnow wraps thecloud-hypervisorandvirtiofsd--versionprobes inrunVersionWithRetry(3 attempts, 250ms apart), since the content is already trusted by this point.runVersionnow attaches a structurederror.codefor reliable classification (message-text parsing remains as a fallback for customrunVersionoverrides).logger.warnwith the attempt count and underlying error.Tests
Added coverage in
preflight.test.tsfor: retry-then-succeed, retry-exhausted-then-fail, fail-fast on message-coded permanent errors, and fail-fast on structurederror.codepermanent errors.