• Grzegorz Bizon's avatar
    Check if build trace is corrupted by comparing size · 7e06c823
    Grzegorz Bizon authored
    This commit adds support for incrementing a Prometheus counter in case
    of detecting a malformed / corrupted build log. We store a bytesize of a
    build log in the ci_build_pending_states table and compare it to the
    size calculated using stored build trace chunks.
    
    If CRC32 checksum of a build log is invalid and a bytesize differs too,
    we increment `corrupted` build logs counter and send an appropritate log
    to Sentry.
    7e06c823
feature-gb-build-trace-malformed-size-metric.yml 131 Bytes