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

/file-test-bug

@147c081 official
Run it yourself

File a GitHub issue for local integration test failures. TRIGGERS: file test bug, report test failure, create bug for test, integration test failed, test failure issue, junit failure

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈49 tokens for metadata: the name and description. ≈555 when used: this file.

Description uses 2.5% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈198 characters, or 2.5%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

File Test Bug

Creates a GitHub issue in microsoft/github-copilot-for-azure for integration test failures.

Input

  • Skill name (required): e.g., azure-ai, appinsights-instrumentation
  • Test run (optional): Timestamp of test run. Defaults to most recent with logs for the skill.

Steps

  1. Ask user for skill name if not provided
  2. Parse tests/reports/junit.xml for failures matching the skill
  3. Find test run directory (specified or most recent with matching logs)
  4. Read agent-metadata.md from tests/reports/test-run-<timestamp>/<skillname>-<testname>/
  5. For each failure, read the actual line of code from the test file using the location (file:line) from junit.xml
  6. REQUIRED - Write diagnosis BEFORE creating issue:
    • Analyze the agent-metadata.md to understand what the agent did
    • Compare agent behavior to what the test expected (from the assertion)
    • Identify the root cause (skill issue, test issue, or model behavior)
    • Write 2-3 sentences per failed test explaining WHY it failed
    • Suggest potential fixes (update skill, update test, or update fixtures)
  7. Create issue via github-mcp-server-create_issue:
owner: microsoft
repo: github-copilot-for-azure
title: Integration test failure in <skill-name>
labels: ["bug", "integration-test"]
body: |
  ## Failed Tests
  - <test-name>: <error message>
  
  ## Diagnosis
  
  ### Root Cause
  <1-2 sentences explaining WHY the test failed based on agent-metadata.md analysis>
  
  ### Analysis per Test
  - **<test-name>**: <what agent did vs what test expected>
  
  ### Suggested Fix
  <one of: update skill, update test assertions, provide test fixtures>

  ## Details
  ### <test-name>
  **Error:** <failure from junit.xml>
  **Location:** <file:line>
  ```typescript
  <actual line of code from the test file at the specified line number>
<details> <summary>agent-metadata.md</summary>

<full contents of agent-metadata.md file, verbatim>

</details> ```

Important

Include the complete, unmodified contents of each agent-metadata.md file in the issue body. Do NOT summarize or truncate the logs. Wrap each log in a <details> block with the test name as the summary.

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.

No alerts2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill includes some security considerations such as the automated processing of local test reports and the transmission of logs to a GitHub repository. While these warrant review, they are used within the skill's intended functionality for reporting test failures. See detailed analysis for context.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer8mo

    1 file scanned · No issues

  • 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 4 months ago
metadata
{
  "author": "Microsoft",
  "version": "1.0.0"
}
  • Testing
  • github
  • integration-test
  • bug-reporting
  • junit
  • azure
  • automation

README badge

README badge for microsoft/github-copilot-for-azure/file-test-bug

Creates a GitHub issue for integration test failures in the Copilot for Azure repository by parsing junit.xml reports, analyzing agent-metadata.md logs, and diagnosing root causes before filing. Targets the microsoft/github-copilot-for-azure skill testing workflow and requires diagnosis of why tests failed before issue creation.

Generated from the current SKILL.md.

What triggers this skill?
The skill activates when you use phrases like 'file test bug', 'report test failure', 'create bug for test', 'integration test failed', 'test failure issue', or 'junit failure'.
What information do I need to provide?
You must provide the skill name (e.g., 'azure-rbac', 'appinsights-instrumentation'). The test run timestamp is optional; the skill defaults to the most recent test run with logs for that skill.
Where does the skill look for test failures?
The skill parses junit.xml from tests/reports/ to find failures matching the skill name, then reads agent-metadata.md from the corresponding test-run directory.
Does the skill automatically create the issue?
No. The skill requires you to write a diagnosis first, analyzing agent-metadata.md to explain why the test failed (skill issue, test issue, or model behavior), then creates the issue only after you confirm the diagnosis.
Will the issue include full logs?
Yes. The skill includes the complete, unmodified contents of each agent-metadata.md file in a details block within the issue body, never summarized or truncated.

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