From a3ae378f2466e1174d01928798ed23b8c13e950b Mon Sep 17 00:00:00 2001 From: Scott Wittenburg Date: Wed, 2 Nov 2022 10:02:35 -0600 Subject: [PATCH] gh-gl-sync: Fix broken sync script The sync script image became broken recently when it was rebuilt and picked up python 3.11. At that point, one of the dependencies of the github package, wrapt, started failing. See here: https://github.com/GrahamDumpleton/wrapt/issues/196 This pins python at 3.10 until the github package can update its (possibly transitive) dependency on wrapt to the fixed version. --- .github/workflows/custom_docker_builds.yml | 2 +- images/gh-gl-sync/Dockerfile | 2 +- k8s/custom/gh-gl-sync/cron-jobs.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/custom_docker_builds.yml b/.github/workflows/custom_docker_builds.yml index 898b51d5d..242fa5a96 100644 --- a/.github/workflows/custom_docker_builds.yml +++ b/.github/workflows/custom_docker_builds.yml @@ -27,7 +27,7 @@ jobs: - python-aws-bash include: - docker-image: gh-gl-sync - image-tags: ghcr.io/spack/ci-bridge:0.0.30 + image-tags: ghcr.io/spack/ci-bridge:0.0.31 - docker-image: gitlab-api-scrape image-tags: ghcr.io/spack/gitlab-api-scrape:0.0.2 - docker-image: ci-key-rotate diff --git a/images/gh-gl-sync/Dockerfile b/images/gh-gl-sync/Dockerfile index cec04138d..23ed1f39d 100644 --- a/images/gh-gl-sync/Dockerfile +++ b/images/gh-gl-sync/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3 +FROM python:3.10 WORKDIR /scripts/ COPY requirements.txt ./ diff --git a/k8s/custom/gh-gl-sync/cron-jobs.yaml b/k8s/custom/gh-gl-sync/cron-jobs.yaml index 7d0a3b280..0b9be1e88 100644 --- a/k8s/custom/gh-gl-sync/cron-jobs.yaml +++ b/k8s/custom/gh-gl-sync/cron-jobs.yaml @@ -15,7 +15,7 @@ spec: restartPolicy: Never containers: - name: sync - image: ghcr.io/spack/ci-bridge:0.0.30 + image: ghcr.io/spack/ci-bridge:0.0.31 imagePullPolicy: IfNotPresent resources: requests: