Closed GregoireW closed 4 months ago
The library currently provides caching for this and it looks like its behaving as intended:
Do you know if your configuration is preventing caching? Such as expires_in
is not being returned or is 0
?
The action use the library @google-cloud/storage
which in turn use this library.
I currently modified the action to add a lock on the auth call :
With this lock, the number of call to the token exchange is drastically reduced (2 call for 250 file) so for me the cache is ok, but cache is only done after authentication is done. In the GCS usecase, you have a huge number of request in a short time and for that, you consider there is no cache for many of them.
On second review, I think we can improve this experience. I've created a PR to resolve:
Hello,
This issue is linked to https://github.com/google-github-actions/upload-cloud-storage/issues/364
The issue is when we use the
google-github-actions/upload-cloud-storage
action, this authentication library is used and we end up with a huge number of call on the token exchange API.As this is rate limited, we got some spike that made some things worst. I already increase the api quota, but to fix our issue it would need a crazy number. It is better to fix this here.
To repoduce the issue, you can run an action containing: