Skip to content

Commit bbacbb6

Browse files
authored
Merge pull request #639 from pulp/update-ci/main
Update CI files for branch main
2 parents bedd573 + 01957ab commit bbacbb6

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

.ci/ansible/Containerfile.j2

+7-13
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,21 @@ FROM {{ ci_base | default("ghcr.io/pulp/pulp-ci-centos:" + pulp_container_tag) }
22

33
# Add source directories to container
44
{% for item in plugins %}
5-
{% if item.source.startswith("./") or item.ci_requirements | default(false) %}
65
ADD ./{{ item.name }} ./{{ item.name }}
7-
{% endif %}
86
{% endfor %}
97

108
# Install python packages
9+
# S3 botocore needs to be patched to handle responses from minio during 0-byte uploads
10+
# Hacking botocore (https://github.com/boto/botocore/pull/1990)
1111

1212
RUN pip3 install
13-
{%- for item in plugins -%}
14-
{%- if item.name == "pulp-certguard" -%}
15-
{{ " " }}python-dateutil rhsm
16-
{%- endif -%}
17-
{{ " " }}{{ item.source }}
18-
{%- if item.name == "pulpcore" -%}
1913
{%- if s3_test | default(false) -%}
20-
[s3]
21-
{%- elif azure_test | default(false) -%}
22-
[azure]
23-
{%- elif gcp_test | default(false) -%}
24-
[google]
14+
{{ " " }}git+https://github.com/fabricio-aguiar/botocore.git@fix-100-continue
2515
{%- endif -%}
16+
{%- for item in plugins -%}
17+
{{ " " }}{{ item.source }}
18+
{%- if item.lowerbounds | default(false) -%}
19+
{{ " " }}-c ./{{ item.name }}/lowerbounds_constraints.txt
2620
{%- endif -%}
2721
{%- if item.ci_requirements | default(false) -%}
2822
{{ " " }}-r ./{{ item.name }}/ci_requirements.txt

.github/template_gitref

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021.08.26-293-gde76e9f
1+
2021.08.26-296-g466c79b

.github/workflows/scripts/before_install.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ then
6666
fi
6767

6868
if [[ "$TEST" = "lowerbounds" ]]; then
69-
python3 .ci/scripts/calc_deps_lowerbounds.py > lowerbounds_requirements.txt
70-
mv lowerbounds_requirements.txt requirements.txt
69+
python3 .ci/scripts/calc_deps_lowerbounds.py > lowerbounds_constraints.txt
7170
fi
7271

7372
if [ -f $POST_BEFORE_INSTALL ]; then

.github/workflows/scripts/install.sh

+13-1
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,32 @@ then
3737
fi
3838

3939
cd .ci/ansible/
40+
PLUGIN_SOURCE="${PLUGIN_NAME}"
41+
if [ "$TEST" = "s3" ]; then
42+
PLUGIN_SOURCE="${PLUGIN_SOURCE} pulpcore[s3]"
43+
fi
44+
if [ "$TEST" = "azure" ]; then
45+
PLUGIN_SOURCE="${PLUGIN_SOURCE} pulpcore[azure]"
46+
fi
4047

4148
cat >> vars/main.yaml << VARSYAML
4249
image:
4350
name: pulp
4451
tag: "ci_build"
4552
plugins:
4653
- name: pulp_python
47-
source: "${PLUGIN_NAME}"
54+
source: "${PLUGIN_SOURCE}"
4855
VARSYAML
4956
if [[ -f ../../ci_requirements.txt ]]; then
5057
cat >> vars/main.yaml << VARSYAML
5158
ci_requirements: true
5259
VARSYAML
5360
fi
61+
if [ "$TEST" = "lowerbounds" ]; then
62+
cat >> vars/main.yaml << VARSYAML
63+
lowerbounds: true
64+
VARSYAML
65+
fi
5466

5567
cat >> vars/main.yaml << VARSYAML
5668
services:

0 commit comments

Comments
 (0)