Fix CCIP-11061: Increase TON LogPoller query frequency#22223
Open
Fix CCIP-11061: Increase TON LogPoller query frequency#22223
Conversation
Contributor
|
👋 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! |
Contributor
|
✅ No conflicts with other open PRs targeting |
Contributor
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
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





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