Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create validate_docker_image.yml #1771

Merged
merged 53 commits into from
Apr 10, 2024
Merged
Changes from 49 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
bc0e315
Create validate_docker_image.yml
juliagmt-google Apr 4, 2024
5194442
Update validate_docker_image.yml
juliagmt-google Apr 4, 2024
8c775c0
Update validate_docker_image.yml
juliagmt-google Apr 4, 2024
32911b3
Add docker pull command
juliagmt-google Apr 4, 2024
e630f17
Update validate_docker_image.yml
juliagmt-google Apr 4, 2024
8645bc7
Update validate_docker_image.yml
juliagmt-google Apr 4, 2024
674ea86
Add more steps in validate_docker_images.yml
juliagmt-google Apr 4, 2024
ab428ce
Update validate_docker_images.yml
juliagmt-google Apr 4, 2024
e7065ce
Update validate_docker_images.yml
juliagmt-google Apr 4, 2024
671db73
Update validate_docker_images.yml
juliagmt-google Apr 4, 2024
87b8ecd
Update validate_docker_images.yml
juliagmt-google Apr 4, 2024
e52e864
Update validate_docker_images.yml
juliagmt-google Apr 4, 2024
a65f44c
Update validate_docker_images.yml
juliagmt-google Apr 4, 2024
5f78286
Update validate_docker_images.yml
juliagmt-google Apr 4, 2024
37fea37
Update validate_docker_images.yml
juliagmt-google Apr 4, 2024
d928903
Update validate_docker_images.yml
juliagmt-google Apr 4, 2024
6b9e193
Update validate_docker_images.yml
juliagmt-google Apr 4, 2024
91a2585
Update validate_docker_images.yml
juliagmt-google Apr 4, 2024
521cdad
Update validate_docker_images.yml
juliagmt-google Apr 4, 2024
1f7de12
Update validate_docker_images.yml
juliagmt-google Apr 4, 2024
eea99f1
Update validate_docker_images.yml
juliagmt-google Apr 5, 2024
31229e9
Update validate_docker_images.yml
juliagmt-google Apr 5, 2024
6a5f1b5
Update validate_docker_images.yml
juliagmt-google Apr 5, 2024
712dbc1
Update validate_docker_images.yml
juliagmt-google Apr 5, 2024
3ecd72b
Update validate_docker_images.yml
juliagmt-google Apr 6, 2024
4e7bbc7
Update validate_docker_images.yml
juliagmt-google Apr 6, 2024
2dcff31
Update validate_docker_images.yml
juliagmt-google Apr 6, 2024
e32a803
Update validate_docker_images.yml
juliagmt-google Apr 6, 2024
d02f074
Update validate_docker_images.yml
juliagmt-google Apr 6, 2024
a75f640
Update validate_docker_images.yml
juliagmt-google Apr 8, 2024
a4d5e8b
Update validate_docker_images.yml
juliagmt-google Apr 8, 2024
a076308
Update validate_docker_images.yml
juliagmt-google Apr 8, 2024
041d904
Update validate_docker_images.yml
juliagmt-google Apr 8, 2024
67a56ac
Update validate_docker_images.yml
juliagmt-google Apr 8, 2024
9ba6088
Update validate_docker_images.yml
juliagmt-google Apr 8, 2024
0107593
Update validate_docker_images.yml
juliagmt-google Apr 8, 2024
b605192
Update validate_docker_images.yml
juliagmt-google Apr 8, 2024
86c4755
Update validate_docker_images.yml
juliagmt-google Apr 8, 2024
46561c0
Update validate_docker_images.yml
juliagmt-google Apr 8, 2024
9a61f5e
Merge branch 'pytorch:main' into patch-1
juliagmt-google Apr 8, 2024
9cc71ad
Update validate_docker_images.yml
juliagmt-google Apr 8, 2024
99d11d0
Update validate_docker_images.yml
juliagmt-google Apr 9, 2024
0a99f1e
Update validate_docker_images.yml
juliagmt-google Apr 9, 2024
a11467f
Update validate_docker_images.yml
juliagmt-google Apr 10, 2024
58085f5
Update validate_docker_images.yml
juliagmt-google Apr 10, 2024
42e036a
Remove trigger on pushes to finalize the logic
juliagmt-google Apr 10, 2024
c46f7be
Add gpu tests
juliagmt-google Apr 10, 2024
d9ac7f3
Testing using push
juliagmt-google Apr 10, 2024
fcb32e0
Remove trigger on push
juliagmt-google Apr 10, 2024
404cff8
Remove run-cpu-tests
juliagmt-google Apr 10, 2024
30e49bd
Update job_name
juliagmt-google Apr 10, 2024
1a49fe0
Update .github/workflows/validate_docker_images.yml
atalman Apr 10, 2024
9089c5d
Update .github/workflows/validate_docker_images.yml
atalman Apr 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/validate_docker_images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Validate Docker Images (with Matrix Generation)
on:
workflow_dispatch:
inputs:
channel:
description: 'PyTorch channel to use (nightly, test, release, all)'
required: true
type: choice
default: 'all'
atalman marked this conversation as resolved.
Show resolved Hide resolved
options:
- 'nightly'
- 'test'
- 'release'
- 'all'
atalman marked this conversation as resolved.
Show resolved Hide resolved

jobs:
generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_docker_release_matrix.yml@main
with:
channel: ${{ inputs.channel }}
secrets: inherit
run-cpu-tests:
needs: generate-matrix
runs-on: ubuntu-latest
atalman marked this conversation as resolved.
Show resolved Hide resolved
strategy:
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
container:
image: ${{matrix.docker}}
steps:
- uses: actions/checkout@v3
- name: Run smoke tests
run:
python test/smoke_test/smoke_test.py --package torchonly --runtime-error-check enabled
run-gpu-tests:
needs: generate-matrix
strategy:
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
runner: linux.g5.4xlarge.nvidia.gpu
repository: "pytorch/builder"
ref: ${{ inputs.ref || github.ref }}
job-name: pytorch:2.2.2-cuda${{ matrix.cuda }}-cudnn${{ matrix.cudnn_version }}-${{ matrix.image_type }}
juliagmt-google marked this conversation as resolved.
Show resolved Hide resolved
binary-matrix: ${{ toJSON(matrix) }}
docker-image: ${{matrix.docker}}
timeout: 180
script: |
set -ex
export MATRIX_GPU_ARCH_TYPE="cuda"
export MATRIX_GPU_ARCH_VERSION="${{ matrix.cuda }}"
python test/smoke_test/smoke_test.py --package torchonly --runtime-error-check enabled