Skip to content

Conversation

@Shillaker
Copy link
Collaborator

@Shillaker Shillaker commented Feb 16, 2022

When running sanitisers we switch off SGX, but it seems as though the logic switches of SGX even when we're not running sanitisers. This means that the enclave directory wasn't getting compiled, and tests weren't running in the None part of the matrix (i.e. tests were not running in GHA at all), and compilation errors were only picked up in the dist-test build.

It also looks like the build isn't finding SGX in the GHA environment, see the output of the conan-cache step in this run, which now prints "SGX not found" in step to build dev dependencies.

@Shillaker Shillaker self-assigned this Feb 16, 2022
@Shillaker Shillaker changed the title Only disable SGX when sanitisers on Only disable SGX *only* when sanitisers on Feb 16, 2022
@Shillaker Shillaker changed the title Only disable SGX *only* when sanitisers on Disable SGX *only* when sanitisers on Feb 16, 2022
@Shillaker Shillaker removed the request for review from csegarragonz February 16, 2022 11:18
@Shillaker Shillaker removed their assignment Feb 16, 2022
@csegarragonz csegarragonz force-pushed the sgx-run branch 3 times, most recently from 4f56145 to a2eef1a Compare February 16, 2022 16:57
@csegarragonz
Copy link
Collaborator

It looks as though it was not finding SGX because it was not actually trying to find the package, as FAASM_SGX was set to 0. I am now setting it explicitely to 1 if no sanitiser is set.

@Shillaker Shillaker requested review from csegarragonz and removed request for csegarragonz February 17, 2022 08:16
@Shillaker Shillaker merged commit 3604542 into main Feb 17, 2022
@Shillaker Shillaker deleted the sgx-run branch February 17, 2022 08:17
@csegarragonz csegarragonz mentioned this pull request Feb 21, 2022
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.

3 participants