ci: improve JIRA Playwright reporter observability#40145
Conversation
Log each decision point (search count, reuse vs create) and validate HTTP responses so API failures surface in CI logs with status and body preview. Clarify the initial log line so it is not mistaken for a successful JIRA write. Fix the GitHub permalink in the new-issue comment template (stray comma). Made-with: Cursor
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
WalkthroughEnhanced HTTP error handling in the JIRA reporter by introducing a centralized validation method ( Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #40145 +/- ##
===========================================
- Coverage 70.23% 70.19% -0.04%
===========================================
Files 3280 3280
Lines 116852 116852
Branches 20745 20681 -64
===========================================
- Hits 82066 82022 -44
- Misses 31502 31546 +44
Partials 3284 3284
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
- Avoid no-useless-escape in JQL summary sanitizer - Replace response.json() with JSON.parse(text) for no-unsafe-call - Collapse console.log strings for prettier - Type ensureJiraOk param as Awaited<ReturnType<typeof fetch>> - Use ASCII ellipsis in error body preview Made-with: Cursor
|
/jira ARCH-2083 |
Log each decision point (search count, reuse vs create) and validate HTTP responses so API failures surface in CI logs with status and body preview. Clarify the initial log line so it is not mistaken for a successful JIRA write. Fix the GitHub permalink in the new-issue comment template (stray comma).
Made-with: Cursor
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
Summary by CodeRabbit
Task: ARCH-2103