Skip to content

Commit 2cf3ead

Browse files
committed
Add Firestore report to nightly cron job.
1 parent 8e6c0ff commit 2cf3ead

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/build-report.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ env:
1313

1414
jobs:
1515
generate-report:
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
test_set: [ general, firestore ]
1620
runs-on: ubuntu-20.04
21+
name: generate-report-${{ matrix.test_set }}
1722
steps:
1823
- name: Setup python
1924
uses: actions/setup-python@v4
@@ -36,14 +41,24 @@ jobs:
3641
timeout_minutes: 20
3742
max_attempts: 3
3843
shell: bash
39-
command: python3 scripts/gha/report_build_status.py --token ${{ github.token }} --days ${{ env.numDays }} --write_cache build_status_short.cache
44+
command: |
45+
extra_flags=
46+
if [[ "${{ matrix.test_set }}" == "firestore" ]]; then
47+
extra_flags=--firestore
48+
fi
49+
python3 scripts/gha/report_build_status.py --token ${{ github.token }} --days ${{ env.numDays }} --write_cache build_status_short.cache ${extra_flags}
4050
- name: Fetch extended GitHub jobs (with retry)
4151
uses: nick-invision/retry@v2
4252
with:
4353
timeout_minutes: 80
4454
max_attempts: 3
4555
shell: bash
46-
command: python3 scripts/gha/report_build_status.py --token ${{ github.token }} --days ${{ env.numDaysExtended }} --write_cache build_status.cache
56+
command: |
57+
extra_flags=
58+
if [[ "${{ matrix.test_set }}" == "firestore" ]]; then
59+
extra_flags=--firestore
60+
fi
61+
python3 scripts/gha/report_build_status.py --token ${{ github.token }} --days ${{ env.numDaysExtended }} --write_cache build_status.cache ${extra_flags}
4762
- name: Generate report files
4863
run: |
4964
python3 scripts/gha/report_build_status.py --token ${{ github.token }} --days ${{ env.numDays }} --output_markdown --read_cache build_status_short.cache > report_short.md
@@ -88,4 +103,9 @@ jobs:
88103
timeout_minutes: 5
89104
max_attempts: 3
90105
shell: bash
91-
command: python3 scripts/gha/update_issue_comment.py --token ${{ github.token }} --issue_title '[C++] Nightly Integration Testing Report' --start_tag build-dashboard-comment-start --end_tag build-dashboard-comment-end < comment.md
106+
command: |
107+
issue_title='[C++] Nightly Integration Testing Report'
108+
if [[ "${{ matrix.test_set }}" == "firestore" ]]; then
109+
issue_title='[C++] Nightly Integration Testing Report for Firestore'
110+
fi
111+
python3 scripts/gha/update_issue_comment.py --token ${{ github.token }} --issue_title "${issue_title}" --start_tag build-dashboard-comment-start --end_tag build-dashboard-comment-end < comment.md

0 commit comments

Comments
 (0)