test(e2e): wait for base role update visibility - #2087
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe role workflow test now waits up to 30 seconds, retrying every 3 seconds, for ChangesRole workflow validation
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 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.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/cli_e2e/base/base_role_workflow_test.go`:
- Around line 114-132: Update the polling block around WaitForCondition so it
uses a 30-second child context, and pass that same child context to RunCmd
inside the callback. Ensure both the wait deadline and each command attempt are
bounded by the 30-second timeout while preserving the existing role convergence
checks.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: a4b09022-a06a-4906-be66-362cb62bb677
📒 Files selected for processing (1)
tests/cli_e2e/base/base_role_workflow_test.go
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@175ac96bbd391c8b6080c8110f89ba5716f0c0e3🧩 Skill updatenpx skills add yxzhaao/cli#fix/e2e-base-role-update-visibility -y -g |
PR Quality SummaryCI did not complete successfully. Use the failed check links below to decide whether this PR needs a code change or a rerun. CI status
|
Summary
base +role-getafter a successful role update until the updated name is visibleRunCmdunchangedWhy
The role update can be acknowledged before a subsequent read observes the new name. This exact stale-read assertion appeared in 6 independent failed e2e-live jobs over the last 7 days across unrelated PRs. Example: https://github.com/larksuite/cli/actions/runs/30353306511/job/90257011797
Testing
go test ./tests/cli_e2e/base -run '^TestBase_RoleWorkflow$' -count=1\n-make quality-gateSummary by CodeRabbit