@@ -205,134 +205,6 @@ jobs:
205205 docker exec pulp ls -latr /etc/yum.repos.d/ || true
206206 docker exec pulp cat /etc/yum.repos.d/* || true
207207 docker exec pulp pip3 list
208-
209- upgrade :
210- runs-on : ubuntu-latest
211- needs : lint
212-
213- strategy :
214- fail-fast : false
215- matrix :
216- env :
217- - TEST : upgrade
218- FROM_PULPCORE_BRANCH : " 3.11"
219- FROM_PULP_PYTHON_BRANCH : " 3.2"
220- outputs :
221- deprecations-upgrade : ${{ steps.deprecations.outputs.deprecations-upgrade }}
222-
223- steps :
224- - uses : actions/checkout@v3
225- with :
226- # by default, it uses a depth of 1
227- # this fetches all history so that we can read each commit
228- fetch-depth : 0
229-
230- - uses : actions/setup-python@v3
231- with :
232- python-version : " 3.8"
233-
234- - name : Install httpie
235- run : |
236- echo ::group::HTTPIE
237- pip install httpie
238- echo ::endgroup::
239- echo "HTTPIE_CONFIG_DIR=$GITHUB_WORKSPACE/.ci/assets/httpie/" >> $GITHUB_ENV
240-
241- - name : Set environment variables
242- run : |
243- echo "TEST=${{ matrix.env.TEST }}" >> $GITHUB_ENV
244- echo "FROM_PULP_PYTHON_BRANCH=${{ matrix.env.FROM_PULP_PYTHON_BRANCH }}" >> $GITHUB_ENV
245- echo "FROM_PULPCORE_BRANCH=${{ matrix.env.FROM_PULPCORE_BRANCH }}" >> $GITHUB_ENV
246-
247- - name : Install python dependencies
248- run : |
249- echo ::group::PYDEPS
250- pip install wheel
251- echo ::endgroup::
252-
253- - name : Before Install
254-
255- run : .github/workflows/scripts/before_install.sh
256- shell : bash
257- env :
258- PY_COLORS : ' 1'
259- ANSIBLE_FORCE_COLOR : ' 1'
260- GITHUB_PULL_REQUEST : ${{ github.event.number }}
261- GITHUB_PULL_REQUEST_BODY : ${{ github.event.pull_request.body }}
262- GITHUB_BRANCH : ${{ github.head_ref }}
263- GITHUB_REPO_SLUG : ${{ github.repository }}
264- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
265- GITHUB_CONTEXT : ${{ github.event.pull_request.commits_url }}
266-
267- - name : Install
268-
269- run : .github/workflows/scripts/install.sh
270- shell : bash
271- env :
272- PY_COLORS : ' 1'
273- ANSIBLE_FORCE_COLOR : ' 1'
274- GITHUB_PULL_REQUEST : ${{ github.event.number }}
275- GITHUB_PULL_REQUEST_BODY : ${{ github.event.pull_request.body }}
276- GITHUB_BRANCH : ${{ github.head_ref }}
277- GITHUB_REPO_SLUG : ${{ github.repository }}
278- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
279- GITHUB_CONTEXT : ${{ github.event.pull_request.commits_url }}
280-
281- - name : Install Python client
282-
283- run : .github/workflows/scripts/install_python_client.sh
284- shell : bash
285-
286- - name : Before Script
287-
288- run : .github/workflows/scripts/before_script.sh
289- shell : bash
290- env :
291- PY_COLORS : ' 1'
292- ANSIBLE_FORCE_COLOR : ' 1'
293- GITHUB_PULL_REQUEST : ${{ github.event.number }}
294- GITHUB_PULL_REQUEST_BODY : ${{ github.event.pull_request.body }}
295- GITHUB_BRANCH : ${{ github.head_ref }}
296- GITHUB_REPO_SLUG : ${{ github.repository }}
297- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
298- GITHUB_CONTEXT : ${{ github.event.pull_request.commits_url }}
299- REDIS_DISABLED : ${{ contains('', matrix.env.TEST) }}
300-
301- - name : Setting secrets
302-
303- run : python3 .github/workflows/scripts/secrets.py "$SECRETS_CONTEXT"
304- env :
305- SECRETS_CONTEXT : ${{ toJson(secrets) }}
306-
307- - name : Upgrade Test
308-
309- run : .github/workflows/scripts/script.sh
310- shell : bash
311- env :
312- PY_COLORS : ' 1'
313- ANSIBLE_FORCE_COLOR : ' 1'
314- GITHUB_PULL_REQUEST : ${{ github.event.number }}
315- GITHUB_PULL_REQUEST_BODY : ${{ github.event.pull_request.body }}
316- GITHUB_BRANCH : ${{ github.head_ref }}
317- GITHUB_REPO_SLUG : ${{ github.repository }}
318- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
319- GITHUB_CONTEXT : ${{ github.event.pull_request.commits_url }}
320-
321- - name : Extract Deprecations from Logs
322- id : deprecations
323- run : echo "::set-output name=deprecations-${{ matrix.env.TEST }}::$(docker logs pulp 2>&1 | grep -i pulpcore.deprecation | base64 -w 0)"
324-
325- - name : Logs
326- if : always()
327- run : |
328- echo "Need to debug? Please check: https://github.com/marketplace/actions/debugging-with-tmate"
329- http --timeout 30 --check-status --pretty format --print hb "https://pulp${PULP_API_ROOT}api/v3/status/" || true
330- docker images || true
331- docker ps -a || true
332- docker logs pulp || true
333- docker exec pulp ls -latr /etc/yum.repos.d/ || true
334- docker exec pulp cat /etc/yum.repos.d/* || true
335- docker exec pulp pip3 list
336208 deprecations :
337209 runs-on : ubuntu-latest
338210 if : always()
@@ -343,13 +215,11 @@ jobs:
343215 test -z "${{ needs.test.outputs.deprecations-pulp }}"
344216 test -z "${{ needs.test.outputs.deprecations-azure }}"
345217 test -z "${{ needs.test.outputs.deprecations-s3 }}"
346- test -z "${{ needs.test.outputs.deprecations-upgrade }}"
347218 - name : Print deprecations
348219 if : failure()
349220 run : |
350221 echo "${{ needs.test.outputs.deprecations-pulp }}" | base64 -d
351222 echo "${{ needs.test.outputs.deprecations-azure }}" | base64 -d
352223 echo "${{ needs.test.outputs.deprecations-s3 }}" | base64 -d
353- echo "${{ needs.test.outputs.deprecations-upgrade }}" | base64 -d
354224
355225
0 commit comments