MAINT Python CI performance - #2862
Merged
Roman Lutz (romanlutz) merged 8 commits intoOct 1, 2026
Merged
Roman Lutz (romanlutz) merged 8 commits into
Roman Lutz (romanlutz) merged 8 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Integrate microsoft/PyRIT main at 5ffd01a without changing the fixture and CI timing contracts. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Integrate microsoft/PyRIT main at 9bc882c while preserving the Garak fixture and CI timing contracts. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Integrate microsoft/PyRIT main at 83e2b79 while retaining the Python CI performance and JUnit changes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep the fast seeded fixtures while checking one unmocked registry-to-memory initialization over all four real dataset sources. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Integrate microsoft/PyRIT main at ab1c6c8. Preserve fast Garak fixtures and the real dataset resolution regression test using the new async memory API. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
hannahwestra25
approved these changes
Oct 1, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 1, 2026
Roman Lutz (romanlutz)
enabled auto-merge
October 1, 2026 21:39
Integrate microsoft/PyRIT main at 65185d6. Combine new dataset-limit tests with the scoped real-corpus fixtures, bounded separator coverage, and unmocked WebInjection dataset regression test. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Description
Several Garak unit tests repeatedly discover unrelated dataset providers, and the latent separator test persists far more cases than its assertions need. Linux-only JUnit uploads also leave Windows and macOS timing regressions harder to diagnose.
JUNIT_XML, and print the 25 slowest test phases.No production behavior changes. Preserve all 24 test combinations, three all-file pre-commit jobs, existing triggers and permissions, Linux-only result publishing, the four-worker
loadfilescheduler, and the 78% overall / 90% diff coverage thresholds. Cache policy is unchanged: an incomplete local cache experiment did not justify changing it.Tests and Documentation
Three interleaved before/after pairs used the same 117 test identities in five Garak modules, with uv 0.9.17, Python 3.12.13, all extras, and
pytest -n 4 --dist=loadfileon Windows. Every valid run passed with no skips. The baseline and optimized runs used matching configuration, production imports, dataset contents, and parent memory fixtures.This is an 84.45% reduction for the local targeted suite, not a measured full-suite or hosted-CI reduction. The shared host had another workload; pairs were interleaved and counterbalanced. A preliminary snapshot run with collection errors was excluded entirely.
Ruff, formatting, type checks on the four changed Python files, actionlint, targeted workflow-contract checks, and commit hooks passed. The full suite and hosted matrix were not run. Updated the contributor test guide for JUnit paths and timing artifacts.
JupyText: N/A; no notebooks changed.