feat: add JUnit XML exporter and --fail-under CI quality gate - #41
Closed
brainsparker wants to merge 1 commit into
Closed
feat: add JUnit XML exporter and --fail-under CI quality gate#41brainsparker wants to merge 1 commit into
brainsparker wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Owner
Author
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.
What this does
Adds CI-native quality reporting to PromptLens: a JUnit XML exporter and a --fail-under score gate, so eval runs can block a pipeline the same way unit tests do.
New output format:
New CLI gate:
Behavior:
promptlens export <run_id> --format junitre-exports any saved run.Why now (market rationale)
This lane was chosen deliberately to avoid the repo's open-PR congestion: the change is a new exporter module plus small additive wiring in cli.py. It does not touch promptlens/models/config.py or the provider HTTP code, which is where the 30+ open nightly hardening PRs overlap. The formats list in OutputConfig is an unvalidated List[str], so no config model changes were needed.
Runner-up candidates considered today and passed on: a spec-compliance feature for MCP-Profiles around the new MCP list-result caching hints (SEP-2549 ttlMs/cacheScope, https://blog.modelcontextprotocol.io/posts/2026-07-28/), dropped because that repo has pivoted to the you-aware search server where gateway caching semantics no longer fit; and a regression baseline comparison command for PromptLens (promptlens compare --baseline), a strong follow-on that builds naturally on this PR's exit-code convention.
Implementation notes
Test status