EPMRPP-113709 || Introduce the retry_of property for JS agents#260
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
WalkthroughThe changes implement retry chain tracking for test items, automatically populating a Changes
Sequence DiagramsequenceDiagram
participant Client
participant itemRetriesChainLastTempIdMap as Retry Chain Map
participant itemRetriesChainMap as Item Retries Map
participant API as REST API
Client->>Client: startTestItem(retry: true)
Client->>itemRetriesChainLastTempIdMap: Look up previous tempId
itemRetriesChainLastTempIdMap-->>Client: Return previous tempId
Client->>itemRetriesChainMap: Get previous item's realId
itemRetriesChainMap-->>Client: Return realId
Client->>Client: Set retryOf = realId
Client->>API: Create item with retryOf
API-->>Client: Return new item with realId
Client->>itemRetriesChainLastTempIdMap: Update with new tempId
itemRetriesChainLastTempIdMap-->>Client: Stored for next retry
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
CHANGELOG.md (1)
1-2: Consider adding a version header for unreleased changes.The new entry is added under
### Addedwithout a version header (e.g.,## [Unreleased]or## [5.5.11]). Previous entries follow the pattern## [version] - date. This helps maintain consistency and clarifies which version will include this feature.📝 Suggested format
+## [Unreleased] ### Added - `retryOf` property automatically populated with the UUID of the previous retry attempt when starting a retried test item.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@CHANGELOG.md` around lines 1 - 2, Add a version header above the "### Added" section to follow the existing changelog pattern (e.g., insert "## [Unreleased]" or the target version like "## [5.5.11] - YYYY-MM-DD") so the new entry about the `retryOf` property is grouped under a proper release heading; ensure the `### Added` block remains intact and the `retryOf` line stays unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@CHANGELOG.md`:
- Around line 1-2: Add a version header above the "### Added" section to follow
the existing changelog pattern (e.g., insert "## [Unreleased]" or the target
version like "## [5.5.11] - YYYY-MM-DD") so the new entry about the `retryOf`
property is grouped under a proper release heading; ensure the `### Added` block
remains intact and the `retryOf` line stays unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 52a5ffab-882d-4d95-8c9b-72d6f94a6a41
📒 Files selected for processing (4)
CHANGELOG.md__tests__/report-portal-client.spec.jsindex.d.tslib/report-portal-client.js
Summary by CodeRabbit
retryOfproperty with the UUID of the previous attempt, enabling improved retry chain tracking and visibility.