Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cache to avoid API rate limit exceeded for installation ID* #52

Open
flagarde opened this issue Nov 27, 2022 · 4 comments
Open

Use cache to avoid API rate limit exceeded for installation ID* #52

flagarde opened this issue Nov 27, 2022 · 4 comments

Comments

@flagarde
Copy link

Hello,

Thanks for this nice action it is very useful.
However, sometimes I'm using github action to test on hardware I don't have at disposal, so this involve a lot of push, this trigger the API rate limit exceeded for installation ID* even with GITHUB_TOKEN.

Do you think it could be a solution to add an option to use 'actions/cache@v3' to avoid this situation ?
like :

- name: Setup CMake
  uses: jwlawson/actions-setup-cmake@v1.12
  with:
    cmake-version: '3.24.x'
    github-api-token: ${{ secrets.GITHUB_TOKEN }}
    cache : true

to download it and store it in a dedicated folder to avoid next download in case the 3.24.x is the same ?

@jwlawson
Copy link
Owner

jwlawson commented Dec 7, 2022

This is a great idea. It looks like other actions like setup-node do something like this too. I'm not sure when I'll have time to look at it, but it would be nice to have.

@auto-differentiation-dev

We can confirm this issue - we often get hit by the rate limit error as well, as we need to build on many platform/compiler combinations and somewhere near the 3rd push, the rate limit error happens. An example build is here (see first attempt): https://github.com/auto-differentiation/XAD/actions/runs/5281376061/jobs/9554856112

@ChrisThrasher
Copy link

I'm dealing with too. It happens so quickly that in practice I just can't use this action in spite of me really wanting to.

@wjakob
Copy link

wjakob commented Oct 18, 2023

Any news on this? I am also using this action but run into the rate limit all the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants