Repository navigation
fix(ci): sanitize Cloud Hypervisor enclave host startup diagnostics - #9482
Merged
Merged
Conversation
Emit bounded pre-broker diagnostics and remove private startup logs during cleanup. Co-authored-by: Copilot App <[email protected]>
Contributor
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit f18d6ee |
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Broker readiness can be accepted before pending child failure events are processed, suppressing the required diagnostic.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Adds sanitized, bounded diagnostics for Cloud Hypervisor enclave startup failures.
Changes:
- Classifies and emits fixed-schema startup diagnostics.
- Bounds log inspection and cleanup.
- Adds regression tests and documentation.
| File | Description |
|---|---|
scripts/ci/cloud-hypervisor-enclave-live-smoke.js |
Implements diagnostics and cleanup safeguards. |
scripts/ci/cloud-hypervisor-enclave-live-smoke.test.ts |
Tests redaction, bounds, and failure handling. |
docs/INTEGRATION-TESTS.md |
Documents diagnostic behavior and limitations. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| timeout: Math.max(1, Math.min(10_000, deadline - Date.now())), | ||
| killSignal: 'SIGKILL', | ||
| }); | ||
| if (result.status === 0 && ['healthy', 'running'].includes(result.stdout.trim())) return; |
Contributor
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Improve diagnosis of early AWF startup failures in the release-attested Cloud Hypervisor enclave live acceptance harness. This does not fix the unidentified AWF startup cause observed in run 37374441955.
AWF_HOST_STARTUP_DIAGNOSTICline (at most 256 bytes) before cleanup for pre-broker child exits, signals, spawn failures, and readiness timeouts, distinguishing initial and recovery starts.unknown. Spawn failures never inspect stale logs. Export only fixed categories/reasons and bounded child metadata, never messages, paths, timestamps, stdout/stderr, credentials, guest/repository content, or subprocess errors.O_NOFOLLOWregular-file scanning with 16 KiB/64 KiB bounds and stability checks. Bound readiness inspection and child cleanup; keep failure exit semantics and preserve the primary error while reporting cleanup failures separately.No changes to agent result schemas, attestation, network guards, release publication, or workflow dispatch. The immutable
v0.28.35release cannot receive this patch; release-pinned live acceptance requires a future authorized release containing it.Validation
npm run build,npm run type-check,npm run lint -- --quiet, harnessnode --check, changed-document markdownlint, andgit diff --checkpassed. Commit hooks also passed lint/build (existing lint warnings remain).