Skip to content

Commit 1c05ba0

Browse files
committed
[noissue]
1 parent a1181e8 commit 1c05ba0

8 files changed

Lines changed: 29 additions & 29 deletions

File tree

.ci/scripts/update_ci_branches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222

2323
if not initial_branch or initial_branch not in branches:
24-
starting = -2
24+
exit("Initial branch not found")
2525
else:
2626
starting = branches.index(initial_branch)
2727

.github/template_gitref

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021.08.26-127-gfedbecb
1+
2021.08.26-129-gf780fda-dirty

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ jobs:
204204
if: always()
205205
run: |
206206
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
207-
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
207+
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
208208
docker images || true
209209
docker ps -a || true
210210
docker logs pulp || true
@@ -334,7 +334,7 @@ jobs:
334334
if: always()
335335
run: |
336336
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
337-
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
337+
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
338338
docker images || true
339339
docker ps -a || true
340340
docker logs pulp || true

.github/workflows/nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
if: always()
162162
run: |
163163
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
164-
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
164+
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
165165
docker images || true
166166
docker ps -a || true
167167
docker logs pulp || true
@@ -358,7 +358,7 @@ jobs:
358358
if: always()
359359
run: |
360360
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
361-
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
361+
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
362362
docker images || true
363363
docker ps -a || true
364364
docker logs pulp || true
@@ -476,7 +476,7 @@ jobs:
476476
if: always()
477477
run: |
478478
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
479-
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
479+
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
480480
docker images || true
481481
docker ps -a || true
482482
docker logs pulp || true

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ jobs:
234234
if: always()
235235
run: |
236236
echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
237-
http --timeout 30 --check-status --pretty format --print hb https://pulp/pulp/api/v3/status/ || true
237+
http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
238238
docker images || true
239239
docker ps -a || true
240240
docker logs pulp || true

.github/workflows/scripts/install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ set -euv
1515

1616
source .github/workflows/scripts/utils.sh
1717

18+
export PULP_API_ROOT="/pulp/"
19+
1820
if [[ "$TEST" = "docs" || "$TEST" = "publish" ]]; then
1921
pip install -r ../pulpcore/doc_requirements.txt
2022
pip install -r doc_requirements.txt
@@ -120,7 +122,6 @@ if [ "$TEST" = "s3" ]; then
120122
sed -i -e '$a s3_test: true\
121123
minio_access_key: "'$MINIO_ACCESS_KEY'"\
122124
minio_secret_key: "'$MINIO_SECRET_KEY'"' vars/main.yaml
123-
echo "PULP_API_ROOT=/rerouted/djnd/" >> "$GITHUB_ENV"
124125
export PULP_API_ROOT="/rerouted/djnd/"
125126
fi
126127

@@ -140,6 +141,8 @@ if [ "$TEST" = "azure" ]; then
140141
sed -i -e '$a azure_test: true' vars/main.yaml
141142
fi
142143

144+
echo "PULP_API_ROOT=${PULP_API_ROOT}" >> "$GITHUB_ENV"
145+
143146
if [ "${PULP_API_ROOT:-}" ]; then
144147
sed -i -e '$a api_root: "'"$PULP_API_ROOT"'"' vars/main.yaml
145148
fi

.github/workflows/scripts/script.sh

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ if [[ "$TEST" = "docs" ]]; then
4545
fi
4646

