Skip to content

Conversation

@sanych-sun
Copy link
Member

Removing cake from smoke tests.

Removing cake from smoke tests.
@sanych-sun sanych-sun requested a review from BorisDog November 19, 2025 23:22
@sanych-sun sanych-sun requested a review from a team as a code owner November 19, 2025 23:22
Copilot AI review requested due to automatic review settings November 19, 2025 23:22
@sanych-sun sanych-sun added the chore Non–user-facing code changes (tests, build scripts, etc.). label Nov 19, 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 removes Cake build tool dependencies from smoke tests and replaces them with dotnet CLI scripts. The smoke tests now use environment variables for package version management and have dedicated shell scripts for execution.

Key changes:

  • Replaced Cake-based smoke test execution with a dedicated run-smoke-tests.sh script
  • Introduced ValidatePackagesVersionTests class to verify package versions using environment variables
  • Refactored package reference configuration to use DRIVER_PACKAGE_VERSION environment variable

Reviewed Changes

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

Show a summary per file
File Description
ValidatePackagesVersionTests.cs New test class that validates package versions using environment variables instead of Cake
MongoDB.Driver.SmokeTests.Sdk.csproj Updated package/project references to use DRIVER_PACKAGE_VERSION environment variable
LoggingTests.cs Removed obsolete ValidateMongoDBPackageVersion() call
LibmongocryptTests.cs Removed obsolete ValidateMongoDBPackageVersion() call
InfrastructureUtilities.cs Removed ValidateMongoDBPackageVersion() method and unused imports
run-tests.sh Removed smoke test-specific NuGet configuration logic
run-smoke-tests.sh New script dedicated to running smoke tests with package version parameter
run-external-script.sh Refactored to use shared append-myget-package-source.sh script
evergreen.yml Updated smoke test task to use new script with simplified parameters
compile-sources.sh Added support for compiling specific projects via parameter
append-myget-package-source.sh New shared script for managing MyGet package source configuration
build.cake Removed SmokeTests Cake task

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

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, but please validate the smoke tests

git clone -b "${GIT_BRANCH:-main}" --single-branch "${GIT_REPO}" .

# add/adjust nuget.config pointing to myget so intermediate versions could be restored
if [ -f "./nuget.config" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

+1

@@ -0,0 +1,16 @@
#!/usr/bin/env bash

SMOKE_TESTS_PROJECT="./tests/SmokeTests/MongoDB.Driver.SmokeTests.Sdk/MongoDB.Driver.SmokeTests.Sdk.csproj"
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll probably need few smoke tests projects, so need to be ready for that.

Copy link
Member Author

Choose a reason for hiding this comment

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

The idea is: we should not build another projects (like a driver or bson library). For now we have only one project, in case we will have more then one - we can make a loop in bash script, and maintain either list of projects, or we can do a glob-filter by folder.

@sanych-sun sanych-sun merged commit 223f7f6 into mongodb:main Nov 21, 2025
48 of 52 checks passed
@sanych-sun sanych-sun deleted the csharp5788 branch November 21, 2025 00:45
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