Skip to content

Commit 3f944c8

Browse files
authored
Merge pull request #1883 from cnti-testcatalog/fix_ci
Fix CI #1880 #1879 #1878 #1874 #1806
2 parents 4115cbe + 2c0fcef commit 3f944c8

File tree

6 files changed

+39
-499
lines changed

6 files changed

+39
-499
lines changed

.github/workflows/actions.yml

+25-462
Large diffs are not rendered by default.

curl_install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ get_latest_release() {
2727
}
2828

2929
# Install CNF-TestSuite
30-
LATEST_RELEASE=$(get_latest_release cncf/cnf-testsuite)
30+
LATEST_RELEASE=$(get_latest_release cnti-testcatalog/testsuite)
3131
mkdir -p ~/.cnf-testsuite
32-
curl --silent -L https://github.com/cncf/cnf-testsuite/releases/download/$LATEST_RELEASE/cnf-testsuite-$LATEST_RELEASE.tar.gz -o ~/.cnf-testsuite/cnf-testsuite.tar.gz
32+
curl --silent -L https://github.com/cnti-testcatalog/testsuite/releases/download/$LATEST_RELEASE/cnf-testsuite-$LATEST_RELEASE.tar.gz -o ~/.cnf-testsuite/cnf-testsuite.tar.gz
3333
tar -C ~/.cnf-testsuite -xf ~/.cnf-testsuite/cnf-testsuite.tar.gz
3434
rm ~/.cnf-testsuite/cnf-testsuite.tar.gz
3535

src/tasks/utils/ueransim.cr

+3-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ module UERANSIM
5151
Log.info { "Found ueransim ... deleting" }
5252
Helm.delete("ueransim")
5353
end
54-
Helm.helm_repo_add("openverso","https://gradiant.github.io/openverso-charts/")
55-
Helm.fetch("openverso/ueransim-gnb --version 0.2.5 --untar")
54+
#Helm.helm_repo_add("openverso","https://gradiant.github.io/openverso-charts/")
55+
# Helm.fetch("openverso/ueransim-gnb --version 0.2.5 --untar")
56+
Helm.fetch("oci://registry-1.docker.io/gradiant/ueransim-gnb --version 0.2.5 --untar")
5657

5758
protectionScheme = config.cnf_config[:fiveG_core][:protectionScheme]
5859
unless protectionScheme.empty?

tools/github-runner/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM myoung34/github-runner:2.303.0-ubuntu-bionic
1+
FROM myoung34/github-runner:2.313.0-ubuntu-bionic
22

33
ARG CRYSTAL_VERSION=1.6.2
44
ARG CRYSTAL_URL=https://github.com/crystal-lang/crystal/releases/download
@@ -11,7 +11,7 @@ RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg --o
1111

1212
RUN mkdir /crystal && \
1313
wget -O /crystal/crystal.tar.gz "$CRYSTAL_URL/$CRYSTAL_VERSION/crystal-$CRYSTAL_VERSION-1-linux-x86_64.tar.gz" --progress=dot:giga && \
14-
tar -xf /crystal/crystal.tar.gz -C /tmp && \
14+
tar -xf /crystal/crystal.tar.gz -C /crystal && \
1515
chmod +x /crystal/crystal-${CRYSTAL_VERSION}-1/bin/crystal && \
1616
chmod +x /crystal/crystal-${CRYSTAL_VERSION}-1/bin/shards && \
1717
ln -s /crystal/crystal-${CRYSTAL_VERSION}-1/bin/crystal /usr/local/bin/crystal && \

tools/github-runner/cleanup_runners.sh

+1-9
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,7 @@
33
RUNNERS=(
44
136.144.55.87
55
136.144.55.243
6-
139.178.69.151
7-
139.178.69.153
8-
139.178.68.167
9-
86.109.1.243
10-
139.178.68.111
11-
139.178.68.103
12-
139.178.68.93
13-
139.178.68.107
14-
136.144.54.249)
6+
139.178.69.151)
157

168

179
#TOKEN=$(curl -XPOST -H "authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/cncf/cnf-testsuite/actions/runners/registration-token | jq -r .token)

tools/github-runner/create_runners.sh

100644100755
+6-22
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,23 @@
11
#!/bin/bash
22

33
RUNNERS=(
4-
136.144.55.87
5-
136.144.55.243
6-
139.178.69.151
7-
139.178.69.153
8-
139.178.68.167
9-
86.109.1.243
10-
139.178.68.111
11-
139.178.68.103
12-
139.178.68.93
13-
139.178.68.107
14-
136.144.54.249)
4+
136.144.55.87
5+
136.144.55.243
6+
139.178.69.151)
157

168
VIPS=(
179
147.75.89.176/28
1810
147.75.108.64/28
19-
147.75.202.0/28
20-
147.75.202.80/28
21-
147.75.88.0/28
22-
147.75.202.112/28
23-
147.75.203.112/28
24-
147.75.203.144/28
25-
147.75.203.160/28
26-
147.75.203.176/28
27-
147.75.203.192/28)
11+
147.75.202.0/28)
2812

2913

3014
RUNNER_COUNT=0
3115
for node in "${!RUNNERS[@]}"; do
32-
export RUNNER_IMAGE="conformance/github-runner:v2.303.0-4" # don't forget the v
16+
export RUNNER_IMAGE="conformance/github-runner:v2.313.0" # don't forget the v
3317
ssh root@${RUNNERS[$node]} "docker pull $RUNNER_IMAGE"
3418
RUNNERS_PER_NODE=4
3519
until [ $RUNNERS_PER_NODE -eq 0 ]; do
36-
ssh root@${RUNNERS[$node]} "docker run -d --network host --restart always --name github-runner$RUNNER_COUNT -e REPO_URL="https://github.com/cncf/cnf-testsuite" -e RUNNER_NAME="runner$RUNNER_COUNT" -e RUNNER_TOKEN="$TOKEN" -e RUNNER_WORKDIR="/github-runner-cnf-testsuite" -e LABELS="v1.0.0" -v /var/run/docker.sock:/var/run/docker.sock -v /runner-tmp/runner$RUNNER_COUNT:/tmp -v /github-runner-cnf-testsuite/cnf-testsuite/cnf-testsuite/tools:/docker-host-repo/tools -v /shared:/shared $RUNNER_IMAGE"
20+
ssh root@${RUNNERS[$node]} "docker run -d --network host --restart always --name github-runner$RUNNER_COUNT -e REPO_URL="https://github.com/cnti-testcatalog/testsuite" -e RUNNER_NAME="runner$RUNNER_COUNT" -e RUNNER_TOKEN="$TOKEN" -e RUNNER_WORKDIR="/github-runner-cnf-testsuite" -e LABELS="v1.0.0" -v /var/run/docker.sock:/var/run/docker.sock -v /runner-tmp/runner$RUNNER_COUNT:/tmp -v /github-runner-cnf-testsuite/cnf-testsuite/cnf-testsuite/tools:/docker-host-repo/tools -v /shared:/shared $RUNNER_IMAGE"
3721
RUNNER_COUNT=$(($RUNNER_COUNT + 1))
3822
RUNNERS_PER_NODE=$(($RUNNERS_PER_NODE - 1))
3923
done

0 commit comments

Comments
 (0)