Skip to content

Commit 148fdab

Browse files
authored
Merge pull request #4241 from kolyshkin/1.1.13-ci-fixes
[1.1] CI fixes and misc backports
2 parents a9833ff + 452bf88 commit 148fdab

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

.cirrus.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ task:
7777
env:
7878
HOME: /root
7979
CIRRUS_WORKING_DIR: /home/runc
80-
GO_VERSION: "1.20"
80+
GO_VERSION: "1.21"
8181
BATS_VERSION: "v1.9.0"
8282
RPMS: gcc git iptables jq glibc-static libseccomp-devel make criu fuse-sshfs
8383
# yamllint disable rule:key-duplicates

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
- name: install go
122122
uses: actions/setup-go@v4
123123
with:
124-
go-version: 1.x # Latest stable
124+
go-version: 1.21
125125

126126
- name: unit test
127127
run: sudo -E PATH="$PATH" -- make GOARCH=386 localunittest

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG GO_VERSION=1.20
22
ARG BATS_VERSION=v1.9.0
3-
ARG LIBSECCOMP_VERSION=2.5.4
3+
ARG LIBSECCOMP_VERSION=2.5.5
44

55
FROM golang:${GO_VERSION}-bullseye
66
ARG DEBIAN_FRONTEND=noninteractive
@@ -31,6 +31,7 @@ RUN KEYFILE=/usr/share/keyrings/criu-repo-keyring.gpg; \
3131
sshfs \
3232
sudo \
3333
uidmap \
34+
iproute2 \
3435
&& apt-get clean \
3536
&& rm -rf /var/cache/apt /var/lib/apt/lists/* /etc/apt/sources.list.d/*.list
3637

script/release_build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set -e
1919
## --->
2020
# Project-specific options and functions. In *theory* you shouldn't need to
2121
# touch anything else in this script in order to use this elsewhere.
22-
: "${LIBSECCOMP_VERSION:=2.5.4}"
22+
: "${LIBSECCOMP_VERSION:=2.5.5}"
2323
project="runc"
2424
root="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")/..")"
2525

script/seccomp.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
77

88
# sha256 checksums for seccomp release tarballs.
99
declare -A SECCOMP_SHA256=(
10-
["2.5.4"]=d82902400405cf0068574ef3dc1fe5f5926207543ba1ae6f8e7a1576351dcbdb
10+
["2.5.5"]=248a2c8a4d9b9858aa6baf52712c34afefcf9c9e94b76dce02c1c9aa25fb3375
1111
)
1212

1313
# Due to libseccomp being LGPL we must include its sources,

tests/integration/run.bats

+5-5
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function teardown() {
7272

7373
runc run test_tmpfs
7474
[ "$status" -eq 0 ]
75-
[ "$output" = "$mode" ]
75+
[ "${lines[0]}" = "$mode" ]
7676
}
7777

7878
@test "runc run with tmpfs perms" {
@@ -83,13 +83,13 @@ function teardown() {
8383
# Directory is to be created by runc.
8484
runc run test_tmpfs
8585
[ "$status" -eq 0 ]
86-
[ "$output" = "444" ]
86+
[ "${lines[0]}" = "444" ]
8787

8888
# Run a 2nd time with the pre-existing directory.
8989
# Ref: https://github.com/opencontainers/runc/issues/3911
9090
runc run test_tmpfs
9191
[ "$status" -eq 0 ]
92-
[ "$output" = "444" ]
92+
[ "${lines[0]}" = "444" ]
9393

9494
# Existing directory, custom perms, no mode on the mount,
9595
# so it should use the directory's perms.
@@ -98,15 +98,15 @@ function teardown() {
9898
# shellcheck disable=SC2016
9999
runc run test_tmpfs
100100
[ "$status" -eq 0 ]
101-
[ "$output" = "710" ]
101+
[ "${lines[0]}" = "710" ]
102102

103103
# Add back the mode on the mount, and it should use that instead.
104104
# Just for fun, use different perms than was used earlier.
105105
# shellcheck disable=SC2016
106106
update_config '.mounts[-1].options = ["mode=0410"]'
107107
runc run test_tmpfs
108108
[ "$status" -eq 0 ]
109-
[ "$output" = "410" ]
109+
[ "${lines[0]}" = "410" ]
110110
}
111111

112112
@test "runc run [joining existing container namespaces]" {

0 commit comments

Comments
 (0)