зеркало из https://github.com/microsoft/CCF.git
Split a Virtual Tracing Build (#5656)
This commit is contained in:
Родитель
5e4f6d348c
Коммит
dd8976d3be
|
@ -32,7 +32,7 @@ jobs:
|
|||
|
||||
- template: ninja.yml
|
||||
parameters:
|
||||
cmake_args: "${{ parameters.cmake_args }}"
|
||||
ninja_targets: "${{ parameters.ninja_targets }}"
|
||||
|
||||
- ${{ if not(and(eq(parameters.suffix, 'Release'), eq(parameters.target, 'SNPCC'))) }}:
|
||||
- template: test.yml
|
||||
|
@ -46,7 +46,7 @@ jobs:
|
|||
parameters:
|
||||
suite_name_suffix: "${{ parameters.target }}_${{ parameters.suffix }}"
|
||||
|
||||
- ${{ if eq(parameters.suffix, 'Debug') }}:
|
||||
- ${{ if eq(parameters.suffix, 'Tracing') }}:
|
||||
- template: trace_validation.yml
|
||||
|
||||
- ${{ if eq(parameters.suffix, 'ScanBuild') }}:
|
||||
|
|
|
@ -20,27 +20,39 @@ parameters:
|
|||
common:
|
||||
cmake_args: ""
|
||||
cmake_env: ""
|
||||
ninja_targets: "default"
|
||||
Virtual:
|
||||
cmake_args: "-DCOMPILE_TARGET=virtual"
|
||||
cmake_env: "CC=`which clang-15` CXX=`which clang++-15`"
|
||||
ninja_targets: "default"
|
||||
SGX:
|
||||
cmake_args: "-DCOMPILE_TARGET=sgx"
|
||||
cmake_env: ""
|
||||
ninja_targets: "default"
|
||||
SNPCC:
|
||||
cmake_args: "-DCOMPILE_TARGET=snp -DLVI_MITIGATIONS=OFF -DLONG_TESTS=OFF"
|
||||
cmake_env: "CC=`which clang-15` CXX=`which clang++-15`"
|
||||
ninja_targets: "default"
|
||||
debug:
|
||||
cmake_args: "-DCMAKE_BUILD_TYPE=Debug -DLVI_MITIGATIONS=OFF -DVERBOSE_LOGGING=ON -DCCF_RAFT_TRACING=ON"
|
||||
cmake_args: "-DCMAKE_BUILD_TYPE=Debug -DLVI_MITIGATIONS=OFF -DVERBOSE_LOGGING=ON"
|
||||
cmake_env: ""
|
||||
ninja_targets: "default"
|
||||
perf:
|
||||
cmake_args: '-DBUILD_UNIT_TESTS=OFF -DBUILD_TPCC=ON -DDISTRIBUTE_PERF_TESTS="-n local://localhost -n local://localhost"'
|
||||
cmake_env: ""
|
||||
ninja_targets: "default"
|
||||
release:
|
||||
cmake_args: "-DCLIENT_PROTOCOLS_TEST=ON -DLONG_TESTS=ON"
|
||||
cmake_env: ""
|
||||
ninja_targets: "default"
|
||||
unsafe:
|
||||
cmake_args: "-DLVI_MITIGATIONS=OFF -DVERBOSE_LOGGING=ON -DUNSAFE_VERSION=ON"
|
||||
cmake_env: ""
|
||||
ninja_targets: "default"
|
||||
tracing:
|
||||
cmake_args: "-DCCF_RAFT_TRACING=ON"
|
||||
cmake_env: ""
|
||||
ninja_targets: "raft_driver"
|
||||
|
||||
test:
|
||||
Virtual:
|
||||
|
@ -53,6 +65,8 @@ parameters:
|
|||
ctest_args: '-LE "benchmark|perf"'
|
||||
virtual_perf:
|
||||
ctest_args: '-L "perf|vegeta"'
|
||||
tracing:
|
||||
ctest_args: '-L "raft_scenario"'
|
||||
|
||||
jobs:
|
||||
# Debug
|
||||
|
@ -69,6 +83,20 @@ jobs:
|
|||
depends_on: configure
|
||||
installExtendedTestingTools: false
|
||||
|
||||
# Tracing
|
||||
- template: common.yml
|
||||
parameters:
|
||||
target: "Virtual"
|
||||
env: ${{ parameters.env.Virtual }}
|
||||
cmake_args: "${{ parameters.build.common.cmake_args }} ${{ parameters.build.debug.cmake_args }} ${{ parameters.build.Virtual.cmake_args }} ${{ parameters.build.tracing.cmake_args }}"
|
||||
cmake_env: "${{ parameters.build.Virtual.cmake_env }}"
|
||||
suffix: "Tracing"
|
||||
artifact_name: "Virtual_Tracing"
|
||||
ctest_filter: "${{ parameters.test.tracing.ctest_args }}"
|
||||
depends_on: configure
|
||||
installExtendedTestingTools: false
|
||||
ninja_targets: "${{ parameters.build.tracing.ninja_targets }}"
|
||||
|
||||
# Performance
|
||||
- ${{ if eq(parameters.perf_tests, 'run') }}:
|
||||
- template: common.yml
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
steps:
|
||||
- script: ninja
|
||||
- script: ninja ${{ parameters.ninja_targets }}
|
||||
displayName: Ninja
|
||||
workingDirectory: build
|
||||
|
|
|
@ -17,7 +17,7 @@ steps:
|
|||
workingDirectory: build
|
||||
|
||||
# Only run privileged tests in container environment
|
||||
- ${{ if ne(parameters.suffix, 'Perf') }}:
|
||||
- ${{ if not( or( eq(parameters.suffix, 'Perf'), eq(parameters.suffix, 'Tracing'))) }}:
|
||||
- script: |
|
||||
set -ex
|
||||
sudo bash -c "source env/bin/activate && ctest -VV --timeout ${{ parameters.ctest_timeout }} --no-compress-output -L partitions -C partitions"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
-^- ___ ___
|
||||
(- -) (= =) | Y & +--?
|
||||
( V ) / . \ | +---=---'
|
||||
/--x-m- /--n-n---xXx--/--yY------
|
||||
/--x-m- /--n-n---xXx--/--yY------>>
|
||||
|
|
Загрузка…
Ссылка в новой задаче