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

[5.0 -> main] Disable EOS VM OC's subjective compilation limits in unit tests #1874

Merged
merged 8 commits into from
Nov 7, 2023

Conversation

linh2931
Copy link
Member

@linh2931 linh2931 commented Nov 7, 2023

When EOS VM OC is used in unit tests, contract actions are not dispatched until EOS VM OC has finished compilation. If a unit test violates EOS VM OC's subjective compilation limits, the unit test will fail. This is most notably problematic for EOS EVM because EOS EVM's exhaustive tests run afoul of OC's subjective limits. Another problem with OC's subjective limits are they prevent ASAN from being used, because ASAN's 16TB of virtual memory usage is flagged by OC's subjective limits.

This PR disables OC subjective limits: cpu limits, vm limits, stack size limit, and generated code size limit in unit tests. It also adds unit tests to make sure limits to work properly.

Merges release/5.0 into main including #1843

Resolves #1573

@linh2931 linh2931 merged commit 299f80a into main Nov 7, 2023
29 checks passed
@linh2931 linh2931 deleted the disable_oc_subj_limits_main branch November 7, 2023 23:14
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.

Tests: disable EOS VM OC's subjective limits during unit tests
3 participants