Skip to content

Commit f524d8a

Browse files
committed
Test upstream with latest test_mps.py #2
1 parent 821781c commit f524d8a

File tree

7 files changed

+79
-753
lines changed

7 files changed

+79
-753
lines changed

.github/workflows/_mac-build.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ on:
6363

6464
jobs:
6565
build:
66-
# Don't run on forked repos.
67-
if: github.repository_owner == 'pytorch'
66+
# # Don't run on forked repos.
67+
# if: github.repository_owner == 'pytorch'
6868
runs-on: ${{ inputs.runner-type }}
6969
env:
7070
# For sccache access (only on non-forked PRs)
@@ -74,9 +74,6 @@ jobs:
7474
outputs:
7575
build-outcome: ${{ steps.build.outcome }}
7676
steps:
77-
- name: Clean up disk space before running MacOS workflow
78-
uses: pytorch/test-infra/.github/actions/check-disk-space@main
79-
8077
# [see note: pytorch repo ref]
8178
- name: Checkout PyTorch
8279
uses: pytorch/pytorch/.github/actions/checkout-pytorch@master
@@ -106,6 +103,7 @@ jobs:
106103
environment-file: ${{ inputs.environment-file }}
107104

108105
- name: Install macOS homebrew dependencies
106+
if: ${{ runner.arch == 'X64' }}
109107
run: |
110108
# Install dependencies
111109
brew install libomp
@@ -146,7 +144,7 @@ jobs:
146144
OUR_GITHUB_JOB_ID: ${{ steps.get-job-id.outputs.job-id }}
147145
run: |
148146
echo "CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname "$(which conda)")/../"}" >> "${GITHUB_ENV}"
149-
${CONDA_RUN} .ci/pytorch/macos-build.sh
147+
${CONDA_RUN} .jenkins/pytorch/macos-build.sh
150148
151149
- name: Archive artifacts into zip
152150
if: inputs.build-generates-artifacts && steps.build.outcome != 'skipped'
@@ -171,8 +169,3 @@ jobs:
171169
retention-days: 14
172170
if-no-files-found: warn
173171
path: sccache-stats-*.json
174-
175-
- name: Clean up disk space
176-
if: always()
177-
continue-on-error: true
178-
uses: pytorch/test-infra/.github/actions/check-disk-space@main

.github/workflows/_mac-test-mps.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,28 @@ jobs:
7474
id: test
7575
env:
7676
ENV_NAME: conda-test-env-${{ github.run_id }}
77-
PR_BODY: ${{ github.event.pull_request.body }}
78-
PYTORCH_RETRY_TEST_CASES: 1
79-
PYTORCH_OVERRIDE_FLAKY_SIGNAL: 1
8077
shell: arch -arch arm64 bash {0}
8178
run: |
8279
# shellcheck disable=SC1090
8380
set -ex
81+
# TODO(https://github.com/pytorch/pytorch/issues/79293)
82+
8483
${CONDA_RUN} python3 test/run_test.py --mps --verbose
8584
85+
- name: Run MPS Test Modules
86+
id: test_2
87+
env:
88+
ENV_NAME: conda-test-env-${{ github.run_id }}
89+
shell: arch -arch arm64 bash {0}
90+
# During bring up of test_modules don't show this as an error.
91+
continue-on-error: true
92+
run: |
93+
# shellcheck disable=SC1090
94+
set -ex
95+
# TODO(https://github.com/pytorch/pytorch/issues/79293)
96+
97+
${CONDA_RUN} python3 test/test_modules.py -k mps --verbose
98+
8699
- name: Print remaining test logs
87100
shell: bash
88101
if: always()

.github/workflows/check-labels.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)