Skip to content

Code_formatter action failing with rate limit exceeded error #149399

Open
@svkeerthy

Description

@svkeerthy

Code Formatter fails in the recent commits. One of the runs that fail - https://github.com/llvm/llvm-project/actions/runs/16354672300/job/46209935790?pr=149212

Log

File "/home/runner/work/llvm-project/llvm-project/./code-format-tools/llvm/utils/git/code-format-helper.py", line 525, in <module>
    if not fmt.run(changed_files, args):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/llvm-project/llvm-project/./code-format-tools/llvm/utils/git/code-format-helper.py", line 151, in run
    self.update_pr(comment_text, args, create_new=False)
  File "/home/runner/work/llvm-project/llvm-project/./code-format-tools/llvm/utils/git/code-format-helper.py", line 121, in update_pr
    repo = github.Github(args.token).get_repo(args.repo)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.13/x64/lib/python3.11/site-packages/github/MainClass.py", line 363, in get_repo
    headers, data = self.__requester.requestJsonAndCheck("GET", url)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.13/x64/lib/python3.11/site-packages/github/Requester.py", line 442, in requestJsonAndCheck
    return self.__check(
           ^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.13/x64/lib/python3.11/site-packages/github/Requester.py", line 487, in __check
    raise self.__createException(status, responseHeaders, data)
github.GithubException.RateLimitExceededException: 403 {"message": "API rate limit exceeded for installation. If you reach out to GitHub Support for help, please include the request ID B410:11F497:28D2F6F:2A15968:687955B7 and timestamp 2025-07-17 19:57:43 UTC.", "documentation_url": "https://docs.github.com/rest/overview/rate-limits-for-the-rest-api", "status": "403"}

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions