Skip to content

cli: Move all compute budget code into compute_budget.rs#826

Merged
joncinque merged 3 commits intoanza-xyz:masterfrom
joncinque:cbrefactor
Apr 16, 2024
Merged

cli: Move all compute budget code into compute_budget.rs#826
joncinque merged 3 commits intoanza-xyz:masterfrom
joncinque:cbrefactor

Conversation

@joncinque
Copy link
Copy Markdown

@joncinque joncinque commented Apr 15, 2024

Problem

In preparation to support dynamic compute unit limits in the CLI, it's neater to have everything in a shared compute_budget.rs file, where some bits are currently scattered.

Summary of Changes

No functional changes to see here, just moving some functions around so they can eventually be reused. Technically a breaking change by removing compute_unit_price and restricting WithComputeUnitPrice to be pub(crate) instead of pub, but those shouldn't be used externally

Fixes #

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

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

Project coverage is 81.8%. Comparing base (9217cd4) to head (517d750).
Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #826   +/-   ##
=======================================
  Coverage    81.8%    81.8%           
=======================================
  Files         851      851           
  Lines      231576   231576           
=======================================
+ Hits       189473   189505   +32     
+ Misses      42103    42071   -32     

Copy link
Copy Markdown

@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.

wfm

@joncinque joncinque merged commit 3476775 into anza-xyz:master Apr 16, 2024
@joncinque joncinque deleted the cbrefactor branch April 16, 2024 16:26
michaelschem pushed a commit to michaelschem/agave that referenced this pull request Apr 20, 2024
* Refactor `simulate_and_update_compute_unit_limit`

* Move `WithComputeUnitPrice` to `compute_budget`

* Move `set_compute_budget_ixs_if_needed`
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.

3 participants