Skip to content

Commit

Permalink
Merge pull request #5078 from oasisprotocol/peternose/internal/reorde…
Browse files Browse the repository at this point in the history
…r-e2e-tests

buildkite: Start intel sgx e2e test jobs sooner
  • Loading branch information
peternose authored Nov 30, 2022
2 parents 6cfa9f7 + 2e9b0ff commit cd20826
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions .buildkite/code.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,127 +192,127 @@ steps:
plugins:
<<: *docker_plugin

###############
# E2E test jobs
###############
- label: E2E tests
###########################
# E2E test jobs - intel-sgx
###########################
- label: E2E tests - intel-sgx (basic)
depends_on:
- "build-go"
- "build-rust-runtime-loader"
- "build-rust-runtimes"
parallelism: 30
timeout_in_minutes: 15
branches: "!master !stable/*"
parallelism: 2
timeout_in_minutes: 20
command:
- .buildkite/scripts/download_e2e_test_artifacts.sh
- .buildkite/scripts/test_e2e.sh
# Needed as the trust-root test rebuilds the enclave with embedded trust root data.
- cargo install --locked --path tools
- export CFLAGS_x86_64_fortanix_unknown_sgx="-isystem/usr/include/x86_64-linux-gnu -mlvi-hardening -mllvm -x86-experimental-lvi-inline-asm-hardening"
- export CC_x86_64_fortanix_unknown_sgx=clang-11
# Only run runtime scenarios as others do not use SGX.
- .buildkite/scripts/test_e2e.sh --scenario e2e/runtime/runtime-encryption --scenario e2e/runtime/trust-root/.+ --scenario e2e/runtime/keymanager-key-generation
artifact_paths:
- coverage-merged-e2e-*.txt
- /tmp/e2e/**/*.log
- /tmp/e2e/**/genesis.json
- /tmp/e2e/**/runtime_genesis.json
env:
# Unsafe flags needed as the trust-root test rebuilds the enclave with embedded trust root data.
OASIS_UNSAFE_SKIP_AVR_VERIFY: "1"
OASIS_UNSAFE_ALLOW_DEBUG_ENCLAVES: "1"
OASIS_E2E_COVERAGE: enable
# Since the trust-root scenarios are tested in SGX mode (for which they are actually relevant)
# no need to also test them in non-SGX mode in CI. Also exclude txsource-multi-short so that
# we ensure it runs only on non-SGX agents.
OASIS_EXCLUDE_E2E: e2e/runtime/trust-root/simple,e2e/runtime/trust-root/change,e2e/runtime/trust-root/change-fails,e2e/runtime/txsource-multi-short
TEST_BASE_DIR: /tmp
agents:
queue: intel-sgx
retry:
<<: *retry_agent_failure
plugins:
<<: *docker_plugin
<<: *docker_plugin_sgx

- label: E2E tests (txsource-multi-short)
- label: E2E tests - intel-sgx (full)
depends_on:
- "build-go"
- "build-rust-runtime-loader"
- "build-rust-runtimes"
timeout_in_minutes: 15
branches: master stable/*
parallelism: 20
timeout_in_minutes: 20
command:
- .buildkite/scripts/download_e2e_test_artifacts.sh
- .buildkite/scripts/test_e2e.sh --scenario e2e/runtime/txsource-multi-short
# Needed as the trust-root test rebuilds the enclave with embedded trust root data.
- cargo install --locked --path tools
# Only run runtime scenarios as others do not use SGX.
- .buildkite/scripts/test_e2e.sh --scenario e2e/runtime/.*
artifact_paths:
- coverage-merged-e2e-*.txt
- /tmp/e2e/**/*.log
- /tmp/e2e/**/genesis.json
- /tmp/e2e/**/runtime_genesis.json
env:
# Unsafe flags needed as the trust-root test rebuilds the enclave with embedded trust root data.
OASIS_UNSAFE_SKIP_AVR_VERIFY: "1"
OASIS_UNSAFE_ALLOW_DEBUG_ENCLAVES: "1"
OASIS_E2E_COVERAGE: enable
OASIS_EXCLUDE_E2E: e2e/runtime/txsource-multi,e2e/runtime/txsource-multi-short
TEST_BASE_DIR: /tmp
agents:
buildkite_agent_class: ephemeral # XXX: Use a dedicated tag instead.
queue: intel-sgx
retry:
<<: *retry_agent_failure
plugins:
<<: *docker_plugin
<<: *docker_plugin_sgx

