Skip to content

[test]Resolve containerd dependency conflicts#1860

Closed
helsaawy wants to merge 1 commit intomicrosoft:mainfrom
helsaawy:deps/containerd-1.7.3
Closed

[test]Resolve containerd dependency conflicts#1860
helsaawy wants to merge 1 commit intomicrosoft:mainfrom
helsaawy:deps/containerd-1.7.3

Conversation

@helsaawy
Copy link
Copy Markdown
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
Copy Markdown
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Pull requests that modify tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant