Draft
Normalize snippet quality scoring: pass_rate + stable-only gating + artifact upload#863
Conversation
Copilot
AI
changed the title
[WIP] Update workflow to clarify success criteria based on derived scores
Normalize snippet quality scoring: pass_rate + stable-only gating + artifact upload
Feb 24, 2026
…able-only gating Co-authored-by: Josverl <981654+Josverl@users.noreply.github.com>
2139f7b to
98c9e4f
Compare
…ased on --stable-only flag Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
…ison in CI workflow Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
…enhance multi-version support Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.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.
The snippet quality workflow was gating PRs on an absolute
passed - failedscore, making results highly sensitive to skip volatility, version churn, and stale baselines. A 5% real quality drop could be masked or a mass-skip could look fine.Changes
conftest.py— normalized score metricsexecuted = passed + failedandpass_rate = passed / executedtosnippet_score.jsonexecuted > 0(was: only whensnippet_score > 0)snippet_scorefor backward compatibility--stable-onlypytest CLI flag to filter preview versions from test parameterizationtest_snippets.py— stable-only version filteringVERSIONS→ALL_VERSIONSpytest_generate_tests, respects--stable-onlyby excluding versions ending with-previewcompare_score.py— tolerant, normalized comparisonpass_ratewithin tolerance instead of raw score deltasnippet_scorecomparison when baseline predates this changetest_stub_quality.yml— split gating and preview jobstest_snippets(gating): adds--stable-only; uploads results assnippet-results-stable-{run_id}test_snippets_preview(non-blocking): new job,continue-on-error: true, runs all versions; uploads assnippet-results-preview-{run_id}permissions: contents: read💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.