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

cli: Use --use-rpc flag correctly during program deployments #1008

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

joncinque
Copy link

@joncinque joncinque commented Apr 23, 2024

Problem

As noticed in #928 (comment), the logic for --use-rpc is unfortunately backwards, since it's creating the tpu client if use_rpc is true, when we only want to create it when it's false.

Summary of Changes

Reverse the logic with a !

Big thanks to @amilkov3 for noticing and reporting this

Copy link

mergify bot commented Apr 23, 2024

Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis.

Copy link

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

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

😓

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.9%. Comparing base (b8cc66e) to head (936ff2f).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #1008     +/-   ##
=========================================
- Coverage    81.9%    81.9%   -0.1%     
=========================================
  Files         855      856      +1     
  Lines      232194   232194             
=========================================
- Hits       190222   190215      -7     
- Misses      41972    41979      +7     

@joncinque joncinque merged commit 550f806 into anza-xyz:master Apr 23, 2024
38 checks passed
@joncinque joncinque deleted the fixrpc branch April 23, 2024 22:54
mergify bot pushed a commit that referenced this pull request Apr 23, 2024
cli: Use --use-rpc flag correctly
(cherry picked from commit 550f806)
mergify bot added a commit that referenced this pull request Apr 24, 2024
…backport of #1008) (#1011)

cli: Use --use-rpc flag correctly during program deployments (#1008)

cli: Use --use-rpc flag correctly
(cherry picked from commit 550f806)

Co-authored-by: Jon C <[email protected]>
anwayde pushed a commit to firedancer-io/agave that referenced this pull request Jul 23, 2024
…backport of anza-xyz#1008) (anza-xyz#1011)

cli: Use --use-rpc flag correctly during program deployments (anza-xyz#1008)

cli: Use --use-rpc flag correctly
(cherry picked from commit 550f806)

Co-authored-by: Jon C <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants