mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-18 21:55:59 +00:00
fixup! versions: bump containerd version to 2.3
tests/common: use GOTOOLCHAIN=auto instead of bumping Go version Instead of bumping the project-wide Go version to 1.26.2, add a helper that sets GOTOOLCHAIN=auto before building containerd from source. This lets Go auto-download the toolchain that containerd's go.mod requires without changing Kata's pinned Go version. Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
This commit is contained in:
2
.github/workflows/basic-ci-amd64.yaml
vendored
2
.github/workflows/basic-ci-amd64.yaml
vendored
@@ -28,7 +28,7 @@ jobs:
|
||||
# all the tests due to a single flaky instance.
|
||||
fail-fast: false
|
||||
matrix:
|
||||
containerd_version: ['active']
|
||||
containerd_version: ['sandbox_api']
|
||||
vmm: ['dragonball', 'clh-runtime-rs', 'qemu-runtime-rs']
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.job }}-${{ github.event.pull_request.number || github.ref }}-sandboxapi-amd64-${{ toJSON(matrix) }}
|
||||
|
||||
@@ -764,6 +764,14 @@ function get_latest_patch_release_from_a_github_project() {
|
||||
| grep "${regex}" -m1
|
||||
}
|
||||
|
||||
# GitHub Actions' setup-go often sets GOTOOLCHAIN=local, which forbids fetching a newer
|
||||
# toolchain required by cloned containerd (e.g. v2.3 go.mod vs Kata's pinned Go). Use
|
||||
# automatic toolchain selection only while building upstream containerd.
|
||||
function export_go_toolchain_for_containerd_source_builds() {
|
||||
export GOTOOLCHAIN=auto
|
||||
info "GOTOOLCHAIN=auto so containerd is built with the toolchain its go.mod requires"
|
||||
}
|
||||
|
||||
# base_version: The version to be intalled in the ${major}.${minor} format
|
||||
function clone_cri_containerd() {
|
||||
base_version="${1}"
|
||||
|
||||
@@ -314,7 +314,8 @@ externals:
|
||||
# version older than them.
|
||||
version: "v1.7.25"
|
||||
lts: "v1.7"
|
||||
active: "v2.3"
|
||||
active: "v2.2"
|
||||
sandbox_api: "v2.3"
|
||||
|
||||
critools:
|
||||
description: "CLI tool for Container Runtime Interface (CRI)"
|
||||
@@ -468,12 +469,12 @@ languages:
|
||||
description: "Google's 'go' language"
|
||||
notes: "'version' is the default minimum version used by this project."
|
||||
# When updating this, also update in go.mod files.
|
||||
version: "1.26.2"
|
||||
version: "1.25.10"
|
||||
meta:
|
||||
description: |
|
||||
'newest-version' is the latest version known to work when
|
||||
building Kata
|
||||
newest-version: "1.26.2"
|
||||
newest-version: "1.25.10"
|
||||
|
||||
rust:
|
||||
description: "Rust language"
|
||||
|
||||
Reference in New Issue
Block a user