Skip to content

Fix CCIP-11061: Increase TON LogPoller query frequency#22223

Open
sebawo wants to merge 1 commit intodevelopfrom
fix/CCIP-11061-logpoller-query-interval
Open

Fix CCIP-11061: Increase TON LogPoller query frequency#22223
sebawo wants to merge 1 commit intodevelopfrom
fix/CCIP-11061-logpoller-query-interval

Conversation

@sebawo
Copy link
Copy Markdown
Contributor

@sebawo sebawo commented Apr 28, 2026

Fixes CCIP-11061

Problem

Test Test_CCIPMessaging_EVM2TON/message_to_contract_receiver was timing out (995s) waiting for CommitReportAccepted event on
TON 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.Millisecond100 * time.Millisecond

Confidence

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

@sebawo sebawo requested a review from a team as a code owner April 28, 2026 15:27
Copilot AI review requested due to automatic review settings April 28, 2026 15:27
@sebawo sebawo requested review from a team as code owners April 28, 2026 15:27
@github-actions
Copy link
Copy Markdown
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!

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 28, 2026

✅ No conflicts with other open PRs targeting develop

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@trunk-io
Copy link
Copy Markdown

trunk-io Bot commented Apr 28, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

…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>
@sebawo sebawo force-pushed the fix/CCIP-11061-logpoller-query-interval branch from 2c50598 to dfe7a32 Compare April 28, 2026 15:49
@cl-sonarqube-production
Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants