Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: Use CompoundCycles in helpers in ExecutionTest#9696

Merged
mraszyk merged 1 commit into
dfinity:masterfrom
dsarlis:dimitris/test-fee
Apr 1, 2026
Merged

refactor: Use CompoundCycles in helpers in ExecutionTest#9696
mraszyk merged 1 commit into
dfinity:masterfrom
dsarlis:dimitris/test-fee

Conversation

@dsarlis
Copy link
Copy Markdown
Contributor

@dsarlis dsarlis commented Apr 1, 2026

This PR switches various helper functions in ExecutionTest that calculate fees to return CompoundCycles instead of Cycles. This pushes the decision on what part of the computed fee (real or nominal) to implementors of the test which makes more sense depending on what needs to be tested. It also facilitates computing expected balance or metrics changes from the same compound value which strengthens the tests.

@dsarlis dsarlis requested a review from a team as a code owner April 1, 2026 10:19
@basvandijk basvandijk added the security-review-passed IDX or InfraSec have concluded it's safe to run CI on the external PR. label Apr 1, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2026

@dsarlis
Copy link
Copy Markdown
Contributor Author

dsarlis commented Apr 1, 2026

@michael-weigelt Can you please add this to the queue?

@mraszyk mraszyk added this pull request to the merge queue Apr 1, 2026
Merged via the queue into dfinity:master with commit 606cab7 Apr 1, 2026
17 checks passed
github-merge-queue Bot pushed a commit that referenced this pull request Apr 2, 2026
#9710)

Similar to #9696 convert `canister_execution_cost` to use
`CompoundCycles<Instructions>` instead of `Cycles`. This will allow for
cleaner separation in tests when asserts need to happen about the
balance and/or metrics.
@dsarlis dsarlis deleted the dimitris/test-fee branch April 7, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor refactor security-review-passed IDX or InfraSec have concluded it's safe to run CI on the external PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants