Skip to content

Commit

Permalink
Run unit tests concurrently in CI (microsoft#6314)
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou authored Jun 28, 2024
1 parent e269bd5 commit 8f7689c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,15 @@ jobs:
rm -rf /github/home/.cache
mkdir -p /github/home/.cache
export ASAN_SYMBOLIZER_PATH=$(realpath /usr/bin/llvm-symbolizer-15)
# Unit tests
./tests.sh --output-on-failure -L unit -j$(nproc --all)
# All other acceptably fast tests, mostly end-to-end
./tests.sh --timeout 360 --output-on-failure -LE "benchmark|perf|protocolstest|vegeta|suite|unit"
# Partitions tests
./tests.sh --timeout 360 --output-on-failure -LE "benchmark|perf|protocolstest|vegeta|suite"
shell: bash
if: "${{ matrix.platform.name != 'snp' }}" # Needs 1ES Pool support

- name: "Partitions Test ${{ matrix.platform.name }}"
run: |
set -ex
cd build
./tests.sh --timeout 240 --output-on-failure -L partitions -C partitions
shell: bash
if: "${{ matrix.platform.name != 'snp' }}" # Needs 1ES Pool support

- name: "Upload logs for ${{ matrix.platform.name }}"
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion cmake/common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function(add_unit_test name)
set_property(
TEST ${name}
APPEND
PROPERTY LABELS unit_test
PROPERTY LABELS unit
)

set_property(
Expand Down

0 comments on commit 8f7689c

Please sign in to comment.