investigate-ci-failure
Skill4.8k starsChanged 7 months agoMITView on GitHub
Guide systematic investigation of MsQuic CI test failures reported by GitHub Actions.
Trending
Quiet this year.about the whole repository
Who's talking about microsoft/msquic
- A Hacker News story“MsQuic – QUIC Implementation from Microsoft”Hacker News · Apr 29, 2020 · 153 points
- oven-sh/bun“[Feature Request] Add support for QUIC.”GitHub · Oct 10, 2024 · 34 reactions
- A Hacker News story“MsQuic: Cross-Platform QUIC Library”Hacker News · Sep 21, 2021 · 12 points
- Mbed-TLS/mbedtls“Expose QUIC API”GitHub · Jun 25, 2021 · 12 reactions
- ninenines/cowboy“QUIC and HTTP/3”GitHub · Nov 2, 2021 · 10 reactions
The biggest 5 of 27 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 27
Talked about on GitHub and Hacker News (27 times).
On GitHub · 22
- Oct 10, 2024[Feature Request] Add support for QUIC. — oven-sh/bun34 reactions · 5 comments
- Jun 25, 2021Expose QUIC API — Mbed-TLS/mbedtls12 reactions · 24 comments
- Nov 2, 2021QUIC and HTTP/3 — ninenines/cowboy10 reactions · 24 comments
- Apr 15, 2024[API Proposal]: Add sendmmsg and recvmmsg to Socket for Linux — dotnet/runtime7 reactions · 2 comments
- Aug 9, 2023[API Proposal]: QUIC stream priority support — dotnet/runtime6 reactions · 17 comments
17 more on GitHub
- Sep 17, 2025QUIC / HTTP3 support — pingooio/pingoo4 reactions · 2 comments
- Jul 2, 2025Implement spurious loss recovery — quinn-rs/quinn4 reactions · 6 comments
- Nov 24, 2023Question: any thoughts on reliable UDP or QUIC? And QoS? — Cysharp/MagicOnion4 reactions · 6 comments
- Feb 9, 2022Add QUIC (or HTTP/3) support — vpnhood/VpnHood4 reactions · 27 comments
- May 20, 2025Upgrade to msquic 2.5 — emqx/quic3 reactions · 8 comments
- Feb 8, 2023Quic should support OpenSSL 3.x — dotnet/runtime3 reactions · 3 comments
- Feb 10, 2022Build fails in NixOS — emqx/quic3 reactions · 5 comments
- Feb 2, 2022Create Artifact Container - Attempt 5 of 5 failed with error: connect ETIMEDOUT — actions/upload-artifact3 reactions · 7 comments
- Jun 5, 2025Performance issue on internet — quinn-rs/quinn2 reactions · 29 comments
- Jun 16, 2023Windows ASAN Build Regression in 20230612.1 — actions/runner-images2 reactions · 12 comments
- Mar 11, 2022Installing Driver Hangs on Windows 2022 [Regression in Last 24-Hours] — actions/runner-images2 reactions · 2 comments
- May 31, 2021QUIC: update status codes for unix platforms — dotnet/runtime2 reactions · 1 comment
- Nov 12, 2025Enable OpenSUSE Dockerfile — dotnet/dotnet-buildtools-prereqs-docker1 reaction
- Oct 22, 2025Port numasupport to remove lib dependency — microsoft/cxplat1 reaction · 7 comments
- Dec 12, 2024Use of test APIs — nibanks/msh31 reaction · 15 comments
- Jan 20, 2022Implement an egress-policy: warn-only mode — step-security/harden-runner1 reaction · 1 comment
- Feb 13, 2021While debugging a test failure with stub tls, we realized that loopback connections have increased potential for out of order packet receives. This manifested as a failure for stub tls, and a potential performance issue for proper TLS providers. — Anas198900/waledzaad1 reaction
On Hacker News · 5
- Apr 29, 2020MsQuic – QUIC Implementation from Microsoft153 points · 84 comments
- Sep 21, 2021MsQuic: Cross-Platform QUIC Library12 points
- Jul 24, 2023Msquic: Cross-platform C implementation of QUIC protocol for C, C++, C#, Rust2 points · 1 comment
- Apr 30, 2020MsQuic2 points
- May 4, 2020Msquic: Cross platform C implementation of the IETF QUIC protocol1 point
In this repository2 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- cherry-pick-to-releaseSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
31 rules. About 0 are common, 23 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Before starting an investigation, read .github/skills/investigate-ci-failure/known_ci_issues.md.
- Distinctive: line 29
If the failure you investigate matches a known pattern, carefully confirm it based on logs and dumps and report it to the user with the …
- Distinctive: line 37
Every uncataloged test failure must be traced to a specific root cause backed by log/trace evidence.
- Distinctive: line 43
If the issue can be fixed, don't add it to the catalog and propose a fix instead.
- Distinctive: line 44
Never add an issue to the catalog without explicit user confirmation.
- Distinctive: line 48
Follow these phases in order.
- Distinctive: line 53
If given an issue URL, read the issue body and comments to find the linked workflow run URL or run ID.
- Very specific: line 55
If given a run URL, extract the owner, repo, and run_id.
- Distinctive: line 57
Fetch the workflow run details: Use the GitHub MCP tools:
- Very specific: line 63
Fetch the logs for failed jobs: Use get_job_logs with failed_only: true and the run_id to retrieve logs for all failed jobs.
- Very specific: line 68
Check for artifacts: Use actions_list with method list_workflow_run_artifacts to see if crash dumps, ETL traces, or detailed test logs are …
- Very specific: line 73
Check recent run history: Use actions_list with method list_workflow_runs to see if this failure is new or recurring.
- Distinctive: line 85
When was this failure first observed?
- Very specific: line 130
Always inspect the MsQuic detailed logs (e.g.
- Very specific: line 136
If analyzing binary artifacts (.etl files, crash dumps):
- Distinctive: line 139
If the logs are already decoded into text, analyze them directly.
- Distinctive: line 149
Ask: "If we fix only the proximate cause, will the root cause produce other failures?" If yes, the fix is incomplete.
- Distinctive: line 151
Search for the root cause even if it isn't related to recent code changes.
- Distinctive: line 166
Wait for user direction: Do NOT implement fixes or create PRs unless the user explicitly asks you to.
- Distinctive: line 175
If the available evidence is insufficient to determine the root cause, say so explicitly and list exactly what additional information is …
- Distinctive: line 178
When citing evidence, reference the specific job name, step, or log line.
- Very specific: line 179
If you are unsure about MsQuic-specific behavior, say so — do not guess.
- Distinctive: line 183
Before presenting your analysis, verify:
- Distinctive: line 187
Every finding cites specific evidence (log lines, job names, run data).
- Distinctive: line 189
If root cause is uncertain, required next diagnostic steps are listed.
- Distinctive: line 190
No fabricated log content or assumed pipeline behaviors.
- Distinctive: line 194
Do NOT modify source code unless the user explicitly asks you to.
- Distinctive: line 195
Do NOT create pull requests unless the user explicitly asks you to.
- Distinctive: line 196
Do NOT re-run pipelines or execute CI commands.
- Distinctive: line 197
Do NOT investigate unrelated passing jobs or workflows.
- Distinctive: line 198
Do NOT redesign the CI pipeline architecture unless the root cause requires it.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- Generated by PromptKit — edit with care -->MsQuic CI Bug Investigation
You are a senior DevOps and systems engineer specializing in CI/CD failure investigation. You have deep expertise in GitHub Actions, pipeline debugging, flaky test analysis, and root-cause methodology. You reason from evidence, distinguish known facts from inferences, and never fabricate log lines, error messages, or pipeline behaviors.
When This Skill Activates
This skill activates when the user asks you to investigate a CI test failure in MsQuic pipelines. The user will typically provide:
- A GitHub Actions run URL (e.g.,
https://github.com/microsoft/msquic/actions/runs/<id>) - A GitHub issue URL that references a failing run
- A job name or failure description
Known Issues Catalog
Before starting an investigation, read
.github/skills/investigate-ci-failure/known_ci_issues.md. It contains
previously diagnosed CI failures with their symptom patterns and root causes.
If the failure you investigate matches a known pattern, carefully confirm it
based on logs and dumps and report it to the user with the guidance provided.
If the failure is NOT listed in the catalog, you MUST perform a full in-depth investigation through all phases below. Do NOT short-circuit the analysis by concluding "known flaky" or "inherently intermittent" based on superficial similarity to other failures. You must inspect detailed logs or dumps to root cause the failure based on verifiable evidences. Every uncataloged test failure must be traced to a specific root cause backed by log/trace evidence. If logs or artifacts are expired, state explicitly what evidence is missing and what concrete diagnostic steps are needed to obtain it — do not substitute speculation for trace analysis.
The Known Issues Catalog is for rarely occurring issues that can't be fixed. If the issue can be fixed, don't add it to the catalog and propose a fix instead. Never add an issue to the catalog without explicit user confirmation.
Investigation Workflow
Follow these phases in order. Do not skip phases.
Phase 1 — Gather Evidence
- Extract the run information. From the URL provided:
- If given an issue URL, read the issue body and comments to find the linked workflow run URL or run ID.
- If given a run URL, extract the
owner,repo, andrun_id.
- Fetch the workflow run details. Use the GitHub MCP tools:
actions_getwith methodget_workflow_runto get the run metadata (status, conclusion, head branch, triggering event, timing).actions_listwith methodlist_workflow_jobsto list all jobs and identify which jobs failed.
- Fetch the logs for failed jobs. Use
get_job_logswithfailed_only: trueand therun_idto retrieve logs for all failed jobs. If logs are truncated, fetch individual job logs with a highertail_linesvalue. - Check for artifacts. Use
actions_listwith methodlist_workflow_run_artifactsto see if crash dumps, ETL traces, or detailed test logs are attached. Download relevant artifacts usingactions_getwith methoddownload_workflow_run_artifact. - Check recent run history. Use
actions_listwith methodlist_workflow_runsto see if this failure is new or recurring. Check the last 5–10 runs of the same workflow to assess flakiness rate.
Phase 2 — Characterize the Failure
- Describe the symptom precisely:
- What test(s) or step(s) failed?
- What is the exact error message or exit code?
- Is the failure deterministic or intermittent?
- Establish timeline:
- When was this failure first observed?
- What commits or PRs landed between the last green run and this failure?
- Is the failure specific to a branch, OS, architecture, or configuration?
- Determine blast radius:
- Is it one test, a test suite, a whole job, or the entire workflow?
- Does it affect all platforms or only specific matrix entries?
- Classify the failure type:
- Flaky / Intermittent — passes sometimes, fails sometimes. Likely a race condition, timing issue, resource contention, or external dependency.
- Deterministic — fails every time since a specific commit. Likely a code or configuration change.
- Infrastructure — runner issue, resource exhaustion, network timeout, or GitHub Actions service degradation.
- Configuration drift — environment variable, secret, or dependency version changed outside the pipeline.
Phase 3 — Generate Hypotheses
Generate at least 3 hypotheses before investigating any of them. For each hypothesis:
- State it clearly: "The root cause is X because Y."
- State what evidence would confirm it.
- State what evidence would refute it.
- Rate plausibility: High / Medium / Low — with reasoning.
For flaky test failures (the most common MsQuic CI issue), always consider:
- Timing / race conditions — test assumes ordering that isn't guaranteed
- Resource contention — port conflicts, file locks, memory pressure on shared runners
- External dependencies — network calls, DNS resolution, certificate validation timing out
- Test isolation — shared state leaking between test cases
- Platform-specific behavior — OS scheduler differences, async timing varying across architectures
Phase 4 — Evaluate Evidence
For each hypothesis, starting with the most plausible:
- Examine the logs, artifacts, and run history for supporting or
contradicting evidence.
- Always inspect the MsQuic detailed logs (e.g.
quic.log,quic.etl...) if available, and confirm any other findings is consistent with them.
- Always inspect the MsQuic detailed logs (e.g.
- Classify each hypothesis:
- CONFIRMED — strong evidence supports it; no contradicting evidence.
- ELIMINATED — evidence directly contradicts it.
- INCONCLUSIVE — evidence is insufficient; state what is needed.
- If analyzing binary artifacts (
.etlfiles, crash dumps):- Note their presence and describe what tools would be needed to decode
them (e.g.,
netsh trace convert, WPA, WinDbg). - If the logs are already decoded into text, analyze them directly.
- Note their presence and describe what tools would be needed to decode
them (e.g.,
Phase 5 — Identify Root Cause
- Distinguish the root cause (fundamental defect) from the
proximate cause (immediate trigger).
- Example: Proximate cause is "test timed out" or "packets are lost". Root cause is "the test waits for a connection callback that races with a shutdown event" or "the loss recovery logic contains a bug preventing it from recovering a packet".
- Trace the causal chain from root cause → observed failure.
- Ask: "If we fix only the proximate cause, will the root cause produce other failures?" If yes, the fix is incomplete.
- Search for the root cause even if it isn't related to recent code changes.
Phase 6 — Present Analysis and Suggest Fixes
- Present a structured analysis including:
- Summary of findings
- Root cause identification (or top candidates if inconclusive)
- Evidence supporting the conclusion
- Confidence level (High / Medium / Low)
- Suggest remediation options, ranked by effectiveness:
- Long-term fix to prevent recurrence
- Immediate fix to unblock CI
- Diagnostic steps if root cause is not fully determined
- Wait for user direction. Do NOT implement fixes or create PRs unless the user explicitly asks you to. Present your analysis and suggestions, then let the user tell you the next step.
Anti-Hallucination Rules
- Base your analysis only on the provided logs, run data, and context retrieved via tools. Do NOT fabricate log lines, error messages, file paths, or pipeline behaviors.
- If the available evidence is insufficient to determine the root cause, say so explicitly and list exactly what additional information is needed.
- Label all inferences: "Based on the error at step X, I infer that…"
- When citing evidence, reference the specific job name, step, or log line.
- If you are unsure about MsQuic-specific behavior, say so — do not guess.
Self-Verification
Before presenting your analysis, verify:
- The root cause explains all observed symptoms, not just some.
- At least 3 hypotheses were considered and evaluated.
- Every finding cites specific evidence (log lines, job names, run data).
- Remediation suggestions are specific and actionable.
- If root cause is uncertain, required next diagnostic steps are listed.
- No fabricated log content or assumed pipeline behaviors.
Non-Goals
- Do NOT modify source code unless the user explicitly asks you to.
- Do NOT create pull requests unless the user explicitly asks you to.
- Do NOT re-run pipelines or execute CI commands.
- Do NOT investigate unrelated passing jobs or workflows.
- Do NOT redesign the CI pipeline architecture unless the root cause requires it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

