Skip to content

version: bump to 1.31.4 #14437

version: bump to 1.31.4

version: bump to 1.31.4 #14437

Workflow file for this run

name: integration
on:
workflow_dispatch:
push:
tags:
- v*
branches:
- main
- release-*
- update-nixpkgs-*
pull_request:
env:
GO_VERSION: "1.23"
CONMON_BINARY: /usr/local/bin/conmon # from: scripts/github-actions-setup
permissions:
contents: read
jobs:
test-binaries:
strategy:
fail-fast: false
matrix:
run:
- runner: ubuntu-latest
arch: amd64
name: binaries / ${{ matrix.run.arch }}
runs-on: ${{ matrix.run.runner }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: go-test-binaries-${{ matrix.run.arch }}-${{ hashFiles('**/go.sum') }}-${{ hashFiles('test') }}
- run: scripts/github-actions-packages
- run: make all test-binaries
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: test-binaries-${{ matrix.run.arch }}
path: |
bin/crio
bin/pinns
test/checkcriu/checkcriu
test/checkseccomp/checkseccomp
test/copyimg/copyimg
test/nri/nri.test
integration:
needs: test-binaries
strategy:
fail-fast: false
matrix:
run:
- name: critest / conmon / runc / amd64
arch: amd64
runner: ubuntu-latest
defaultRuntime: runc
runtimeType: oci
critest: 1
userns: 0
jobs: 1
timeout: 10
- name: critest / conmon / crun / amd64
arch: amd64
runner: ubuntu-latest
defaultRuntime: crun
runtimeType: oci
critest: 1
userns: 0
jobs: 1
timeout: 10
- name: critest / conmon-rs / runc / amd64
arch: amd64
runner: ubuntu-latest
defaultRuntime: runc
runtimeType: pod
critest: 1
userns: 0
jobs: 1
timeout: 10
- name: critest / conmon-rs / crun / amd64
arch: amd64
runner: ubuntu-latest
defaultRuntime: crun
runtimeType: pod
critest: 1
userns: 0
jobs: 1
timeout: 10
- name: integration / conmon / runc / amd64
arch: amd64
runner: ubuntu-latest
defaultRuntime: runc
runtimeType: oci
critest: 0
userns: 0
jobs: 2
timeout: 120
- name: integration / conmon / crun / amd64
arch: amd64
runner: ubuntu-latest
defaultRuntime: crun
runtimeType: oci
critest: 0
userns: 0
jobs: 2
timeout: 120
- name: integration / conmon-rs / runc / amd64
arch: amd64
runner: ubuntu-latest
defaultRuntime: runc
runtimeType: pod
critest: 0
userns: 0
jobs: 2
timeout: 120
- name: integration / userns / runc / amd64
arch: amd64
runner: ubuntu-latest
defaultRuntime: runc
runtimeType: oci
critest: 0
userns: 1
jobs: 2
timeout: 120
name: ${{ matrix.run.name }}
runs-on: ${{ matrix.run.runner }}
timeout-minutes: ${{ matrix.run.timeout }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: go-${{ matrix.run.name }}-${{ matrix.run.arch }}-${{ hashFiles('**/go.sum') }}-${{ hashFiles('scripts/versions') }}
- uses: sigstore/cosign-installer@4959ce089c160fddf62f7b42464195ba1a56d382 # v3.6.0
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: test-binaries-${{ matrix.run.arch }}
- name: Fix artifact permissions
run: |
chmod +x \
bin/crio \
bin/pinns \
test/checkcriu/checkcriu \
test/checkseccomp/checkseccomp \
test/copyimg/copyimg \
test/nri/nri.test
- run: scripts/github-actions-packages
- run: scripts/github-actions-setup
- name: Switch to runc instead of crun
if: ${{ matrix.run.defaultRuntime == 'runc' }}
run: |
sudo ln -sf $(command -v runc) $(command -v crun)
crun --version
- name: Run the test suite
run: sudo -E test/test_runner.sh
env:
JOBS: ${{ matrix.run.jobs }}
RUN_CRITEST: ${{ matrix.run.critest }}
RUNTIME_TYPE: ${{ matrix.run.runtimeType }}
TEST_USERNS: ${{ matrix.run.userns }}
CONTAINER_DEFAULT_RUNTIME: ${{ matrix.run.defaultRuntime }}