Skip to content

Commit 693cf95

Browse files
authored
Merge pull request #641 from jnovy/ci_fix
CI: build crun/runc from source and bump bats/cni-plugins
2 parents 9151256 + 329b0dd commit 693cf95

File tree

3 files changed

+35
-20
lines changed

3 files changed

+35
-20
lines changed

.github/renovate.json5

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,16 @@
4949
/*************************************************
5050
*** Repository-specific configuration options ***
5151
*************************************************/
52+
53+
// Track dependency versions in hack/github-actions-setup
54+
"customManagers": [
55+
{
56+
"customType": "regex",
57+
"fileMatch": ["hack/github-actions-setup"],
58+
"matchStrings": [
59+
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\n\\s+\\[\"[^\"]+\"\\]=(?<currentValue>\\S+)"
60+
],
61+
"versioningTemplate": "semver"
62+
}
63+
]
5264
}

.github/workflows/integration.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ jobs:
4545
CRIO_DIR=$(sudo go env GOPATH)/src/github.com/cri-o/cri-o
4646
sudo make -C "$CRIO_DIR" all test-binaries
4747
# skip seccomp tests because they have permission denied issues in a container and accept signed image as they don't use conmon
48-
sudo rm -f "$CRIO_DIR"/test/seccomp*.bats "$CRIO_DIR"/test/image.bats "$CRIO_DIR"/test/policy.bats
48+
# skip crio-wipe tests as they test cri-o's wipe functionality, not conmon
49+
sudo rm -f "$CRIO_DIR"/test/seccomp*.bats "$CRIO_DIR"/test/image.bats "$CRIO_DIR"/test/policy.bats "$CRIO_DIR"/test/crio-wipe.bats
4950
sudo sh -c "cd $CRIO_DIR; RUN_CRITEST=${{ matrix.critest }} ./test/test_runner.sh"
5051
env:
5152
JOBS: '2'

hack/github-actions-setup

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
set -euo pipefail
33

44
declare -A VERSIONS=(
5-
["cni-plugins"]=v1.3.0
6-
["runc"]=v1.1.14
7-
["crun"]=1.17
8-
["bats"]=v1.9.0
5+
# renovate: datasource=github-releases depName=containernetworking/plugins
6+
["cni-plugins"]=v1.9.0
7+
# renovate: datasource=github-releases depName=bats-core/bats-core
8+
["bats"]=v1.13.0
9+
# renovate: datasource=github-releases depName=opencontainers/runc
10+
["runc"]=v1.4.0
11+
# renovate: datasource=github-releases depName=containers/crun
12+
["crun"]=1.26
913
)
1014

1115
main() {
@@ -122,26 +126,24 @@ install_cni_plugins() {
122126
}
123127

124128
install_runc() {
125-
URL=https://github.com/opencontainers/runc/releases/download/"${VERSIONS["runc"]}"
126-
BINARY=/usr/sbin/runc
127-
sudo wget -O "$BINARY" "$URL"/runc.amd64
128-
sudo chmod +x "$BINARY"
129-
130-
# Verify the SHA256
131-
SUMFILE=runc.sha256sum
132-
wget "$URL"/$SUMFILE
133-
grep -qw "$(sha256sum "$BINARY" | awk '{ print $1 }')" $SUMFILE
134-
rm $SUMFILE
129+
git clone --depth 1 --branch "${VERSIONS["runc"]}" https://github.com/opencontainers/runc
130+
pushd runc
131+
make
132+
sudo install -D -m0755 runc /usr/sbin/runc
133+
popd
134+
rm -rf runc
135135

136136
runc --version
137137
}
138138

139139
install_crun() {
140-
URL=https://github.com/containers/crun/releases/download/"${VERSIONS["crun"]}"/crun-"${VERSIONS["crun"]}"-linux-amd64
141-
142-
BINARY=/usr/bin/crun
143-
sudo wget -O "$BINARY" "$URL"
144-
sudo chmod +x "$BINARY"
140+
git clone --depth 1 --branch "${VERSIONS["crun"]}" https://github.com/containers/crun
141+
pushd crun
142+
./autogen.sh
143+
./configure
144+
sudo make -j "$(nproc)" install prefix=/usr
145+
popd
146+
sudo rm -rf crun
145147

146148
crun --version
147149
}

0 commit comments

Comments
 (0)