Skip to content

Commit 93ebfc6

Browse files
pulpbotdralley
authored andcommitted
Update CI files
[noissue]
1 parent c4e842c commit 93ebfc6

File tree

5 files changed

+23
-18
lines changed

5 files changed

+23
-18
lines changed

.ci/ansible/Containerfile.j2

Lines changed: 7 additions & 13 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,32 @@ then
3636
fi
3737

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

4047
cat >> vars/main.yaml << VARSYAML
4148
image:
4249
name: pulp
4350
tag: "ci_build"
4451
plugins:
4552
- name: pulpcore
46-
source: "${PLUGIN_NAME}"
53+
source: "${PLUGIN_SOURCE}"
4754
VARSYAML
4855
if [[ -f ../../ci_requirements.txt ]]; then
4956
cat >> vars/main.yaml << VARSYAML
5057
ci_requirements: true
5158
VARSYAML
5259
fi
60+
if [ "$TEST" = "lowerbounds" ]; then
61+
cat >> vars/main.yaml << VARSYAML
62+
lowerbounds: true
63+
VARSYAML
64+
fi
5365

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

docs/template_gitref

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021.08.26-291-g9188e37
1+
2021.08.26-296-g466c79b

0 commit comments

Comments
 (0)