Index of every page on this site: llms.txt
All skills
microsoft avatar

/analyze-test-run

@147c081 official
Run it yourself

Analyze a GitHub Actions integration test run and produce a skill invocation report with failure root-cause issues. TRIGGERS: analyze test run, skill invocation rate, test run report, compare test runs, skill invocation summary, test failure analysis, run report, test results, action run report

Use this Skill: https://skilld.dev/gh/microsoft/github-copilot-for-azure/analyze-test-run

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesissue-template.md

≈1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Issue Template

Use this template for every GitHub issue created for a test failure.

Issue Title

Integration test failure: {skill} – {keywords} [{root-cause-category}]

Title Construction

Component Description Example
{skill} The skill under test azure-deploy
{keywords} 2-4 keywords extracted from the test name — app type + IaC type function app Terraform, function app Bicep, static web app
{root-cause-category} Root cause in brackets Skill not invoked, Timeout, Deployment failure

Keyword extraction rules:

  • Include the app/service type: function app, static web app, container app, URL shortener
  • Include IaC type if specified: Terraform, Bicep
  • Include trigger type if relevant: Service Bus trigger, Event Grid trigger
  • Omit filler words like "creates", "deploys", "with", "using", "infrastructure"
  • Keep to 2-4 meaningful keywords

Examples:

  • Integration test failure: azure-deploy – function app Terraform [Timeout]
  • Integration test failure: azure-deploy – event-driven function app [Skill not invoked]
  • Integration test failure: azure-deploy – function app Service Bus Terraform [Deployment failure]
  • Integration test failure: azure-prepare – static web app Bicep [Assertion mismatch]

Labels

bug, integration-test

Issue Body

## Prompt

```
{the prompt string from the test}
```

## Summary

**Run:** [{run-name} #{run-number}]({run-url})
**Test:** `{full-test-name}`
**Result:** {Fail / Timeout}
**Duration:** {Xm Ys}

## Root Cause Category

<!-- One of: Skill not invoked, Deployment failure, Timeout, Assertion mismatch, Quota exhaustion -->
**{category}**

## Diagnosis

### What was expected
{Describe what the test asserts — e.g., "expects deploy links in assistant output", "expects .bicep files in workspace"}

### What actually happened
{Describe the agent's actual behavior based on agent-metadata — e.g., "agent manually ran azd up instead of invoking azure-deploy skill", "deployment timed out after 30 minutes"}

### Why it failed
{1-2 sentences root cause — e.g., "The agent did not recognize the prompt as a skill-triggering intent and fell back to manual commands. No deploy links were produced because the deployment hit RBAC errors."}

### Suggested fix
{One of:}
- Update skill triggers/description to better match this prompt pattern
- Update test assertions or timeout
- Fix RBAC/quota pre-flight checks in skill
- Investigate model behavior (agent bypassing skill)

## {skill} Skill Invocation

<!-- For azure-deploy integration tests, show the deploy skill status with a note about the full chain -->
<!-- For all other integration tests, show only the primary skill under test -->

### azure-deploy tests

| Skill | Invoked |
|-------|---------|
| **azure-deploy** | **Yes** / No |

> In azure-deploy integration tests, the full skill chain is azure-prepare → azure-validate → azure-deploy. {Describe whether the full chain was invoked or which skills were bypassed.}

### All other integration tests

| Skill | Invoked |
|-------|---------|
| **{skill-under-test}** | **Yes** / No |

## Skill Report Context

<details>
<summary>Per-test section from SKILL-REPORT.md (click to expand)</summary>

{PASTE THE RELEVANT PER-TEST SECTION FROM THE SKILL-REPORT HERE}

</details>

## Environment

- **Runner OS:** ubuntu-latest
- **Node.js:** (from workflow)
- **Model:** claude-sonnet-5 (or as overridden)
- **Run URL:** {run-url}
- **Commit:** {commit-sha}

Rules

  • One issue per failed test. Do not batch multiple failures into one issue.
  • If multiple failures share the same root cause, note this in each issue body with a cross-reference.
  • Do NOT include Error Details (JUnit XML) or Agent Metadata sections — keep issues concise.
  • For azure-deploy integration tests, include the skill invocation section showing azure-deploy status and note the full chain (azure-prepare → azure-validate → azure-deploy).
  • For all other integration tests, include a skill invocation section showing only the primary skill under test.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill is a diagnostic tool designed for GitHub Actions test analysis. It follows standard software development practices for automated issue reporting and log analysis. All external interactions are scoped to the vendor's repository.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

  • Runlayer8mo

    1/3 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 147c081. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 8 months ago
metadata
{
  "author": "Microsoft",
  "version": "1.0.6"
}
  • github-actions
  • test-analysis
  • junit
  • azure
  • skill-invocation
  • integration-testing
  • issue-filing
  • artifacts

README badge

README badge for microsoft/github-copilot-for-azure/analyze-test-run

Extracts artifacts from a GitHub Actions test run, generates a skill invocation report with pass rates and metrics, and files GitHub issues for each failure with root-cause analysis. Tracks invocation of azure-prepare, azure-validate, and azure-deploy skills in deployment test chains, and supports side-by-side comparison of two runs.

Generated from the current SKILL.md.

What GitHub Actions runs does this skill analyze?
This skill analyzes integration test runs from the microsoft/GitHub-Copilot-for-Azure repository. You provide a run ID or URL, and it downloads artifacts including junit.xml, skill reports, and agent metadata to generate a summary and file issues for failures.
Does this skill work if artifacts cannot be downloaded?
Yes. If network restrictions prevent artifact ZIP downloads, the skill falls back to the get_job_logs MCP tool to extract test failure details from job logs and produces a best-effort analysis from whatever data is accessible.
What root-cause categories does this skill identify for test failures?
The skill categorizes failures as: skill not invoked, deployment failure, timeout, assertion mismatch, or quota exhaustion. It uses these categories in the GitHub issue titles and body to document why each test failed.
Does this skill create duplicate issues for the same failure?
No. Before creating an issue, the skill searches for existing open issues matching the failure scenario. If a match is found, it skips creation and notes the existing issue number in the report instead.
Can this skill compare two test runs?
Yes. If you provide a second run ID or URL as the comparison parameter, the skill produces a side-by-side delta table showing differences in test results and skill invocation rates between the two runs.

Generated from the current SKILL.md. These answers refresh after source changes.