aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2024-09-06 16:03:48 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2024-09-06 16:03:48 +0200
commit3e1b43dfe2ef869f72befeb37a25416911efb026 (patch)
treec2f3db2bfce76e1df5ea2ff4e225989a348dbcd6
parente8c1a3da8d98f09a1b455d6eebe17c1345e7bfbc (diff)
Prepare Xtesting 2024.1
Change-Id: I2fc34dac496d22208e91618f18416f09621dce56 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--.gitreview2
-rw-r--r--.travis.yml4
-rw-r--r--ansible/site.gate.yml6
-rw-r--r--ansible/site.yml3
-rw-r--r--build.sh8
-rw-r--r--docker/core/Dockerfile4
-rw-r--r--elements/xtesting/install.d/16-xtesting7
-rw-r--r--tox.ini2
8 files changed, 21 insertions, 15 deletions
diff --git a/.gitreview b/.gitreview
index 8db5dfee..c3793377 100644
--- a/.gitreview
+++ b/.gitreview
@@ -2,4 +2,4 @@
host=gerrit.opnfv.org
port=29418
project=functest-xtesting.git
-
+defaultbranch=stable/2024.1
diff --git a/.travis.yml b/.travis.yml
index f402f118..4564a86c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -43,5 +43,5 @@ jobs:
script: >
sudo manifest-tool push from-args \
--platforms linux/amd64,linux/arm,linux/arm64 \
- --template ${DOCKER_USERNAME}/xtesting:ARCH-latest \
- --target ${DOCKER_USERNAME}/xtesting:latest
+ --template ${DOCKER_USERNAME}/xtesting:ARCH-2024.1 \
+ --target ${DOCKER_USERNAME}/xtesting:2024.1
diff --git a/ansible/site.gate.yml b/ansible/site.gate.yml
index f3e907a7..fe969c1c 100644
--- a/ansible/site.gate.yml
+++ b/ansible/site.gate.yml
@@ -6,9 +6,9 @@
gerrit_project: functest-xtesting
git_url: https://gerrit.opnfv.org/gerrit/functest-xtesting
docker_tags:
- - latest:
- branch: master
- dependency: '3.17'
+ - '2024.1':
+ branch: stable/2024.1
+ dependency: '3.20'
builds:
dependency:
repo: _
diff --git a/ansible/site.yml b/ansible/site.yml
index a2124729..42b3ef09 100644
--- a/ansible/site.yml
+++ b/ansible/site.yml
@@ -2,6 +2,9 @@
- hosts: 127.0.0.1
roles:
- role: collivier.xtesting
+ docker_tags:
+ - '2024.1':
+ branch: stable/2024.1
suites:
- container: xtesting
tests:
diff --git a/build.sh b/build.sh
index 9f14b6e5..7db1db26 100644
--- a/build.sh
+++ b/build.sh
@@ -16,7 +16,7 @@ amd64_dirs=${amd64_dirs-"\
docker/core"}
arm_dirs=${arm_dirs-${amd64_dirs}}
arm64_dirs=${arm64_dirs-${amd64_dirs}}
-tag=${BRANCH:-latest}
+tag=${BRANCH:-stable/2024.1}
image="xtesting"
build_opts=(--pull=true --no-cache --force-rm=true)
@@ -25,15 +25,15 @@ for arch in ${arch}; do
find . -name Dockerfile -exec sed -i \
-e "s|alpine:3.17|arm64v8/alpine:3.17|g" {} +
find . -name Dockerfile -exec sed -i \
- -e "s|opnfv/xtesting|${repo}/xtesting:arm64-${tag}|g" {} +
+ -e "s|opnfv/xtesting:2024.1|${repo}/xtesting:arm64-${tag}|g" {} +
elif [[ ${arch} == arm ]]; then
find . -name Dockerfile -exec sed -i \
-e "s|alpine:3.17|arm32v6/alpine:3.17|g" {} +
find . -name Dockerfile -exec sed -i \
- -e "s|opnfv/xtesting|${repo}/xtesting:arm-${tag}|g" {} +
+ -e "s|opnfv/xtesting:2024.1|${repo}/xtesting:arm-${tag}|g" {} +
else
find . -name Dockerfile -exec sed -i \
- -e "s|opnfv/xtesting|${repo}/xtesting:amd64-${tag}|g" {} +
+ -e "s|opnfv/xtesting:2024.1|${repo}/xtesting:amd64-${tag}|g" {} +
fi
dirs=${arch}_dirs
for dir in ${!dirs}; do
diff --git a/docker/core/Dockerfile b/docker/core/Dockerfile
index 409cd2d8..d6a73577 100644
--- a/docker/core/Dockerfile
+++ b/docker/core/Dockerfile
@@ -1,7 +1,7 @@
FROM alpine:3.20
-ARG BRANCH=master
-ARG OPENSTACK_TAG=master
+ARG BRANCH=stable/2024.1
+ARG OPENSTACK_TAG=stable/2024.1
RUN apk -U upgrade && \
apk --no-cache add --update python3 py3-pip py3-wheel bash git mailcap libxml2 libxslt ansible && \
diff --git a/elements/xtesting/install.d/16-xtesting b/elements/xtesting/install.d/16-xtesting
index d3808556..d5a86f08 100644
--- a/elements/xtesting/install.d/16-xtesting
+++ b/elements/xtesting/install.d/16-xtesting
@@ -1,8 +1,11 @@
#!/bin/bash
download-frozen-image-v2.sh /data/docker/xtesting \
- opnfv/xtesting:latest
-git clone https://git.opnfv.org/functest-xtesting /home/debian/functest-xtesting
+ opnfv/xtesting:2024.1
+git init /home/debian/functest-xtesting && \
+(cd /home/debian/functest-xtesting && \
+ git fetch --tags https://git.opnfv.org/functest-xtesting stable/2024.1 && \
+ git checkout FETCH_HEAD) && \
chown -R 1000:1000 /home/debian/functest-xtesting
exit 0
diff --git a/tox.ini b/tox.ini
index aa7f9396..830ec6ff 100644
--- a/tox.ini
+++ b/tox.ini
@@ -6,7 +6,7 @@ skipsdist = True
usedevelop = True
deps =
-c{toxinidir}/upper-constraints.txt
- -chttps://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt
+ -chttps://opendev.org/openstack/requirements/raw/branch/stable/2024.1/upper-constraints.txt
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install {opts} {packages}