Fix gha render-test-result mixed failure passthrough (#63056)
authorzhouzhuojie <zhouzhuojie@gmail.com>
Wed, 11 Aug 2021 16:42:15 +0000 (09:42 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 11 Aug 2021 16:45:31 +0000 (09:45 -0700)
commitc090ae291eced378feb84cd60886542e5c12f989
tree7741b57b9eca6e4b80c841d777cdafca581ecb72
parent4ea6a3aa7429e89d0ad8ab562f4811ff86b18393
Fix gha render-test-result mixed failure passthrough (#63056)

Summary:
To fix something like https://github.com/pytorch/pytorch/actions/runs/1114555082

![image](https://user-images.githubusercontent.com/658840/128956528-86997457-5e18-4ae1-83cc-aa7d0ca03c0e.png)

Not sure why `needs.test.result` doesn't capture the `failure` case before, so changed it to `needs.test.result != 'skipped' || failure()`

Pull Request resolved: https://github.com/pytorch/pytorch/pull/63056

Reviewed By: walterddr, tktrungna

Differential Revision: D30240112

Pulled By: zhouzhuojie

fbshipit-source-id: d159cc3f79ed5d604ae12583736b37ac28e8d87c
14 files changed:
.github/templates/bazel_ci_workflow.yml.j2
.github/templates/linux_ci_workflow.yml.j2
.github/templates/windows_ci_workflow.yml.j2
.github/workflows/generated-linux-bionic-cuda10.2-cudnn7-py3.9-gcc7.yml
.github/workflows/generated-linux-bionic-py3.8-gcc9-coverage.yml
.github/workflows/generated-linux-xenial-cuda10.2-cudnn7-py3.6-gcc7.yml
.github/workflows/generated-linux-xenial-cuda11.1-cudnn8-py3.6-gcc7.yml
.github/workflows/generated-linux-xenial-py3.6-gcc5.4.yml
.github/workflows/generated-linux-xenial-py3.6-gcc7-bazel-test.yml
.github/workflows/generated-periodic-linux-xenial-cuda11.3-cudnn8-py3.6-gcc7.yml
.github/workflows/generated-periodic-win-vs2019-cuda11-cudnn8-py3.yml
.github/workflows/generated-win-vs2019-cpu-py3.yml
.github/workflows/generated-win-vs2019-cuda10-cudnn7-py3.yml
.github/workflows/generated-win-vs2019-cuda11-cudnn8-py3.yml