-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a canary CI target to test against upcoming / unreleased versions
Signed-off-by: apostasie <[email protected]>
- Loading branch information
Showing
5 changed files
with
121 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# This pipeline purpose is solely meant to run a subset of our test suites against upcoming or unreleased dependencies versions | ||
name: test-canary | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'release/**' | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
|
||
env: | ||
# If left blank, will default to latest stable | ||
GO_VERSION: "1.23-rc1" | ||
GO_VERSION_SETUP_GO: "1.23.0-rc.1" | ||
UBUNTU_VERSION: "24.04" | ||
|
||
# Straight git branches | ||
CONTAINERD_VERSION: "main" | ||
# Windows install script can only set released versions | ||
CONTAINERD_VERSION_WINDOWS: "2.0.0-rc.3" | ||
IMGCRYPT_VERSION: "main" | ||
BYPASS4NETNS_VERSION: "main" | ||
KUBO_VERSION: "main" | ||
GOTESTSUM_VERSION: "main" | ||
# Set this to "next" for upcoming version (defined by `RegistryImageNext`) | ||
DISTRIBUTION_VERSION: "next" | ||
# FIXME. Currently pinned, see: https://github.com/containerd/nerdctl/pull/3153 | ||
RUNC_VERSION: "v1.1.13" | ||
|
||
# Released versions - one can update these manually to override the Dockerfile pinned versions | ||
BUILDKIT_VERSION: "v0.15.0-rc1" | ||
# CNI_PLUGINS_VERSION: "v1.5.1" | ||
# STARGZ_SNAPSHOTTER_VERSION: "v0.15.1" | ||
# ROOTLESSKIT_VERSION: "v2.1.0" | ||
# SLIRP4NETNS_VERSION: "v1.3.1" | ||
# FUSE_OVERLAYFS_VERSION: "v1.13" | ||
# CONTAINERD_FUSE_OVERLAYFS_VERSION: "v1.0.8" | ||
# TINI_VERSION: "v0.19.0" | ||
# BUILDG_VERSION: "v0.4.1" | ||
# CONTAINERIZED_SYSTEMD_VERSION: "v0.1.1" | ||
# NYDUS_VERSION: "v2.2.5" | ||
# SOCI_SNAPSHOTTER_VERSION: "0.6.1" | ||
|
||
|
||
jobs: | ||
linux: | ||
runs-on: "ubuntu-24.04" | ||
timeout-minutes: 40 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 1 | ||
- name: "Prepare integration test environment" | ||
run: DOCKER_BUILDKIT=1 docker build -t test-integration --target test-integration --build-arg UBUNTU_VERSION=$UBUNTU_VERSION --build-arg CONTAINERD_VERSION=$CONTAINERD_VERSION . | ||
- name: "Remove snap loopback devices (conflicts with our loopback devices in TestRunDevice)" | ||
run: | | ||
sudo systemctl disable --now snapd.service snapd.socket | ||
sudo apt-get purge -y snapd | ||
sudo losetup -Dv | ||
sudo losetup -lv | ||
- name: "Register QEMU (tonistiigi/binfmt)" | ||
run: docker run --privileged --rm tonistiigi/binfmt --install all | ||
- name: "Run unit tests" | ||
run: go test -v ./pkg/... | ||
- name: "Run integration tests" | ||
continue-on-error: true | ||
run: docker run -t --rm --privileged test-integration | ||
|
||
windows: | ||
runs-on: windows-latest | ||
timeout-minutes: 30 | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 1 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION_SETUP_GO }} | ||
cache: true | ||
check-latest: true | ||
- run: go install ./cmd/nerdctl | ||
# This here is solely to get the cni install script, which has not been modified in 3+ years. | ||
# There is little to no reason to update this to latest containerd | ||
- uses: actions/[email protected] | ||
with: | ||
repository: containerd/containerd | ||
ref: "v1.7.19" | ||
path: containerd | ||
fetch-depth: 1 | ||
- name: "Set up CNI" | ||
working-directory: containerd | ||
run: GOPATH=$(go env GOPATH) script/setup/install-cni-windows | ||
# Windows setup script can only use released versions | ||
- name: "Set up containerd" | ||
env: | ||
ctrdVersion: ${{ env.CONTAINERD_VERSION_WINDOWS }} | ||
run: powershell hack/configure-windows-ci.ps1 | ||
- name: "Run integration tests" | ||
continue-on-error: true | ||
run: go test -v ./cmd/... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters