microsoft/openvmm/openvmm-ci-investigation
Claude Code and agent skill by microsoft/openvmm
- vendor
Checking that the SKILL.md file is still in the repository.
Investigate CI failures on OpenVMM PRs. Load when a PR has failing CI checks, you need to download and analyze test artifacts, or you need to diagnose build, fmt, clippy, or VMM test failures.
Install
npx vskill@latest install microsoft/openvmm/openvmm-ci-investigationSKILL.md
Investigating CI Failures
When a PR has failing CI checks, prefer the investigation script. If it is unavailable or incompatible with the execution environment, use the read-only manual fallback below.
The script reads from GitHub and downloads artifacts locally. It does not modify remote resources. Downloads use the system temporary directory; check that this destination is suitable for the execution environment.
Step 1: Run the Script
Prefer explicit PR or run identifiers for reproducible investigation. Omitting the identifier requires the script to resolve the current branch's PR.
The script automatically:
- Resolves the PR to every failed CI run for its head commit. A commit
can have multiple workflows (e.g. "OpenVMM PR" and "OpenVMM Docs PR"), and each failing one is investigated in turn — so don't assume a single run covers everything. Only the newest run of each workflow is used, so superseded runs are ignored; a NOTE: <workflow> is still in_progress line means results are incomplete and more failures may appear later.
- Identifies failed jobs
- Downloads
*-unit-tests-junit-xmlartifacts and parses JUnit XML for
unit test failures
- Downloads
*-vmm-tests-logsartifacts if they exist - Finds tests with
petri.failedmarkers and extracts ERROR/WARN lines - If no test or JUnit artifacts exist (build/fmt/clippy failure), shows the
tail of the failed job's log
Step 2: Analyze the Script Output
Read the script's output to identify:
- Which tests failed (unit tests and/or VMM tests)
- Error messages and root causes
- Whether it's a build/fmt/clippy failure vs. a test failure
When more than one run failed, the output is split by # RUN n of m banners. Check all of them — a docs failure and a build failure are reported in separate runs.
Then use the information to diagnose the issue and suggest fixes.
Step 3: Diagnose from Logs and Code
Always try to diagnose the failure from CI logs, test code, and error messages first. Most failures can be understood without local reproduction. Read the relevant test source, trace the error through the code, and form a hypothesis before considering local repro.
Step 4: Reproduce Locally (Only If Needed)
If you cannot diagnose the failure from logs alone, ask the user whether they want to attempt local reproduction before proceeding. Do not automatically start building or running tests on the user's machine.
If the user agrees, check whether the failing platform matches the host architecture — you can only reproduce tests locally on the same arch. If it doesn't match, explain this to the user and continue diagnosing from CI logs and test code.
For approved local reproduction, select the workflow for the failure:
| Failure | Workflow | |
|---|---|---|
| Unit test | cargo nextest run --profile agent -p <package> with a focused filter | |
| VMM test | Load the vmm-tests skill and use cargo xflowey vmm-tests-run | |
| Rustdoc | cargo doc --no-deps -p <package> | |
| Guide | The Guide build workflow in flowey/flowey_lib_hvlite/src/build_guide.rs, including plugin setup, mdbook test, and mdbook build | |
| Build, clippy, or formatting | The failed job's command, scoped to the affected package or rule where possible |
Do not use cargo nextest run -p vmm_tests directly; it won't have the required artifacts.
Reference: Manual Commands
Use these if the script is unavailable, fails, is incompatible with theexecution environment, or you need to inspect a specific artifact.
Follow these steps:
1. Find the failing run
2. Identify the failing job
3. Download test artifacts
Unit test results are stored in JUnit XML artifacts named {platform}-unit-tests-junit-xml. Known platforms include:
x64-linuxaarch64-linuxaarch64-linux-musl
VMM test results are stored in artifacts named {platform}-vmm-tests-logs. The known platforms are:
x64-windows-intelx64-windows-intel-tdxx64-windows-amdx64-windows-amd-snpx64-linuxaarch64-windows
4. Find failed tests
Each test gets its own directory inside the artifact. Look for petri.failed marker files (passing tests have petri.passed instead):
The petri.failed file contains the error petri recorded for the test. The test's real name is in petri.test, which petri writes before the test body runs — so a directory with petri.test but no result marker is a test that was killed or crashed before it could report.
5. Extract errors from petri.jsonl
The petri.jsonl file in each test directory is the primary structured log. Each line is a JSON object with fields: timestamp, source, severity, message. Filter for ERROR and WARN severity for a quick diagnosis:
Artifact Contents
Unit test JUnit XML
Artifacts named {platform}-unit-tests-junit-xml contain JUnit XML files with <testcase> elements. Failed tests have <failure> or <error> children with message attributes describing the failure. These are the primary artifacts for diagnosing unit test / cargo-nextest failures.
VMM test logs (petri)
Each test directory contains:
petri.jsonl— Structured JSON Lines log (primary file for investigation)petri.log— Plain text version of the test logpetri.test— The test's name, written before the test body runspetri.passedorpetri.failed— Pass/fail marker; a failure marker holds the erroropenhcl.log— OpenHCL serial console output, if the test exercised OpenHCLhyperv.log— Hyper-V event log, if the test exercises the Hyper-V backendopenvmm.log— OpenVMM serial console output, if the test exercises the OpenVMM backendguest.log,uefi.log— Guest OS serial output- Sometimes:
screenshot_*.png— periodic screenshots of the guest - Sometimes:
dumpfile.dmp
Viewing Results in Browser
Test results are uploaded to Azure Blob Storage and viewable at: https://openvmm.dev/test-results/#/runs/<RUN_ID>_<RUN_ATTEMPT>
Logs are uploaded per re-run attempt, so the run key includes the attempt number (1 for the first attempt). investigate_ci.py prints the correct URL in its summary.
Common Failure Patterns
- Unit test failure: A
unit testsjob failed. The script downloads
JUnit XML artifacts and shows the failing test names and messages. Common causes: new test code that relies on OS capabilities not available in CI (e.g. TAP devices, elevated permissions).
- Formatting / house-rules: The
quick check [fmt, clippy x64-linux]job
failed. No test artifacts will exist. Check the job log for the specific rule that failed. For approved reproduction, run cargo xtask fmt --fix locally.
- Guide failure: The
build mdbook guidejob in "OpenVMM Docs PR" failed.
Check for broken Guide markdown, links, or code examples and [ERROR] (mdbook::...) diagnostics. Use the Guide workflow above for approved reproduction, not cargo doc. No test artifacts will exist.
- Rustdoc failure: The
build and check docsjob in "OpenVMM Docs PR" failed.
Rustdoc warnings are denied in CI. Use package-scoped cargo doc for approved reproduction. No test artifacts will exist.
- TripleFault: VM hit a fatal error during boot. Check
petri.jsonlfor
Hyper-V Worker/Chipset errors. Often infrastructure-related, not caused by the PR's code changes.
- Timeout: Test exceeded its time limit. Check if the VM booted at all.
- Guest assertion failure: Guest-side test failed. Check
guest.log. - Build failure: No test artifacts will exist. Check the job log directly
with gh run view <RUN_ID> --job <JOB_ID> --log.
Important API Note
The gh run view --json artifacts flag does not exist. To list artifacts for a run, use the GitHub API directly:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 2 Oct 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/openvmm-ci-investigation/SKILL.md
Popularity
- Repository stars
- 1,919
- Repository forks
- 247
- 7-day trend score
- 38
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/openvmm/openvmm-ci-investigation)