ROX-33568: retry logic to container spawn in integration-tests - #3726
ROX-33568: retry logic to container spawn in integration-tests#3726ovalenti wants to merge 3 commits into
Conversation
📝 WalkthroughSummary by CodeRabbit
Walkthrough
ChangesContainer startup flow
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 `@integration-tests/pkg/executor/executor_docker_api.go`:
- Around line 160-164: Update the RetryWithTimeout callback around
ContainerStart so ContainerStart is attempted only until its first successful
response; afterward, readiness retries must call only ContainerInspect. Return
non-zero container exits as terminal errors rather than restarting the
container, and add coverage asserting an inspection failure results in exactly
one ContainerStart call.
🪄 Autofix
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: Central YAML (base), Organization UI (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 718a1035-7677-41c9-ad4c-ce2bf4615617
📒 Files selected for processing (1)
integration-tests/pkg/executor/executor_docker_api.go
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3726 +/- ##
=======================================
Coverage 27.43% 27.43%
=======================================
Files 94 94
Lines 5406 5406
Branches 2535 2535
=======================================
Hits 1483 1483
Misses 3198 3198
Partials 725 725
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Description
There are sporadic failures when starting containers during integration tests.
A previous fix attempt as been made by waiting on the status of the freshly created container, but the failure can still be observed. #2818
We revert the previous change and implement a brute retry of the Start operation.