pytorch/.github/workflows
Sam Estep fb64caedb5 Don't fail "Add annotations" if "Lint" is canceled (#55242)
Summary:
https://github.com/pytorch/pytorch/issues/54779 split out the logic from our "Lint" workflow into a separate workflow that allows us to annotate PRs from forks. However, as of https://github.com/pytorch/pytorch/issues/54689, it is possible for the "Lint" workflow to be canceled, in which case it may not upload the "flake8-py3" and "clang-tidy" artifacts that the "Add annotations" workflow expects. This often results in GitHub pointlessly sending notification emails due to the failure in the "Add annotations" workflow. This PR fixes the issue by gracefully handling the case where the expected artifact is absent.

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

Test Plan: I tested this in the same external sandbox repo used to test https://github.com/pytorch/pytorch/issues/54779.

Reviewed By: malfet

Differential Revision: D27540120

Pulled By: samestep

fbshipit-source-id: 47cc02950edbbc6381033bda2fe4570cb3e331cb
2021-04-02 12:40:20 -07:00
..
add_annotations.yml Don't fail "Add annotations" if "Lint" is canceled (#55242) 2021-04-02 12:40:20 -07:00
auto_label.yml Correct the name of the label in auto-label-rocm (#55170) 2021-04-01 12:54:56 -07:00
build_linux_conda.yml Clarify and document commit choice for CI jobs (#54967) 2021-03-30 11:47:40 -07:00
build_linux_libtorch.yml Clarify and document commit choice for CI jobs (#54967) 2021-03-30 11:47:40 -07:00
build_linux_wheels.yml Clarify and document commit choice for CI jobs (#54967) 2021-03-30 11:47:40 -07:00
cancel_redundant_workflows.yml Add code to ensure workflow consistency for autocanceling (#55171) 2021-04-01 14:11:32 -07:00
clang_format.yml Clarify and document commit choice for CI jobs (#54967) 2021-03-30 11:47:40 -07:00
jit_triage.yml replacing ubuntu-latest with ubuntu-18.04 (#51744) 2021-02-04 14:17:06 -08:00
lint.yml Add code to ensure workflow consistency for autocanceling (#55171) 2021-04-01 14:11:32 -07:00
push_nightly_docker_ghcr.yml Use self-hosted runner for nightly docker build CI. (#52148) 2021-02-11 13:14:01 -08:00
quantization_triage.yml replacing ubuntu-latest with ubuntu-18.04 (#51744) 2021-02-04 14:17:06 -08:00
stale_pull_requests.yml replacing ubuntu-latest with ubuntu-18.04 (#51744) 2021-02-04 14:17:06 -08:00
test_tools.yml Clarify and document commit choice for CI jobs (#54967) 2021-03-30 11:47:40 -07:00
update_s3_htmls.yml replacing ubuntu-latest with ubuntu-18.04 (#51744) 2021-02-04 14:17:06 -08:00