Skip to content

.NET: Align sample build configuration with test runner in CI#4735

Merged
kshyju merged 2 commits intomainfrom
shkr/test_improvements
Mar 17, 2026
Merged

.NET: Align sample build configuration with test runner in CI#4735
kshyju merged 2 commits intomainfrom
shkr/test_improvements

Conversation

@kshyju
Copy link
Copy Markdown
Contributor

@kshyju kshyju commented Mar 17, 2026

Description

Match sample build configuration to test build configuration

Pass -c {BuildConfiguration} to dotnet run and dotnet build when launching sample projects during integration tests. BuildConfiguration is derived from the test project's own build config via #if DEBUG, ensuring samples
are built in the same configuration as the tests (Release in CI, Debug locally).

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Copilot AI review requested due to automatic review settings March 17, 2026 01:39
@kshyju kshyju requested a review from cgillum March 17, 2026 01:39
@github-actions github-actions bot changed the title Run azure functions integration tests in release mode .NET: Run azure functions integration tests in release mode Mar 17, 2026
@kshyju kshyju requested a review from larohra March 17, 2026 01:40
@kshyju kshyju force-pushed the shkr/test_improvements branch from ec4d121 to e736705 Compare March 17, 2026 01:41
Copy link
Copy Markdown
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 updates the Azure Functions integration tests to build and run the sample function apps in Release configuration, aligning test execution with production-like settings.

Changes:

  • Run workflow sample function apps via dotnet run -c Release.
  • Build durable agents sample projects via dotnet build -c Release.
  • Run durable agents sample function apps via dotnet run --no-build -c Release.

Reviewed changes

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

File Description
dotnet/tests/Microsoft.Agents.AI.Hosting.AzureFunctions.IntegrationTests/WorkflowSamplesValidation.cs Runs workflow Azure Functions sample app in Release mode.
dotnet/tests/Microsoft.Agents.AI.Hosting.AzureFunctions.IntegrationTests/SamplesValidation.cs Builds and runs durable agents Azure Functions sample app in Release mode.

@kshyju kshyju changed the title .NET: Run azure functions integration tests in release mode .NET: Align sample build configuration with test runner in CI Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants