Skip to content

Commit 6ef2ba5

Browse files
patch nerdctl to fix health checks
Signed-off-by: Swapnanil-Gupta <[email protected]>
1 parent 44303e6 commit 6ef2ba5

File tree

9 files changed

+1252
-117
lines changed

9 files changed

+1252
-117
lines changed

.github/workflows/ci.yaml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -182,49 +182,49 @@ jobs:
182182
go-version: ${{ env.GO_VERSION }}
183183
cache: false
184184
- run: make check-licenses
185-
macos-e2e-tests:
186-
strategy:
187-
fail-fast: false
188-
matrix:
189-
version: ['14', '15']
190-
test-command: ['test-e2e-vm-serial', 'test-e2e-container', 'test-e2e-daemon']
191-
arch: ['X64', 'arm64']
192-
runner-type: ['test']
193-
uses: ./.github/workflows/e2e-macos.yaml
194-
secrets: inherit
195-
with:
196-
arch: ${{ matrix.arch }}
197-
version: ${{ matrix.version }}
198-
runner-type: ${{ matrix.runner-type }}
199-
test-command: ${{ matrix.test-command }}
200-
windows-e2e-tests:
201-
strategy:
202-
fail-fast: false
203-
matrix:
204-
test-command: ['test-e2e-vm-serial', 'test-e2e-container']
205-
arch: ['amd64']
206-
runner-type: ['test']
207-
uses: ./.github/workflows/e2e-windows.yaml
208-
secrets: inherit
209-
with:
210-
arch: ${{ matrix.arch }}
211-
runner-type: ${{ matrix.runner-type }}
212-
test-command: ${{ matrix.test-command }}
213-
linux-e2e-tests:
214-
strategy:
215-
fail-fast: false
216-
matrix:
217-
os: ['amazonlinux']
218-
arch: ['X64', 'arm64']
219-
version: ['2023', '2']
220-
runner-type: ['test']
221-
uses: ./.github/workflows/e2e-linux.yaml
222-
secrets: inherit
223-
with:
224-
os: ${{ matrix.os }}
225-
arch: ${{ matrix.arch }}
226-
version: ${{ matrix.version }}
227-
runner-type: ${{ matrix.runner-type }}
185+
# macos-e2e-tests:
186+
# strategy:
187+
# fail-fast: false
188+
# matrix:
189+
# version: ['14', '15']
190+
# test-command: ['test-e2e-vm-serial', 'test-e2e-container', 'test-e2e-daemon']
191+
# arch: ['X64', 'arm64']
192+
# runner-type: ['test']
193+
# uses: ./.github/workflows/e2e-macos.yaml
194+
# secrets: inherit
195+
# with:
196+
# arch: ${{ matrix.arch }}
197+
# version: ${{ matrix.version }}
198+
# runner-type: ${{ matrix.runner-type }}
199+
# test-command: ${{ matrix.test-command }}
200+
# windows-e2e-tests:
201+
# strategy:
202+
# fail-fast: false
203+
# matrix:
204+
# test-command: ['test-e2e-vm-serial', 'test-e2e-container']
205+
# arch: ['amd64']
206+
# runner-type: ['test']
207+
# uses: ./.github/workflows/e2e-windows.yaml
208+
# secrets: inherit
209+
# with:
210+
# arch: ${{ matrix.arch }}
211+
# runner-type: ${{ matrix.runner-type }}
212+
# test-command: ${{ matrix.test-command }}
213+
# linux-e2e-tests:
214+
# strategy:
215+
# fail-fast: false
216+
# matrix:
217+
# os: ['amazonlinux']
218+
# arch: ['X64', 'arm64']
219+
# version: ['2023', '2']
220+
# runner-type: ['test']
221+
# uses: ./.github/workflows/e2e-linux.yaml
222+
# secrets: inherit
223+
# with:
224+
# os: ${{ matrix.os }}
225+
# arch: ${{ matrix.arch }}
226+
# version: ${{ matrix.version }}
227+
# runner-type: ${{ matrix.runner-type }}
228228
ubuntu-e2e-tests:
229229
strategy:
230230
fail-fast: false

