test: fix drive cover download retries#1934
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Drive cover download e2e test now uses ChangesDrive cover download retry
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1934 +/- ##
=======================================
Coverage 74.96% 74.96%
=======================================
Files 892 892
Lines 94058 94077 +19
=======================================
+ Hits 70506 70529 +23
+ Misses 18139 18137 -2
+ Partials 5413 5411 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@c8d1e93217b2205dcf329b75f5ade3361e251bf2🧩 Skill updatenpx skills add larksuite/cli#fix/drive-cover-retry -y -g |
Summary
The Drive Cover live E2E configured eight attempts but stopped after the first non-zero exit code. This PR fixes the local retry condition so transient Cover download failures retry within the existing bounded backoff and timeout.
Changes
shouldRetryCoverDownloadtotests/cli_e2e/drive/drive_preview_workflow_test.gofor nil, success, and non-zero exit results.RunCmdWithRetrybehavior.Test Plan
make unit-testpassed through Harness validate.go test ./tests/cli_e2e/drive -run 'TestShouldRetryCoverDownload' -count=1andgo test ./tests/cli_e2e -run 'TestRunCmdWithRetry' -count=1.Related Issues
N/A
Summary by CodeRabbit
Bug Fixes
Tests