run-pre-merge-checks

Installation
SKILL.md

Run Pre-Merge Checks

The pre-merge gate for switchyard. This skill runs tests/e2e/ — the live end-to-end production tests that exercise Switchyard against a real NVIDIA Inference Hub backend — and produces a clean, screenshot-friendly summary the user can paste into an MR description.

Run this before opening or updating an MR, especially after touching anything under switchyard/ or crates/. The test suite spawns real switchyard subprocesses, calls real upstream APIs, and validates the full chain (request processors, LLM backends, response processors, and translation engine) for all three inbound formats (OpenAI Chat Completions, OpenAI Responses, Anthropic Messages).

Parameters

Extract from the user's request. Use defaults if not specified:

Parameter Default Description
test_path tests/e2e/ Pytest target. Override to a single file (tests/e2e/test_passthrough_e2e.py) or single test (...::TestPassthroughChatCompletions::test_basic_completion) when iterating.
extra_args (none) Extra pytest flags to append (e.g. -k passthrough, --lf, -s).
also_lint true Also run uv run ruff check . after the tests. CI runs this and lint failures block merge.
also_typecheck false Also run uv run mypy switchyard. Slower; off by default — turn on when the diff includes type changes.
maxfail 5 Stop the run after this many failures. We want to surface as many real regressions as possible in one pass, but bail out if everything's broken (e.g. credentials wrong, server can't bind).

Sandbox: must be off

Installs
1
GitHub Stars
159
First Seen
4 days ago
run-pre-merge-checks — nvidia-nemo/switchyard