Skip to content

Commit

Permalink
Increase retry timeout when polling CI run result
Browse files Browse the repository at this point in the history
During end to end tests, we query the GitHub API regularly to check if
the pipeline associated with the test PR has completed. This commit
increase the retry timeout in order to decrease the total amount of API
calls that the bot account is performing. This helps with staying within
the GitHub API rate limits as highlighted in openshift-helm-charts#422.

Signed-off-by: Matthias Goerens <[email protected]>
  • Loading branch information
github-actions[bot] authored and mgoerens committed Jan 20, 2025
1 parent d1862f6 commit dea1803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/behave_features/common/utils/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_run_id(secrets, workflow_name: str, pr_number: str = None):
)


@retry(stop_max_delay=60_000 * 40, wait_fixed=2000)
@retry(stop_max_delay=60_000 * 40, wait_fixed=10000)
def get_run_result(secrets, run_id):
r = github_api(
"get", f"repos/{secrets.test_repo}/actions/runs/{run_id}", secrets.bot_token
Expand Down

0 comments on commit dea1803

Please sign in to comment.