OSSF Silver Criterion
regression_tests_added50 (MUST) — At least 50% of bug fixes must include a regression test.
Description
Define a regression test tracking policy that ensures at least 50% of bug-fix PRs include a regression test. Issue #146 covers adding a regression test checkbox to the PR template; this issue covers the policy definition, tracking label, and measurement mechanism.
Acceptance Criteria
Implementation Guidance
-
Create regression-test label (color suggestion: #B60205, description: "PR includes regression test for a bug fix").
-
Add policy to CONTRIBUTING.md or test policy document:
## Regression Test Policy
Bug-fix pull requests should include a regression test that verifies the fix and
prevents the bug from reoccurring. Our target is for at least 50% of bug-fix PRs
to include regression tests.
When submitting a bug fix:
1. Check the "Regression test included" checkbox in the PR template
2. Apply the `regression-test` label if a test is included
3. If no regression test is feasible, explain why in the PR description
- Add a periodic query to measure compliance:
- PRs with label
bug AND label regression-test / PRs with label bug >= 50%
References
Relationships
OSSF Silver Criterion
regression_tests_added50(MUST) — At least 50% of bug fixes must include a regression test.Description
Define a regression test tracking policy that ensures at least 50% of bug-fix PRs include a regression test. Issue #146 covers adding a regression test checkbox to the PR template; this issue covers the policy definition, tracking label, and measurement mechanism.
Acceptance Criteria
regression-testlabel is created in the repositoryImplementation Guidance
Create
regression-testlabel (color suggestion:#B60205, description: "PR includes regression test for a bug fix").Add policy to CONTRIBUTING.md or test policy document:
bugAND labelregression-test/ PRs with labelbug>= 50%References
.copilot-tracking/research/2026-02-07-ossf-silver-gaps-detail-research.md— regression_tests_added50Relationships