microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.47k stars 2.6k forks source link

VS Test Retry Has Stopped Working On Azure Pipeline #16990

Open bendursley opened 1 year ago

bendursley commented 1 year ago

We've noticed in the last few days that a couple of our VS Test runs no longer retries on failures, and upon retry, it is unable to find the name spaces for those tests.
The tests are written in SpecFlow 3.9.74. We were using an old Test SDK (16.5) but on upgrade to 17.3.2, we still have this issue. We are running on Windows-Latest (2022). Tried with 2019 but had the same issue as well. We did not use VS Installer first, but I've tried with that, and we still have the issue where the retries no longer work

We run using the below YAML code: - task: VSTest@2 displayName: 'VsTest - testAssemblies' inputs: testAssemblyVer2: | **\JourneyTests.dll !**\*TestAdapter.dll !**\obj\** rerunFailedTests: true rerunFailedThreshold: 35 rerunMaxAttempts: 2 testRunTitle: '${{ parameters.Environment }} - Journey Tests' searchFolder: $(PIPELINE.WORKSPACE)\${{ parameters.PipelineResource }}\${{ parameters.ArtifactResource }} ${{ if ne(parameters.CategoryFilter, '') }}: testFiltercriteria: ${{ parameters.CategoryFilter }} env: ${{ if eq(parameters.UseMocks, true) }}: UseMocks: true ${{ else }}: UseMocks: false

In our logs, you can see it start the retry attempt, then fail as it is unable to match the name space

No test matches the given testcase filter FullyQualifiedName=JourneyTests.Features.HappyPathFeature.New user sign up journey.

This seems to have changed sometime between Tuesday of this week and Wednesday of this week. We run these tests on a schedule, so there was no code change between the runs on Tuesday and Wednesday.

