From c33ce4c6f693bb52e8b9d1eff54a7e1177d02792 Mon Sep 17 00:00:00 2001 From: Oleksandr Poliakov Date: Fri, 21 Nov 2025 11:19:32 -0800 Subject: [PATCH] CSHARP-5788: Replace cake with dotnet cli scripts --- evergreen/build-packages.sh | 2 +- evergreen/evergreen.yml | 2 +- evergreen/run-atlas-connectivity-tests.sh | 2 +- evergreen/run-atlas-search-index-helpers-test.sh | 2 +- evergreen/run-atlas-search-test.sh | 2 +- evergreen/run-csfle-azure-tests.sh | 2 +- evergreen/run-csfle-gcp-tests.sh | 2 +- evergreen/run-gssapi-auth-tests.sh | 2 +- evergreen/run-load-balancer-tests.sh | 2 +- evergreen/run-mongodb-aws-test.sh | 2 +- evergreen/run-mongodb-oidc-tests.sh | 2 +- evergreen/run-plain-auth-tests.sh | 2 +- evergreen/run-smoke-tests.sh | 2 +- evergreen/run-tests.sh | 2 +- evergreen/run-unit-tests.sh | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/evergreen/build-packages.sh b/evergreen/build-packages.sh index ea6d63462d6..571ff6cebc7 100644 --- a/evergreen/build-packages.sh +++ b/evergreen/build-packages.sh @@ -12,5 +12,5 @@ fi echo Creating nuget package... dotnet clean ./CSharpDriver.sln -. ./evergreen/compile-sources.sh +./evergreen/compile-sources.sh dotnet pack ./CSharpDriver.sln --no-build -o ./artifacts/nuget -c Release -p:Version="$PACKAGE_VERSION" --include-symbols -p:SymbolPackageFormat=snupkg -p:ContinuousIntegrationBuild=true diff --git a/evergreen/evergreen.yml b/evergreen/evergreen.yml index ad8995c2704..b807869d465 100644 --- a/evergreen/evergreen.yml +++ b/evergreen/evergreen.yml @@ -581,7 +581,7 @@ functions: echo "This platform does not support the ECS auth test, skipping..." exit 0 fi - . ./evergreen/compile-sources.sh + ./evergreen/compile-sources.sh echo "Project Directory: $PROJECT_DIRECTORY" # SRC_DIRECTORY is workaround since EG_TOOLS expects "src" folder as a root SRC_DIRECTORY=$(dirname $PROJECT_DIRECTORY)/src diff --git a/evergreen/run-atlas-connectivity-tests.sh b/evergreen/run-atlas-connectivity-tests.sh index 72e20940b6d..5ec9d8c3d60 100755 --- a/evergreen/run-atlas-connectivity-tests.sh +++ b/evergreen/run-atlas-connectivity-tests.sh @@ -8,5 +8,5 @@ set -o errexit # Exit the script with error if any of the commands fail # Provision the correct connection string and set up SSL if needed for var in TMP TEMP NUGET_PACKAGES NUGET_HTTP_CACHE_PATH APPDATA; do setx $var z:\\data\\tmp; export $var=z:\\data\\tmp; done -. ./evergreen/compile-sources.sh +./evergreen/compile-sources.sh powershell.exe .\\build.ps1 --target TestAtlasConnectivity diff --git a/evergreen/run-atlas-search-index-helpers-test.sh b/evergreen/run-atlas-search-index-helpers-test.sh index d90d1234852..b93ef38e8f3 100644 --- a/evergreen/run-atlas-search-index-helpers-test.sh +++ b/evergreen/run-atlas-search-index-helpers-test.sh @@ -13,5 +13,5 @@ echo "Running Atlas Search Index Helpers driver tests" export ATLAS_SEARCH_INDEX_HELPERS_TESTS_ENABLED=true -. ./evergreen/compile-sources.sh +./evergreen/compile-sources.sh ./build.sh --target=TestAtlasSearchIndexHelpers diff --git a/evergreen/run-atlas-search-test.sh b/evergreen/run-atlas-search-test.sh index 3e029cf1c71..f9c2f1a09d6 100644 --- a/evergreen/run-atlas-search-test.sh +++ b/evergreen/run-atlas-search-test.sh @@ -13,5 +13,5 @@ echo "Running Atlas Search driver tests" export ATLAS_SEARCH_TESTS_ENABLED=true -. ./evergreen/compile-sources.sh +./evergreen/compile-sources.sh powershell.exe .\\build.ps1 --target=TestAtlasSearch diff --git a/evergreen/run-csfle-azure-tests.sh b/evergreen/run-csfle-azure-tests.sh index 5ed9360dfd7..3faf76427f0 100644 --- a/evergreen/run-csfle-azure-tests.sh +++ b/evergreen/run-csfle-azure-tests.sh @@ -24,5 +24,5 @@ export CSFLE_AZURE_KMS_TESTS_ENABLED=true export FRAMEWORK=net6.0 . ./evergreen/install-dotnet.sh -. ./evergreen/compile-sources.sh +./evergreen/compile-sources.sh . ./build.sh --target=TestCsfleWithAzureKms diff --git a/evergreen/run-csfle-gcp-tests.sh b/evergreen/run-csfle-gcp-tests.sh index b7cbfdda62e..d75e16db087 100644 --- a/evergreen/run-csfle-gcp-tests.sh +++ b/evergreen/run-csfle-gcp-tests.sh @@ -17,5 +17,5 @@ export CSFLE_GCP_KMS_TESTS_ENABLED=true export FRAMEWORK=net6.0 . ./evergreen/install-dotnet.sh -. ./evergreen/compile-sources.sh +./evergreen/compile-sources.sh . ./build.sh --target=TestCsfleWithGcpKms diff --git a/evergreen/run-gssapi-auth-tests.sh b/evergreen/run-gssapi-auth-tests.sh index ccbc016e7f2..b4afa14d277 100755 --- a/evergreen/run-gssapi-auth-tests.sh +++ b/evergreen/run-gssapi-auth-tests.sh @@ -29,7 +29,7 @@ if [ "Windows_NT" = "$OS" ]; then export $var=z:\\data\\tmp done - . ./evergreen/compile-sources.sh + ./evergreen/compile-sources.sh powershell.exe .\\build.ps1 --target TestGssapi else echo "Setting krb5 config file" diff --git a/evergreen/run-load-balancer-tests.sh b/evergreen/run-load-balancer-tests.sh index 71dd6cb3502..c2dd89ebdac 100644 --- a/evergreen/run-load-balancer-tests.sh +++ b/evergreen/run-load-balancer-tests.sh @@ -34,5 +34,5 @@ export MONGODB_URI_WITH_MULTIPLE_MONGOSES=${MULTI_MONGOS_LB_URI} # show test output set -x -. ./evergreen/compile-sources.sh +./evergreen/compile-sources.sh ./build.sh --target TestLoadBalanced diff --git a/evergreen/run-mongodb-aws-test.sh b/evergreen/run-mongodb-aws-test.sh index 78fbc525ada..5ce6966ee10 100755 --- a/evergreen/run-mongodb-aws-test.sh +++ b/evergreen/run-mongodb-aws-test.sh @@ -41,7 +41,7 @@ export AWS_TESTS_ENABLED=true # show test output set -x -. ./evergreen/compile-sources.sh +./evergreen/compile-sources.sh if [[ "$OS" =~ Windows|windows ]]; then powershell.exe .\\build.ps1 --target=TestAwsAuthentication else diff --git a/evergreen/run-mongodb-oidc-tests.sh b/evergreen/run-mongodb-oidc-tests.sh index 1a455810ab4..482ea8e0db6 100644 --- a/evergreen/run-mongodb-oidc-tests.sh +++ b/evergreen/run-mongodb-oidc-tests.sh @@ -48,7 +48,7 @@ fi export OIDC_ENV=$OIDC_ENV export MONGODB_URI=$MONGODB_URI -. ./evergreen/compile-sources.sh +./evergreen/compile-sources.sh if [ "Windows_NT" = "$OS" ]; then powershell.exe .\\build.ps1 --target "TestMongoDbOidc" else diff --git a/evergreen/run-plain-auth-tests.sh b/evergreen/run-plain-auth-tests.sh index 2a94927268d..6b0e6ff6f73 100755 --- a/evergreen/run-plain-auth-tests.sh +++ b/evergreen/run-plain-auth-tests.sh @@ -19,7 +19,7 @@ fi export MONGODB_URI="${MONGODB_URI}" export PLAIN_AUTH_TESTS_ENABLED=true -. ./evergreen/compile-sources.sh +./evergreen/compile-sources.sh if [[ "$OS" =~ Windows|windows ]]; then powershell.exe \ '.\build.ps1 --target TestPlainAuthentication' diff --git a/evergreen/run-smoke-tests.sh b/evergreen/run-smoke-tests.sh index e0c3313faa3..3e96a4cc415 100644 --- a/evergreen/run-smoke-tests.sh +++ b/evergreen/run-smoke-tests.sh @@ -11,6 +11,6 @@ fi . ./evergreen/append-myget-package-source.sh export DRIVER_PACKAGE_VERSION="${DRIVER_PACKAGE_VERSION}" -. ./evergreen/compile-sources.sh "$SMOKE_TESTS_PROJECT" +./evergreen/compile-sources.sh "$SMOKE_TESTS_PROJECT" dotnet test "$SMOKE_TESTS_PROJECT" -c Release --no-build -f "$FRAMEWORK" --results-directory ./build/test-results --logger "junit;verbosity=detailed;LogFileName=TEST-{assembly}.xml;FailureBodyFormat=Verbose" --logger "console;verbosity=detailed" diff --git a/evergreen/run-tests.sh b/evergreen/run-tests.sh index ea9f44678e4..cb7ae1755cc 100755 --- a/evergreen/run-tests.sh +++ b/evergreen/run-tests.sh @@ -141,7 +141,7 @@ if [ -f "$DRIVERS_TOOLS/.evergreen/csfle/secrets-export.sh" ]; then source $DRIVERS_TOOLS/.evergreen/csfle/secrets-export.sh fi -. ./evergreen/compile-sources.sh +./evergreen/compile-sources.sh if [[ "$OS" =~ Windows|windows ]]; then powershell.exe .\\build.ps1 --target=$TARGET else diff --git a/evergreen/run-unit-tests.sh b/evergreen/run-unit-tests.sh index c927a3abde9..dd5cf66df17 100644 --- a/evergreen/run-unit-tests.sh +++ b/evergreen/run-unit-tests.sh @@ -7,5 +7,5 @@ if [ "$FRAMEWORK" = "netstandard2.1" ]; then FRAMEWORK="netcoreapp3.1" fi -. ./evergreen/compile-sources.sh +./evergreen/compile-sources.sh dotnet test -c Release --no-build --filter "Category!=Integration" -f "$FRAMEWORK" --results-directory ./build/test-results --logger "junit;verbosity=detailed;LogFileName=TEST-{assembly}.xml;FailureBodyFormat=Verbose" --logger "console;verbosity=detailed"