Deterministically extract failure signal from a job's log or a JUnit/Surefire artifact
extract_failure_signalParses raw CI logs or JUnit/Surefire XML to produce structured failure signals with test name, class, message, stack trace, and stable signature. Uses real parsers for accurate diagnosis.
Instructions
Turns a noisy raw CI log (or a downloaded JUnit/Surefire XML artifact) into structured FailureSignal entries -- test name, class, message, stack trace, and a stable signature -- using real parsers (JUnit/Surefire XML, ESLint stylish, tsc, Prettier, Maven console), not an LLM guessing from raw text. Prefer passing artifactName when fetch_pipeline_run listed one matching /junit|surefire/i for this run; otherwise this reads the job's own console log.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"repo": "<repo>",
"runId": "<runId>",
"jobId": "<jobId>"
},
"name": "extract_failure_signal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name, e.g. "playwright-typescript-framework" | |
| jobId | Yes | Job ID from fetch_pipeline_run's jobs list. | |
| owner | Yes | Repository owner/org, e.g. "krishanchawla" | |
| runId | Yes | ||
| artifactName | No | Artifact name from fetch_pipeline_run's artifacts list, if using structured XML instead of the job log. |