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

  1. Generate token (done, thanks Mixologic)
  2. Install composer on all servers that do packaging - jenkins1, stagingwww, devwww
  3. Generate ~/.composer/auth.json

User interface changes

API changes

Data model changes

Comments

Mixologic created an issue. See original summary.

dawehner’s picture

Does this issue needs any kind of oauth token? is there anything particularly difficult about this issue?

Mixologic’s picture

The 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.

Mixologic’s picture

Title: Setup GitHub OAuth for Composer » Setup GitHub OAuth for Composer during Packaging
joshuami’s picture

Mikkl 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.

dawehner’s picture

You could also use the DA one and switch over later.

drumm’s picture

Assigned: Unassigned » drumm
drumm’s picture

Issue summary: View changes
drumm’s picture

Status: Active » Needs review

https://github.com/Druplicon is the account we are using for this. It is set up in production, awaiting being added to configuration management.

drumm’s picture

Status: Needs review » Fixed

This is all done now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.