Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
In order to package using composer we will need to ensure that we do not hit githubs api limits.
Composer uses GitHubs API to retrieve Repo data and Tarballs (in Composer prefer-dist mode). GitHub API Rate Limits for unauthenticated requests are very low. We will hit the limit in when packaging potentially easily.
https://developer.github.com/v3/#rate-limiting
Proposed resolution
Generate OAuth token via GitHub and store it in ~/.composer/auth.json in the appropriate location.
Remaining tasks
Generate token(done, thanks Mixologic)- Install composer on all servers that do packaging - jenkins1, stagingwww, devwww
- Generate
~/.composer/auth.json
Comments
Comment #2
dawehnerDoes this issue needs any kind of oauth token? is there anything particularly difficult about this issue?
Comment #3
MixologicThe main difficulty in this issue (and the other one) is that we need a way to setup the token without it being checked into git somewhere (and this one is for the packaging side of things) - so this one will probably be something like add an oath token to settings.local.php on d.o.
The other concern is one of "which oath token do we use" - it should probably be a generic account that the drupal association owns, and not one of our individual developer accounts. We (Joshuami) have reached out to mikl to see about getting back the github.com/drupal namespace, and are waiting to hear back from him on that.
Comment #4
MixologicComment #5
joshuamiMikkl let me know that webchick and Dries are owners of that account. I've requested access from them. If I don't hear back by Friday, we'll go with the Drupal Association org on GitHub since we already own that.
Comment #6
dawehnerYou could also use the DA one and switch over later.
Comment #7
drummComment #8
drummComment #9
drummhttps://github.com/Druplicon is the account we are using for this. It is set up in production, awaiting being added to configuration management.
Comment #10
drummThis is all done now.