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

[ci upload cache] upload cache failure #44060

Open
talregev opened this issue Feb 27, 2025 · 2 comments
Open

[ci upload cache] upload cache failure #44060

talregev opened this issue Feb 27, 2025 · 2 comments
Assignees
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)

Comments

@talregev
Copy link
Contributor

talregev commented Feb 27, 2025

Operating system

vcpkg ci

Compiler

No response

Steps to reproduce the behavior

CI that compile large binaries such as llvm.

Failure logs

warning: curl failed to put file to https://vcpkgbinarycachewus.blob.core.windows.net/cache/8bfe6e0d14ad4b3dbe12decb3cfe0b64acefdb655e0688c84840c749f776a8a4.zip?*** SECRET *** with exit code 0 and http code 413.

Additional context

Can you check the size of the file before upload it? if the size is too big from the storage, please skip it, and save time.

Alternative you can set a new flag for user that can set upload file max size limit, that if the binary is more that this size, it will skip upload, and set the correct size in the ci.
If this flag is not set, it will be the current behavior without limit.

@talregev talregev added the category:port-bug The issue is with a library, which is something the port should already support label Feb 27, 2025
@WangWeiLin-MV
Copy link
Contributor

WangWeiLin-MV commented Feb 28, 2025

Checked issue, regression seems between:

20250121.1 cb47618 https://dev.azure.com/vcpkg/public/_build/results?buildId=111706&view=logs&j=f79cfdd7-47a8-597f-8f57-dc3e21a8f2ad&t=4f03addf-ef5a-50a2-71be-19894d9df4e3&l=29994

20250117.1 cf035d9 https://dev.azure.com/vcpkg/public/_build/results?buildId=111616&view=results


  • default features: llvm[clang,core,default-targets,enable-bindings,enable-terminfo,enable-zlib,enable-zstd,lld,target-x86,tools]:[email protected]#4
  • ci features: llvm[clang,compiler-rt,core,default-targets,enable-abi-breaking-checks,enable-bindings,enable-eh,enable-rtti,enable-terminfo,enable-zlib,enable-zstd,libc,libclc,lld,lldb,target-x86,tools]:[email protected]#4
# vcpkg install llvm[clang,compiler-rt,core,default-targets,enable-abi-breaking-checks,enable-bindings,enable-eh,enable-rtti,enable-terminfo,enable-zlib,enable-zstd,libc,libclc,lld,lldb,target-x86,tools]

# du -hs packages/llvm_x64-linux/
25G     packages/llvm_x64-linux/

# du -hs packages/llvm_x64-linux/debug/lib/* | sort -hk1 | tail
470M    packages/llvm_x64-linux/debug/lib/libLLVMAnalysis.a
681M    packages/llvm_x64-linux/debug/lib/libclangAST.a
968M    packages/llvm_x64-linux/debug/lib/libclangSema.a
1.1G    packages/llvm_x64-linux/debug/lib/libLLVMCodeGen.a
1.2G    packages/llvm_x64-linux/debug/lib/libLTO.so.18.1
1.3G    packages/llvm_x64-linux/debug/lib/libclangCodeGen.a
1.6G    packages/llvm_x64-linux/debug/lib/libclang.so.18.1.6
1.6G    packages/llvm_x64-linux/debug/lib/libclangStaticAnalyzerCheckers.a
2.7G    packages/llvm_x64-linux/debug/lib/liblldb.so.18.1.6
3.0G    packages/llvm_x64-linux/debug/lib/libclang-cpp.so.18.1

# du -h BINARY_CACHE/56/56********.zip
7.1G    BINARY_CACHE/56/56********.zip

Reference

Service version Maximum block size (via Put Block) Maximum blob size (via Put Block List) Maximum blob size via single write operation (via Put Blob)
Version 2019-12-12 and later 4000 MiB Approximately 190.7 TiB (4000 MiB X 50,000 blocks) 5000 MiB

If you attempt to upload either a block blob that's larger than the maximum permitted size for that service version or a page blob that's larger than 8 TiB, the service returns status code 413 (Request Entity Too Large).


@WangWeiLin-MV WangWeiLin-MV added category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) and removed category:port-bug The issue is with a library, which is something the port should already support labels Feb 28, 2025
@WangWeiLin-MV
Copy link
Contributor

@JavierMatosD Would you please look into this issue?

@WangWeiLin-MV WangWeiLin-MV changed the title [ci upload cach] upload cach failure [ci upload cache] upload cache failure Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)
Projects
None yet
Development

No branches or pull requests

2 participants