.github/workflows/e2e-ubuntu.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
arch: ${{ inputs.arch }}
1717
output-arch: ${{ inputs.output-arch }}
1818

19-
e2e-ubuntu-finch-daemon:
20-
uses: ./.github/workflows/e2e-ubuntu-finch-daemon.yaml
21-
with:
22-
arch: ${{ inputs.arch }}
23-
output-arch: ${{ inputs.output-arch }}
19+
# e2e-ubuntu-finch-daemon:
20+
# uses: ./.github/workflows/e2e-ubuntu-finch-daemon.yaml
21+
# with:
22+
# arch: ${{ inputs.arch }}
23+
# output-arch: ${{ inputs.output-arch }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ test-e2e-vm-serial: create-report-dir
312312

313313
.PHONY: test-e2e-container
314314
test-e2e-container: create-report-dir
315-
go test -ldflags $(LDFLAGS) -timeout 2h ./e2e/container -test.v -ginkgo.v -ginkgo.timeout=2h -ginkgo.flake-attempts=3 -ginkgo.json-report=$(REPORT_DIR)/$(RUN_ID)-$(RUN_ATTEMPT)-e2e-container-report.json --installed="$(INSTALLED)"
315+
go test -ldflags $(LDFLAGS) -timeout 2h ./e2e/container -test.v -ginkgo.vv -ginkgo.timeout=2h -ginkgo.flake-attempts=3 -ginkgo.json-report=$(REPORT_DIR)/$(RUN_ID)-$(RUN_ATTEMPT)-e2e-container-report.json --installed="$(INSTALLED)"
316316

317317
.PHONY: test-e2e-vm
318318
test-e2e-vm: create-report-dir
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
data_root = "/var/lib/finch/nerdctl"
2-
namespace = "finch"
2+
namespace = "finch"
3+
debug = true
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
data_root = "/var/lib/finch/nerdctl"
22
namespace = "finch"
33
cni_path = "/usr/libexec/finch/cni/bin/"
4+
debug = true

contrib/packaging/deb/package.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
5252
PKG_FILES="$(dirname "$SCRIPT_DIR")"
5353
ROOT_DIR="$(dirname "$(dirname "$PKG_FILES")")"
5454
PKG_CONFIG="$PKG_FILES/config"
55+
PATCHES_DIR="$PKG_FILES/patches"
5556
TEMP_BUILD_DIR="${SCRIPT_DIR}/TMP/build"
5657

5758
# finch daemon
@@ -61,10 +62,10 @@ FINCHD_COMMIT="ef5d71ddf0a98f39f6ebcf0401b8706543c9f04e"
6162
FINCHD_SRC=finch-daemon-"${FINCHD_COMMIT}"
6263

6364
# nerdctl
64-
NERDCTL_PACKAGE="github.com/containerd/nerdctl"
65+
NERDCTL_PACKAGE="github.com/coderbirju/nerdctl"
6566
NERDCTL_MODULE="github.com/containerd/nerdctl/v2"
66-
NERDCTL_RELEASE="2.1.6"
67-
NERDCTL_COMMIT="59253e9931873e79b92fe3400f14e69d6be34025"
67+
NERDCTL_RELEASE="2.2.2"
68+
NERDCTL_COMMIT="7a8eb3f453ea75f3586e37c7c9aecb4cd47765a9"
6869
NERDCTL_SRC=nerdctl-"${NERDCTL_COMMIT}"
6970
NERDCTL_VERSION="v$(echo "$NERDCTL_RELEASE" | sed 's/-.*//')"
7071

@@ -120,6 +121,7 @@ popd
120121

121122
# build nerdctl
122123
pushd "$TEMP_BUILD_DIR/$NERDCTL_SRC"
124+
# git apply $PATCHES_DIR/0001-health-check-fixes.patch
123125
go build -ldflags "-s -w -X ${NERDCTL_MODULE}/pkg/version.Revision=${NERDCTL_COMMIT} -X ${NERDCTL_MODULE}/pkg/version.Version=${NERDCTL_VERSION}" -o _output/nerdctl ./cmd/nerdctl
124126
popd
125127

0 commit comments

Comments
 (0)