feat(ci): add performance regression tracking stage - #1218
Open
quic-amitraj wants to merge 2 commits into
Open
Conversation
Introduces tests/ci_perf/ — a pytest plugin + CLI tooling that captures
prefill_time, decode_perf, onnx_size_bytes and qpc_size_bytes per model on
every QAIC CI stage, persists them to a JSON baseline DB on the CI host, and
adds two new Jenkins stages:
- Perf Comparison: compares current PR metrics against the baseline DB using
a configurable percentage threshold (default 5%) and blocks the PR on
regression.
- Update Perf Baseline: runs only on the main branch and atomically updates
the baseline DB with the current run's values.
Key design decisions:
- Hardware-keyed DB prevents false failures across different NSP configurations.
- Composite key (model::bs=N::seq=N::decode=X) ensures same model with
different inference configs never collide in the DB.
- Sizes are optional — inference-only tests omit onnx_path/qpc_path and the
null values are stored but never compared.
- xdist-aware plugin merges worker records via pytest_testnodedown.
- First-run grace: new models not yet in the DB are SKIPped, not failed.
quic-amitraj
marked this pull request as ready for review
July 27, 2026 18:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces tests/ci_perf/ — a pytest plugin + CLI tooling that captures prefill_time, decode_perf, onnx_size_bytes and qpc_size_bytes per model on every QAIC CI stage, persists them to a JSON baseline DB on the CI host, and adds two new Jenkins stages:
Key design decisions: