-
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.
Merge branch 'master' into integrate_sanity_tests_with_pytest
- Loading branch information
Showing
230 changed files
with
7,536 additions
and
984 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,24 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
# Configuration for Python dependencies | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
|
||
# Configuration for frontend/gradle.properties | ||
- package-ecosystem: "gradle" | ||
directory: "/frontend" | ||
schedule: | ||
interval: "monthly" | ||
|
||
# Configuration for plugins/gradle.properties | ||
- package-ecosystem: "gradle" | ||
directory: "/plugins" | ||
schedule: | ||
interval: "monthly" |
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,13 @@ | ||
tracking_issue: 2724 | ||
|
||
# List of workflows that will be re-run in case of failures | ||
# https://github.com/pytorch/test-infra/blob/main/torchci/lib/bot/retryBot.ts | ||
retryable_workflows: | ||
- Run Regression Tests on Docker | ||
- Run Regression Tests for CPU nightly binaries | ||
- Push torchserve nightly | ||
- Push Docker Nightly | ||
- Docker CI | ||
- CI CPU | ||
- CI GPU | ||
- Benchmark torchserve nightly |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: CI CPU | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
|
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 |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
name: "CodeQL" | ||
|
||
on: | ||
workflow_dispatch: | ||
# run every day at 11:15am | ||
schedule: | ||
- cron: '15 11 * * *' | ||
|
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Make an official Release of Docker Images | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
upload_docker: | ||
description: 'Upload TorchServe Docker Images?' | ||
required: true | ||
default: 'no' | ||
upload_kfs: | ||
description: 'Upload TorchServe-kfs Docker Images?' | ||
required: true | ||
default: 'no' | ||
|
||
jobs: | ||
official-release-docker: | ||
runs-on: [self-hosted, ci-gpu] | ||
steps: | ||
- name: Clean up previous run | ||
run: | | ||
echo "Cleaning up previous run" | ||
ls -la ./ | ||
sudo rm -rf ./* || true | ||
sudo rm -rf ./.??* || true | ||
ls -la ./ | ||
- name: Setup Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
architecture: x64 | ||
- name: Checkout TorchServe | ||
uses: actions/checkout@v3 | ||
- name: Login to Docker | ||
env: | ||
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | ||
run: docker login --username pytorchbot --password "$DOCKER_PASSWORD" | ||
- name: Build & Upload pytorch/torchserve Docker images | ||
if: github.event.inputs.upload_docker == 'yes' | ||
run: | | ||
cd docker | ||
python build_upload_release.py --cleanup | ||
- name: Build & Upload pytorch/torchserve-kfs Docker images | ||
if: github.event.inputs.upload_kfs == 'yes' | ||
run: | | ||
cd kubernetes/kserve | ||
python build_upload_release.py --cleanup |
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,44 @@ | ||
name: Run Regression Tests for CPU nightly binaries | ||
|
||
on: | ||
# run every day at 6:15am | ||
schedule: | ||
- cron: '15 6 * * *' | ||
|
||
concurrency: | ||
group: ci-cpu-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
regression-cpu-nightly-binaries: | ||
# creates workflows for OS: ubuntu, macOS | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04, macOS-latest] | ||
python-version: ["3.8", "3.9", "3.10"] | ||
binaries: ["pypi", "conda"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup conda with Python ${{ matrix.python-version }} | ||
uses: s-weigand/setup-conda@v1 | ||
with: | ||
update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
conda-channels: anaconda, conda-forge | ||
- run: conda --version | ||
- run: python --version | ||
- name: Setup Java 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
- name: Checkout TorchServe | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: | | ||
python ts_scripts/install_dependencies.py --environment=dev | ||
- name: Torchserve Regression Tests | ||
run: | | ||
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Run Regression Tests for GPU nightly binaries | ||
|
||
on: | ||
# run every day at 6:15am | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ci-cpu-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
regression-gpu-nightly-binaries: | ||
# creates workflows for OS: ubuntu, macOS | ||
runs-on: [self-hosted, regression-test-gpu] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
binaries: ["pypi", "conda"] | ||
steps: | ||
- name: Clean up previous run | ||
run: | | ||
echo "Cleaning up previous run" | ||
ls -la ./ | ||
sudo rm -rf ./* || true | ||
sudo rm -rf ./.??* || true | ||
ls -la ./ | ||
- name: Setup Java 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
- name: Checkout TorchServe | ||
uses: actions/checkout@v3 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniconda-version: "latest" | ||
- name: Setup Conda | ||
uses: s-weigand/setup-conda@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Setup Python ${{ matrix.python_version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- run: conda --version | ||
- run: python --version | ||
- name: Install dependencies | ||
run: | | ||
python ts_scripts/install_dependencies.py --environment=dev --cuda=cu118 | ||
- name: Torchserve Regression Tests | ||
run: | | ||
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly |
Oops, something went wrong.