Skip to content

Conversation

@aciba90
Copy link

@aciba90 aciba90 commented Jun 18, 2025

Use the commit date of the HEAD commit as date for the release binary artifacts date maintaining determinism but being realistic.

Previously, a constant 2015-10-21 00:00Z was used.

Fixes #2007

Signed-off-by: Alberto Contreras [email protected]

Use the commit date of the HEAD commit as date for the release binary
artifacts date maintaining determinism but being realistic.

Previously, a constant `2015-10-21 00:00Z` was used.

Fixes moby#2007

Signed-off-by: Alberto Contreras <[email protected]>
@aciba90
Copy link
Author

aciba90 commented Jun 18, 2025

I have tested it by:

make release   # with containerd-snapshtter set as true

$ git show -s --format='%cI' HEAD
2025-06-18T18:38:27+02:00

$ tar tavf bin/release/buildkit-v0.23.0-rc1-5-gdb4643606.linux-amd64.tar.gz 
drwxr-xr-x root/root         0 2025-06-18 18:38 bin/
-rwxr-xr-x root/root  33414304 2025-06-18 18:38 bin/buildctl
-rwxr-xr-x root/root   5694447 2025-06-18 18:38 bin/buildkit-cni-bridge
-rwxr-xr-x root/root   5749447 2025-06-18 18:38 bin/buildkit-cni-firewall
...

# both dates are aligned

rm -rv bin/release/*  # and repeat the process, verify the date is still the same

@tonistiigi tonistiigi requested a review from crazy-max June 18, 2025 18:19
crazy-max
crazy-max previously approved these changes Jun 20, 2025
@crazy-max crazy-max dismissed their stale review June 20, 2025 09:02

mtime issue

@crazy-max
Copy link
Member

crazy-max commented Jun 20, 2025

Seems tarball is not created 🤔: https://github.com/moby/buildkit/actions/runs/15738588557/job/44462990343?pr=6037#step:3:16

Maybe artifacts got pruned when re-running the workflow. Let me do a full re-run to make sure.

@crazy-max crazy-max merged commit 6dbcf9e into moby:master Jun 20, 2025
199 of 201 checks passed
@crazy-max crazy-max added this to the v0.24.0 milestone Jun 20, 2025
@aciba90 aciba90 deleted the 2007-use-commit-date-in-binary-artifacts branch June 20, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Binary artifacts are created with mtime=2015-10-21

4 participants