Skip to content

Commit

Permalink
Use ci repo for cpu tests (#3062)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-chu authored Feb 29, 2024
1 parent a90f9f3 commit 8e1c9bd
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 310 deletions.
117 changes: 0 additions & 117 deletions .github/mcli/mcli_pytest.py

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: mosaicml/ci-testing
ref: v0.0.1
ref: v0.0.2
path: ./ci-testing
- uses: ./ci-testing/.github/actions/code-quality
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: mosaicml/ci-testing
ref: v0.0.1
ref: v0.0.2
path: ./ci-testing
- uses: ./ci-testing/.github/actions/codeql-analysis
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: mosaicml/ci-testing
ref: v0.0.1
ref: v0.0.2
path: ./ci-testing
- uses: ./ci-testing/.github/actions/coverage
with:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' }}
jobs:
daily-pytest-cpu:
uses: ./.github/workflows/pytest-cpu.yaml
uses: mosaicml/ci-testing/.github/workflows/pytest-cpu.yaml@v0.0.2
strategy:
matrix:
include:
Expand Down Expand Up @@ -73,11 +73,13 @@ jobs:
with:
container: ${{ matrix.container }}
name: ${{ matrix.name }}
pip_deps: "[all]"
pytest-command: ${{ matrix.pytest_command }}
pytest-markers: ${{ matrix.markers }}
composer_package_name: ${{ matrix.composer_package_name }}
pytest-wandb-entity: "mosaicml-public-integration-tests"
pytest-wandb-project: "integration-tests-${{ github.sha }}"
safe_directory: composer
secrets:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -98,7 +100,7 @@ jobs:
download-path: artifacts

daily-pytest-gpu:
uses: ./.github/workflows/pytest-gpu.yaml
uses: mosaicml/ci-testing/.github/workflows/pytest-gpu.yaml@v0.0.2
strategy:
matrix:
# Unlike CPU tests, we run daily tests together with GPU tests to minimize launch time
Expand All @@ -124,8 +126,10 @@ jobs:
with:
composer_package_name: ${{ matrix.composer_package_name }}
container: ${{ matrix.container }}
git_repo: mosaicml/composer
mcloud-timeout: 2700
name: ${{ matrix.name }}
pip_deps: "[all]"
pytest-command: ${{ matrix.pytest_command }}
pytest-markers: ${{ matrix.markers }}
python-version: 3.9
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/pr-cpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,32 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' }}
jobs:
pytest-cpu:
uses: ./.github/workflows/pytest-cpu.yaml
uses: mosaicml/ci-testing/.github/workflows/pytest-cpu.yaml@v0.0.2
strategy:
matrix:
include:
- name: cpu-3.10-2.0
container: mosaicml/pytorch:2.0.1_cpu-python3.10-ubuntu20.04
markers: not daily and not remote and not gpu and not doctest
pytest_command: coverage run -m pytest
composer_package_name: mosaicml
- name: cpu-3.10-2.1
container: mosaicml/pytorch:2.1.2_cpu-python3.10-ubuntu20.04
markers: not daily and not remote and not gpu and not doctest
pytest_command: coverage run -m pytest
composer_package_name: mosaicml
- name: cpu-doctest
container: mosaicml/pytorch:2.1.2_cpu-python3.10-ubuntu20.04
markers: not daily and not remote and not gpu and doctest
pytest_command: coverage run -m pytest tests/test_docs.py
composer_package_name: mosaicml
name: ${{ matrix.name }}
if: github.repository_owner == 'mosaicml'
with:
composer_package_name: ${{ matrix.composer_package_name }}
composer_package_name: mosaicml
container: ${{ matrix.container }}
name: ${{ matrix.name }}
pip_deps: "[all]"
pytest-command: ${{ matrix.pytest_command }}
pytest-markers: ${{ matrix.markers }}
safe_directory: composer
coverage:
uses: ./.github/workflows/coverage.yaml
name: Coverage Results
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr-gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' }}
jobs:
pytest-gpu:
uses: ./.github/workflows/pytest-gpu.yaml
uses: mosaicml/ci-testing/.github/workflows/pytest-gpu.yaml@v0.0.2
strategy:
matrix:
include:
Expand All @@ -23,8 +23,10 @@ jobs:
with:
composer_package_name: ${{ matrix.composer_package_name }}
container: ${{ matrix.container }}
git_repo: mosaicml/composer
mcloud-timeout: 1500
name: ${{ matrix.name }}
pip_deps: "[all]"
pytest-command: ${{ matrix.pytest_command }}
pytest-markers: ${{ matrix.markers }}
python-version: 3.9
Expand Down
92 changes: 0 additions & 92 deletions .github/workflows/pytest-cpu.yaml

This file was deleted.

Loading

0 comments on commit 8e1c9bd

Please sign in to comment.