Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ci-maintenance-workflow

БесплатноБез исполняемых скриптовНе проверен

CI and GitHub Actions maintenance workflows — fix a failing test from a CI URL, fix a failing smoke test, add @pytest.mark.slow markers to slow tests, or…

UKGovernmentBEISот UKGovernmentBEIS★ 763 звезды на GitHub

Об этом скилле

CI Maintenance Workflows

This skill covers four CI/GitHub Actions-related workflows:

  • Fix A Failing Test: Diagnose and fix a failing test from a CI run
  • Fix A Failing Smoke Test: Diagnose and fix a failing smoke test (eval that fails with --limit 0)
  • Mark Slow Tests: Add @pytest.mark.slow markers to tests exceeding thresholds
  • Review PR: Automatically check a PR against agent-checkable standards

Write a PR For A Failing Test

This workflow is for fixing failing pytest tests (not smoke tests — see "Fix A Failing Smoke Test" below for those).

  1. The user should provide you with a link that looks like https://github.com/ArcadiaImpact/inspect-evals-actions/actions/runs/<number>/job/<number2>, or a test to fix. If they haven't, please ask them for the URL of the failing Github action, or a test that should be fixed.
  2. If a link is provided, you will be unable to view this link directly, but you can use 'gh run view' to see it.
  3. Checkout main and do a git pull. Make sure you're starting from a clean slate and not pulling in any changes from whatever you or the user was previously doing.
  4. Create a branch agent/<number> for your changes, in inspect_evals. Note this is not the same as inspect-evals-actions where the above URL was from.
  5. Identify the failing test(s) and any other problems. Verify the test currently fails in this environment by running it with uv run pytest tests/<eval> --runslow.
  6. Attempt these fixes one by one and verify they work locally, with uv run pytest tests/<eval> --runslow.
  7. On every change, assess if a task version bump and changelog entry are required. Read TASK_VERSIONING.md and PACKAGE_VERSIONING.md, then explicitly decide for this change. Default to bumping unless you can articulate why results remain comparable. Crash-fixes count: turning a sample that previously errored into one that now scores (correct or incorrect) changes which samples contribute to the aggregate, so the fix affects comparability even though no "scoring logic" was rewritten. If you bump, update the eval's README changelog and run uv run scriv create for a package-level fragment.
  8. Perform linting as seen in .github/workflows/build.yml, and fix any problems that arise.
  9. Commit your changes to the branch.
  10. Before pushing, go over your changes and make sure all the changes that you have are high quality and that they are relevant to your finished solution. Remove any code that was used only for diagnosing the problem.
  11. Push your changes.
  12. Use the Github API to create a pull request with the change. Include a link to the failing test, which test failed, and how you fixed it. Include information on what you did to verify the fix worked. Always include the full checklist from .github/PULL_REQUEST_TEMPLATE.md verbatim in the PR body — the Check PR template CI job greps for the literal checklist substrings and fails the PR otherwise. This applies to bot/automated PRs too.

Fix A Failing Smoke Test

This workflow is for fixing evals that fail their smoke test (running with --limit 0). Smoke test failures are different from regular test failures — they often involve upstream changes to datasets, APIs, or dependencies, and the root cause is not always obvious from the error message alone. Take extra care to understand the problem before proposing a fix.

Hard rules (read first, no exceptions)

  • Reproduce before fixing. Run the smoke command locally and try to observe the same failure CI saw before changing any code.

  • Verify after fixing. Rerun the same smoke command after your change and confirm it now runs cleanly.

  • Do not skip, xfail, or disable the eval as a "fix". All of the following are forbidden:

    • Adding @pytest.mark.skip/skipif/xfail, pytest.skip(...), pytest.xfail(...), unittest.skip(...) to the eval's tests
    • Removing the eval from the smoke-test target list, the eval registry, tools/run_evals.py allowlists, or any CI matrix
    • Commenting out the failing solver/scorer/dataset-loading path
    • Wrapping the failing call in a bare try/except that swallows the error and returns a dummy result
    • Short-circuiting the eval to return success without doing the work (e.g. early-return on --limit 0)
    • Loosening a scorer or assertion to accept whatever the broken code currently produces
    • Replacing a real dataset or upstream call with a stub purely to make the smoke pass

    If a candidate fix matches any of the above, it is not a fix. Treat the situation as "blocked" instead and use the blocked-PR path described under "Reporting" below.

Reporting (when you can't reproduce, can't verify, or can't fix)

The smoke-fix workflow always produces a PR — even when you fail at one of the gates. Do not silently abandon the run, do not push a skip-based fallback, and do not just leave a comment somewhere. The PR is the report.

If you hit any of these situations, still raise

Полный SKILL.md на GitHub

Установить ci-maintenance-workflow в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл ci-maintenance-workflow?

CI and GitHub Actions maintenance workflows — fix a failing test from a CI URL, fix a failing smoke test, add @pytest.mark.slow markers to slow tests, or review a PR against agent-checkable standards. Use when user asks to fix a failing test, fix a smoke test, mark slow tests, or review a PR. Trigger when the user asks you to run the "Write a PR For A Failing Test", "Fix A Failing Smoke Test", "Mark Slow Tests", or "Review PR According to Agent-Checkable Standards" workflow.

Как установить скилл ci-maintenance-workflow?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ci-maintenance-workflow запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ci-maintenance-workflow с