4747
if [[ "${RELEASE_WORKFLOW:-false}" == "true" ]]; then
48-
STATUS_ENDPOINT="${PULP_URL}/pulp/api/v3/status/"
49-
if [ "${PULP_API_ROOT:-}" ]; then
50-
STATUS_ENDPOINT="${PULP_URL}${PULP_API_ROOT}api/v3/status/"
51-
fi
48+
STATUS_ENDPOINT="${PULP_URL}${PULP_API_ROOT}api/v3/status/"
5249
echo $STATUS_ENDPOINT
5350
REPORTED_VERSION=$(http $STATUS_ENDPOINT | jq --arg plugin file --arg legacy_plugin pulp_file -r '.versions[] | select(.component == $plugin or .component == $legacy_plugin) | .version')
5451
response=$(curl --write-out %{http_code} --silent --output /dev/null https://pypi.org/project/pulp-file/$REPORTED_VERSION/)
@@ -97,7 +94,9 @@ if [[ "$TEST" = 'bindings' ]]; then
9794
fi
9895

9996
cat unittest_requirements.txt | cmd_stdin_prefix bash -c "cat > /tmp/unittest_requirements.txt"
97+
cat functest_requirements.txt | cmd_stdin_prefix bash -c "cat > /tmp/functest_requirements.txt"
10098
cmd_prefix pip3 install -r /tmp/unittest_requirements.txt
99+
cmd_prefix pip3 install -r /tmp/functest_requirements.txt
101100

102101
# check for any uncommitted migrations
103102
echo "Checking for uncommitted migrations..."
@@ -109,16 +108,13 @@ if [[ "$TEST" != "upgrade" ]]; then
109108
fi
110109

111110
# Run functional tests
112-
export PYTHONPATH=$REPO_ROOT/../pulp-certguard${PYTHONPATH:+:${PYTHONPATH}}
113-
export PYTHONPATH=$REPO_ROOT${PYTHONPATH:+:${PYTHONPATH}}
114-
115111

116112
if [[ "$TEST" == "upgrade" ]]; then
117113
# Handle app label change:
118114
sed -i "/require_pulp_plugins(/d" pulp_file/tests/functional/utils.py
119115

120116
# Running pre upgrade tests:
121-
pytest -v -r sx --color=yes --pyargs --capture=no pulp_file.tests.upgrade.pre
117+
cmd_prefix bash -c "pytest -v -r sx --color=yes --pyargs --capture=no pulp_file.tests.upgrade.pre"
122118

123119
# Checking out ci_upgrade_test branch and upgrading plugins
124120
cmd_prefix bash -c "cd pulpcore; git checkout -f ci_upgrade_test; pip install --upgrade --force-reinstall ."
@@ -169,16 +165,16 @@ if [[ "$TEST" == "upgrade" ]]; then
169165

170166
# Running post upgrade tests
171167
git checkout ci_upgrade_test -- pulp_file/tests/
172-
pytest -v -r sx --color=yes --pyargs --capture=no pulp_file.tests.upgrade.post
168+
cmd_prefix bash -c "pytest -v -r sx --color=yes --pyargs --capture=no pulp_file.tests.upgrade.post"
173169
exit
174170
fi
175171

176172

177173
if [[ "$TEST" == "performance" ]]; then
178174
if [[ -z ${PERFORMANCE_TEST+x} ]]; then
179-
pytest -vv -r sx --color=yes --pyargs --capture=no --durations=0 pulp_file.tests.performance
175+
cmd_prefix bash -c "pytest -vv -r sx --color=yes --pyargs --capture=no --durations=0 pulp_file.tests.performance"
180176
else
181-
pytest -vv -r sx --color=yes --pyargs --capture=no --durations=0 pulp_file.tests.performance.test_$PERFORMANCE_TEST
177+
cmd_prefix bash -c "pytest -vv -r sx --color=yes --pyargs --capture=no --durations=0 pulp_file.tests.performance.test_$PERFORMANCE_TEST"
182178
fi
183179
exit
184180
fi
@@ -188,20 +184,20 @@ if [ -f $FUNC_TEST_SCRIPT ]; then
188184
else
189185

190186
if [[ "$GITHUB_WORKFLOW" == "File Nightly CI/CD" ]]; then
191-
pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_file.tests.functional -m parallel -n 8
192-
pytest -v -r sx --color=yes --pyargs pulp_file.tests.functional -m "not parallel"
187+
cmd_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_file.tests.functional -m parallel -n 8"
188+
cmd_prefix bash -c "pytest -v -r sx --color=yes --pyargs pulp_file.tests.functional -m 'not parallel'"
193189

194190

195-
pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulpcore.tests.functional -m "from_pulpcore_for_all_plugins and parallel" -n 8
196-
pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulpcore.tests.functional -m "from_pulpcore_for_all_plugins and not parallel"
191+
cmd_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulpcore.tests.functional -m 'from_pulpcore_for_all_plugins and parallel' -n 8"
192+
cmd_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulpcore.tests.functional -m 'from_pulpcore_for_all_plugins and not parallel'"
197193

198194
else
199-
pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_file.tests.functional -m "parallel and not nightly" -n 8
200-
pytest -v -r sx --color=yes --pyargs pulp_file.tests.functional -m "not parallel and not nightly"
195+
cmd_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulp_file.tests.functional -m 'parallel and not nightly' -n 8"
196+
cmd_prefix bash -c "pytest -v -r sx --color=yes --pyargs pulp_file.tests.functional -m 'not parallel and not nightly'"
201197

202198

203-
pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulpcore.tests.functional -m "from_pulpcore_for_all_plugins and not nightly and parallel" -n 8
204-
pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulpcore.tests.functional -m "from_pulpcore_for_all_plugins and not nightly and not parallel"
199+
cmd_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulpcore.tests.functional -m 'from_pulpcore_for_all_plugins and not nightly and parallel' -n 8"
200+
cmd_prefix bash -c "pytest -v -r sx --color=yes --suppress-no-test-exit-code --pyargs pulpcore.tests.functional -m 'from_pulpcore_for_all_plugins and not nightly and not parallel'"
205201

206202
fi
207203

template_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# This config represents the latest values used when running the plugin-template. Any settings that
22
# were not present before running plugin-template have been added with their default values.
33

4-
# generated with plugin_template@2021.08.26-125-g1923e98
4+
# generated with plugin_template@2021.08.26-129-gf780fda-dirty
55

66
additional_repos:
77
- branch: main
88
name: pulp-certguard
99
aiohttp_fixtures_origin: 172.18.0.1
10+
api_root: /pulp/
1011
black: true
1112
check_commit_message: true
1213
check_gettext: true

0 commit comments

Comments
 (0)