-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Docker incompat from image prune and build tests #3330
Remove Docker incompat from image prune and build tests #3330
Conversation
+1 |
base := testutil.NewBase(t) | ||
base.Env = append(base.Env, fmt.Sprintf("SOURCE_DATE_EPOCH=%d", time.Now().Add(-2*time.Hour).Unix())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a comment line to explain this
cc9b0f3
to
e5aab95
Compare
I was hoping we could remove the sleep and deterministically test with the SOURCE_DATE_EPOCH; however, through testing it appears images built with containerd v1.6 are not respecting the SOURCE_DATE_EPOCH. |
Looks like 1.6 will be supported until at least Feb 2025... https://containerd.io/releases/ I am not sure it is worth the effort, but we could specialize this test for different versions of containerd? ( |
Signed-off-by: Austin Vazquez <macedonv@amazon.com>
Signed-off-by: Austin Vazquez <macedonv@amazon.com>
e5aab95
to
6362afc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Description
This change is a followup to #3319 to enable image prune filter until integration tests on Docker.
SOURCE_DATE_EPOCH
is available in buildx since v0.10 which should be available in Docker 23 and greater.Testing
TestImagePruneFilterUntil
on DockerTestBuildSourceDateEpoch
on Docker