First upload artifacts and then run tests to make sure we can easily debug broken images (#2214)

This commit is contained in:
Ayaz Salikhov
2025-02-17 16:40:37 +00:00
committed by GitHub
parent c6ba9e1646
commit 3ca26744d3
2 changed files with 6 additions and 14 deletions

View File

@@ -78,10 +78,6 @@ jobs:
BUILDKIT_PROGRESS: plain
shell: bash
- name: Run tests ✅
run: python3 -m tests.run_tests --short-image-name ${{ inputs.image }} --registry ${{ env.REGISTRY }} --owner ${{ env.OWNER }}
shell: bash
- name: Write tags file 🏷
run: |
python3 -m tagging.write_tags_file --short-image-name ${{ inputs.image }} --tags-dir /tmp/jupyter/tags/ --registry ${{ env.REGISTRY }} --owner ${{ env.OWNER }} --variant ${{ inputs.variant }}
@@ -120,3 +116,7 @@ jobs:
name: ${{ inputs.image }}-${{ inputs.platform }}-${{ inputs.variant }}
path: /tmp/jupyter/images/${{ inputs.image }}-${{ inputs.platform }}-${{ inputs.variant }}.tar.zst
retention-days: 3
- name: Run tests ✅
run: python3 -m tests.run_tests --short-image-name ${{ inputs.image }} --registry ${{ env.REGISTRY }} --owner ${{ env.OWNER }}
shell: bash

View File

@@ -458,11 +458,7 @@ jobs:
{ image: all-spark-notebook, variant: default },
]
needs: [aarch64-images-tag-push, x86_64-images-tag-push]
if: |
always() &&
needs.x86_64-images-tag-push.result == 'success' &&
(needs.aarch64-images-tag-push.result == 'success' || needs.aarch64-images-tag-push.result == 'skipped') &&
!contains(github.event.pull_request.title, '[FAST_BUILD]')
if: (github.repository_owner == 'jupyter' || github.repository_owner == 'mathbunnyru') && !contains(github.event.pull_request.title, '[FAST_BUILD]')
merge-tags-fast:
uses: ./.github/workflows/docker-merge-tags.yml
@@ -480,11 +476,7 @@ jobs:
{ image: base-notebook, variant: default },
]
needs: [aarch64-images-tag-push-fast, x86_64-images-tag-push-fast]
if: |
always() &&
needs.x86_64-images-tag-push-fast.result == 'success' &&
(needs.aarch64-images-tag-push-fast.result == 'success' || needs.aarch64-images-tag-push-fast.result == 'skipped') &&
contains(github.event.pull_request.title, '[FAST_BUILD]')
if: (github.repository_owner == 'jupyter' || github.repository_owner == 'mathbunnyru') && contains(github.event.pull_request.title, '[FAST_BUILD]')
wiki-update:
uses: ./.github/workflows/docker-wiki-update.yml