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] only use --eos-vm-oc-enable option in tests when OC is available, and tweak/fix location of its usage #1792

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

spoonincode
Copy link
Member

--eos-vm-oc-enable option is only available when EOS VM OC is supported. Using the option when OC is not supported results in this test getting wedged due to an unknown option being used.

This fixes the test getting wedged on ARM, but maybe is not ideal since ultimately it results in the same test being run twice in such a case (since --eos-vm-oc-enable=none is always implied). Oh well.

But while in here I noticed something else sus: there is a with_3_read_only_threads & with_3_read_only_threads_no_tierup, and then a with_8_read_only_threads & with_8_read_only_threads_no_tierup. But --eos-vm-oc-enable=none is passed for both "8" cases! I think the intention was --eos-vm-oc-enable=none should be passed for 3_no_tierup and 8_no_tierup, so I've tweaked it to be that way now.

@@ -227,7 +229,9 @@ BOOST_AUTO_TEST_CASE(with_8_read_only_threads) {
BOOST_AUTO_TEST_CASE(with_8_read_only_threads_no_tierup) {
std::vector<const char*> specific_args = { "-p", "eosio", "-e",
"--read-only-threads=8",
#ifdef EOSIO_EOS_VM_OC_RUNTIME_ENABLED
Copy link
Contributor

@greg7mdp greg7mdp Oct 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not have the ifdef EOSIO_EOS_VM_OC_RUNTIME_ENABLED enclose the whole BOOST_AUTO_TEST_CASE case?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still want this test to run on ARM without "--eos-vm-oc-enable=none"

Copy link
Contributor

@greg7mdp greg7mdp Oct 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't we run the same test twice then (without OC)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@spoonincode spoonincode merged commit 6d42f3f into release/5.0 Oct 18, 2023
21 checks passed
@spoonincode spoonincode deleted the ocenable_rotrx_5x branch October 18, 2023 21: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.

None yet

4 participants