File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 129129
130130general_test_hour = 9
131131firestore_test_hour = 10
132- test_time_minute_range = 59
133132
134133def rename_key (old_dict ,old_name ,new_name ):
135134 """Rename a key in a dictionary, preserving the order."""
@@ -388,9 +387,9 @@ def main(argv):
388387 if run ['day' ] < start_date or run ['day' ] > end_date : continue
389388 run ['duration' ] = dateutil .parser .parse (run ['updated_at' ], ignoretz = True ) - run ['date' ]
390389 compare_test_hour = firestore_test_hour if FLAGS .firestore else general_test_hour
391- # The general test should start at 9:00, and firestore at 10 :00, but we give it a range
392- # because the tests can take a few minutes before starting .
393- if run ['date' ].hour == compare_test_hour and run [ 'date' ]. minute <= test_time_minute_range :
390+ # The scheduled time is at the top of the hour (e.g. 09 :00 or 10:00).
391+ # We allow for some delay in GitHub Actions starting the job, as long as it starts in the same hour .
392+ if run ['date' ].hour == compare_test_hour :
394393 source_tests [day ] = run
395394 all_days .add (day )
396395
You can’t perform that action at this time.
0 commit comments