Skip to content

Commit

Permalink
Increase retry timeout when polling CI run result (#423)
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 #422.

Signed-off-by: Matthias Goerens <[email protected]>
Co-authored-by: mgoerens <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
mgoerens and github-actions[bot] authored Jan 20, 2025
1 parent d1862f6 commit 0321077
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 0321077

Please sign in to comment.