Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.18: client: Timeout resends during send_and_confirm_in_parallel (backport of #358) #384

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Mar 22, 2024

Problem

The CLI sometimes gets stuck when deploying programs, as mentioned at #348 (comment)

Summary of Changes

The system for sending and confirming is properly updating the blockhash, and the resending task is checking that, so we're doing all the right things! Most likely, the system is getting stuck during the resend call, so the solution here is to timeout the resend.

I've also reduced the block height refresh time to 5 seconds, because it can be annoying to see nothing changing for a long time. I've also added in logging for the resending, that way it'll look to users that something is actually happening.


This is an automatic backport of pull request #358 done by [Mergify](https://mergify.com).

* client: Timeout resends during `send_and_confirm_in_parallel`

* Clarify constant

(cherry picked from commit 36c66f5)
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 85.71429% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 81.6%. Comparing base (7606adf) to head (f7f9b3b).
Report is 1 commits behind head on v1.18.

Additional details and impacted files
@@           Coverage Diff           @@
##            v1.18     #384   +/-   ##
=======================================
  Coverage    81.6%    81.6%           
=======================================
  Files         827      827           
  Lines      224451   224458    +7     
=======================================
+ Hits       183233   183240    +7     
  Misses      41218    41218           

Copy link

@willhickey willhickey left a comment

Choose a reason for hiding this comment

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

Approved for backport to beta

@joncinque joncinque merged commit c219226 into v1.18 Mar 22, 2024
35 checks passed
@joncinque joncinque deleted the mergify/bp/v1.18/pr-358 branch March 22, 2024 20:17
anwayde pushed a commit to firedancer-io/agave that referenced this pull request Jul 23, 2024
…(backport of anza-xyz#358) (anza-xyz#384)

client: Timeout resends during `send_and_confirm_in_parallel` (anza-xyz#358)

* client: Timeout resends during `send_and_confirm_in_parallel`

* Clarify constant

(cherry picked from commit 36c66f5)

Co-authored-by: Jon C <me@jonc.dev>
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