Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[test]Resolve containerd dependency conflicts #1860

Closed
wants to merge 1 commit into from

Conversation

helsaawy
Copy link
Contributor

Upgrading to containerd 1.7.3 causes linter/build issues for the gcs tests because of dependency conflict.

The test/ modules freezes k8s.io/cri-api at v0.25, since the v1alpha2 API is removed in v0.26.
However, containerd 1.7.2 upgrades k8s.io/cri-api to v0.27 from v0.26, which adds new fields that containerd/pkg/cri relies on for its Linux code paths.
This causes the gcs tests, which uses
github.com/containerd/containerd/pkg/cri/opts (and other pkgs) to fail, since the new containerd code cannot find the required fields in k8s.io/cri-api.

Therefore freeze containerd to v1.7.0 until test/cri-container no longer needs to freeze k8s.io/cri-api.

Upgrading to `containerd` 1.7.3 causes linter/build issues for the gcs
tests because of dependency conflict.

The `test/` modules freezes `k8s.io/cri-api` at `v0.25`, since the
`v1alpha2` API is removed in `v0.26`.
However, `containerd` 1.7.2 upgrades `k8s.io/cri-api` to `v0.27` from
`v0.26`, which adds new fields that `containerd/pkg/cri` relies on for
its Linux code paths.
This causes the gcs tests, which uses
`github.com/containerd/containerd/pkg/cri/opts` (and other pkgs) to
fail, since the new containerd code cannot find the required fields in
`k8s.io/cri-api`.

Therefore freeze `containerd` to `v1.7.0` until `test/cri-container` no
longer needs to freeze `k8s.io/cri-api`.

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
@helsaawy helsaawy added the tests Pull requests that modify tests label Jul 31, 2023
@helsaawy helsaawy requested a review from a team as a code owner July 31, 2023 18:20
@helsaawy helsaawy marked this pull request as draft August 2, 2023 18:34
@helsaawy
Copy link
Contributor Author

helsaawy commented Nov 8, 2023

Superseded by #1958

@helsaawy helsaawy closed this Nov 8, 2023
@helsaawy helsaawy deleted the deps/containerd-1.7.3 branch February 26, 2024 16:45
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
tests Pull requests that modify tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant