Fix CCIP-11061: Increase TON LogPoller query frequency#22223
Conversation
|
👋 sebawo, thanks for creating this pull request! To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team. Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks! |
|
✅ No conflicts with other open PRs targeting |
There was a problem hiding this comment.
Pull request overview
Risk Rating: LOW. Adjusts a test helper polling constant to reduce TON event-detection flakiness/timeouts in fast test environments.
Changes:
- Reduced TON LogPoller query ticker interval from 500ms to 100ms in TON test helpers to make event polling more responsive.
…tReportAccepted events The test_ton_helpers.go TON LogPoller was missing CommitReportAccepted events due to insufficient polling frequency. Reduce queryInterval from 500ms to 100ms to provide more aggressive event detection in test environments. This addresses the timeout issue identified by Trunk where the LogPoller was processing blocks but missing critical events due to coarse-grained polling intervals. Fixes: CCIP-11061 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2c50598 to
dfe7a32
Compare
|
Doesn't this imply a fundamental bug? Why would polling too late cause you to miss something entirely? |





Fixes CCIP-11061
Problem
Test
Test_CCIPMessaging_EVM2TON/message_to_contract_receiverwas timing out (995s) waiting for CommitReportAccepted event onTON blockchain.
Root Cause
TON LogPoller's polling interval (500ms) was too coarse-grained. Events were emitted between polling cycles and never detected in
fast test environments.
Solution
Reduce LogPoller query interval from 500ms to 100ms (5x more aggressive) to ensure events are captured reliably.
Changes
deployment/ccip/changeset/testhelpers/test_ton_helpers.go(line 41):Changed:
queryInterval = 500 * time.Millisecond→100 * time.MillisecondConfidence
Trunk.io: 0.81 (high)
Trunk Analysis: https://app.trunk.io/chainlink/flaky-tests/repo/0ec8ac39-2bf0-42e2-baaf-3f6cce784097/test/0594e16a-7d3b-532d-9081-75c3aff38d02?tab=analysis