Skip to content

[1.1.3] Test fix: Decrease max_block_cpu_usage and max_transaction_cpu_usage values #1287

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

Merged
merged 6 commits into from
Apr 3, 2025

Conversation

heifner
Copy link
Member

@heifner heifner commented Mar 28, 2025

See #1151 (comment) for a detailed discussion of the test failure scenario.
Looks like #1172 didn't change all tests to use mainnet values. Some still run with 475ms trx time.

Ideally it would be nice to run ci/cd with EOS Mainnet values for max_block_cpu_usage and max_transaction_cpu_usage. However, this puts us in a situation where tests will be flakey because transactions hit the time limit. See for example:
https://github.com/AntelopeIO/spring/actions/runs/14131407538/job/39593258845
https://github.com/AntelopeIO/spring/actions/runs/14131407538/job/39593259641
https://github.com/AntelopeIO/spring/actions/runs/14131694179/job/39594280368

This PR reduces the value to something hopefully large enough for ci/cd without getting into the pathological case of #1151 (comment)

Note: read-only trx tests were failing on this PR because of an issue with read-only trxs, see #1286. Fixed by #1288 which has been merged into this PR.

Resolves #1278

@heifner heifner added the OCI Work exclusive to OCI team label Mar 28, 2025
@heifner heifner linked an issue Mar 28, 2025 that may be closed by this pull request
@heifner heifner changed the title [1.1.3] Test fix: Use mainnet values for max_block_cpu_usage and max_transaction_cpu_usage [1.1.3] Test fix: Decrease max_block_cpu_usage and max_transaction_cpu_usage values Mar 28, 2025
[1.1.3] Ignore block cpu limit for read-only trxs
@ericpassmore
Copy link
Contributor

Note:start
category: Tests
component: Internal
summary: During tests reduce configured cpu values to provide more cpu time for test transactions.
Note:end

@heifner heifner merged commit c3f80b3 into release/1.1 Apr 3, 2025
36 checks passed
@heifner heifner deleted the GH-1278-test-trx-time branch April 3, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test failure: nodeos_short_fork_take_over_test
4 participants