Pytest.fix ci tests

From gpsaggese/helpers · View interactive version

Pytest.fix ci tests is an AI agent skill from the GitHub repository gpsaggese/helpers. Analyze and fix failure of tests in GitHub CI

How to use this skill

Skill file

Goal

Workflow

Parse Logs From CI

```bash

# Log is in 'tmp.failure.check_if_the_linter_was_run.gp_scratch_19.txt'

```

```bash

... # To run the tests:

... > ./tmp.pytest_repro.fast_tests.sh

```

Check Whether the Failure Reproduces Locally

build, per ## Analyze the Effect of Container Builds in

.claude/skills/pytest.rules.md

flakiness. /pytest.fix_local_tests cannot see this CI-specific context, so

capture it here

Diagnose and Fix

diagnose the root cause and fix the failing tests

(env, secrets, container build, flakiness) and fix it

pass on CI and locally, and why they fail on CI and locally

.claude/skills/pytest.rules.md

Ask the User to Commit

Verification

.claude/skills/pytest.rules.md

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.