###########################
# E2E test jobs - intel-sgx
###########################
- label: E2E tests - intel-sgx (basic)
###############
# E2E test jobs
###############
- label: E2E tests
depends_on:
- "build-go"
- "build-rust-runtime-loader"
- "build-rust-runtimes"
branches: "!master !stable/*"
parallelism: 2
timeout_in_minutes: 20
parallelism: 30
timeout_in_minutes: 15
command:
- .buildkite/scripts/download_e2e_test_artifacts.sh
# Needed as the trust-root test rebuilds the enclave with embedded trust root data.
- cargo install --locked --path tools
- export CFLAGS_x86_64_fortanix_unknown_sgx="-isystem/usr/include/x86_64-linux-gnu -mlvi-hardening -mllvm -x86-experimental-lvi-inline-asm-hardening"
- export CC_x86_64_fortanix_unknown_sgx=clang-11
# Only run runtime scenarios as others do not use SGX.
- .buildkite/scripts/test_e2e.sh --scenario e2e/runtime/runtime-encryption --scenario e2e/runtime/trust-root/.+ --scenario e2e/runtime/keymanager-key-generation
- .buildkite/scripts/test_e2e.sh
artifact_paths:
- coverage-merged-e2e-*.txt
- /tmp/e2e/**/*.log
- /tmp/e2e/**/genesis.json
- /tmp/e2e/**/runtime_genesis.json
env:
# Unsafe flags needed as the trust-root test rebuilds the enclave with embedded trust root data.
OASIS_UNSAFE_SKIP_AVR_VERIFY: "1"
OASIS_UNSAFE_ALLOW_DEBUG_ENCLAVES: "1"
OASIS_E2E_COVERAGE: enable
# Since the trust-root scenarios are tested in SGX mode (for which they are actually relevant)
# no need to also test them in non-SGX mode in CI. Also exclude txsource-multi-short so that
# we ensure it runs only on non-SGX agents.
OASIS_EXCLUDE_E2E: e2e/runtime/trust-root/simple,e2e/runtime/trust-root/change,e2e/runtime/trust-root/change-fails,e2e/runtime/txsource-multi-short
TEST_BASE_DIR: /tmp
agents:
queue: intel-sgx
retry:
<<: *retry_agent_failure
plugins:
<<: *docker_plugin_sgx
<<: *docker_plugin

- label: E2E tests - intel-sgx (full)
- label: E2E tests (txsource-multi-short)
depends_on:
- "build-go"
- "build-rust-runtime-loader"
- "build-rust-runtimes"
branches: master stable/*
parallelism: 20
timeout_in_minutes: 20
timeout_in_minutes: 15
command:
- .buildkite/scripts/download_e2e_test_artifacts.sh
# Needed as the trust-root test rebuilds the enclave with embedded trust root data.
- cargo install --locked --path tools
# Only run runtime scenarios as others do not use SGX.
- .buildkite/scripts/test_e2e.sh --scenario e2e/runtime/.*
- .buildkite/scripts/test_e2e.sh --scenario e2e/runtime/txsource-multi-short
artifact_paths:
- coverage-merged-e2e-*.txt
- /tmp/e2e/**/*.log
- /tmp/e2e/**/genesis.json
- /tmp/e2e/**/runtime_genesis.json
env:
# Unsafe flags needed as the trust-root test rebuilds the enclave with embedded trust root data.
OASIS_UNSAFE_SKIP_AVR_VERIFY: "1"
OASIS_UNSAFE_ALLOW_DEBUG_ENCLAVES: "1"
OASIS_E2E_COVERAGE: enable
OASIS_EXCLUDE_E2E: e2e/runtime/txsource-multi,e2e/runtime/txsource-multi-short
TEST_BASE_DIR: /tmp
agents:
queue: intel-sgx
buildkite_agent_class: ephemeral # XXX: Use a dedicated tag instead.
retry:
<<: *retry_agent_failure
plugins:
<<: *docker_plugin_sgx
<<: *docker_plugin

################################################
# E2E test - intel-sgx with IAS (only on master)
Expand Down
Empty file added .changelog/5078.trivial.md
Empty file.

0 comments on commit cd20826

Please sign in to comment.