Explicitly set Docker as test runtime to avoid issues with docker info#9200
Explicitly set Docker as test runtime to avoid issues with docker info#9200danegsta merged 2 commits intodotnet:mainfrom
Conversation
|
this should probably also be added to aspire/eng/pipelines/templates/BuildAndTest.yml Lines 107 to 114 in 48950f0 aspire/tests/helix/send-to-helix-inner.proj Lines 157 to 159 in 48950f0 |
|
failure is |
Saw the same error from the test runs on the first commit to this PR. The URL works fine from my home network; test pool getting rate limited? |
|
@radical copilot says htere's no way to request retries of the playwright download short of looping in msbuild <PropertyGroup>
<MaxRetries>3</MaxRetries>
<RetryCount>0</RetryCount>
</PropertyGroup>
<Target Name="InstallPlaywrightWithRetry">
<Exec Command="dotnet exec --runtimeconfig $(MSBuildThisFileDirectory)Microsoft.Playwright.runtimeconfig.json $(_MicrosoftPlaywrightDllPath) install @(BrowsersForPlaywrightToInstall, ' ')"
EnvironmentVariables="@(_EnvVarsForPlaywrightInstall)"
IgnoreExitCode="true">
<Output TaskParameter="ExitCode" PropertyName="PlaywrightExitCode" />
</Exec>
<Message Text="Playwright install attempt $(RetryCount), ExitCode: $(PlaywrightExitCode)" Importance="high" />
<Error Condition="'$(PlaywrightExitCode)' != '0' and '$(RetryCount)' == '$(MaxRetries)'" Text="Playwright install failed after $(MaxRetries) attempts." />
<PropertyGroup>
<RetryCount Condition="'$(PlaywrightExitCode)' != '0'">$(RetryCount)</RetryCount>
<RetryCount Condition="'$(PlaywrightExitCode)' != '0'">$([MSBuild]::Add($(RetryCount), 1))</RetryCount>
</PropertyGroup>
<CallTarget Condition="'$(PlaywrightExitCode)' != '0' and '$(RetryCount)' != '$(MaxRetries)'" Targets="InstallPlaywrightWithRetry" />
</Target>
|
|
Green tests, so I'll merge this to unblock the other PRs hitting test failures. |
|
thanks @danegsta . is there a product bug here for 9.3? |
|
Are we sure this isn’t a product issue? |
Best guess is that Docker on the test pool is hanging on the |
|
This sounds related to #8737 - I see tests intermittently fail on 9.2 for |
|
I've made a change in DCP main to avoid calling |
…cker info (dotnet#9200)" This reverts commit 8692e43.
Description
Windows tests seem to have started having issues with container runtime detection. This PR forces the tests to use the Docker runtime since that's what's installed. It'll cause us to skip most of the detection logic hopefully the issue.
Checklist
<remarks />and<code />elements on your triple slash comments?doc-ideatemplatebreaking-changetemplatediagnostictemplate