Skip to content

Split a couple of tests in two to avoid CPU limit#3402

Merged
mkoura merged 1 commit intomasterfrom
kwxm/plutus-tests/split-G2-MSM-tests
Apr 15, 2026
Merged

Split a couple of tests in two to avoid CPU limit#3402
mkoura merged 1 commit intomasterfrom
kwxm/plutus-tests/split-G2-MSM-tests

Conversation

@kwxm
Copy link
Copy Markdown
Contributor

@kwxm kwxm commented Apr 9, 2026

The succeedingG2MultiScalarMulPolicyScript1_V3_110 succeedingG2MultiScalarMulPolicyScript2_V3_110 end-to-end tests for Plutus were failing because the scripts were exceeding the on-chain CPU limit (10,000,000,000 units). To avoid this I've split each script into an a and a b version which each do about half of the computation that the original scripts do. Executing these scripts directly using the Plutus Core interpreter shows that they all complete successfully without exceeding the limit, but I still get errors when running the node tests locally.

I'm not sure what the problem is. It may be that I need to replace the UNKNOWN_PER_TIME and UNKNOWN_PER_SPACE values with something sensible, but I'm not sure what that should be.

@kwxm kwxm requested review from mkoura and saratomaz as code owners April 9, 2026 20:12
@mkoura mkoura merged commit 9eb2201 into master Apr 15, 2026
3 checks passed
@mkoura mkoura deleted the kwxm/plutus-tests/split-G2-MSM-tests branch April 15, 2026 09:26
@kwxm
Copy link
Copy Markdown
Contributor Author

kwxm commented Apr 17, 2026

@mkoura Do these tests work OK now? I tried running them on my own machine and still got a failure, but I may have done something wrong.

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.

2 participants