WPT: Allow setting GitHub credentials as env variables, warn when they are not set
A fresh WPT import checkout is very likely to fail when no GitHub credentials are used due to the number of API requests we make vs. GitHub's rate limits for unauthenticated requests. Make things more obvious by: * Allowing the credentials to be specified as environment variables in addition to a JSON file (when both are set, the JSON file specified in the command-line has precedence). * Printing a warning in test_importer.py when no credentials are set and pointing to the documentation in //docs/testing. * Expanding the error message in test_exporter.py to point to the same location. Bug: 816390 Change-Id: I5508e024e8a13e6f597f027cd157d7abbe9b2fe1 Reviewed-on: https://chromium-review.googlesource.com/937462Reviewed-by:Philip Jägenstedt <foolip@chromium.org> Commit-Queue: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> Cr-Commit-Position: refs/heads/master@{#539164}
Showing
Please register or sign in to comment