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

SGX: Re-run tests again as part of GHA. #579

Merged
merged 3 commits into from
Feb 14, 2022
Merged

Conversation

csegarragonz
Copy link
Collaborator

@csegarragonz csegarragonz commented Feb 11, 2022

Fix SGX execution, broken after the removal of checkSgxSetup() in faabric.

Make sure we are running SGX tests as part of our GHA pipelines.

@csegarragonz csegarragonz self-assigned this Feb 11, 2022
@@ -25,7 +25,7 @@ def cmake(
perf=False,
prof=False,
sanitiser="None",
nosgx=True,
nosgx=False,
Copy link
Collaborator Author

@csegarragonz csegarragonz Feb 14, 2022

Choose a reason for hiding this comment

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

If we set this by default to True, I have found no way to re-enable SGX from the CLI.

I think this is because, as a Boolean value, it is interpreted as a flag. You can't set a Flag to False (i.e. not-Flag). Either you set it, or you don't.

Therefore, both setting the flag and not setting it achieve the same result, disabling SGX, and there is no way to enable it.

I suggest we set it to False by default, and then if we don't want SGX we just run --nosgx. Further, we need to build with SGX by default for the tests to run.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, sorry I think I meant to set it to --nosgx=False by default anyway. As you say, these flags have to have a default of false.

@csegarragonz csegarragonz changed the title sgx: fix test for running a single function SGX: Re-run tests again as part of GHA. Feb 14, 2022
@csegarragonz csegarragonz added the wasm/wamr-sgx SGX related stuff. label Feb 14, 2022
@csegarragonz csegarragonz requested review from Shillaker and removed request for Shillaker February 14, 2022 10:59
@csegarragonz csegarragonz merged commit bc17464 into main Feb 14, 2022
@csegarragonz csegarragonz deleted the single-function-sgx-test branch February 14, 2022 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasm/wamr-sgx SGX related stuff.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants