.agents/skills/rstack-eco-ci-debug/references/deep-pr-debug.md
Use this tool after a candidate source PR is identified and the user needs the technical reason for the eco-ci failure.
The goal is to connect three things:
Collect these before starting:
Fetch and inspect the PR in the local Rspack checkout:
git -C <rspack-path> fetch origin main --tags
gh pr view <pr-number> --repo web-infra-dev/rspack --json number,title,author,mergedAt,url,headRefOid,mergeCommit
git -C <rspack-path> show --stat <sha>
git -C <rspack-path> show --find-renames --find-copies <sha>
Focus on changed code paths that can affect the failure signature. Ignore unrelated cleanup unless it changes behavior near the failing path.
not caused or inconclusive.Use short log snippets only:
<command or assertion>
<2-5 key lines of failure>
This tool is for analysis: connect the PR diff to the failure signature through code and logs. If the mechanism still cannot be explained from code review and log inspection alone, do not run canary tests here. Instead, return to Phase 1 and use the canary date bisect tool to gather before/after evidence with a clear test plan.
Candidate PR: <pr-number> <title>
Suite: <suite>
Verdict: caused | likely caused | not caused | inconclusive
Failure signature: <short signature>
Flaky/config checks: <not pre-existing | pre-existing | feature enabled | feature disabled | not applicable>
Mechanism: <3-5 sentence explanation of how the PR change caused the observed behavior>
Evidence:
- <log URL or run id>
- <commit or file references>
- <reproduction result if available>
Confidence: high | medium | low
Next action: <fix in Rspack | fix downstream expectation | gather more evidence>