Skip to content
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

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

Closed
pavelsavara opened this issue Apr 15, 2024 · 4 comments · Fixed by #101077
Closed

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

pavelsavara opened this issue Apr 15, 2024 · 4 comments · Fixed by #101077
Labels
area-Build-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab

Comments

@pavelsavara
Copy link
Member

pavelsavara commented Apr 15, 2024

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: 🔎 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: ✅ 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 #100266
643820 dotnet/runtime WasmTestOnBrowser-System.Net.Http.Functional.Tests.WorkItemExecution #101053
643867 dotnet/runtime WasmTestOnBrowser-System.Runtime.Tests.WorkItemExecution #100266
643833 dotnet/runtime System.Runtime.Tests.WorkItemExecution #100947
643558 dotnet/runtime Workloads-Wasm.Build.Tests.WasmTemplateTests.WorkItemExecution #100697
643422 dotnet/runtime Workloads-Wasi.Build.Tests.InvariantTests.WorkItemExecution #100587
643400 dotnet/runtime Workloads-NoWebcil-Wasm.Build.NativeRebuild.Tests.SimpleSourceChangeRebuildTest.WorkItemExecution #101042
643443 dotnet/runtime Workloads-Wasi.Build.Tests.SdkMissingTests.WorkItemExecution #101045
643543 dotnet/runtime System.Runtime.Tests.WorkItemExecution #100823
643533 dotnet/runtime System.Runtime.Tests.WorkItemExecution #100842
643425 dotnet/runtime WasmTestOnBrowser-System.Runtime.Tests.WorkItemExecution #100141
642959 dotnet/runtime System.Runtime.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
11 12 12
@pavelsavara pavelsavara added area-Build-mono Known Build Error Use this to report build issues in the .NET Helix tab os-wasi Related to WASI variant of arch-wasm labels Apr 15, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Apr 15, 2024
@pavelsavara
Copy link
Member Author

Somehow this is hit on linux Helix host

<ItemGroup Condition=" '$(TargetOS)' != 'windows' ">
<HelixPreCommand Include="export __TestArchitecture=$(TargetArchitecture)" />
</ItemGroup>

@pavelsavara pavelsavara added arch-wasm WebAssembly architecture and removed os-wasi Related to WASI variant of arch-wasm labels Apr 15, 2024
@pavelsavara pavelsavara changed the title unix commands in windows helix run script unix/windows commands are mixed in helix run script Apr 15, 2024
@pavelsavara
Copy link
Member Author

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 pavelsavara added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' and removed arch-wasm WebAssembly architecture labels Apr 15, 2024
@pavelsavara
Copy link
Member Author

pavelsavara commented Apr 15, 2024

It's also on __TestArchitecture=arm64

Log

@pavelsavara
Copy link
Member Author

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 eyJ0eXAiOiJKV1Qi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mrinw4t5wTJwDxFfFbvlqka8gyOyjvg56uc8iddHedxxZ8wnUDPxr2QuKHXf1ZiWmz7K39ih65Z5JJFwEcwWOG9-rsEKR66qQc408hbi6NDYVgJss9fCph0WpQIzFPVYDVM48X5X0pkngO4UIQtiStgOgzXkD9bwH_VD4X21aTotpFlfg || exit /b
taskkill.exe /f /im corerun.exe
EXIT /b %_commandExitCode%

It contains the offending lines

@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Apr 16, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Build-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant