Skip to content

Conversation

@sanych-sun
Copy link
Member

Need this changes to fix failed AWS-auth variants

@sanych-sun sanych-sun requested a review from a team as a code owner November 21, 2025 19:20
@sanych-sun sanych-sun added the chore Non–user-facing code changes (tests, build scripts, etc.). label Nov 21, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces the sourcing (. ./script) of compile-sources.sh with direct execution (./script) across multiple Evergreen CI scripts. The change appears to be part of a broader effort to migrate from Cake build scripts to dotnet CLI scripts, specifically to fix issues with AWS authentication variants.

Key changes:

  • Changed script invocation method from sourcing to direct execution for compile-sources.sh
  • Modified compile-sources.sh to handle optional project parameter and removed quote wrapping
  • Added temporary debug output in run-mongodb-aws-test.sh

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
evergreen/run-unit-tests.sh Changed from sourcing to executing compile-sources.sh
evergreen/run-tests.sh Changed from sourcing to executing compile-sources.sh
evergreen/run-smoke-tests.sh Changed from sourcing to executing compile-sources.sh
evergreen/run-plain-auth-tests.sh Changed from sourcing to executing compile-sources.sh
evergreen/run-mongodb-oidc-tests.sh Changed from sourcing to executing compile-sources.sh
evergreen/run-mongodb-aws-test.sh Changed from sourcing to executing compile-sources.sh and added debug output
evergreen/run-load-balancer-tests.sh Changed from sourcing to executing compile-sources.sh
evergreen/run-gssapi-auth-tests.sh Changed from sourcing to executing compile-sources.sh
evergreen/run-csfle-gcp-tests.sh Changed from sourcing to executing compile-sources.sh
evergreen/run-csfle-azure-tests.sh Changed from sourcing to executing compile-sources.sh
evergreen/run-atlas-search-test.sh Changed from sourcing to executing compile-sources.sh
evergreen/run-atlas-search-index-helpers-test.sh Changed from sourcing to executing compile-sources.sh
evergreen/run-atlas-connectivity-tests.sh Changed from sourcing to executing compile-sources.sh
evergreen/evergreen.yml Changed from sourcing to executing compile-sources.sh
evergreen/compile-sources.sh Made project parameter optional, removed quotes from variable references, and added debug output
evergreen/build-packages.sh Changed from sourcing to executing compile-sources.sh

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 15 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

fi

. ./evergreen/compile-sources.sh
./evergreen/compile-sources.sh
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing from sourcing (. ./evergreen/compile-sources.sh) to direct execution (./evergreen/compile-sources.sh) means environment variables set in compile-sources.sh will not be available in the current shell. If compile-sources.sh exports variables needed by the subsequent dotnet test command, those variables will be lost. Verify that compile-sources.sh doesn't set required environment variables, or revert to sourcing.

Suggested change
./evergreen/compile-sources.sh
. ./evergreen/compile-sources.sh

Copilot uses AI. Check for mistakes.
fi

. ./evergreen/compile-sources.sh
./evergreen/compile-sources.sh
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing from sourcing to direct execution means environment variables set in compile-sources.sh will not be available in the current shell. This could break the subsequent build.ps1 or build.sh execution if they depend on variables exported by compile-sources.sh. Verify that no required environment variables are lost with this change.

Suggested change
./evergreen/compile-sources.sh
source evergreen/compile-sources.sh

Copilot uses AI. Check for mistakes.

export DRIVER_PACKAGE_VERSION="${DRIVER_PACKAGE_VERSION}"
. ./evergreen/compile-sources.sh "$SMOKE_TESTS_PROJECT"
./evergreen/compile-sources.sh "$SMOKE_TESTS_PROJECT"
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing from sourcing to direct execution means environment variables set in compile-sources.sh will not be available in the current shell. If the subsequent dotnet test command relies on variables exported by compile-sources.sh, this change will break the test execution. Verify that compile-sources.sh doesn't set required environment variables.

