From 2ee6f273b7df617a0dfdd95ce13ad9c202a30a45 Mon Sep 17 00:00:00 2001 From: kaito-ms <93104616+kaito-ms@users.noreply.github.com> Date: Fri, 9 Aug 2024 17:05:23 +0900 Subject: [PATCH] Added ContainerStructureTestParser Fixed a Warning in the ContainerStructureTest@0 task that the parser does not exist. --- ##[warning]Failed to publish test run data: System.ArgumentException: Unknown test runner at Microsoft.VisualStudio.Services.Agent.Worker.TestResults.TestDataPublisher.ParseTestResultsFile(TestRunContext runContext, List`1 testResultFiles) in /mnt/vss/_work/1/s/src/Agent.Worker/TestResults/TestDataPublisher.cs:line 230 at Microsoft.VisualStudio.Services.Agent.Worker.TestResults.TestDataPublisher.PublishAsync(TestRunContext runContext, List`1 testResultFiles, PublishOptions publishOptions, CancellationToken cancellationToken) in /mnt/vss/_work/1/s/src/Agent.Worker/TestResults/TestDataPublisher.cs:line 70 ##[debug]Processed: ##vso[results.publish type=ContainerStructure;mergeResults=false;runTitle=Container Structure Test;resultFiles=/home/azureuser/myagent/_work/_temp/cc4f0010-4b24-11ef-987b-e33922ec9c40.json;testRunSystem=VSTS-PTR;publishRunAttachments=true;] --- src/Microsoft.VisualStudio.Services.Agent/ExtensionManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.VisualStudio.Services.Agent/ExtensionManager.cs b/src/Microsoft.VisualStudio.Services.Agent/ExtensionManager.cs index db95050741..801531aed6 100644 --- a/src/Microsoft.VisualStudio.Services.Agent/ExtensionManager.cs +++ b/src/Microsoft.VisualStudio.Services.Agent/ExtensionManager.cs @@ -116,6 +116,7 @@ private List LoadExtensions() where T : class, IExtension Add(extensions, "Microsoft.VisualStudio.Services.Agent.Worker.TestResults.CTestParser, Agent.Worker"); Add(extensions, "Microsoft.VisualStudio.Services.Agent.Worker.TestResults.TrxParser, Agent.Worker"); Add(extensions, "Microsoft.VisualStudio.Services.Agent.Worker.TestResults.XUnitParser, Agent.Worker"); + Add(extensions, "Microsoft.VisualStudio.Services.Agent.Worker.TestResults.ContainerStructureTestParser, Agent.Worker"); break; // Worker code coverage summary reader extensions. case "Microsoft.VisualStudio.Services.Agent.Worker.CodeCoverage.ICodeCoverageSummaryReader": @@ -145,4 +146,4 @@ private void Add(List extensions, string assemblyQualifiedName) w extensions.Add(extension); } } -} \ No newline at end of file +}