From 122fa9b7e25a367e42f99274f9ae7db5962e8557 Mon Sep 17 00:00:00 2001 From: Edmund Kump Date: Fri, 28 Jun 2024 15:45:26 -0400 Subject: [PATCH] update github test workflows to run tracing integration tests Right now we only want to run these tests on ubuntu. We may expand to other platforms in the future if necessary. --- .github/workflows/test.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 98960ccda..feeba178b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,16 +50,23 @@ jobs: swap-storage: true - name: "[${{ steps.rust-version.outputs.version}}] cargo build --workspace --verbose" run: cargo build --workspace --verbose - - name: "[${{ steps.rust-version.outputs.version}}] cargo nextest run --workspace --profile ci --verbose" + # exclude tracing integration tests from this run. They are executed in a separate step. + - name: "[${{ steps.rust-version.outputs.version}}] cargo nextest run --workspace --profile ci --verbose -E '!test(tracing_integration_tests::)'" # Run doc tests with cargo test and run tests with nextest and generate junit.xml - run: cargo test --workspace --doc --verbose && cargo nextest run --workspace --profile ci --verbose + run: cargo test --workspace --doc --verbose && cargo nextest run --workspace --profile ci --verbose -E '!test(tracing_integration_tests::)' env: RUST_BACKTRACE: 1 - - name: "[${{ steps.rust-version.outputs.version}}] RUSTFLAGS=\"-C prefer-dynamic\" cargo nextest run --package test_spawn_from_lib --features prefer-dynamic" - run: cargo nextest run --package test_spawn_from_lib --features prefer-dynamic + - name: "[${{ steps.rust-version.outputs.version}}] RUSTFLAGS=\"-C prefer-dynamic\" cargo nextest run --package test_spawn_from_lib --features prefer-dynamic -E '!test(tracing_integration_tests::)'" + run: cargo nextest run --package test_spawn_from_lib --features prefer-dynamic -E '!test(tracing_integration_tests::)' env: RUSTFLAGS: "-C prefer-dynamic" RUST_BACKTRACE: 1 + # we only want to run tracing integration tests on ubuntu at the moment + - name: "[${{ steps.rust-version.outputs.version}}] Tracing integration tests cargo nextest run --workspace --profile ci --verbose -E 'test(tracing_integration_tests::)'" + if: runner.os == 'Linux' + run: cargo nextest run --workspace --profile ci --verbose -E 'test(tracing_integration_tests::)' + env: + RUST_BACKTRACE: 1 - name: Report Test Results if: success() || failure() uses: mikepenz/action-junit-report@v4 @@ -203,8 +210,8 @@ jobs: rust_version: cross-centos7 - run: cargo install cross || true - run: cross build --workspace --target x86_64-unknown-linux-gnu - - run: cross test --workspace --target x86_64-unknown-linux-gnu -- --skip "::single_threaded_tests::" - - run: cross test --workspace --target x86_64-unknown-linux-gnu --exclude bin_tests -- --skip "::tests::" --skip "::api_tests::" --test-threads 1 + - run: cross test --workspace --target x86_64-unknown-linux-gnu -- --skip "::single_threaded_tests::" --skip "tracing_integration_tests::" + - run: cross test --workspace --target x86_64-unknown-linux-gnu --exclude bin_tests -- --skip "::tests::" --skip "::api_tests::" --skip "tracing_integration_tests::" --test-threads 1 ffi_bake: strategy: