-
Notifications
You must be signed in to change notification settings - Fork 25
fix: getFeature retry in exchange #632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughVersion bumps from 1.1.21-alpha.1 to 1.1.21-alpha.2 across multiple package.json files. Firmware update flow changed: GetFeatures timeout counting, limited retries before reconnect, and consolidated WebUSB bootloader prompt behavior and accessibility adjustments in the base firmware class. Changes
Sequence Diagram(s)mermaid Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
✅ 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. |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
📜 Review details
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to data retention organization setting
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
packages/core/src/api/FirmwareUpdateV3.ts
🧰 Additional context used
🧬 Code graph analysis (1)
packages/core/src/api/FirmwareUpdateV3.ts (3)
packages/shared/src/HardwareError.ts (2)
HardwareErrorCode(79-481)HardwareError(51-77)packages/core/src/utils/index.ts (1)
wait(40-43)packages/core/src/events/device.ts (1)
DEVICE(6-31)
⏰ 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). (2)
- GitHub Check: build (22)
- GitHub Check: lint (22)
🔇 Additional comments (4)
packages/core/src/api/FirmwareUpdateV3.ts (4)
1-1: LGTM!Imports are correct. Both
HardwareErrorandDEVICEare used in the new retry and WebUSB prompt logic.Also applies to: 20-20
389-425: LGTM!The retry logic is clean. Transient timeouts retry without reconnect. Other errors trigger reconnect. Counter resets are placed correctly.
444-450: LGTM!The helper is clean and precise. It correctly identifies GetFeatures timeout errors by checking the error type, code, and method parameter.
515-519: Method exists inFirmwareUpdateBaseMethodas a protected async method (line 95). The call in FirmwareUpdateV3 is correct.
Summary by CodeRabbit
Bug Fixes
Chores
✏️ Tip: You can customize this high-level summary in your review settings.