Suggested change
./evergreen/compile-sources.sh "$SMOKE_TESTS_PROJECT"
. ./evergreen/compile-sources.sh "$SMOKE_TESTS_PROJECT"

Copilot uses AI. Check for mistakes.
export PLAIN_AUTH_TESTS_ENABLED=true

. ./evergreen/compile-sources.sh
./evergreen/compile-sources.sh
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing from sourcing to direct execution means environment variables set in compile-sources.sh will not be available in the current shell. This could break the subsequent build.ps1 or build.sh execution if they depend on variables exported by compile-sources.sh. Verify that no required environment variables are lost.

Suggested change
./evergreen/compile-sources.sh
source ./evergreen/compile-sources.sh

Copilot uses AI. Check for mistakes.
export MONGODB_URI=$MONGODB_URI

. ./evergreen/compile-sources.sh
./evergreen/compile-sources.sh
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing from sourcing to direct execution means environment variables set in compile-sources.sh will not be available in the current shell. This could break the subsequent build.ps1 or build.sh execution if they depend on variables exported by compile-sources.sh. Verify that no required environment variables are lost.

Suggested change
./evergreen/compile-sources.sh
source ./evergreen/compile-sources.sh

Copilot uses AI. Check for mistakes.
export ATLAS_SEARCH_TESTS_ENABLED=true

. ./evergreen/compile-sources.sh
./evergreen/compile-sources.sh
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing from sourcing to direct execution means environment variables set in compile-sources.sh will not be available in the current shell. This could break the subsequent build.ps1 execution if it depends on variables exported by compile-sources.sh. Verify that no required environment variables are lost.

Suggested change
./evergreen/compile-sources.sh
source ./evergreen/compile-sources.sh

Copilot uses AI. Check for mistakes.
export ATLAS_SEARCH_INDEX_HELPERS_TESTS_ENABLED=true

. ./evergreen/compile-sources.sh
./evergreen/compile-sources.sh
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing from sourcing to direct execution means environment variables set in compile-sources.sh will not be available in the current shell. This could break the subsequent build.sh execution if it depends on variables exported by compile-sources.sh. Verify that no required environment variables are lost.

Suggested change
./evergreen/compile-sources.sh
source ./evergreen/compile-sources.sh

Copilot uses AI. Check for mistakes.
# 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
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing from sourcing to direct execution means environment variables set in compile-sources.sh will not be available in the current shell. This could break the subsequent build.ps1 execution if it depends on variables exported by compile-sources.sh. Verify that no required environment variables are lost.

Suggested change
./evergreen/compile-sources.sh
. ./evergreen/compile-sources.sh

Copilot uses AI. Check for mistakes.
exit 0
fi
. ./evergreen/compile-sources.sh
./evergreen/compile-sources.sh
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing from sourcing to direct execution means environment variables set in compile-sources.sh will not be available in the current shell. The subsequent commands that use $PROJECT_DIRECTORY and $SRC_DIRECTORY may fail if compile-sources.sh sets or modifies these variables. Verify that no required environment variables are lost.

Suggested change
./evergreen/compile-sources.sh
. ./evergreen/compile-sources.sh

Copilot uses AI. Check for mistakes.

dotnet clean ./CSharpDriver.sln
. ./evergreen/compile-sources.sh
./evergreen/compile-sources.sh
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing from sourcing to direct execution means environment variables set in compile-sources.sh will not be available in the current shell. This could break the subsequent dotnet pack command if it depends on variables exported by compile-sources.sh. Verify that no required environment variables are lost.

Suggested change
./evergreen/compile-sources.sh
. ./evergreen/compile-sources.sh

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@BorisDog BorisDog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sanych-sun sanych-sun merged commit cf91a58 into mongodb:main Nov 21, 2025
46 of 48 checks passed
@sanych-sun sanych-sun deleted the csharp5788 branch November 21, 2025 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Non–user-facing code changes (tests, build scripts, etc.).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants