Hi Team,
We are trying the deploy the application using stages in Azure devops. In that one of the stages is failed only in Central India region. But it was working in other region in East US. etc
This is my Yml file
steps:
- task: VSTest@2
displayName: 'Execute tests'
inputs:
testAssemblyVer2: |
*test*.dll
!\obj**
searchFolder: '$(Agent.ReleaseDirectory)\$(Build.DefinitionName)\BuildOutput\Tests\API.Tests\bin\Release'
testFiltercriteria: 'TestCategory=RegressionTests&(name=GetPurchaseHistoryIntegration)'
diagnosticsEnabled: true
rerunFailedTests: true
rerunType: basedOnTestFailureCount
and it was failed only Central India region.
and Here the error log,
2022-09-21T08:48:21.3571123Z Stack Trace:
2022-09-21T08:48:21.3571787Z at API.Tests.Regression.OrderServiceTests.<GetPurchaseHistoryIntegration>d__27.MoveNext() in D:\a_work\1\b\2_work\1\s\Tests\API.Tests\Regression\OrderServiceTests.cs:line 305
2022-09-21T08:48:21.3572509Z --- End of stack trace from previous location where exception was thrown ---
2022-09-21T08:48:21.3573019Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2022-09-21T08:48:21.3573572Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2022-09-21T08:48:21.3574476Z at Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.ThreadOperations.ExecuteWithAbortSafety(Action action)
2022-09-21T08:48:21.3758190Z Results File: D:\a_work\1\b\2_work_temp\TestResults\svccbld_abbf6204c00000Y_2022-09-21_08_48_21.trx
2022-09-21T08:48:21.3774483Z Total tests: 1. Passed: 0. Failed: 1. Skipped: 0.
2022-09-21T08:48:21.3778964Z ##[error]Test Run Failed.
2022-09-21T08:48:21.3784660Z Test execution time: 4.3849 Seconds
2022-09-21T08:48:21.3924095Z Vstest.console.exe exited with code 1.
2022-09-21T08:48:21.3924890Z **************** Completed test execution *********************
2022-09-21T08:48:21.3937734Z Test results files: D:\a_work\1\b\2_work_temp\TestResults\svccbld_abbf6204c00000Y_2022-09-21_08_48_21.trx
2022-09-21T08:48:21.3944329Z Updating test results: 1
2022-09-21T08:48:21.4434571Z Publishing test results to test run '257770138'.
2022-09-21T08:48:21.5044668Z TestResults To Publish 1, Test run id:257770138
2022-09-21T08:48:21.5045305Z Test results publishing 1, remaining: 0. Test run id: 257770138
2022-09-21T08:48:21.5561766Z [08:48:21] The process has exited.
2022-09-21T08:48:21.5562299Z [08:48:21] Dump count reached.
2022-09-21T08:48:21.5870113Z Updated test results: 1
2022-09-21T08:48:21.5870605Z Publishing Attachments: 1
2022-09-21T08:48:21.6627246Z ##[warning]Maximum number of attempts running the failed tests reached: 3
2022-09-21T08:48:21.7851515Z Execution Result Code 1 is non zero, checking for failed results
2022-09-21T08:48:22.9949355Z Number of failed tests which are non-flaky is: 1
2022-09-21T08:48:22.9950165Z PERF WARNING: TestRunCompletionPhase:GetTestRunOutcomeFromPublishTestResultLibrary: took 1164.8137 ms
2022-09-21T08:48:23.2979041Z Completed TestExecution Model...
2022-09-21T08:48:23.3159775Z ##[warning]Vstest failed with error. Check logs for failures. There might be failed tests.
2022-09-21T08:48:23.3162650Z ##[error]Error: The process 'D:\a_work\1\b\2_work_tasks\VSTest_ef087383-ee5e-42c7-9a53-ab56c98420f9\2.205.0\Modules\DTAExecutionHost.exe' failed with exit code 1
2022-09-21T08:48:23.3165943Z ##[error]Vstest failed with error. Check logs for failures. There might be failed tests.
2022-09-21T08:48:23.3235416Z ##[section]Finishing: Execute OfflinePI regression tests