Skip to content

[WIP] Incorrect transformation of command line args with \ symbol on unix #15087

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jun 12, 2025

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original issue description:

On Windows the following command works good:

dotnet test -- NUnit.Where="namespace =~ /Abc\.Space1($|\.)/"

On Unix I use:

dotnet test -- NUnit.Where='namespace =~ /Abc\.Space1($|\.)/'

Error:

An exception occurred while invoking executor 'executor://nunit3testexecutor/': Unexpected token '.Space1($|' at position 18 in selection expression.

Gather diagnostics, and saw it:

TpTrace Information: 0 : 52885, 1, 2025/04/04, 17:51:29.669, 11794136606425, vstest.console.dll, TestRunRequest.ExecuteAsync: Starting run with settings:TestRunCriteria:
   KeepAlive=False,FrequencyOfRunStatsChangeEvent=10,RunStatsChangeEventTimeout=00:00:01.5000000,TestCaseFilter=,TestExecutorLauncher=
   Settingsxml=<RunSettings>
  <RunConfiguration>
    <ResultsDirectory>/mnt/e/Temp/Abc/TestResults</ResultsDirectory>
    <TargetPlatform>X64</TargetPlatform>
    <TargetFrameworkVersion>.NETCoreApp,Version=v8.0</TargetFrameworkVersion>
    <TestAdaptersPaths>/home/nick/.nuget/packages/coverlet.collector/6.0.4/build/netstandard2.0/</TestAdaptersPaths>
    <DesignMode>False</DesignMode>
    <CollectSourceInformation>False</CollectSourceInformation>
  </RunConfiguration>
  <NUnit>
    <Where>namespace =~ /Abc//.Space1($|//.)/</Where>
  </NUnit>
  <LoggerRunSettings>
    <Loggers>
      <Logger friendlyName="Console" uri="logger://microsoft/TestPlatform/ConsoleLogger/v1" assemblyQualifiedName="Microsoft.VisualStudio.TestPlatform.CommandLine.Internal.ConsoleLogger, vstest.console, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" codeBase="/usr/lib/dotnet/sdk/8.0.110/vstest.console.dll" enabled="True" />
    </Loggers>
  </LoggerRunSettings>
</RunSettings>

Please pay attention that my \ symbol is silently converted to //. It happens on Unix only.

Fixes #15043.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@nohwnd
Copy link
Member

nohwnd commented Jun 12, 2025

@copilot , looks like your session timed out. Try again.

@nohwnd
Copy link
Member

nohwnd commented Jun 13, 2025

Do you feel better today? Try re-running.

@nohwnd
Copy link
Member

nohwnd commented Jun 13, 2025

@copilot, rebuild?

@nohwnd
Copy link
Member

nohwnd commented Jun 13, 2025

@copilot go for it now.

@nohwnd
Copy link
Member

nohwnd commented Jun 13, 2025

@copilot ugh, one more build.

Copilot finished work on behalf of nohwnd June 13, 2025 15:43
Copy link
Contributor Author

Copilot AI commented Jun 13, 2025

@copilot ugh, one more build.

The build is currently failing due to network issues downloading the Microsoft.DotNet.Arcade.Sdk from Azure DevOps feeds ("Resource temporarily unavailable"). This appears to be a temporary infrastructure issue rather than a code problem. I'll continue monitoring and retry when the feeds are available.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • 80zvsblobprodcus35.vsblob.vsassets.io
    • Triggering command: dotnet build src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj (dns block)
    • Triggering command: dotnet build test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj --no-restore (dns block)
  • 8xbvsblobprodcus382.vsblob.vsassets.io
    • Triggering command: dotnet build src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj (dns block)
    • Triggering command: dotnet build test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj --no-restore (dns block)
  • bcnvsblobprodcus378.vsblob.vsassets.io
    • Triggering command: dotnet build src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj (dns block)
    • Triggering command: dotnet build test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj --no-restore (dns block)
  • c50vsblobprodcus330.vsblob.vsassets.io
    • Triggering command: /home/REDACTED/work/vstest/vstest/.dotnet/dotnet msbuild /m /nologo /clp:Summary /v:minimal /nr:true /warnaserror /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=false /home/REDACTED/work/vstest/vstest/artifacts/toolset/restore.proj /t:__WriteToolsetLocation /clp:ErrorsOnly;NoSummary /p:__ToolsetLocationOutputFile=/home/REDACTED/work/vstest/vstest/artifacts/toolset/9.0.0-beta.25302.2.txt (dns block)
    • Triggering command: dotnet build src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj (dns block)
    • Triggering command: dotnet build test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj --no-restore (dns block)
  • d0svsblobprodcus381.vsblob.vsassets.io
    • Triggering command: dotnet build src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj (dns block)
    • Triggering command: dotnet build test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj --no-restore (dns block)
  • imzvsblobprodcus368.vsblob.vsassets.io
    • Triggering command: dotnet build src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj (dns block)
    • Triggering command: dotnet build test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj --no-restore (dns block)
  • jd4vsblobprodcus366.vsblob.vsassets.io
    • Triggering command: dotnet build src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj (dns block)
    • Triggering command: dotnet build test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj --no-restore (dns block)
  • jrqvsblobprodcus343.vsblob.vsassets.io
    • Triggering command: dotnet build src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj (dns block)
    • Triggering command: dotnet build test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj --no-restore (dns block)
  • kh4vsblobprodcus325.vsblob.vsassets.io
    • Triggering command: dotnet build src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj (dns block)
    • Triggering command: dotnet build test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj --no-restore (dns block)
  • kmuvsblobprodcus389.vsblob.vsassets.io
    • Triggering command: dotnet build src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj (dns block)
    • Triggering command: dotnet build test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj --no-restore (dns block)
  • l49vsblobprodcus358.vsblob.vsassets.io
    • Triggering command: dotnet build src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj (dns block)
    • Triggering command: dotnet build test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj --no-restore (dns block)
  • lylvsblobprodcus31.vsblob.vsassets.io
    • Triggering command: dotnet build src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj (dns block)
    • Triggering command: dotnet build test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj --no-restore (dns block)
  • o3svsblobprodcus318.vsblob.vsassets.io
    • Triggering command: dotnet build src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj (dns block)
    • Triggering command: dotnet build test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj --no-restore (dns block)
  • x3yvsblobprodcus370.vsblob.vsassets.io
    • Triggering command: dotnet build src/Microsoft.TestPlatform.Utilities/Microsoft.TestPlatform.Utilities.csproj (dns block)
    • Triggering command: dotnet build test/Microsoft.TestPlatform.Utilities.UnitTests/Microsoft.TestPlatform.Utilities.UnitTests.csproj --no-restore (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot finished work on behalf of nohwnd June 13, 2025 16:00
@nohwnd
Copy link
Member

nohwnd commented Jun 16, 2025

@copilot, there are no changes in files. try again to fix this issue.

@nohwnd
Copy link
Member

nohwnd commented Jun 16, 2025

@copilot one more try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Error loading sessions

Retrying...

Successfully merging this pull request may close these issues.

Incorrect transformation of command line args with \ symbol on unix
2 participants