From 4433687cdbfe1e2c6ee569e0f55e9ccab9c70cc2 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Mon, 31 Oct 2016 11:00:45 -0400 Subject: [PATCH] Force gate-{name}-pep8-{node} to build needed wheels In an effort to make our bindep dependencies better, we want to have the pep8 jobs not use our wheel mirrors. This ensures that projects are able to be build properly if our wheel mirror is down or a new python dependency is released by has not been build by our wheel-build job. This has a high chance of breaking existing jobs that are depending on openstack-infra wheel mirrors. Change-Id: I0880b96cdca024965d92e120389eb25939436daa Signed-off-by: Paul Belanger --- jenkins/jobs/python-jobs.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/jenkins/jobs/python-jobs.yaml b/jenkins/jobs/python-jobs.yaml index 371441ec28..2bd2b93ea3 100644 --- a/jenkins/jobs/python-jobs.yaml +++ b/jenkins/jobs/python-jobs.yaml @@ -103,6 +103,16 @@ template-name: "{template-name}" - zuul-git-prep-upper-constraints - install-distro-packages + # We force the removal of our wheel mirrors from pip.conf to ensure we can + # build the required wheels if needed. This helps to ensure that + # bindep.txt is up-to-date. + - shell: | + #!/bin/bash -xe + # Write global pip configuration minus wheel mirror. + awk '!/extra-index-url/' /etc/pip.conf > /tmp/pip.conf + sudo mv /tmp/pip.conf /etc/ + sudo chown root:root /etc/pip.conf + sudo chmod 0644 /etc/pip.conf - revoke-sudo - pep8: env: pep8