diff options
-rw-r--r-- | .circleci/config.yml | 2 | ||||
-rw-r--r-- | ansible/site.gate.yml | 2 | ||||
-rw-r--r-- | build.sh | 10 | ||||
-rw-r--r-- | docker/core/Dockerfile | 9 | ||||
-rw-r--r-- | tox.ini | 12 |
5 files changed, 15 insertions, 20 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index b03d49e2..035f496c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2 jobs: build: docker: - - image: circleci/python:3.9 + - image: circleci/python:3.10 steps: - checkout - run: diff --git a/ansible/site.gate.yml b/ansible/site.gate.yml index f54f586e..1cc5683d 100644 --- a/ansible/site.gate.yml +++ b/ansible/site.gate.yml @@ -10,7 +10,7 @@ - repo: _ dport: container: alpine - tag: 3.15 + tag: 3.16 steps: - name: build opnfv/functest-kubernetes-core containers: @@ -32,11 +32,11 @@ done [ ! -z "${amd64_dirs}" ] && (docker rmi \ "${repo}/functest-kubernetes-core:amd64-latest" \ - alpine:3.15 || true) + alpine:3.16 || true) find . -name Dockerfile -exec git checkout {} + find . -name Dockerfile -exec sed -i \ - -e "s|alpine:3.15|arm64v8/alpine:3.15|g" {} + + -e "s|alpine:3.16|arm64v8/alpine:3.16|g" {} + find . -name Dockerfile -exec sed -i \ -e "s|opnfv/functest-kubernetes-core|\ ${repo}/functest-kubernetes-core:arm64-latest|g" {} + @@ -56,11 +56,11 @@ for dir in ${arm64_dirs}; do done [ ! -z "${arm64_dirs}" ] && (docker rmi "${repo}/functest-kubernetes-core:arm64-latest" \ - arm64v8/alpine:3.15 || true) + arm64v8/alpine:3.16 || true) find . -name Dockerfile -exec git checkout {} + find . -name Dockerfile -exec sed -i \ - -e "s|alpine:3.15|arm32v7/alpine:3.15|g" {} + + -e "s|alpine:3.16|arm32v7/alpine:3.16|g" {} + find . -name Dockerfile -exec sed -i \ -e "s|opnfv/functest-kubernetes-core|\ ${repo}/functest-kubernetes-core:arm-latest|g" {} + @@ -80,7 +80,7 @@ for dir in ${arm_dirs}; do done [ ! -z "${arm_dirs}" ] && (docker rmi "${repo}/functest-kubernetes-core:arm-latest" \ - arm32v7/alpine:3.15 || true) + arm32v7/alpine:3.16 || true) find . -name Dockerfile -exec git checkout {} + exit $? diff --git a/docker/core/Dockerfile b/docker/core/Dockerfile index 24354cea..9f1e489f 100644 --- a/docker/core/Dockerfile +++ b/docker/core/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.15 +FROM alpine:3.16 ARG BRANCH=master ARG OPENSTACK_TAG=master @@ -18,11 +18,6 @@ RUN apk -U upgrade && \ case $(uname -m) in aarch*|arm*) \ sed -i -E /^PyNaCl=/d /src/requirements/upper-constraints.txt && \ apk add --no-cache py3-pynacl ;; esac && \ - sed -i -E /^six=/d /src/requirements/upper-constraints.txt && \ - sed -i -E /^distlib=/d /src/requirements/upper-constraints.txt && \ - sed -i -E /^packaging=/d /src/requirements/upper-constraints.txt && \ - apk --no-cache add --update py3-distlib\>=0.3.1 \ - --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main && \ git init /src/functest-kubernetes && \ (cd /src/functest-kubernetes && \ git fetch --tags https://gerrit.opnfv.org/gerrit/functest-kubernetes $BRANCH && \ @@ -36,7 +31,7 @@ RUN apk -U upgrade && \ -c/src/requirements/upper-constraints.txt \ /src/functest-kubernetes && \ (cd /src/rally && patch -p1 < /tmp/Switch-to-threading.Thread-for-Rally-tasks.patch) && \ - (cd /usr/lib/python3.9/site-packages/xrally_kubernetes/ && \ + (cd /usr/lib/python3.10/site-packages/xrally_kubernetes/ && \ patch -p2 < /tmp/Try-a-quick-fix-vs-asynchronuous-issues.patch) && \ rm -rf /src/functest-kubernetes /tmp/Switch-to-threading.Thread-for-Rally-tasks.patch && \ bash -c "mkdir -p /var/lib/xtesting /home/opnfv" && \ @@ -19,17 +19,17 @@ commands = nosetests --with-xunit \ functest_kubernetes [testenv:pep8] -basepython = python3.9 +basepython = python3.10 commands = flake8 [testenv:pylint] -basepython = python3.9 +basepython = python3.10 commands = pylint \ --ignore-imports=y --min-similarity-lines=10 \ --disable=locally-disabled,wrong-import-order --reports=n functest_kubernetes [testenv:yamllint] -basepython = python3.9 +basepython = python3.10 files = .travis.yml docker @@ -37,21 +37,21 @@ commands = yamllint {[testenv:yamllint]files} [testenv:bandit] -basepython = python3.9 +basepython = python3.10 commands = bandit -r functest_kubernetes -x tests -n 5 -ll [testenv:py37] commands = nosetests functest_kubernetes [testenv:bashate] -basepython = python3.9 +basepython = python3.10 files = build.sh functest_kubernetes/ci/download_images.sh commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files} [testenv:perm] -basepython = python3.9 +basepython = python3.10 whitelist_externals = bash path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/pres/reveal.js/*' commands = |