Repository navigation
Fix Cloud Hypervisor trusted artifact EACCES on hosted runners - #8835
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Several smoke and workflow probes still use the legacy path, breaking process-death coverage and residue detection.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
Open (2)
What changed in this PR
Moves trusted Cloud Hypervisor artifacts to an exec-capable staging root while preserving verification and cleanup compatibility.
Changes:
- Stages artifacts under
/var/lib/awf-cloud-hypervisor. - Adds execution-failure diagnostics.
- Updates cleanup validation, tests, smoke checks, and documentation.
| File | Description |
|---|---|
src/cloud-hypervisor/preflight.ts |
Moves staging and adds diagnostics. |
src/cloud-hypervisor/preflight.test.ts |
Tests staging and diagnostics. |
src/cloud-hypervisor/manager-types.ts |
Defines shared path constants. |
src/cloud-hypervisor/cleanup-identity.ts |
Accepts current and legacy cleanup paths. |
src/cloud-hypervisor/cleanup-handle.ts |
Uses shared snapshot-path validation. |
scripts/ci/cloud-hypervisor-live-smoke.sh |
Updates residue checks. |
docs/cloud-hypervisor-foundation.md |
Documents the new staging path. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| fi | ||
| if sudo pgrep -f '/run/awf-cloud-hypervisor/trusted-artifacts/run-[^/]*/[c]loud-hypervisor --api-socket' >/dev/null 2>&1; then | ||
| sudo pgrep -af '/run/awf-cloud-hypervisor/trusted-artifacts/run-[^/]*/[c]loud-hypervisor --api-socket' >&2 | ||
| if sudo pgrep -f '/var/lib/awf-cloud-hypervisor/trusted-artifacts/run-[^/]*/[c]loud-hypervisor --api-socket' >/dev/null 2>&1; then |
| expect(fs.mkdir).toHaveBeenCalledWith(CLOUD_HYPERVISOR_ARTIFACT_SNAPSHOT_ROOT, { | ||
| recursive: true, | ||
| mode: 0o711, | ||
| }); | ||
| expect(fs.mkdtemp).toHaveBeenCalledWith( | ||
| path.join(CLOUD_HYPERVISOR_ARTIFACT_SNAPSHOT_ROOT, 'run-'), | ||
| ); |
|
@copilot address the review feedback. also make sure that errors in which external binaries are not available are clear and not interpretted as permissions failures. |
Addressed in 60c87a4 and af04459. Remaining process probes now use the |
|
✅ Copilot review passed with no inline comments. @copilot Add the |
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit 70381b3 |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤
|
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 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.
|
|
❌ Smoke Copilot BYOK AOAI (Entra) reports failed. AOAI BYOK (Entra) mode investigation needed...
|
|
🚀 Security Guard has started processing this pull request |
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅
|
|
🔌 Smoke Services — All services reachable! ✅
|
|
✅ Build Test Suite completed successfully!
|
|
❌ 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): HTTP 200 Overall: PASS — network isolation egress enforcement working as expected. 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: 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 Mode)✅ MCP Connectivity - Fetched latest merged PRs (#8818, #8815) Overall Status: PASS Running in direct BYOK mode with real credentials held by api-proxy sidecar.
|
🔥 Smoke Test: Copilot Engine
Overall: PASS cc
|
Chroot Version Comparison Results
|
Smoke Test: Services Connectivity
Overall: PASS
|
|
Smoke test:
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.
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS Notes:
|
📡 OTel Tracing Smoke Test Results
Summary: All 5 scenarios pass — OTEL module init, span/token/parent-context config, and OTLP export via Squid to the configured Sentry endpoint all working as expected. No regressions detected.
|


Cloud Hypervisor startup could fail before the agent launched because AWF staged the trusted
cloud-hypervisorbinary under/run, which may be mounted or constrained in ways that reject execution despite correct file modes. This keeps artifact verification fail-closed while moving executable staging to an exec-capable root and improving EACCES diagnostics.Trusted artifact staging
/run/awf-cloud-hypervisorfor runtime state.Failure diagnostics
EACCESfailures actionable instead of opaque.Cleanup compatibility
/runsnapshot records so older pending cleanup records can be reaped safely after upgrade.Regression coverage