Fix Polarion double-prefix by stripping OCP- from reportxml.ID arguments - #57
Conversation
reportxml.ID() automatically prepends OCP- to create Polarion test case
IDs. Passing reportxml.ID("OCP-66026") produces OCP-OCP-66026 which
Polarion rejects as "not found", causing test results to silently drop
from CI reporting.
Fix 12 instances across FAR (6), SNR (5), and MDR (1) destructive and
remediation test files.
Co-Authored-By: Claude <noreply@anthropic.com>
📝 WalkthroughWalkthroughChangesReport identifier normalization
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoFix Polarion test case IDs by removing redundant OCP- prefix in reportxml.ID calls
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
13 rules 1. ID prefix duplication risk
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: razo7, ugreener 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 |
Summary
reportxml.ID()automatically prependsOCP-to create Polarion test case IDs. Passingreportxml.ID("OCP-66026")producesOCP-OCP-66026which Polarion rejects as "not found", causing test results to silently drop from CI reporting. The FAR weekly periodic job was reporting only 9/15 results to Polarion because the 6 destructive test IDs were rejected.Changes
far_destructive.go(5),far_controller_lifecycle.go(1)worker_remediation.go(3),master_remediation.go(2)mdr_remediation.go(1)All 12 changes are identical:
reportxml.ID("OCP-XXXXX")toreportxml.ID("XXXXX")(numeric only, matching the convention used by all post-deploy tests).Verified: FAR periodic job OS-20260721-0545 confirms 9 post-deploy tests reported correctly while 6 destructive tests were rejected with "not found in Polarion" for IDs like
OCP-OCP-70638.