Skip to content

Commit

Permalink
Update CI files
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pulpbot authored and mdellweg committed Mar 6, 2024
1 parent 4a52546 commit ae72047
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .ci/ansible/Containerfile.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM {{ ci_base | default("ghcr.io/pulp/pulp-ci-centos:" + pulp_container_tag) }}
FROM {{ ci_base | default(pulp_default_container) }}

# Add source directories to container
{% for item in plugins %}
Expand All @@ -11,7 +11,7 @@ ADD ./{{ item.name }} ./{{ item.name }}

RUN pip3 install
{%- if s3_test | default(false) -%}
{{ " " }}git+https://github.com/fabricio-aguiar/botocore.git@fix-100-continue
{{ " " }}git+https://github.com/gerrod3/botocore.git@fix-100-continue
{%- endif -%}
{%- for item in plugins -%}
{{ " " }}{{ item.source }}
Expand Down
2 changes: 1 addition & 1 deletion .github/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-310-g59cd732
2021.08.26-316-g69ef1f6
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
path: "pulp-certguard"
- uses: "actions/setup-python@v4"
with:
python-version: "3.8"
python-version: "3.11"
- name: "Install python dependencies"
run: |
echo ::group::PYDEPS
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- uses: "actions/setup-python@v4"
with:
python-version: "3.8"
python-version: "3.11"

- name: "Install python dependencies"
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
path: "pulp-certguard"
- uses: "actions/setup-python@v4"
with:
python-version: "3.8"
python-version: "3.11"
- name: "Install python dependencies"
run: |
echo ::group::PYDEPS
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:

- uses: "actions/setup-python@v4"
with:
python-version: "3.8"
python-version: "3.11"

- name: "Install python dependencies"
run: |
echo ::group::PYDEPS
pip install bump2version jinja2 pyyaml
pip install bump2version jinja2 pyyaml packaging
echo ::endgroup::
- name: "Setting secrets"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- uses: "actions/setup-python@v4"
with:
python-version: "3.8"
python-version: "3.11"

- name: "Install python dependencies"
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:

- uses: "actions/setup-python@v4"
with:
python-version: "3.8"
python-version: "3.11"

- name: "Install python dependencies"
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

- uses: "actions/setup-python@v4"
with:
python-version: "3.8"
python-version: "3.11"

- uses: "actions/download-artifact@v3"
with:
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:

- uses: "actions/setup-python@v4"
with:
python-version: "3.8"
python-version: "3.11"

- name: "Install python dependencies"
run: |
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
- uses: "actions/setup-python@v4"
with:
python-version: "3.8"
python-version: "3.11"

- name: "Install python dependencies"
run: |
Expand Down Expand Up @@ -265,7 +265,7 @@ jobs:

- uses: "actions/setup-python@v4"
with:
python-version: "3.8"
python-version: "3.11"

- name: "Install python dependencies"
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- uses: "actions/setup-python@v4"
with:
python-version: "3.8"
python-version: "3.11"

- name: "Install python dependencies"
run: |
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ cat >> vars/main.yaml << VARSYAML
pulp_env: {}
pulp_settings: null
pulp_scheme: https
pulp_container_tag: "latest"
pulp_default_container: ghcr.io/pulp/pulp-ci-centos9:latest
VARSYAML

echo "PULP_API_ROOT=${PULP_API_ROOT}" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -107,10 +105,17 @@ cat "$CERTIFI" | sudo tee -a "$CERT" > /dev/null
sudo update-ca-certificates
echo ::endgroup::

# Add our azcert.crt certificate to the container image along with the certificates from certifi
# so that we can use HTTPS with our fake Azure CI. certifi is self-contained and doesn't allow
# extension or modification of the trust store, so we do a weird and hacky thing (above) where we just
# overwrite or append to certifi's trust store behind it's back.
#
# We do this for both the CI host and the CI image.
if [[ "$TEST" = "azure" ]]; then
AZCERTIFI=$(/opt/az/bin/python3 -c 'import certifi; print(certifi.where())')
PULPCERTIFI=$(cmd_prefix python3 -c 'import certifi; print(certifi.where())')
cat /usr/local/share/ca-certificates/azcert.crt >> $AZCERTIFI
cat /usr/local/share/ca-certificates/azcert.crt | cmd_stdin_prefix tee -a /usr/local/lib/python3.8/site-packages/certifi/cacert.pem > /dev/null
cat /usr/local/share/ca-certificates/azcert.crt | cmd_stdin_prefix tee -a "$PULPCERTIFI" > /dev/null
cat /usr/local/share/ca-certificates/azcert.crt | cmd_stdin_prefix tee -a /etc/pki/tls/cert.pem > /dev/null
AZURE_STORAGE_CONNECTION_STRING='DefaultEndpointsProtocol=https;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=https://ci-azurite:10000/devstoreaccount1;'
az storage container create --name pulp-test --connection-string $AZURE_STORAGE_CONNECTION_STRING
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

- uses: "actions/setup-python@v4"
with:
python-version: "3.8"
python-version: "3.11"

- uses: "actions/download-artifact@v3"
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: "actions/setup-python@v4"
with:
python-version: "3.8"
python-version: "3.11"
- name: "Configure Git with pulpbot name and email"
run: |
git config --global user.name 'pulpbot'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- uses: "actions/setup-python@v4"
with:
python-version: "3.8"
python-version: "3.11"

- name: "Install python dependencies"
run: |
Expand Down
4 changes: 2 additions & 2 deletions template_config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# This config represents the latest values used when running the plugin-template. Any settings that
# were not present before running plugin-template have been added with their default values.

# generated with [email protected]309-g238784d
# generated with [email protected]316-g69ef1f6

api_root: /pulp/
black: true
check_commit_message: true
check_gettext: true
check_manifest: true
check_stray_pulpcore_imports: true
ci_base_image: ghcr.io/pulp/pulp-ci-centos9
ci_env: {}
ci_trigger: '{pull_request: {branches: [''*'']}}'
ci_update_docs: false
Expand Down Expand Up @@ -53,7 +54,6 @@ pulp_settings_gcp: null
pulp_settings_s3: null
pulpprojectdotorg_key_id: null
pydocstyle: true
python_version: '3.8'
release_email: [email protected]
release_user: pulpbot
stalebot: true
Expand Down
2 changes: 1 addition & 1 deletion unittest_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest<8
mock
pytest
pytest<8

0 comments on commit ae72047

Please sign in to comment.