Repository navigation
fix(harness): honor node and engine retry policies in Pregel - #18388
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan includes up to 10 reviews per rolling hour; 8 remain after this review. 📝 WalkthroughWalkthroughTask creation now preserves node retry policies. Synchronous and asynchronous execution share precedence resolution: node policy, engine policy, then default policy. Tests cover task construction, node overrides, and engine fallback. ChangesRetry Policy Resolution
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change preserves node-level retry settings and correctly falls back to the configured engine policy, with focused validation covering the affected behavior. No actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
…low#18388) ### Summary Pregel nodes created with `AddNodeWithOptions` retain a node-level `RetryPolicy`, but task construction dropped that policy. When a task had no policy, execution also bypassed the engine-level policy configured with `WithRetryPolicy` and instantiated the default policy directly.
Summary
Pregel nodes created with
AddNodeWithOptionsretain a node-levelRetryPolicy, but task construction dropped that policy. When a task had no policy, execution also bypassed the engine-level policy configured withWithRetryPolicyand instantiated the default policy directly.This change:
Validation
go test -mod=readonly -count=100 -run '^(TestEngine_TaskConstructionPreservesNodeRetryPolicy|TestRetry_NodePolicyOverridesEnginePolicy|TestRetry_EnginePolicyFallback)$' ./internal/harness/graph/pregelgo test -race -mod=readonly -count=10 -run '^(TestEngine_TaskConstructionPreservesNodeRetryPolicy|TestRetry_NodePolicyOverridesEnginePolicy|TestRetry_EnginePolicyFallback)$' ./internal/harness/graph/pregelgo vet ./internal/harness/graph/pregelgit diff --check origin/main..HEADAll targeted checks passed on Windows amd64 with Go 1.26.4. The repository-standard build script stopped during native dependency setup because the local
office_oxide,pdfium, andpdf_oxidestatic-library cache is unavailable.