一键导入
leapp-test-runner
Run tests and linters for leapp-repository. Covers container-based CI testing, single-actor fast tests, and lint commands.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run tests and linters for leapp-repository. Covers container-based CI testing, single-actor fast tests, and lint commands.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Develop or modify leapp-repository actors. Covers actor structure, phase selection, placement rules, and key constraints.
Write or fix unit tests for leapp-repository actors and shared libraries. Covers test placement, mocking patterns, and project conventions.
基于 SOC 职业分类
| name | leapp-test-runner |
| description | Run tests and linters for leapp-repository. Covers container-based CI testing, single-actor fast tests, and lint commands. |
All non-container commands (make lint, make test_no_lint, make fast_lint, make dev_test_no_lint) require a local virtualenv and REPOSITORIES envar (e.g. REPOSITORIES=common,el9toel10). Create the virtualenv with make install-deps (RHEL/CentOS) or make install-deps-fedora (Fedora) — the Makefile handles activation internally, don't source the venv manually. Set PYTHON_VENV=pythonX.X to choose the Python version (default: python3.6). Container commands are self-contained and recommended as the default.
Three container options, each matching a target Python version:
| Container | Python | Used for |
|---|---|---|
el8 | 3.6 | common, el8toel9 |
el9 | 3.9 | common, el8toel9, el9toel10 |
f42 | 3.13 | lint-only (latest tooling) |
Pick container(s) based on which repositories your change touches:
common actors: test on el8 and el9 (both Python versions must pass).el8toel9 only: el8 is sufficient, el9 is a bonus.el9toel10 only: el9.# Full test (lint + unit tests) in container — recommended
TEST_CONTAINER=el9 make test_container
# Tests only, skip lint — faster iteration
TEST_CONTAINER=el9 make test_container_no_lint
# All containers at once
make test_container_all
Use during development when iterating on one actor:
ACTOR=checkmemory make dev_test_no_lint
# Lint in container (recommended, no venv needed)
make lint_container
# Full lint locally (requires venv): pylint + flake8 + isort
make lint
# Lint only local changes relative to main branch (requires venv)
make fast_lint
# Auto-fix isort violations locally (requires venv)
make lint_fix
| Situation | Command |
|---|---|
| Quick check during development | ACTOR=<name> make dev_test_no_lint |
| Before pushing | TEST_CONTAINER=elX make test_container |
| Full CI confidence | make test_container_all |
| Only lint issues | make fast_lint or TEST_CONTAINER=elX make lint_container |
make lint_fix to auto-sort imports, then verify.monkeypatch.setattr correctly and if mocked models match current schema.