fix: treat Done-Errata CVEs as already shipped in precheck#196
Conversation
Done-Errata resolution means the fix was already included in a shipped errata, so it should be skipped like "Not a Bug" rather than triggering a must_release recommendation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> pre-commit.check-secrets: ENABLED
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: agullon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Walkthrough
ChangesCVE Resolution Logic Update
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 9 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (9 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Distinguish Done-Errata (already shipped) from Not a Bug (doesn't affect MicroShift) in the docstring. Update the Done reason to make the required action explicit. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> pre-commit.check-secrets: ENABLED
|
/label tide/merge-method-squash |
|
/retest |
Summary
interpret_cves()inprecheck_xyz.pytreatedDone-Errataresolution the same asDone, adding it tomust_release_cves. This caused the precheck to recommend "ASK ART TO CREATE ARTIFACTS" for CVEs whose fix had already been shipped in a prior errata.Done-Erratato the skip branch alongsideNot a Bug, since both mean no further MicroShift release action is needed for that CVE.test_cve_must_release→test_cve_done_errata_skippedto assert the corrected"none"impact.Context
The Jira tickets checked by this code are MicroShift-specific (the advisory publication report returns per-CVE Jira tickets scoped to MicroShift — CVEs without a MicroShift ticket are already skipped with
continue). This meansDone-Errataon these tickets indicates MicroShift itself already shipped the fix, not just that some other OCP component did. If these were broader OCP CVE tickets,Done-Erratacould mean a different component shipped while MicroShift still needs to — but that's not the case here, confirming this is a bug.Test plan
python3 -m unittest unit_tests.test_logic -v)must_release🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Tests