Closed leoluk closed 1 year ago
Unable to reproduce it after a few hundred clean rebuilds:
while bazel build --action_env=CAT=$(date +%s) //metropolis/node:image_gcp; do sleep 1; done
@fionera reports that this can be reproduced by bazel test //...
, so it's most likely interference by another test modifying the image somehow.
https://jenkins.monogon.dev/job/gerrit-presubmit-monogon/job/74%252F1874%252F22/1/console
Just got the CI to reproduce it.
This has now gotten to near-100% CI reproducibility, I can barely get a successful build anymore. I looked into it again and I still cannot see what causes this.
image_gcp was removed, and when reintroducing, we should write some small Go-based rule for it or figure out how to make rules_pkg work: https://review.monogon.dev/c/monogon/+/2028
Cause unclear - it's either a correctness issue where the file actually changes due to concurrent builds or test somehow modifying their inputs, or a sandboxing artifact where the mtimes isn't stable (without violating correctness, but confusing tar).
Whatever this is: https://jenkins.monogon.dev/job/gerrit-presubmit-monogon/job/53%252F1953%252F1/1/console
https://github.com/Distrotech/tar/blob/273975bec1ff7d591d7ab8a63c08a02a285ffad3/src/create.c#L1788-L1793
This isn't even a test. I don't really see how this could happen unless some concurrent rule modifies the output root, if such a thing is even possible (shouldn't inputs be mapped read-only?)
May or may not be related: