Skip to content

Commit 8e6c0ff

Browse files
committed
Add --firestore flag to report Firestore history.
1 parent 00eeac8 commit 8e6c0ff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/gha/report_build_status.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@
112112
"summary_include_crashes", True,
113113
"Whether to include CRASH/TIMEOUT in the test summary.")
114114

115+
flags.DEFINE_bool(
116+
"firestore", False,
117+
"Report on Firestore tests rather than on general tests.")
118+
115119
_WORKFLOW_TESTS = 'integration_tests.yml'
116120
_WORKFLOW_PACKAGING = 'cpp-packaging.yml'
117121
_TRIGGER_USER = 'firebase-workflow-trigger[bot]'
@@ -380,11 +384,10 @@ def main(argv):
380384
if run['status'] != 'completed': continue
381385
if run['day'] < start_date or run['day'] > end_date: continue
382386
run['duration'] = dateutil.parser.parse(run['updated_at'], ignoretz=True) - run['date']
383-
if general_test_time in str(run['date']):
387+
compare_test_time = firestore_test_time if FLAGS.firestore else general_test_time
388+
if compare_test_time in str(run['date']):
384389
source_tests[day] = run
385390
all_days.add(day)
386-
# elif firestore_test_time in str(run['date']):
387-
# firestore_tests[day] = run
388391

389392
workflow_id = _WORKFLOW_PACKAGING
390393
all_runs = firebase_github.list_workflow_runs(FLAGS.token, workflow_id, _BRANCH, 'schedule', _LIMIT)

0 commit comments

Comments
 (0)