From 24fc55cb542bd5fa63ffe1188bdf2fd59c1045d8 Mon Sep 17 00:00:00 2001 From: Cijo Thomas Date: Fri, 24 May 2024 09:35:14 -0700 Subject: [PATCH 1/4] Try improve CI tests --- scripts/test.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index cd02a14994..fdf4446fd1 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -2,13 +2,7 @@ set -eu -cargo test --workspace --all-features "$@" -- --test-threads=1 +cargo test --workspace --all-features # See https://github.com/rust-lang/cargo/issues/5364 cargo test --manifest-path=opentelemetry/Cargo.toml --no-default-features - -# Run global tracer provider test in single thread -cargo test --manifest-path=opentelemetry/Cargo.toml --all-features -- --ignored --test-threads=1 - -cargo test --manifest-path=opentelemetry/Cargo.toml --all-features -cargo test --manifest-path=opentelemetry-zipkin/Cargo.toml --all-features From f7126f1b1c95faf942ff4b16d8b96e1b8cce73c6 Mon Sep 17 00:00:00 2001 From: Cijo Thomas Date: Fri, 24 May 2024 09:48:12 -0700 Subject: [PATCH 2/4] echo --- scripts/test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/test.sh b/scripts/test.sh index fdf4446fd1..96c163cd34 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -2,7 +2,9 @@ set -eu +echo "Running tests for all packages in workspace with --all-features" cargo test --workspace --all-features # See https://github.com/rust-lang/cargo/issues/5364 +echo "Running tests for opentelemetry package with --no-default-features" cargo test --manifest-path=opentelemetry/Cargo.toml --no-default-features From 48bce314d610401e7ee9a8da11f89307a57289ef Mon Sep 17 00:00:00 2001 From: Cijo Thomas Date: Fri, 24 May 2024 09:52:15 -0700 Subject: [PATCH 3/4] run ignored --- scripts/test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/test.sh b/scripts/test.sh index 96c163cd34..5eb6aa8125 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -8,3 +8,7 @@ cargo test --workspace --all-features # See https://github.com/rust-lang/cargo/issues/5364 echo "Running tests for opentelemetry package with --no-default-features" cargo test --manifest-path=opentelemetry/Cargo.toml --no-default-features + +# Run global tracer provider test in single thread +echo "Running global tracer provider for opentelemetry-sdk package with single thread." +cargo test --manifest-path=opentelemetry-sdk/Cargo.toml --all-features -- --ignored --test-threads=1 From de4a62ccd40834dad8819d593bd03a5ec14d4b16 Mon Sep 17 00:00:00 2001 From: Cijo Thomas Date: Fri, 24 May 2024 10:00:16 -0700 Subject: [PATCH 4/4] fix ci --- scripts/test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index 5eb6aa8125..dfcb925659 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -10,5 +10,7 @@ echo "Running tests for opentelemetry package with --no-default-features" cargo test --manifest-path=opentelemetry/Cargo.toml --no-default-features # Run global tracer provider test in single thread -echo "Running global tracer provider for opentelemetry-sdk package with single thread." -cargo test --manifest-path=opentelemetry-sdk/Cargo.toml --all-features -- --ignored --test-threads=1 +# //TODO: This tests were not running for a while. Need to find out how to run +# run them. Using --ignored will run other tests as well, so that cannot be used. +# echo "Running global tracer provider for opentelemetry-sdk package with single thread." +# cargo test --manifest-path=opentelemetry-sdk/Cargo.toml --all-features -- --test-threads=1