Skip to content

Commit 66ada93

Browse files
authored
Merge pull request pulp#677 from pulp/update-ci/main
Update CI files for branch main
2 parents f2ce93a + 4c51a9b commit 66ada93

File tree

4 files changed

+5
-31
lines changed

4 files changed

+5
-31
lines changed

.ci/ansible/settings.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ AZURE_CONTAINER = "pulp-test"
4949
AZURE_LOCATION = "pulp3"
5050
AZURE_OVERWRITE_FILES = True
5151
AZURE_URL_EXPIRATION_SECS = 120
52-
AZURE_CONNECTION_STRING = 'DefaultEndpointsProtocol={{ pulp_scheme }};AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint={{ pulp_scheme }}://ci-azurite:10000/devstoreaccount1;'
52+
AZURE_CONNECTION_STRING = 'DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://ci-azurite:10000/devstoreaccount1;'
5353
{% endif %}
5454

5555
{% if gcp_test | default(false) %}

.github/template_gitref

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021.08.26-337-g7c7a09a
1+
2021.08.26-339-gf0d923e

.github/workflows/scripts/before_script.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ tail -v -n +1 .ci/ansible/Containerfile
3636
cmd_prefix bash -c "echo '%wheel ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/nopasswd"
3737
cmd_prefix bash -c "usermod -a -G wheel pulp"
3838

39-
SCENARIOS=("pulp" "performance" "azure" "gcp" "s3" "generate-bindings" "lowerbounds")
40-
if [[ " ${SCENARIOS[*]} " =~ " ${TEST} " ]]; then
41-
# Many functional tests require these
42-
cmd_prefix dnf install -yq lsof which
43-
fi
44-
4539
if [[ "${REDIS_DISABLED:-false}" == true ]]; then
4640
cmd_prefix bash -c "s6-rc -d change redis"
4741
echo "The Redis service was disabled for $TEST"

.github/workflows/scripts/install.sh

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -104,18 +104,12 @@ pulp_scenario_env: {}\
104104
fi
105105

106106
if [ "$TEST" = "azure" ]; then
107-
mkdir -p azurite
108-
cd azurite
109-
openssl req -newkey rsa:2048 -x509 -nodes -keyout azkey.pem -new -out azcert.pem -sha256 -days 365 -addext "subjectAltName=DNS:ci-azurite" -subj "/C=CO/ST=ST/L=LO/O=OR/OU=OU/CN=CN"
110-
sudo cp azcert.pem /usr/local/share/ca-certificates/azcert.crt
111-
sudo dpkg-reconfigure ca-certificates
112-
cd ..
113107
sed -i -e '/^services:/a \
114108
- name: ci-azurite\
115109
image: mcr.microsoft.com/azure-storage/azurite\
116110
volumes:\
117111
- ./azurite:/etc/pulp\
118-
command: "azurite-blob --blobHost 0.0.0.0 --cert /etc/pulp/azcert.pem --key /etc/pulp/azkey.pem"' vars/main.yaml
112+
command: "azurite-blob --blobHost 0.0.0.0"' vars/main.yaml
119113
sed -i -e '$a azure_test: true\
120114
pulp_scenario_settings: null\
121115
pulp_scenario_env: {}\
@@ -151,31 +145,17 @@ sudo docker cp pulp:/etc/pulp/certs/pulp_webserver.crt /usr/local/share/ca-certi
151145
# Hack: adding pulp CA to certifi.where()
152146
CERTIFI=$(python -c 'import certifi; print(certifi.where())')
153147
cat /usr/local/share/ca-certificates/pulp_webserver.crt | sudo tee -a "$CERTIFI" > /dev/null
154-
if [[ "$TEST" = "azure" ]]; then
155-
cat /usr/local/share/ca-certificates/azcert.crt | sudo tee -a "$CERTIFI" > /dev/null
156-
fi
157148

158149
# Hack: adding pulp CA to default CA file
159150
CERT=$(python -c 'import ssl; print(ssl.get_default_verify_paths().openssl_cafile)')
160-
cat "$CERTIFI" | sudo tee -a "$CERT" > /dev/null
151+
cat /usr/local/share/ca-certificates/pulp_webserver.crt | sudo tee -a "$CERT" > /dev/null
161152

162153
# Updating certs
163154
sudo update-ca-certificates
164155
echo ::endgroup::
165156

166-
# Add our azcert.crt certificate to the container image along with the certificates from certifi
167-
# so that we can use HTTPS with our fake Azure CI. certifi is self-contained and doesn't allow
168-
# extension or modification of the trust store, so we do a weird and hacky thing (above) where we just
169-
# overwrite or append to certifi's trust store behind it's back.
170-
#
171-
# We do this for both the CI host and the CI image.
172157
if [[ "$TEST" = "azure" ]]; then
173-
AZCERTIFI=$(/opt/az/bin/python3 -c 'import certifi; print(certifi.where())')
174-
PULPCERTIFI=$(cmd_prefix python3 -c 'import certifi; print(certifi.where())')
175-
cat /usr/local/share/ca-certificates/azcert.crt >> $AZCERTIFI
176-
cat /usr/local/share/ca-certificates/azcert.crt | cmd_stdin_prefix tee -a "$PULPCERTIFI" > /dev/null
177-
cat /usr/local/share/ca-certificates/azcert.crt | cmd_stdin_prefix tee -a /etc/pki/tls/cert.pem > /dev/null
178-
AZURE_STORAGE_CONNECTION_STRING='DefaultEndpointsProtocol=https;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=https://ci-azurite:10000/devstoreaccount1;'
158+
AZURE_STORAGE_CONNECTION_STRING='DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://ci-azurite:10000/devstoreaccount1;'
179159
az storage container create --name pulp-test --connection-string $AZURE_STORAGE_CONNECTION_STRING
180160
fi
181161

0 commit comments

Comments
 (0)