ITADN

[WIP] Docker Build Timeout Issue For Untrusted Workload

#597Pull RequestCopilot 创建于 2025-06-02
C
Copilotcommented
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: > Please fill out _all the sections_ below for bug issues, otherwise it'll be closed as it won't be actionable for us to address. > > **Describe the bug** > Docker build timeout issue sometimes happened in SqlTools Untrusted workload initialization. The timeout is 5 mins. In .dockerfile, it needs to run PowerShell script to install .NET 8 SDK first and then run CMD command. It always completed .NET8 SDK installation but hang in CMD step (I will share the required files in "To Reproduce"). > > "Done unzipping contents of C:\SqlToolsCore.Untrusted\dotnet-sdk.zip to C:\Program Files\dotnet-sdk" is the log meaning that it completed SDK installation. But it never went to CMD > ![Image](https://github.com/user-attachments/assets/e81057bb-ace0-477a-911f-5633736a666a) > > **To Reproduce** > Steps to reproduce the behavior: > There are the scripts in untrusted workload: > [docker file](https://dev.azure.com/powerbi/MWC/_git/workload-sqltoolscore?path=/Service/Microsoft.Trident.Workload.SqlToolsCore.Untrusted.EntryPoint/SqlToolsCore.Untrusted.dockerfile) > [install SDK script](https://dev.azure.com/powerbi/MWC/_git/workload-sqltoolscore?path=/Service/Microsoft.Trident.Workload.SqlToolsCore.Untrusted.EntryPoint/Scripts/install_sdks.ps1) > > This is the install docker script: > [InstallDocker.ps1](https://dev.azure.com/powerbi/MWC/_search?action=contents&text=workloadbase-windowsservercore-untrusted.dockerfile&type=code&lp=code-Project&filters=ProjectFilters%7BMWC%7DRepositoryFilters%7BVMSS-ImageBuilder%7D&pageSize=25&result=DefaultCollection/MWC/VMSS-ImageBuilder/GBmain//MWC.VMSSImageBuilder/Scripts/ImageBuilderResources/InstallDocker.ps1) > [workloadbase-windowsservercore-untrusted.dockerfile](https://dev.azure.com/powerbi/MWC/_search?action=contents&text=workloadbase-windowsservercore-untrusted.dockerfile&type=code&lp=code-Project&filters=ProjectFilters%7BMWC%7DRepositoryFilters%7BVMSS-ImageBuilder%7D&pageSize=25&result=DefaultCollection/MWC/VMSS-ImageBuilder/GBmain//MWC.VMSSImageBuilder/Scripts/ImageBuilderResources/workloadbase-windowsservercore-untrusted.dockerfile) > > **Expected behavior** > Docker build should complete within 5 minutes. > > **Configuration:** > - Edition: WindowsServerCore > - Base Image being used: mcr.microsoft.com/windows/server:ltsc2022 > - Container engine: [docker] > - Container Engine version [22] > > **Additional context** > Add any other context about the problem here. > Fixes #590. --- 💡 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](https://gh.io/copilot-coding-agent-tips) in the docs.
合并状态:未合并 关闭于 2025-06-02 0 条评论