.NET: Align sample build configuration with test runner in CI#4735
Merged
.NET: Align sample build configuration with test runner in CI#4735
Conversation
ec4d121 to
e736705
Compare
Contributor
There was a problem hiding this comment.
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. |
...sts/Microsoft.Agents.AI.Hosting.AzureFunctions.IntegrationTests/WorkflowSamplesValidation.cs
Outdated
Show resolved
Hide resolved
dotnet/tests/Microsoft.Agents.AI.Hosting.AzureFunctions.IntegrationTests/SamplesValidation.cs
Outdated
Show resolved
Hide resolved
kshyju
commented
Mar 17, 2026
dotnet/tests/Microsoft.Agents.AI.Hosting.AzureFunctions.IntegrationTests/SamplesValidation.cs
Show resolved
Hide resolved
cgillum
approved these changes
Mar 17, 2026
larohra
approved these changes
Mar 17, 2026
This was referenced Apr 3, 2026
This was referenced Apr 6, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 samplesare built in the same configuration as the tests (Release in CI, Debug locally).
Contribution Checklist