besu icon indicating copy to clipboard operation
besu copied to clipboard

deterministic SHA for releases

Open macfarla opened this issue 10 months ago • 2 comments

As a release manager, I want the SHA for the release artifacts to be deterministic (based on github commit), so that if we have to re-run a workflow using the same commit as input, the artifacts that result are verifiably identical.

Current hypothesis is that timestamp is also baked in and that's why the sha produced is not deterministic

macfarla avatar Apr 24 '24 05:04 macfarla

You will want these two options set in lots of places

It appears Gradle took away dirMode and fileMode settings, hopefully it's because they made it consistent. This old and incompatible plugin may have other useful insights - https://github.com/Johni0702/gradle-reproducible-builds-plugin?tab=readme-ov-file

shemnon avatar Apr 24 '24 14:04 shemnon

also maybe some context in #5785

macfarla avatar Apr 26 '24 00:04 macfarla