File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -644,3 +644,35 @@ jobs:
644
644
--run_id ${{github.run_id}}
645
645
- name : Summarize results into GitHub log
646
646
run : python scripts/gha/summarize_test_results.py --dir test_results --github_log
647
+
648
+
649
+ attempt_retry :
650
+ name : " attempt-retry"
651
+ needs : [check_and_prepare, summarize_results]
652
+ runs-on : ubuntu-20.04
653
+ if : ${{ failure() }} # ## && needs.check_and_prepare.outputs.trigger == 'scheduled_trigger' }}
654
+ steps :
655
+ - uses : actions/checkout@v3
656
+ with :
657
+ ref : ${{needs.check_and_prepare.outputs.github_ref}}
658
+ - name : Setup python
659
+ uses : actions/setup-python@v4
660
+ with :
661
+ python-version : ${{ env.pythonVersion }}
662
+ - name : Install python deps
663
+ run : pip install -r scripts/gha/python_requirements.txt
664
+ # The default token can't run workflows, so get an alternate token.
665
+ - name : Generate token for GitHub API
666
+ uses : tibdex/github-app-token@v1
667
+ id : generate-token
668
+ with :
669
+ app_id : ${{ secrets.WORKFLOW_TRIGGER_APP_ID }}
670
+ private_key : ${{ secrets.WORKFLOW_TRIGGER_APP_PRIVATE_KEY }}
671
+ - name : Retry failed tests
672
+ run : |
673
+ echo "::warning ::Attempting to retry failed tests"
674
+ python scripts/gha/trigger_workflow.py -t ${{ steps.generate-token.outputs.token }} \
675
+ -w retry-test-failures.yml \
676
+ -p run_id ${{ github.run_id }} \
677
+ -s 10 \
678
+ -A
You can’t perform that action at this time.
0 commit comments