Skip to content
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

Upgrade to containerd 2 #5507

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

slonopotamus
Copy link
Contributor

@slonopotamus slonopotamus commented Nov 10, 2024

This PR depends on

Non-import changes:

  1. stargz-snapshotter dependency was bumped to unreleased commit because of containerd api changes v0.16.2
  2. fuse-overlayfs-snapshotter dependency was bumped to v2.0.0
  3. Several more deps were automatically updated by go mod tidy
  4. ExpiresIn was changed to ExpiresInSeconds in authprovider.go
  5. Workaround for archive: use 1970-01-01 as the whiteout timestamp containerd/containerd#8764 was removed in overlay_linux.go
  6. Minor code cleanup in main_containerd_worker_windows.go
  7. Adjusted expected string in testUndeclaredArg in dockerfile_lint_test.go
  8. I dropped testSchema1Image test. It is very nontrivial to push CONTAINERD_ENABLE_DEPRECATED_PULL_SCHEMA_1_IMAGE=1 env variable from a single place to both rootful and rootless tests (if you know such place, tell me!). Schema v1 is going away in containerd 2.1 anyway. buildkit still supports in currently. If this change is unacceptable... Well, need more time to find where exactly to put CONTAINERD_ENABLE_DEPRECATED_PULL_SCHEMA_1_IMAGE=1 in buildkit test framework.

Closes #5514

go.mod Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@slonopotamus slonopotamus force-pushed the containerd-2 branch 6 times, most recently from 2576cf8 to bb62a8d Compare November 27, 2024 09:54
@slonopotamus
Copy link
Contributor Author

I'm not sure why CI started to fail with Error: cannot parse bake definitions: ERROR: docker-bake.hcl:319,12-13: Unsuitable value type; Unsuitable value: EOF. Something changed in docker/bake-action@v5? 8ba889b was green 5 days ago, but if I try to rebuild exactly the same source today, it fails.

@slonopotamus
Copy link
Contributor Author

Okay, at least there's a difference in buildx version. Five days ago: v0.18.0, today: v0.19.0.

@slonopotamus
Copy link
Contributor Author

Yes, it is a v0.18.0 -> v0.19.0 buildx regression (confirmed by forcing buildx v0.18.0: 9ee4998), completely unrelated to my changes. And this means all your CI is gonna fail starting from https://github.com/docker/buildx/releases/tag/v0.19.0

@crazy-max
Copy link
Member

crazy-max commented Nov 27, 2024

Yes we just revert the bump to latest Buildx stable in our actions in the meantime while this is being investigated: docker/actions-toolkit#508

You can remove the last commit

@slonopotamus
Copy link
Contributor Author

You can remove the last commit

Done

@github-actions github-actions bot removed the area/ci label Nov 27, 2024
@slonopotamus slonopotamus force-pushed the containerd-2 branch 2 times, most recently from 8171c16 to d31d4dc Compare November 27, 2024 11:20
@slonopotamus
Copy link
Contributor Author

Test failure is #5391, unrelated to changes in current PR.

Copy link
Member

@dmcgowan dmcgowan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is ready to get in here and subsequently in moby/moby

@slonopotamus
Copy link
Contributor Author

Rebased to resolve conflicts.

Schema v1 support will be removed in containerd-2.1.

While we continue to support it when containerd is launched with CONTAINERD_ENABLE_DEPRECATED_PULL_SCHEMA_1_IMAGE=1 env variable, the effort to keep the test working isn't worth it.

Signed-off-by: Marat Radchenko <[email protected]>
Co-authored-by: Derek McGowan <[email protected]>
Signed-off-by: Marat Radchenko <[email protected]>
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.

Upgrade to containerd 2.0
7 participants