Do not upload MacOS conda environment to GitHub when job fails (#102108)
Fixes https://github.com/pytorch/pytorch/issues/101800. This is not needed anymore as the dependencies issues on MacOS has been addressed.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/102108
Approved by: https://github.com/malfet
diff --git a/.github/workflows/_mac-test-mps.yml b/.github/workflows/_mac-test-mps.yml
index eed253d..edd17c8 100644
--- a/.github/workflows/_mac-test-mps.yml
+++ b/.github/workflows/_mac-test-mps.yml
@@ -154,18 +154,3 @@
with:
use-gha: true
file-suffix: ${{ github.job }}-mps-1-1-macos-m1-12_${{ steps.get-job-id.outputs.job-id }}
-
- - name: Archive conda environments
- if: failure()
- shell: bash
- run: |
- zip -1 -r runner_temp.zip "${RUNNER_TEMP}/"
-
- - name: Store conda environments on GHA for debugging
- uses: actions/upload-artifact@v3
- if: failure()
- with:
- name: ${{ env.BUILD_ENVIRONMENT }}-${{ steps.get-job-id.outputs.job-id }}-temp
- retention-days: 14
- if-no-files-found: warn
- path: runner_temp.zip
diff --git a/.github/workflows/_mac-test.yml b/.github/workflows/_mac-test.yml
index 5c646b2..950e712 100644
--- a/.github/workflows/_mac-test.yml
+++ b/.github/workflows/_mac-test.yml
@@ -208,21 +208,6 @@
use-gha: true
file-suffix: ${{ github.job }}-${{ matrix.config }}-${{ matrix.shard }}-${{ matrix.num_shards }}-${{ matrix.runner }}_${{ steps.get-job-id.outputs.job-id }}
- - name: Archive conda environments
- if: failure()
- shell: bash
- run: |
- zip -1 -r runner_temp.zip "${RUNNER_TEMP}/"
-
- - name: Store conda environments on GHA for debugging
- uses: actions/upload-artifact@v3
- if: failure()
- with:
- name: ${{ env.BUILD_ENVIRONMENT }}-${{ steps.get-job-id.outputs.job-id }}-temp
- retention-days: 14
- if-no-files-found: warn
- path: runner_temp.zip
-
- name: Clean up disk space
if: always()
continue-on-error: true