Send checksum of a trace to rails upon build completion
Description
We used to send entire trace to GitLab upon a build completion. This has been disabled since months now, because we are moving toward incremental traces strategy, and it works well.
We are currently working on the next iteration of incremental traces - Live Traces - the one that will be decoupled from a local shared storage. We want to build mechanisms that will increase resiliency and observability - we need a mechanism that will help to validate correctness of traces sent to GitLab incrementally.
Proposal
Send CRC32 checksum of entire trace using IEEE polynomial:
"trace": { "checksum": "crc32:12345678" }
Old proposal:
{
"trace": {
"chunks": [
{ "index": 1, "md5sum": "18575ed07713cb3bab8b91311146999c", "bytesize": 131072 },
{ "index": 2, "md5sum": "8f0abafc5f8e6686a882c78cac4bcb9f", "bytesize": 131072 },
{ "index": 3, "md5sum": "da70f4122b8704cd066d658bf0198d65c", "bytesize": 512 },
],
"md5sum": "76931daaa7c7f134531e7938b3a9052c" }
}
Edited by Grzegorz Bizon