Skip to content

Commit

Permalink
Change the period for checking if the workflow is flaky (#33897)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amar3tto authored Feb 7, 2025
1 parent 67c774d commit 047715e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ def filter_workflow_runs(run, issue):
if not len(workflow.runs):
return False

three_months_ago_datetime = datetime.now() - timedelta(days=90)
workflow_runs = [run for run in workflow.runs if run.started_at > three_months_ago_datetime]
one_month_ago_datetime = datetime.now() - timedelta(days=30)
workflow_runs = [run for run in workflow.runs if run.started_at > one_month_ago_datetime]

url = f"https://api.github.com/repos/{GIT_ORG}/beam/issues"
headers = {"Authorization": get_token()}
Expand Down Expand Up @@ -307,7 +307,7 @@ def append_workflow_runs(workflow, runs):
number_of_entries_per_page = 100 # The number of results per page (max 100)
params = {"branch": "master", "page": page, "per_page": number_of_entries_per_page}
concurrent_requests = 30 # Number of requests to send simultaneously
start = datetime.now() - timedelta(days=90)
start = datetime.now() - timedelta(days=30)
earliest_run_creation_date = start.strftime('%Y-%m-%d')
semaphore = asyncio.Semaphore(concurrent_requests)

Expand Down

0 comments on commit 047715e

Please sign in to comment.