Skip to content

Commit 1c941a6

Browse files
Vivek Miglanifacebook-github-bot
authored andcommitted
Add retry workflow for Captum OSS GitHub Actions (#1408)
Summary: Pull Request resolved: #1408 We frequently see sporadic failures in Captum GitHub actions test workflows, often related to package download, http errors, conda environment setup, etc. We add auto-retries to automatically retry failed workflows rather than needing to do this manually. Reviewed By: csauper Differential Revision: D64693773 fbshipit-source-id: a4cc949e9568641fdcacb3eebe9ddfdbb6864c35
1 parent ed5daa3 commit 1c941a6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/retry.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Retry Test
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
run_id:
6+
required: true
7+
jobs:
8+
rerun-on-failure:
9+
permissions: write-all
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: rerun ${{ inputs.run_id }}
13+
env:
14+
GH_REPO: ${{ github.repository }}
15+
GH_TOKEN: ${{ github.token }}
16+
GH_DEBUG: api
17+
run: |
18+
gh run watch ${{ inputs.run_id }} > /dev/null 2>&1
19+
gh run rerun ${{ inputs.run_id }} --failed

0 commit comments

Comments
 (0)