-
Notifications
You must be signed in to change notification settings - Fork 352
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
Downloading artifacts before publishing is exceeding 10gb, in runtime #6987
Comments
I have a PR to remove symbol publishing to azure storage -> #6973 , so I was thinking we might be able to remove the temp dir altogether and test in runtime.. But this will fail for nuget feed uploads for stable builds. I am going remove the temp dir and test it against runtime to see if helps at all. Then prob for stable builds we can come up with a different solution. |
Till we fig this out, I have opened a FR issue to unblock runtime -> #6988 |
…ster if publishing changes. SHould be deleted after runtime is unblocked.
I tested this fix against arcade and that worked :) |
Runtime promotion also worked ->https://dev.azure.com/dnceng/internal/_build/results?buildId=1003984&view=logs&j=ba23343f-f710-5af9-782d-5bd26b102304&t=6e277ba4-1c1e-552d-b96f-db0aeb4be20a Need to figure out the best way for uploading symbols to Nuget Feed. Probably only for stable builds, we do not parallelly upload symbols to Nuget feed and Symbolserver, what if we do it one after the other? |
@epananth I would look instead into not having to have the nuget feed for symbol publishing at all. Instead, forcing all the symbol packages to have non-stable versions. This would mean they could continue just to go to azure blob storage. |
@mmitche mentioned in email
|
I did some investigation on downloading the artifacts one by one Here is the API I used to list all the artifacts from the storage :
here is the result snippet
So we can download the PackageArtifacts folder using https://dev.azure.com/dnceng/7ea9116e-9fac-403d-b258-b31fcf1bb293/_apis/build/builds/1003925/artifacts?artifactName=PackageArtifacts&api-version=6.0&%24format=zip but there is no way to list the contents of the PackageArtifacts, to download it one file at a time. We can only download entire folder. Let me know if I am missing something here. |
There is this API https://docs.microsoft.com/en-us/rest/api/azure/devops/build/artifacts/get%20file?view=azure-devops-rest-6.0, to download one file at a time. But we have to have the file name and id before hand to do so.. |
…ster if publishing changes. SHould be deleted after runtime is unblocked.
Weirdly that API doesn't support "Container" artifacts. I'm not sure what sort of weird artifact we are producing that it doesn't work in. :-( |
For downloading artifact from the container -> https://dev.azure.com/dnceng/_apis/resources/Containers/{containId}?itemPath=/BlobArtifacts/MergedManifest.xml&isShallow=true&api-version=4.1-preview.4 |
Yeah, we just have to sort of... infer that second path, but it's what all the support people said to do for every instance I found (they also said to stop using Publish Build Artifacts, but that's not an argument worth having right now, I think... the other API is equally useless, because you have to pass it "fileId", which isn't documented anywhere as to what that even means) |
Yeah agreed. This isn't ideal, but we were told to use this, and it's also shown in OSS code right now (the tasks that download artifacts to the machine use the API). Presumably they have to keep supporting it to not break the task. |
Also adding a flag, to support both the existing functionality and the new API supported one. So that if the API fails, we have a fall back mechanism. |
Reintroduce workaround for dotnet/arcade#6987
Workaround still required for dotnet/arcade#6987
workaround for dotnet/arcade#6987
…project dotnet/runtime-assets (#49752) * Update dependencies from https://github.com/dotnet/arcade build 20210316.5 Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SharedFramework.Sdk From Version 6.0.0-beta.21155.1 -> To Version 6.0.0-beta.21166.5 * Update dependencies from https://github.com/dotnet/icu build 20210315.1 Microsoft.NETCore.Runtime.ICU.Transport From Version 6.0.0-preview.3.21151.1 -> To Version 6.0.0-preview.3.21165.1 * Update dependencies from https://github.com/dotnet/llvm-project build 20210315.1 runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools , runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk , runtime.osx.10.12-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools , runtime.osx.10.12-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk , runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk , runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools , runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk , runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools From Version 9.0.1-alpha.1.21158.1 -> To Version 9.0.1-alpha.1.21165.1 * Update dependencies from https://github.com/dotnet/runtime-assets build 20210312.1 System.ComponentModel.TypeConverter.TestData , System.Drawing.Common.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Runtime.TimeZoneData , System.Security.Cryptography.X509Certificates.TestData , System.Windows.Extensions.TestData From Version 5.0.0-beta.21159.1 -> To Version 6.0.0-beta.21162.1 * re-add publishing workaround workaround for dotnet/arcade#6987 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Ricardo Arenas <riarenas@microsoft.com> Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
Workaround still needed for dotnet/arcade#6987
* Update dependencies from https://github.com/dotnet/arcade build 20210317.3 Microsoft.DotNet.XUnitExtensions , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.ApiCompat , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SharedFramework.Sdk From Version 6.0.0-beta.21166.5 -> To Version 6.0.0-beta.21167.3 * Update dependencies from https://github.com/dotnet/icu build 20210317.1 Microsoft.NETCore.Runtime.ICU.Transport From Version 6.0.0-preview.3.21165.1 -> To Version 6.0.0-preview.3.21167.1 * Revert changes to publish-using-darc.ps1 Workaround still needed for dotnet/arcade#6987 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Ricardo Arenas <riarenas@microsoft.com>
Required while dotnet/arcade#6987 is resolved
…runtime-assets (#50231) [main] Update dependencies from dotnet/arcade dotnet/xharness dotnet/runtime-assets - Re-introduce publishing workaround Required while dotnet/arcade#6987 is resolved
Required while dotnet/arcade#6987 is fixed
[main] Update dependencies from dotnet/arcade dotnet/xharness - reintroduce publishing branch workarounds. Required while dotnet/arcade#6987 is fixed - fix whitespace in publish-using-darc script - re-introduce publishing branch workaround dotnet/arcade#698
There were failures like this again in runtime, it seems an Arcade update overwrote the bandaid. Applying again. |
I've been doing my best to jump on any arcade dependency updates to change this, but seems like I missed yesterday's update. @epananth do you have a sense for when the fix for this will be ready? Should we be thinking about disabling the arcade subscription until then or something more sustainable to avoid this from popping up again? |
…ess dotnet/llvm-project (#50416) [main] Update dependencies from dotnet/arcade dotnet/icu dotnet/xharness dotnet/llvm-project - Revert publishing branch changes dotnet/arcade#6987 - reintroduce publishing branch workaround dotnet/arcade#6987
dotnet/arcade#6987 is still relevant
[main] Update dependencies from dotnet/arcade - Revert changes to publish-using-darc.ps1 dotnet/arcade#6987
Just following up on mails as I was out last week.
I would like to know that as well. |
We could add the workaround dotnet/runtime@2ab247a to dotnet/arcade and activate it via a |
I got my pr approved => #7086, will merge today... |
…cu dotnet/xharness dotnet/llvm-project (#50733) [main] Update dependencies from dotnet/runtime dotnet/arcade dotnet/icu dotnet/xharness dotnet/llvm-project - Revert changes to publish-using-darc.ps1 dotnet/arcade#6987 - revert changes to publish-using-darc.ps1 dotnet/arcade#6987
[main] Update dependencies from dotnet/arcade - revert changes to publish-using-darc.ps1 dotnet/arcade#6987
[main] Update dependencies from dotnet/arcade - revert changes to publish-using-darc.ps1 dotnet/arcade#6987
@epananth I closed this based on discussions in stand up. Please reopen if needed. |
Build -> https://dev.azure.com/dnceng/internal/_build/results?buildId=1002147&view=results
Symbols packages are copied to a temporary directory and then uploaded to Symbol server, this was done cos we wanted blobUpload and symbolUpload have to work parallelly and SymUploader need read permission when uploading to symbol server.
But now in Runtime
• We are downloading 6.3 gigs of artifacts to publish: https://dev.azure.com/dnceng/internal/_build/results?buildId=1002323&view=logs&j=ba23343f-f710-5af9-782d-5bd26b102304&t=cecdd0ae-1666-570d-4521-d44005725bca&l=3166
• The symbol packages are 4.36 GB, so when we do that new intermediate copy step, we’re going over the 10 gigs in a hosted machine.
cc: @mmitche @riarenas
[Edit : renamed this as its not blocking but we need a better way to handle this scenario ]
The text was updated successfully, but these errors were encountered: