DownloadBuildArtifacts has incomplete downloads with no errors
See original GitHub issueNote
Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo
For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
If you have an issue or request for the Azure Pipelines service, use developer community instead:
https://developercommunity.visualstudio.com/spaces/21/index.html )
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: bug
Enter Task Name: DownloadBuildArtifactsV0
list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
Environment
-
Server - Azure Pipelines or TFS on-premises?
-
If using TFS on-premises, provide the version:
-
If using Azure Pipelines, provide the account name, team project name, build definition name/build number:
-
Example build: See “Libraries Test Run release coreclr Windows_NT x64 Debug” in https://dnceng.visualstudio.com/public/_build/results?buildId=722532&view=logs&j=694d544e-ff71-5faf-b01a-5137c04e57c6&t=e3fd78b8-f38c-5ce4-3c18-7a68a40fe399
-
Agent - Hosted or Private:
-
If using Hosted agent, provide agent queue name:
-
If using private agent, provide the OS of the machine running the agent and the agent version:
-
Private - Windows Server 2019
Issue Description
Starting: Download Test Assets
==============================================================================
Task : Download build artifacts
Description : Download files that were saved as artifacts of a completed build
Version : 0.167.2
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/download-build-artifacts
==============================================================================
Downloading artifacts for build: 722532
Downloading items from container resource #/4554312/libraries_test_assets_Windows_NT_x64_Debug
Downloading artifact libraries_test_assets_Windows_NT_x64_Debug from: https://dev.azure.com/dnceng//_apis/resources/Containers/4554312?itemPath=libraries_test_assets_Windows_NT_x64_Debug&isShallow=true&api-version=4.1-preview.4
Downloading libraries_test_assets_Windows_NT_x64_Debug/libraries_test_assets_Windows_NT_x64_Debug.zip to F:\workspace\_work\1\s\__download__\libraries_test_assets_Windows_NT_x64_Debug\libraries_test_assets_Windows_NT_x64_Debug.zip
Downloaded libraries_test_assets_Windows_NT_x64_Debug/libraries_test_assets_Windows_NT_x64_Debug.zip to F:\workspace\_work\1\s\__download__\libraries_test_assets_Windows_NT_x64_Debug\libraries_test_assets_Windows_NT_x64_Debug.zip
Total Files: 1, Processed: 1, Skipped: 0, Failed: 0, Download time: 1819.658 secs, Download size: 199.113MB
Successfully downloaded artifacts to F:\workspace\_work\1\s/__download__
Finishing: Download Test Assets
… but the file at https://dev.azure.com/dnceng/_apis/resources/Containers/4554312?itemPath=libraries_test_assets_Windows_NT_x64_Debug%2Flibraries_test_assets_Windows_NT_x64_Debug.zip
is 365 MB, so in the next step when it tries to unzip:
ERROR: Data Error : helix\tests\Windows_NT.AnyCPU.Debug\System.IO.Compression.ZipFile.Tests.zip
error: undefined;
##[error]Extraction failed for file: F:\workspace\_work\1\s\__download__\libraries_test_assets_Windows_NT_x64_Debug\libraries_test_assets_Windows_NT_x64_Debug.zip
code: 2
[Include task name(s), screenshots and any other relevant details]
Task logs
See linked build.
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Error logs
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12 (10 by maintainers)
@MattGal, the PR with the fix was merged. I’ll let you know once the fix is deployed.
FYI we have been experiencing the same issue on our end. It was working fine until yesteday, but it failed 3 times for our build today.
eg. https://dev.azure.com/mphasis-wyde/Wynsure Product/_build/results?buildId=3390&view=logs&j=c1abedab-6e8a-5acb-7f25-be4ece04f074&t=7727b2dc-7902-526f-78b7-45d9a2b1af14