Skip to content

Commit c1c9e7c

Browse files
committed
Add to integration test workflow (currently unconditional, will change to scheduled trigger only when merging.)
1 parent 60f48db commit c1c9e7c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/integration_tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,3 +644,35 @@ jobs:
644644
--run_id ${{github.run_id}}
645645
- name: Summarize results into GitHub log
646646
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

0 commit comments

Comments
 (0)