Tue: Microsoft (R) Test Execution Command Line Tool Version 17.3.0-preview-20220626-01 (x64) [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.4.5+1caef2f33e (64-bit .NET Core 3.1.29) DTA Execution Host 19.210.32906.4

Wed: Microsoft (R) Test Execution Command Line Tool Version 17.3.0-preview-20220626-01 (x64) [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.4.5+1caef2f33e (64-bit .NET Core 3.1.29) DTA Execution Host 19.204.32418.1

Environment

yirkha commented 1 year ago

This is caused by a VSTest task upgrade from 2.205.0 to 2.210.0, done in #16853. It broke handling of tests with a different/custom display name and fully qualified name.

It will not help to update or change the versions of Visual Studio, testing framework or build agents. The VSTest@2/3 tasks need to be fixed (they reference a newer dependency which broke backwards compatibility).


When tests are simply run without extra options, VSTest.Console.exe is executed directly, the test results are published by the agent to the pipeline and that's it.

However, if retries are enabled, a closed source "DtaExecutionHost" component is put in between. It runs VSTest.Console.exe potentially multiple times, parses the output .trx files itself, publishes that to the pipeline, determines the failing ones back through some REST API, handles the reruns, and so on.

This DtaExecutionHost got upgraded from 19.204.32418.1 to 19.210.32906.4 during the upgrade of the VSTest ADO task. The way how a dependency "Microsoft.TeamFoundation.TestClient.PublishTestResults.dll" inside the DtaExecutionHost parses the .trx files changed, and it broke the test reruns for customers.


For example, for a parametrized test case with the following definition

    [TestMethod]
    [DataTestMethod]
    [DataRow("One")]
    [DataRow("Two")]
    public void TestMethod(string Parameter)

The .trx file will have something like this:

  <TestDefinitions>
    <UnitTest name="TestMethod (One)"
               storage="c:\whatever\bin\debug\net6.0\testproject.dll"
               id="df932f1e-0bdf-4fd8-b4e0-1d20f4f13e98">
      <Execution id="101c7677-781f-43dd-9240-442df2afb88d" />
      <TestMethod codeBase="C:\Whatever\bin\Debug\net6.0\TestProject.dll"
               adapterTypeName="executor://mstestadapter/v2"
               className="Example.Project.Tests.TestClass"
               name="TestMethod" />
    </UnitTest>

Note the <UnitTest name="TestMethod (One)" ... has spaces and parentheses. But <TestMethod className="className="Example.Project.Tests.TestClass" name="TestMethod" ... does not.

Now the change in DtaExecutionHost:

--- before\Microsoft.TeamFoundation.TestClient.PublishTestResults-19.204.32418.1\Microsoft.TeamFoundation.TestClient.PublishTestResults\TrxResultParser.cs  Mon Oct 03 16:56:16 2022
+++ after\Microsoft.TeamFoundation.TestClient.PublishTestResults-19.210.32906.4\Microsoft.TeamFoundation.TestClient.PublishTestResults\TrxResultParser.cs   Mon Oct 03 16:55:38 2022
@@ -229,9 +229,9 @@
            }
            XmlNode testResultNode = definitionNode.SelectSingleNode("./TestMethod");
            string automatedTestName = null;
-           if (testResultNode?.Attributes["className"] != null && testResultNode.Attributes["name"] != null)
+           if (testResultNode?.Attributes["className"] != null && (definitionNode.Attributes["name"]?.Value != null || testResultNode.Attributes["name"].Value != null))
            {
-               string testCaseName = testResultNode.Attributes["name"].Value;
+               string testCaseName = ((definitionNode.Attributes["name"]?.Value == null) ? testResultNode.Attributes["name"].Value : definitionNode.Attributes["name"].Value);
                string className = testResultNode.Attributes["className"].Value;
                automatedTestName = ((testCaseName.StartsWith(className) && testCaseName.Contains(".")) ? testCaseName : string.Join(".", className, testCaseName));
                if (_chutzpahTestFileExtensions.Contains(storageExtension?.Trim(), StringComparer.OrdinalIgnoreCase) && !string.IsNullOrEmpty(storageFileName))

This starts overriding the test case name from the name attribute on the <UnitTest/>. Before: automatedTestName = TestMethod["className'"] + "." + TestMethod["name"] After: automatedTestName = TestMethod["className"] + "." + (UnitTest["name"] ?? TestMethod["name"])

In practice, instead of making the rerun as: VSTest.Console.exe /TestCaseFilter:"FullyQualifiedName=Example.Project.Tests.TestClass.TestMethod" and unfortunately rerunning all variants of the test, but at least working, it now results in: VSTest.Console.exe /TestCaseFilter:"FullyQualifiedName=Example.Project.Tests.TestClass.TestMethod (One)" Which does not work at all.

It is wrong for two reasons:

  1. The paretheses are not escaped correctly Incorrect format for TestCaseFilter Missing Operator '|' or '&'. Specify the correct format and try again. Note that the incorrect format can lead to no test getting executed.
  2. It is not a valid FullyQualifiedName, that needs really just the method FQN. Comparing the display name or whatever would need a completely different filter being made.

For Ben above, it is even simpler - just a test display name with spaces, resulting in FullyQualifiedName=JourneyTests.Features.HappyPathFeature.New user sign up journey instead of a proper method name. Again resulting in no test being found to retry.

yirkha commented 1 year ago

As for a workaround, referencing the task version explicitly in the YAML file works, i.e. instead of just

    - task: VSTest@2
# or
    - task: VSTest@3

write

    - task: VSTest@2.205.0  # Using a full version temporarily to fix https://github.com/microsoft/azure-pipelines-tasks/issues/16990
# or
    - task: VSTest@3.205.0  # Using a full version temporarily to fix https://github.com/microsoft/azure-pipelines-tasks/issues/16990
bendursley commented 1 year ago

@yirkha thank you for the detailed response, it's really insightful! Didn't realise you could target specific versions beyond the major version.

We've started to use @2.205.0 and it looks like our retries are now working again, so at least for now we have a workaround. The TestCaseFilter looks radically different between the specific version of VSTest and the latest version.

yirkha commented 1 year ago

Yeah I also didn't know that version pinning worked to the last digit, very fortunate and useful. Thanks for the confirmation from elsewhere!

Mortana89 commented 1 year ago

Experiencing the same behavior, using Specflow tests, retries fail since a few days, breaking our regression tests.

Mortana89 commented 1 year ago

This is only possible on YAML CI/CD pipelines though, in case anybody is wondering. We're still using classic release pipelines, and sadly I don't see an option to specify this. Would there be another way around?

yirkha commented 1 year ago

@Mortana89 Hmm, maybe you can have luck using the ADO REST API, changing the JSON definition directly. Otherwise just escalate this through your MS support contact, I guess :-/

LURKEN commented 1 year ago

Same problem here, all our pipelines just stopped working over the weekend.

image

Mortana89 commented 1 year ago

Just for anyone stumbling upon this article, I could get it working with manually setting the batch options to a very high number (e.g. 10000). Only downside is that these tests now take roughly 2-3x as long as normally.

MBGoldberg-BD commented 1 year ago

We are also having this issue with our classic pipeline. No other remedy except for VSTest to provide new release.

fravaee commented 1 year ago

FRavaee any estimate?

2DORSC commented 1 year ago

we are facing the same issue, do you have any updates/estimates?

swapmali99 commented 1 year ago

Any update on this?

Mortana89 commented 1 year ago

We have taken this as our work item , maybe by next week we will update

One month later, what is the status here?

MBGoldberg-BD commented 1 year ago

I see related bug/issue 4036 was closed because " issue exists on azdo side". See https://github.com/microsoft/vstest/issues/4036 Still waiting for this issue to be fixed.

MBGoldberg-BD commented 1 year ago

@vinayakmsft - any updates?

Morten4 commented 1 year ago

Also having this problem!

DavidDanaj commented 1 year ago

@vinayakmsft Any update? Issue is still present

fravaee commented 1 year ago

Any update?

vinayakmsft commented 1 year ago

Please find the tracking work item for the issue. https://dev.azure.com/mseng/AzureDevOps/_workitems/edit/1995653/

nathan-j-nd commented 1 year ago

The tracking work item linked is not accessible. I get 403 Forbidden after signing up.

Mortana89 commented 1 year ago

Hi, this is open for almost 6 months. Can we get a decent statusupdate/ETA please? This breaking change is impacting workflow a lot.

fravaee commented 1 year ago

Hi,

I strongly agree. PLEASE PLEASE From: Mortana89 @.> Sent: Tuesday, February 7, 2023 12:53 PM To: microsoft/azure-pipelines-tasks @.> Cc: Farah Ravaee @.>; Comment @.> Subject: Re: [microsoft/azure-pipelines-tasks] VS Test Retry Has Stopped Working On Azure Pipeline (Issue #16990)

EXTERNAL EMAIL - Use caution opening attachments and links.

Hi, this is open for almost 6 months. Can we get a decent statusupdate/ETA please? This breaking change is impacting workflow a lot.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/microsoft/azure-pipelines-tasks/issues/16990*issuecomment-1421430882__;Iw!!AMCWqqRremt4Wx4!TLzbZkHPU_jzGPY7RJDcUEoSoPAdyMRgLkwZ0aDobTJdg01_HZ7dL_3lBnSol0jgxWkyu74x0Jdw_tuoD7ABquWg$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ADBJF2XTGJEIRHZJOFI7QS3WWKY3LANCNFSM6AAAAAAQZ2LT7Y__;!!AMCWqqRremt4Wx4!TLzbZkHPU_jzGPY7RJDcUEoSoPAdyMRgLkwZ0aDobTJdg01_HZ7dL_3lBnSol0jgxWkyu74x0Jdw_tuoD6elRZz9$. You are receiving this because you commented.Message ID: @.**@.>>


IMPORTANT MESSAGE FOR RECIPIENTS IN THE U.S.A.: This message may constitute an advertisement of a BD group's products or services or a solicitation of interest in them. If this is such a message and you would like to opt out of receiving future advertisements or solicitations from this BD group, please forward this e-mail to @.*** [BD.v1.0]


This message (which includes any attachments) is intended only for the designated recipient(s). It may contain confidential or proprietary information and may be subject to the attorney-client privilege or other confidentiality protections. If you are not a designated recipient, you may not review, use, copy or distribute this message. If you received this in error, please notify the sender by reply e-mail and delete this message. Thank you.


Corporate Headquarters Mailing Address: BD (Becton, Dickinson and Company) 1 Becton Drive Franklin Lakes, NJ 07417 U.S.A.

MBGoldberg-BD commented 1 year ago

The tracking work item linked is not accessible. I get 403 Forbidden after signing up.

Likewise. Can't access. Still looking for update on this.

yirkha commented 1 year ago

The link goes to a MS-internal ADO instance. Perhaps Vinayak thought that there were mostly colleagues commenting here. No point in trying to access it for anyone who is not a MS employee or does not have the right privileges.

Now, I can open it, but I can't comment on what's inside still, I'm sorry. First because it's confidential, duh, second because you would probably lynch me for it, even though I'd be just a messenger >.<

But I'd say, if you are able to work around this on your side, in any way... do it.

ismael-ms commented 1 year ago

Are there any updates on a fix? My team has been experiencing the same issues as well https://github.com/microsoft/azure-pipelines-tasks/issues/18084.

eyalLefler commented 1 year ago

The issue is still open, will it be fix ever? By the way, I'm unable to run the task: - task: VSTest@2.205.0 Getting the error: "A task is missing. The pipeline references a task called 'VSTest'. This usually indicates the task isn't installed..." Any idea how to fix it?

MBGoldberg-BD commented 1 year ago

Here we are August 2023, issue was injected Sep 2022. Can we please get this fixed? Give us a status update. Michael

yirkha commented 1 year ago

I've reached out to the engineer who was working on this and asked.

yirkha commented 1 year ago

Should be fixed in VSTest@2.225.0 after #18760 gets merged

dogirala commented 1 year ago

Hi, the fix is merged/deployed in vstest@2.227.0. Please try with the latest vstest task and let me know if that helped.

yirkha commented 1 year ago

Thanks for the update. The new task version does not seem to have the desired effect on our pipeline.

Before (v2.224.0):

2023-08-16T08:49:17.0628419Z Task : Visual Studio Test
2023-08-16T08:49:17.0628738Z Version : 2.224.0 
...
2023-08-16T08:49:17.9948378Z DtaExecutionHost version 19.210.32906.4. 
...
2023-08-16T09:06:29.5685456Z Failed Test_DisconnectOnLargeMessage(v4) [39 s]
...
2023-08-16T09:10:37.8506695Z **************** Rerunning failed tests for Test run 326350859 ********************* 
2023-08-16T09:10:37.8948952Z vstest.console.exe /TestCaseFilter:
        "FullyQualifiedName=Trouter.FunctionalTests.TrouterNativeNetClientFunctionalTest.Test_DisconnectOnLargeMessage(v4)"
...
2023-08-16T09:10:39.6810636Z ##[error]Incorrect format for TestCaseFilter Missing Operator '|' or '&'.
                             Specify the correct format and try again. Note that the incorrect format
                             can lead to no test getting executed. 

After (v2.227.0):

2023-08-24T19:39:22.9042215Z Task : Visual Studio Test
2023-08-24T19:39:22.9042542Z Version : 2.227.0 
...
2023-08-24T19:39:28.8259497Z DtaExecutionHost version 19.226.34002.2. 
...
2023-08-24T19:54:38.0774500Z Failed Test_MessageStore_TrySyncMode(v3) [13 s] 
2023-08-24T19:54:45.0069644Z Failed Test_MessageStore_TrySyncMode(v4) [6 s] 
...
2023-08-24T20:00:32.8905690Z **************** Rerunning failed tests for Test run 327331990 ********************* 
2023-08-24T20:00:32.9432344Z vstest.console.exe /TestCaseFilter:
        "(FullyQualifiedName=Trouter.FunctionalTests.TrouterNativeNetClientFunctionalTest.Test_MessageStore_TrySyncMode(v4))
        |(FullyQualifiedName=Trouter.FunctionalTests.TrouterNativeNetClientFunctionalTest.Test_MessageStore_TrySyncMode(v3))"
...
2023-08-24T20:00:34.9557818Z ##[error]Incorrect format for TestCaseFilter Missing Operator '|' or '&'.
                             Specify the correct format and try again. Note that the incorrect format
                             can lead to no test getting executed. 
dogirala commented 1 year ago

Adding the observations from the above error, for dynamic tests or tests with custom displayname, please follow the same naming as standard [DataTestMethod] to resolve the above issue. Something like the below overload should work. Please reach out if issue is still observed

'

   public string GetDisplayName(MethodInfo methodInfo, object[] data)
    {
        if (data != null)
        {
            var testParamString = new StringBuilder();
            testParamString.Append(methodInfo.Name);

            testParamString.Append(' (');
            var methodParameters = methodInfo.GetParameters();
            for (int i = 0; i < methodParameters.Length; i++)
            {
                testParamString.Append(data[i]);
                testParamString.Append(',');
            }
            testParamString.Length--;
            testParamString.Append(')');

            return testParamString.ToString();
        }

        return methodInfo.Name;
    }

'

yirkha commented 1 year ago

I clarified this with @dogirala and the problem turned out to be in our custom ITestDataSource::GetDisplayName() implementation, which was formatting parameterized test names as MethodName(parameters) (i.e. without a space), which was different from e.g. the standard [DataTestMethod], which uses MethodName (parameters) (i.e. with a space before the opening parenthesis).

After changing the display name to match the usual style, everything works fine and the VSTest task correctly retries only the single relevant test case (by using a combined, correctly escaped filter, e.g. (FullyQualifiedName=Trouter.FunctionalTests.Test_ReconnectTtl_LongPoll&Name=Test_ReconnectTtl_LongPoll \(v3\))). Thanks for the fix!

Liran-Dobrish commented 1 year ago

HI I also have this problem with my on-prem ADO 2020 (update 1). How can I get this version of the task?

sablanc-msft commented 11 months ago

We still have this problem in our pipelines with version 2.227. We are getting this kind of errors (when the pipeline tries to rerun the test):

_No test matches the given testcase filter (FullyQualifiedName=Microsoft.Office.Project.CloudPcs.WebApiServiceIntegrationTests.ProjectUpdateWorkTemplateIntegrationTests.UpdateWorkTemplate_TaskUpdates_WhenWorkHourTemplateChangesTo24Hour_UsesDataverse) in D:\a_work\1\a\Tests\IntegrationTests\Pcs\PcsCalendarsIntegrationTests\bin\Release\Pss.CalendarsIntegrationTests.dll_

and with these attributes on the test:

[DataRow(true, DisplayName = "UpdateWorkTemplate_TaskUpdates_WhenWorkHourTemplateChangesTo24Hour_UsesDataverse")] [DataRow(false, DisplayName = "UpdateWorkTemplate_TaskUpdates_WhenWorkHourTemplateChangesTo24Hour")] public async Task UpdateWorkTemplate_TaskUpdates_WhenWorkHourTemplateChangesTo24Hour(bool shouldUseDataverseCalendarMethods)

sablanc-msft commented 11 months ago

I also noticed that the bug has been closed but the associated PR was abandoned:

Bug 1995653: Add handling for ( and ) during TestFilter for VsTest task.

Was the issue fixed with another PR?

dogirala commented 11 months ago

The issue is due to the usage of custom displayname for the unitests, for rerun of failed tests currently it is not supported, please follow the standard naming for DataTestMethod to resolve it. WIP for supporting custom displayname, will update with an ETA once I have completed my investigation in this sprint.

jaydeboer commented 10 months ago

The bug is also impacting our teams. The version workaround is working, but a fix would certainly be preferred. We tried deleting all the DisplayName attributes, but some of our XUnit Theories would still not re-run on failure.

SeMuell commented 6 months ago

@dogirala we are facing the issue with custom display names (that we have to set because of publishing the results to our QA tool). Is there any ETA?

dogirala commented 6 months ago

Hi @SeMuell, I have worked on that in last sprint, I have created a pull request, however it is in review and will be merged sometime this week. So please expect the fix sometime by end of next week. I'll update the vstest version here once deployed.

Also, couple of queries just for clarification, when you mean issue with custom displayname, you mean the rerun of failed tests is not working with tests have custom displayname, right?. And you are using Mstest adapter?

SeMuell commented 6 months ago

@dogirala, that would be awesome if it can be merged soon!

To your question, yes, rerunning failed tests with custom displayname. We are using MSTest as adapter. We are also using DataRows, but I duplicated the tests for now.

Running with the workaround of the customBatchSize does now rerun the failed tests successfully, but the test results are immediately cleaned after the test run (which we need to keep) and therefore this approach does not work for us... When your fix is published, is it still required to use the customBatchSize?

dogirala commented 6 months ago

@SeMuell So if I understand correctly you are facing the same issue as below? image

If yes, then you wouldn't need to set the custombatchsize, it should work as expected without that, after the fix is deployed

SeMuell commented 6 months ago

@dogirala, without having a DataRow, just using the displayName and without setting the customBatchSize, yes.

dogirala commented 6 months ago

@SeMuell can you share an example stack trace and an example unittest method where it is failing. It is just for me to retest in local to be sure

SeMuell commented 6 months ago

@dogirala, sure, I can share what I have. I just have System.Debug set to true. How can I get you the full stack trace?

Unit test:

  [TestMethod(displayName: "QA-VER-100")]
  public void Dashboard_TestStatus_OptimalWorkflow()
  {
    Assert.Fail();
  }

VSTest log from AZDO (when customBatchSize workaround is not used):

2024-03-18T11:28:58.0137912Z **************** Rerunning failed tests for Test run 2762726 *********************
2024-03-18T11:28:58.0138063Z Max attempts: 5; Current attempt: 1; Failed test cases threshold: 60; Failed test cases max limit: 0
2024-03-18T11:28:58.0138273Z [command]C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\Extensions\TestPlatform\vstest.console.exe "@C:\agent\_work\_temp\vsbcakukxzz.tmp"
2024-03-18T11:28:58.0840682Z Microsoft (R) Test Execution Command Line Tool Version 17.2.0-preview-20220401-07 (x64)
2024-03-18T11:28:58.0841053Z Copyright (c) Microsoft Corporation.  All rights reserved.
2024-03-18T11:28:58.0908780Z vstest.console.exe /TestCaseFilter:"FullyQualifiedName=Project.DashboardTests.QA-VER-100"
2024-03-18T11:28:58.0909115Z "C:\agent\_work\5\drop\tests\Project\bin\x64\Release\Project.dll"
2024-03-18T11:28:58.0909248Z /Settings:"C:\agent\_work\_temp\ngoheiikwlu.tmp.runsettings"
2024-03-18T11:28:58.0909428Z /Logger:"trx"
2024-03-18T11:28:58.0909534Z /TestAdapterPath:"C:\agent\_work\5\drop"
2024-03-18T11:28:58.0909707Z /Diag:"C:\agent\_work\_temp\Attempt-5_t1qtqz.diag"
2024-03-18T11:28:58.7077122Z Starting test execution, please wait...
2024-03-18T11:28:58.7087507Z Logging Vstest Diagnostics in file: C:\agent\_work\_temp\Attempt-5_t1qtqz.diag
2024-03-18T11:28:59.7806751Z A total of 1 test files matched the specified pattern.
2024-03-18T11:28:59.7914900Z Data collection : Logging DataCollector Diagnostics in file: C:\agent\_work\_temp\Attempt-5_t1qtqz.datacollector.24-03-18_12-28-58_90911_4.diag
2024-03-18T11:28:59.8375231Z Blame: Attaching crash dump utility to process testhost (1108).
2024-03-18T11:29:00.1459234Z Logging TestHost Diagnostics in file: C:\agent\_work\_temp\Attempt-5_t1qtqz.host.24-03-18_12-28-59_78411_4.diag
2024-03-18T11:29:00.3898230Z No test matches the given testcase filter `FullyQualifiedName=Project.DashboardTests.QA-VER-100` in C:\agent\_work\5\drop\tests\Project\bin\x64\Release\Project.dll
2024-03-18T11:29:00.6035571Z Results File: C:\agent\_work\5\a\Project.results.xml
2024-03-18T11:29:00.6411112Z Results File: C:\agent\_work\5\a\Svc-testagent_2024-03-18_12_29_00.trx
2024-03-18T11:29:00.6850548Z ##[debug]Exited vstest.console.exe with code 0.
2024-03-18T11:29:00.6851006Z ##[debug]PERF: ExecuteVsTestPhase.InvokeVSTest: took 2671.1391 ms
2024-03-18T11:29:00.6851615Z Vstest.console.exe exited with code 0.
2024-03-18T11:29:00.6851721Z **************** Completed test execution *********************
SeMuell commented 6 months ago

@dogirala, I got the diag log for the testhost: Attempt-5_o3upje.host.24-03-18_12-52-48_84922_4.log

dogirala commented 6 months ago

@SeMuell thanks for the log

dogirala commented 5 months ago

@SeMuell, I've tried in local it is working as expected without the customBatchSize. image, will update here once vstest is deployed

dogirala commented 5 months ago

The fix is merged it should be deployed sometime by mid to end of next week in vstest 2.237.0 version. Right now the latest version of vstest is 2.236.0. The change is a under a FeatureFlag however, so if in onprem ado server, you'd be required to register the FF --> TestExecution.EnableReRunForDataDrivenTestsWithDisplayName and turn it on.