Skip to content

cre-4227: devenv: replace sleep with polling for node readiness after…#22376

Open
mchain0 wants to merge 1 commit into
developfrom
cre-4227
Open

cre-4227: devenv: replace sleep with polling for node readiness after…#22376
mchain0 wants to merge 1 commit into
developfrom
cre-4227

Conversation

@mchain0
Copy link
Copy Markdown
Contributor

@mchain0 mchain0 commented May 11, 2026

After restarting nodes during a rolling upgrade, the test used a fixed
10-second sleep before checking upkeep counters. This is fragile: nodes
may take longer to become ready, wasting CI time, or may be ready sooner,
making the test unnecessarily slow.

Replace the sleep with an Eventually block that polls the chain client
to confirm the node has processed new blocks, indicating readiness. The
polling uses a 2-minute timeout with 2-second intervals, which is
consistent with the existing UpkeepExecutionTimeout pattern in the same
file.

cre-4227

@github-actions
Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@cl-sonarqube-production
Copy link
Copy Markdown

@trunk-io
Copy link
Copy Markdown

trunk-io Bot commented May 11, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@mchain0 mchain0 marked this pull request as ready for review May 11, 2026 12:56
@mchain0 mchain0 requested a review from a team as a code owner May 11, 2026 12:56
return block, err
}, time.Minute*2, time.Second*2).Should(gomega.BeNumerically(">", preRestartBlock),
"Node %d should be processing new blocks after restart", i)
l.Info().Msgf("Node %d is ready after upgrade", i)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

but this chain client has nothing to do with the node... it's a standalone Ethereum client that connects to the RPC

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

how else would you remove the sleep?

@mchain0 mchain0 enabled auto-merge May 11, 2026 14:09
@mchain0 mchain0 removed the request for review from skudasov May 11, 2026 14:09
Copy link
Copy Markdown
Contributor

@Tofel Tofel left a comment

Choose a reason for hiding this comment

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

a.ChainClient has nothing to do with the node... it's a standalone Ethereum client that connects to the RPC. It is literally a chain client, and chain is not a shortcut for chainlink.

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.

4 participants