- How you use it
- You ask for it
- What it can do
- writes files · runs shell
- What's inside
The option
| Option | ASkill · v1.0.0OpenAI skill for fixing failing GitHub Actions checks |
|---|---|
| How you use it | You ask for it |
| What it can do | writes files · runs shell |
| What's inside |
What this thread does
The problem
A check on your pull request fails and you hand it to the agent. If the failure came from the network, the runner or an unrelated flaky test, the agent still looks for something to change and ends up editing code that was fine. You want it to ask first: is this mine?
What the source says
Step 6 of the fix-ci-failures skill in microsoft/vscode is called "Determine if Failures are Related to the PR". Before any fix it asks five questions:
1. Is the failing test in code you changed? A test in an unrelated area may be a flake. 2. Does the test name relate to the feature area you touched? 3. Does the failure output reference code paths your PR changes? 4. Do the same tests fail on recent main commits? Then it is pre-existing. 5. Is it an infrastructure failure (network timeouts, registry errors, machine problems)?
To compare with main it lists recent runs of the same workflow:
gh run list --branch main --workflow <workflow>.yml --limit 5 --json databaseId,conclusion,displayTitle
The skill also lists strings that usually mean infrastructure, not your change:
- Network and registry:
npm ERR! network,ETIMEDOUT,ECONNRESET,EAI_AGAIN, gitRPC failed; curl 56, TLS certificate errors,rate limit exceeded, a 502 when downloading Electron at test time,unable to get local issuer certificate,fetch-pack: unexpected disconnect. - Machine:
No space left on device,ENOMEMor JavaScript heap out of memory,The runner has received a shutdown signal,The operation was canceled, a display server that failed to start. - Flakes: timeouts on tests that normally pass, async race conditions.
What to do with an infrastructure failure, in the skill's words, paraphrased: do not change code; re-run only the failed jobs with gh run rerun <RUN_ID> --failed; if it persists, check whether main is also broken with gh run list --branch main --limit 10; if main is broken, wait, because your PR is not the cause.
How to use it
Add a short rule to your CLAUDE.md or AGENTS.md, or copy the skill:
- Before editing, say in one sentence whether the failure is related to the diff, citing the log line and the main-branch run you compared.
- If it is an infrastructure error, rerun failed jobs once and report; do not change code.
- If the same check fails twice with no link to the diff, stop and ask a human.
- Replace the VS Code examples (workflow file name, error strings from Electron downloads) with the ones your pipeline produces.
Limits
This is one project's guidance, written for its own pipeline. It does not cover how to fix a flaky test once identified (see the OpenWISP thread for that) or how to fetch the right log (see the log-fetching thread). Not run by us.
Primary source
Primary source: fix-ci-failures SKILL.md (microsoft/vscode, pinned commit). Checked: step 6 lists five checks (the thread calls them questions), the gh run list command (in the skill it is pinned to one VS Code workflow file; this thread shows a placeholder), the infrastructure strings, a separate test-flake category, and the rerun-then-check-main order. The file's last-changed date and MIT licence were not verified.
Started from a post by @Microsoft (microsoft/vscode), packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.