Upload tests

I have identified this issue where we pay for uploading the same file. When we upload a file, we upload as part of a single-file ‘archive’. This archive contains metadata for the file, like the filename and modified date. But also an ‘uploaded’ timestamp, which describes when the file was uploaded. Upon re-uploading the file, this ‘uploaded’ timestamp is updated, yielding a new archive version, requiring a re-upload/payment.

We’ll probably take out this ‘uploaded’ metadata. And, another issue was that the archive was not deterministically serialized into bytes. I.e. sometimes the archive would have the order [FILE_A, FILE_B] and sometimes [FILE_B, FILE_A], while both are the same.

9 Likes