npx skills add ...
npx skills add openshift/lightspeed-service --skill validate-and-fix
npx skills add openshift/lightspeed-service --skill validate-and-fix
Run the full validation pipeline (make test-unit, make verify, make test-integration) and auto-fix trivial failures like black formatting, unused imports, and ruff-fixable lint errors. Use when the user asks to validate, run tests, check the pipeline, or verify changes are clean.
Run the project validation pipeline, auto-fix trivial issues, and re-run until green or a real failure is found.
This ensures the virtualenv matches the lockfile. Skipping this step is the most common cause of spurious import errors (e.g. llama-index-embeddings-huggingface not found despite being in requirements.txt).
If all pass, proceed to Step 3 (integration tests). If failures occur, classify each failure (see Step 2).
For each failure, determine its type:
Auto-fixable (fix immediately, then re-run Step 1):
| Type | Fix |
|---|---|
Missing await on async call | Add await, mark test async def, add @pytest.mark.asyncio |
| Test asserts old default value | Update assertion to match new default |
Real failures (do not auto-fix):
For real failures: report the test name, file, and error summary, then stop.
Integration test failures are almost always real failures. Report and stop.
This runs: black --check, ruff, woke, pylint, mypy.
If failures occur, apply the same classify-and-fix logic from Step 2. Common fixes at this stage:
| Type | Fix |
|---|---|
| Black formatting | uv run black . |
| Unused import (ruff F401) | Remove the import |
| Unused variable (ruff F841) | Remove the assignment |
| Unused noqa directive (RUF100) | Remove the noqa comment |
| Other ruff-fixable | uv run ruff check . --fix |
| Pylint issues from changed code | Fix inline |
Re-run make verify after each fix. Proceed to Step 5 when green.
Report exactly:
make test-unit: X passed / Y failedmake verify: pass/fail (list any remaining issues)make test-integration: X passed / Y failedDo not include unrelated diagnostics or suggestions.