Updated regex for slot_ibm to include optional -R\d+ segment.#6246
Updated regex for slot_ibm to include optional -R\d+ segment.#6246maramsmurthy wants to merge 4 commits intoavocado-framework:masterfrom
Conversation
This allows matching both standard and extended slot formats: Standard: U50EE.001.WZS00TL-P3-C14 Extended: U50EE.001.WZS00TL-P3-C14-R1 Change ensures compatibility with newer hardware naming conventions that include resource identifiers after the slot number. Backward Compatibility: Existing slot formats without -R remain fully supported. No impact on current parsing logic for standard slot names. Testing Impact: Verified regex against both formats to ensure correct matching. Additional unit tests recommended for extended slot names to prevent regressions. Signed-off-by: Maram Srimannarayana Murthy <msmurthy@linux.vnet.ibm.com>
WalkthroughA regex pattern in the Estimated code review effort🎯 2 (Simple) | ⏱️ ~5-10 minutes
Pre-merge checks✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (43)
🔇 Additional comments (1)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. 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 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6246 +/- ##
==========================================
+ Coverage 73.48% 73.70% +0.21%
==========================================
Files 206 206
Lines 22494 22620 +126
==========================================
+ Hits 16530 16671 +141
+ Misses 5964 5949 -15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
clebergnu
left a comment
There was a problem hiding this comment.
@maramsmurthy thanks for this contribution. Could you please:
- Put an (external) reference to the format of the extended version of the identifiers
- Add a test that matches both old and new (extended) versions
Thanks!
|
@clebergnu Following is the output for both the formats of. physical slot
Update worked successfully without any issues |
U78CC.001.FZHAK92-P2-C3 which is exisitng format U50EE.001.WZS0011-P3-C20-R1 which is new format We are maitatining both the formats as both formats are required. Both are returning expected output without any issues. Signed-off-by: Maram Srimannarayana Murthy <msmurthy@linux.vnet.ibm.com>
0c3f452 to
32943e3
Compare
This allows matching both standard and extended slot formats: Standard: U50EE.001.WZS00TL-P3-C14
Extended: U50EE.001.WZS00TL-P3-C14-R1
Change ensures compatibility with newer hardware naming conventions that include resource identifiers after the slot number. Backward Compatibility:
Existing slot formats without -R remain fully supported. No impact on current parsing logic for standard slot names. Testing Impact:
Verified regex against both formats to ensure correct matching. Additional unit tests recommended for extended slot names to prevent regressions.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.