Skip to content

improve handling of over the limit uploads #2582

@migmartri

Description

@migmartri

chainloop artifact upload returns a server error if we go over the CAS backend limit instead of handlling it gracefully.

chainloop artifact upload -f ./temp_10GB_file
INF uploading temp_10GB_file - sha256:72abf2ca8f36943ebe2e49ca3a51d409ca5f0bfcffab6c9d25643c17c32889da
 ... done! [111.15MB in 5.647s; 19.68MB/s]
ERR server error

The actual error is the following and should be handled gracefully, which I believe we used to do, or we do in another part of the system, i.e attestation process?

"level":"error","ts":1764083698.9554467,"component":"service","msg":"max size of upload exceeded: want=105906176, max=104857600"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions