Merge pull request #14449 from chrishenzie/upgrade-matrix-2.3

[release/2.3] integration: test upgrades from 2.2 into 2.3
This commit is contained in:
Samuel Karp authored and GitHub committed 2026-10-23 11:30:58 -07:00
commit 9874b27692
2 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ type setupUpgradeVerifyCase func(*testing.T, int, *remote.RuntimeService, *remot
// TODO: Support Windows
func TestUpgrade(t *testing.T) {
for _, version := range []string{"1.7", "2.0"} {
for _, version := range []string{"1.7", "2.0", "2.2"} {
t.Run(version, func(t *testing.T) {
previousReleaseBinDir := t.TempDir()
downloadPreviousLatestReleaseBinary(t, version, previousReleaseBinDir)
@@ -41,8 +41,13 @@ func downloadPreviousLatestReleaseBinary(t *testing.T, version, targetDir string
}
// downloadReleaseBinary downloads containerd binary with a given release.
//
// NOTE: Use the static build. Release binaries are built on Ubuntu 22.04, so
// the dynamically linked containerd needs GLIBC_2.32 and GLIBC_2.34, which the
// EL8 hosts kept in the VM integration matrix for their old glibc cannot
// provide. The static build has no libc dependency and runs everywhere.
func downloadReleaseBinary(t *testing.T, targetDir string, ver string) {
targetURL := fmt.Sprintf("https://github.com/containerd/containerd/releases/download/%s/containerd-%s-linux-%s.tar.gz",
targetURL := fmt.Sprintf("https://github.com/containerd/containerd/releases/download/%s/containerd-static-%s-linux-%s.tar.gz",
ver, strings.TrimPrefix(ver, "v"), runtime.GOARCH,
)