dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.24k stars 4.73k forks source link

unix/windows commands are mixed in helix run script #101050

Closed pavelsavara closed 6 months ago

pavelsavara commented 6 months ago

Log

C:\helix\work\workitem\e>taskkill.exe /f /im corerun.exe 
ERROR: The process "corerun.exe" not found.

C:\helix\work\workitem\e>export __TestArchitecture=wasm 
'export' is not recognized as an internal or external command,

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=643443&view=results Build error leg or test failing:

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorPattern": "export.*is not recognized as an internal or external command",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=643443 Error message validated: [export.*is not recognized as an internal or external command] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 4/15/2024 12:40:56 PM UTC

Report

Build Definition Test Pull Request
644149 dotnet/runtime WasmTestOnBrowser-System.Runtime.Tests.WorkItemExecution dotnet/runtime#100266
643820 dotnet/runtime WasmTestOnBrowser-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#101053
643867 dotnet/runtime WasmTestOnBrowser-System.Runtime.Tests.WorkItemExecution dotnet/runtime#100266
643833 dotnet/runtime System.Runtime.Tests.WorkItemExecution dotnet/runtime#100947
643558 dotnet/runtime Workloads-Wasm.Build.Tests.WasmTemplateTests.WorkItemExecution dotnet/runtime#100697
643422 dotnet/runtime Workloads-Wasi.Build.Tests.InvariantTests.WorkItemExecution dotnet/runtime#100587
643400 dotnet/runtime Workloads-NoWebcil-Wasm.Build.NativeRebuild.Tests.SimpleSourceChangeRebuildTest.WorkItemExecution dotnet/runtime#101042
643443 dotnet/runtime Workloads-Wasi.Build.Tests.SdkMissingTests.WorkItemExecution dotnet/runtime#101045
643543 dotnet/runtime System.Runtime.Tests.WorkItemExecution dotnet/runtime#100823
643533 dotnet/runtime System.Runtime.Tests.WorkItemExecution dotnet/runtime#100842
643425 dotnet/runtime WasmTestOnBrowser-System.Runtime.Tests.WorkItemExecution dotnet/runtime#100141
642959 dotnet/runtime System.Runtime.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
11 12 12
pavelsavara commented 6 months ago

Somehow this is hit on linux Helix host https://github.com/dotnet/runtime/blob/3a78480ae21a909ecd3ac9edfd2aa3e63dd890fb/src/libraries/sendtohelixhelp.proj#L122-L124

pavelsavara commented 6 months ago

Similar Log

C:\helix\work\workitem\e>taskkill.exe /f /im corerun.exe 
'taskkill.exe' is not recognized as an internal or external command,
operable program or batch file.
pavelsavara commented 6 months ago

It's also on __TestArchitecture=arm64

Log

pavelsavara commented 6 months ago

For this run Log

There is C:\helix\work\correlation\scripts\1e6550948c3b4ae5a08d49a901eca8c1\execute.cmd downloaded as part of f37b3afa-da20-4fab-89ab-adee36b76c52.zip

set SCENARIO=WasmTestOnBrowser
set XHARNESS_COMMAND=test-browser
set XHARNESS_DISABLE_COLORED_OUTPUT=true
set XHARNESS_LOG_WITH_TIMESTAMPS=true
set PATH=%HELIX_CORRELATION_PAYLOAD%\chromedriver_win32;%PATH%
set PATH=%HELIX_CORRELATION_PAYLOAD%\chrome-win;%PATH%
taskkill.exe /f /im corerun.exe
export __TestArchitecture=wasm
set PATH=%HELIX_CORRELATION_PAYLOAD%\dotnet-cli;%PATH%
set DOTNET_ROOT=%HELIX_CORRELATION_PAYLOAD%\dotnet-cli
set DOTNET_CLI_TELEMETRY_OPTOUT=1
set DOTNET_CLI_HOME=%HELIX_WORKITEM_ROOT%\.dotnet
set NUGET_PACKAGES=%HELIX_WORKITEM_ROOT%\.nuget
set PATH=%HELIX_CORRELATION_PAYLOAD%\xharness-cli;%PATH%
set XHARNESS_DISABLE_COLORED_OUTPUT=true
set XHARNESS_LOG_WITH_TIMESTAMPS=true
set XHARNESS_CLI_PATH=%HELIX_CORRELATION_PAYLOAD%\microsoft.dotnet.xharness.cli\9.0.0-prerelease.24203.1\tools\net8.0\any\Microsoft.DotNet.XHarness.CLI.dll
doskey xharness="dotnet exec %XHARNESS_CLI_PATH%"
set XHARNESS_DIAGNOSTICS_PATH=%HELIX_WORKITEM_ROOT%\diagnostics.json
 powershell -command "New-SelfSignedCertificate -FriendlyName 'ASP.NET Core HTTPS development certificate' -DnsName @('localhost') -Subject 'CN = localhost' -KeyAlgorithm RSA -KeyLength 2048 -HashAlgorithm sha256 -CertStoreLocation 'Cert:\CurrentUser\My' -TextExtension @('2.5.29.37={text}1.3.6.1.5.5.7.3.1','1.3.6.1.4.1.311.84.1.1={hex}02','2.5.29.19={text}') -KeyUsage DigitalSignature,KeyEncipherment" && call RunTests.cmd
set _commandExitCode=%ERRORLEVEL%
"%HELIX_PYTHONPATH%" -u "%HELIX_WORKITEM_PAYLOAD%\xharness-event-processor.py"
%HELIX_PYTHONPATH% %HELIX_CORRELATION_PAYLOAD%\reporter\run.py https://dev.azure.com/dnceng-public/ public 15886362 eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Im9PdmN6NU1fN3AtSGpJS2xGWHo5M3VfVjBabyJ9.eyJuYW1laWQiOiJjNzczZjJjMi01MTIwLTQyMDctYWZlMi1hZmFmMzVhOGJjMGEiLCJzY3AiOiJhcHBfdG9rZW4iLCJhdWkiOiJhMmE0YzMzZS1lNjk4LTQ1MGItYTUyNS1lMzNhYmRhNDQxM2IiLCJzaWQiOiIwMDc2YmIyYy1iNzhlLTRiZjctYTc1NS1iMjBiMDk5NGFmNjQiLCJCdWlsZElkIjoiY2JiMTgyNjEtYzQ4Zi00YWJiLTg2NTEtOGNkY2I1NDc0NjQ5OzY0MzgyMCIsImpvYnJlZiI6IjRjN2Q1ZDBkLTlhYzAtNGQ4YS04NWI1LTRmYjgwODVmMDU5ODpkYTIzOWIwZi00ZDM4LTUxNjgtNGE3MS0wNjQzZjgwNDc4YzMiLCJwcGlkIjoidnN0ZnM6Ly8vQnVpb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