Skip to content

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
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 force-pushed the single-function-sgx-test branch from b289b0b to e860756 Compare February 14, 2022 09:53
@csegarragonz csegarragonz requested review from Shillaker and removed request for Shillaker February 14, 2022 10:59
@csegarragonz csegarragonz force-pushed the single-function-sgx-test branch from 0e46803 to 90157a4 Compare February 14, 2022 14:25
@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.

3 participants