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

oasis-test-runner: Fix sgx-only fixture #5825

Closed
wants to merge 1 commit into from

Conversation

matevz
Copy link
Member

@matevz matevz commented Aug 23, 2024

Fixes oasis-test-runner and oasis-net-runner crashes in case you want to use SGX binary without elf.

Copy link

netlify bot commented Aug 23, 2024

Deploy Preview for oasisprotocol-oasis-core canceled.

Name Link
🔨 Latest commit cd96a31
🔍 Latest deploy log https://app.netlify.com/sites/oasisprotocol-oasis-core/deploys/66c88a19e01e0b00085f33b3

comp := &bundle.Component{
Kind: compCfg.Kind,
Executable: elfBin,
}

if rt.teeHardware == node.TEEHardwareInvalid {
Copy link
Member

Choose a reason for hiding this comment

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

Change to a switch statement.

@@ -270,19 +270,21 @@ func (rt *Runtime) toRuntimeBundle(deploymentIndex int) (*bundle.Bundle, error)
elfBin := fmt.Sprintf("component-%d-%s.elf", i, compCfg.Kind)
sgxBin := fmt.Sprintf("component-%d-%s.sgx", i, compCfg.Kind)

binBuf, err := os.ReadFile(compCfg.Binaries[node.TEEHardwareInvalid])
Copy link
Member

Choose a reason for hiding this comment

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

I don't think bundles without the ELF part are currently supported (see #5780).

@matevz
Copy link
Member Author

matevz commented Aug 23, 2024

SGX binaries without ELF are not supported. Closing.

@matevz matevz closed this Aug 23, 2024
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.

2 participants