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

Intermittent Travis cron Failures #59

Closed
sommersoft opened this issue Jan 25, 2019 · 1 comment · Fixed by #69
Closed

Intermittent Travis cron Failures #59

sommersoft opened this issue Jan 25, 2019 · 1 comment · Fixed by #69

Comments

@sommersoft
Copy link
Collaborator

The cron jobs are having failures at a decent percentage. Luckily, the bundle updates are running smoothly, and the only issue seems to be in circuitpython_libraries. There are only two issues I see occurring:

  1. Hitting the Travis 10 Minute Idle:

    • There is no output at all for these failures, which leads me to believe its related to the call for the latest pylint version.
  2. Getting a KeyError exception:

Running CircuitPython library checks...
$ python -m adabot.circuitpython_libraries -o $LIB_CHECK_CP_FILE

Traceback (most recent call last):
  File "/opt/python/3.6.3/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/opt/python/3.6.3/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/travis/build/adafruit/adabot/adabot/circuitpython_libraries.py", line 1131, in <module>
    run_library_checks()
  File "/home/travis/build/adafruit/adabot/adabot/circuitpython_libraries.py", line 943, in run_library_checks
    errors = validate_repo(repo)
  File "/home/travis/build/adafruit/adabot/adabot/circuitpython_libraries.py", line 798, in validate_repo
    errors.extend(validator(repo))
  File "/home/travis/build/adafruit/adabot/adabot/circuitpython_libraries.py", line 297, in validate_repo_state
    full_repo = github.get("/repos/" + repo["full_name"])
  File "/home/travis/build/adafruit/adabot/adabot/github_requests.py", line 61, in get
    remaining = int(response.headers["X-RateLimit-Remaining"])
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/requests/structures.py", line 52, in __getitem__
    return self._store[key.lower()][1]
KeyError: 'x-ratelimit-remaining'
Latest pylint is: 2.2.2
Found 144 repos to check.
Found 129 submodules in the bundle.
Running GitHub checks as adafruit-adabot
Running Travis checks as adafruit-adabot
4900 requests remaining this hour
4800 requests remaining this hour
4700 requests remaining this hour

I'll try and replicate them, and figure out how to mitigate.

@sommersoft
Copy link
Collaborator Author

Reopening. Still hitting the Travis 10 minute idle limit for circuitpython_libraries. 🙁

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

Successfully merging a pull request may close this issue.

1 participant