13
13
14
14
jobs :
15
15
generate-report :
16
+ strategy :
17
+ fail-fast : false
18
+ matrix :
19
+ test_set : [ general, firestore ]
16
20
runs-on : ubuntu-20.04
21
+ name : generate-report-${{ matrix.test_set }}
17
22
steps :
18
23
- name : Setup python
19
24
uses : actions/setup-python@v4
@@ -36,14 +41,24 @@ jobs:
36
41
timeout_minutes : 20
37
42
max_attempts : 3
38
43
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}
40
50
- name : Fetch extended GitHub jobs (with retry)
41
51
uses : nick-invision/retry@v2
42
52
with :
43
53
timeout_minutes : 80
44
54
max_attempts : 3
45
55
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}
47
62
- name : Generate report files
48
63
run : |
49
64
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
103
timeout_minutes : 5
89
104
max_attempts : 3
90
105
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