-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker Regression Tests Github action (#2403)
* Testing docker regression * Run docker regression nightly * Addressed review comments * code cleanup * clean up gpu runner * changes based on feedback * lint failure
- Loading branch information
Showing
13 changed files
with
167 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Run Regression Tests on Docker | ||
|
||
on: | ||
# run every day at 5:15am | ||
schedule: | ||
- cron: '15 5 * * *' | ||
|
||
concurrency: | ||
group: ci-cpu-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
docker-regression: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
hardware: [ubuntu-20.04, [self-hosted, regression-test-gpu]] | ||
runs-on: | ||
- ${{ matrix.hardware }} | ||
steps: | ||
- name: Clean up previous run | ||
run: | | ||
echo "Cleaning up previous run" | ||
ls -la ./ | ||
sudo rm -rf ./* || true | ||
sudo rm -rf ./.??* || true | ||
ls -la ./ | ||
docker system prune -f | ||
- name: Checkout TorchServe | ||
uses: actions/checkout@v3 | ||
- name: Branch name | ||
run: | | ||
echo $GITHUB_REF_NAME | ||
- name: Build CPU Docker Image | ||
if: contains(matrix.hardware, 'ubuntu') | ||
run: | | ||
cd docker | ||
./build_image.sh -bt ci -b $GITHUB_REF_NAME -t pytorch/torchserve:ci | ||
- name: Build GPU Docker Image | ||
if: false == contains(matrix.hardware, 'ubuntu') | ||
run: | | ||
cd docker | ||
./build_image.sh -g -cv cu117 -bt ci -b $GITHUB_REF_NAME -t pytorch/torchserve:ci | ||
- name: Torchserve GPU Regression Tests | ||
if: false == contains(matrix.hardware, 'ubuntu') | ||
run: | | ||
docker run --gpus all -v $GITHUB_WORKSPACE:/home/serve pytorch/torchserve:ci | ||
- name: Torchserve CPU Regression Tests | ||
if: contains(matrix.hardware, 'ubuntu') | ||
run: | | ||
docker run -v $GITHUB_WORKSPACE:/home/serve pytorch/torchserve:ci | ||
- name: Cleanup Docker Images | ||
if: success() | ||
run: | | ||
docker system prune -f && docker rmi pytorch/torchserve:ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1062,4 +1062,5 @@ XLA | |
inferentia | ||
ActionSLAM | ||
statins | ||
ci | ||
chatGPT |