ksdme / org-status

A tool to check Travis build status of all the repo's under an organisation.
3 stars 6 forks source link

Check for GitLab status #18

Closed arihantbansal closed 5 years ago

arihantbansal commented 6 years ago

This adds a class to check for GitLab's current status. Returns true or false depending on whether the website is up or not.

Closes https://github.com/ksdme/org-status/issues/5

TravisBuddy commented 6 years ago

Travis tests have failed

Hey @arihantbansal, Please read the following log in order to understand the failure reason. It'll be awesome if you fix what's wrong and commit the changes.

1st Build

View build log

coala --non-interactive -V ``` [DEBUG][07:07:52] Platform Linux -- Python 3.6.3, coalib 0.11.0 Executing section all... [DEBUG][07:07:52] Files that will be checked: /home/travis/build/ksdme/org-status/setup.py /home/travis/build/ksdme/org-status/status.py /home/travis/build/ksdme/org-status/org_status/__main__.py /home/travis/build/ksdme/org-status/org_status/__init__.py /home/travis/build/ksdme/org-status/org_status/org_status.py /home/travis/build/ksdme/org-status/org_status/status_providers/__init__.py /home/travis/build/ksdme/org-status/org_status/status_providers/gitlab_ci.py /home/travis/build/ksdme/org-status/org_status/status_providers/travis.py /home/travis/build/ksdme/org-status/org_status/org_hosts/github.py /home/travis/build/ksdme/org-status/org_status/org_hosts/__init__.py /home/travis/build/ksdme/org-status/org_status/org_hosts/gitlab.py [DEBUG][07:07:52] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them. Executing section all.whitespace... [DEBUG][07:07:52] Files that will be checked: /home/travis/build/ksdme/org-status/setup.py /home/travis/build/ksdme/org-status/status.py /home/travis/build/ksdme/org-status/org_status/__main__.py /home/travis/build/ksdme/org-status/org_status/__init__.py /home/travis/build/ksdme/org-status/org_status/org_status.py /home/travis/build/ksdme/org-status/org_status/status_providers/__init__.py /home/travis/build/ksdme/org-status/org_status/status_providers/gitlab_ci.py /home/travis/build/ksdme/org-status/org_status/status_providers/travis.py /home/travis/build/ksdme/org-status/org_status/org_hosts/github.py /home/travis/build/ksdme/org-status/org_status/org_hosts/__init__.py /home/travis/build/ksdme/org-status/org_status/org_hosts/gitlab.py [DEBUG][07:07:52] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them. [DEBUG][07:07:52] Running bear SpaceConsistencyBear... [DEBUG][07:07:52] Running bear SpaceConsistencyBear... [DEBUG][07:07:52] Running bear SpaceConsistencyBear... [DEBUG][07:07:52] Running bear SpaceConsistencyBear... [DEBUG][07:07:52] Running bear SpaceConsistencyBear... [DEBUG][07:07:52] Running bear SpaceConsistencyBear... [DEBUG][07:07:52] Running bear SpaceConsistencyBear... [DEBUG][07:07:52] Running bear SpaceConsistencyBear... [DEBUG][07:07:52] Running bear SpaceConsistencyBear... [DEBUG][07:07:52] Running bear SpaceConsistencyBear... [DEBUG][07:07:52] Running bear SpaceConsistencyBear... Executing section all.python... [DEBUG][07:07:52] Files that will be checked: /home/travis/build/ksdme/org-status/setup.py /home/travis/build/ksdme/org-status/status.py /home/travis/build/ksdme/org-status/org_status/__main__.py /home/travis/build/ksdme/org-status/org_status/__init__.py /home/travis/build/ksdme/org-status/org_status/org_status.py /home/travis/build/ksdme/org-status/org_status/status_providers/__init__.py /home/travis/build/ksdme/org-status/org_status/status_providers/gitlab_ci.py /home/travis/build/ksdme/org-status/org_status/status_providers/travis.py /home/travis/build/ksdme/org-status/org_status/org_hosts/github.py /home/travis/build/ksdme/org-status/org_status/org_hosts/__init__.py /home/travis/build/ksdme/org-status/org_status/org_hosts/gitlab.py [DEBUG][07:07:52] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them. Executing section all.python.default... [DEBUG][07:07:53] Files that will be checked: /home/travis/build/ksdme/org-status/setup.py /home/travis/build/ksdme/org-status/status.py /home/travis/build/ksdme/org-status/org_status/__main__.py /home/travis/build/ksdme/org-status/org_status/__init__.py /home/travis/build/ksdme/org-status/org_status/org_status.py /home/travis/build/ksdme/org-status/org_status/status_providers/__init__.py /home/travis/build/ksdme/org-status/org_status/status_providers/gitlab_ci.py /home/travis/build/ksdme/org-status/org_status/status_providers/travis.py /home/travis/build/ksdme/org-status/org_status/org_hosts/github.py /home/travis/build/ksdme/org-status/org_status/org_hosts/__init__.py /home/travis/build/ksdme/org-status/org_status/org_hosts/gitlab.py [DEBUG][07:07:53] starting parse of '/home/travis/virtualenv/python3.6.3/bin/python -m pip show autopep8' [DEBUG][07:07:53] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python'] redirects={}) [DEBUG][07:07:53] returning CommandNode(command=['-m'] redirects={}) [DEBUG][07:07:53] returning CommandNode(command=['pip'] redirects={}) [DEBUG][07:07:53] returning CommandNode(command=['show'] redirects={}) [DEBUG][07:07:53] returning CommandNode(command=['autopep8'] redirects={}) [DEBUG][07:07:53] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'] redirects={}) [DEBUG][07:07:53] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'] redirects={}) [DEBUG][07:07:53] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'] redirects={}) [DEBUG][07:07:53] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'] redirects={}) [DEBUG][07:07:53] started: CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'] redirects={}), None, False [DEBUG][07:07:53] Command('/home/travis/virtualenv/python3.6.3/bin/python -m pip show autopep8') created [DEBUG][07:07:53] About to call Popen: ['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'], {'stdout': -1, 'stderr': -1, 'stdin': None} [DEBUG][07:07:53] Popen: Command('/home/travis/virtualenv/python3.6.3/bin/python -m pip show autopep8'), {'stdout': -1, 'stderr': -1, 'stdin': None} -> {'_waitpid_lock': , '_input': None, '_communication_started': False, 'args': ['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'], 'stdin': None, 'stdout': <_io.BufferedReader name=17>, 'stderr': <_io.BufferedReader name=19>, 'pid': 4368, 'returncode': None, 'universal_newlines': False, 'encoding': None, 'errors': None, '_closed_child_pipe_fds': True, '_child_created': True} [DEBUG][07:07:53] Created thread Thread-4 as reader for Capture-1 [DEBUG][07:07:53] Capture-1: reader thread about to read line [DEBUG][07:07:53] Capture-1: reader thread kicked off, waiting start [DEBUG][07:07:53] Capture-1: reader thread now started [DEBUG][07:07:53] Created thread Thread-5 as reader for Capture-2 [DEBUG][07:07:53] Capture-2: reader thread about to read line [DEBUG][07:07:53] Capture-2: reader thread kicked off, waiting start [DEBUG][07:07:53] Capture-2: reader thread now started [DEBUG][07:07:53] about to wait for process [DEBUG][07:07:53] queued chunk of length 15 to : b'Name: autopep8\n' [DEBUG][07:07:53] queued chunk of length 15 to : b'Version: 1.4.2\n' [DEBUG][07:07:53] queued chunk of length 91 to : b'Summary: A tool that automatic' [DEBUG][07:07:53] queued chunk of length 46 to : b'Home-page: https://github.com/' [DEBUG][07:07:53] queued chunk of length 22 to : b'Author: Hideo Hattori\n' [DEBUG][07:07:53] queued chunk of length 34 to : b'Author-email: hhatto.jp@gmail.' [DEBUG][07:07:53] queued chunk of length 23 to : b'License: Expat License\n' [DEBUG][07:07:53] queued chunk of length 74 to : b'Location: /home/travis/virtual' [DEBUG][07:07:53] queued chunk of length 22 to : b'Requires: pycodestyle\n' [DEBUG][07:07:53] Capture-1: finished reading stream <_io.BufferedReader name=17> [DEBUG][07:07:53] Capture-2: finished reading stream <_io.BufferedReader name=19> [DEBUG][07:07:53] returning Command('/home/travis/virtualenv/python3.6.3/bin/python -m pip show autopep8') (Popen(returncode=0 stdin=None stdout=<_io.BufferedReader name=17> stderr=<_io.BufferedReader name=19>)) [DEBUG][07:07:53] pipeline closing [DEBUG][07:07:53] coala is run only on changed files, bears' log messages from previous runs may not appear. You may use the `--flush-cache` flag to see them. [DEBUG][07:07:53] LanguageDefinition has been deprecated! Use `coalib.bearlib.languages.Language` instead. [DEBUG][07:07:53] Running bear AnnotationBear... [DEBUG][07:07:53] LanguageDefinition has been deprecated! Use `coalib.bearlib.languages.Language` instead. [DEBUG][07:07:53] Running bear AnnotationBear... [DEBUG][07:07:53] Running bear QuotesBear... [DEBUG][07:07:53] Running bear PEP8Bear... [DEBUG][07:07:53] Running bear QuotesBear... [DEBUG][07:07:53] Running bear PEP8Bear... [DEBUG][07:07:53] Running bear PycodestyleBear... [DEBUG][07:07:53] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/ksdme/org-status/org_status/org_status.py' [DEBUG][07:07:53] Running bear PyFlakesBear... [DEBUG][07:07:53] Running 'pyflakes /home/travis/build/ksdme/org-status/org_status/org_status.py' [DEBUG][07:07:54] LanguageDefinition has been deprecated! Use `coalib.bearlib.languages.Language` instead. [DEBUG][07:07:54] Running bear AnnotationBear... [DEBUG][07:07:54] Running bear QuotesBear... [DEBUG][07:07:54] Running bear PEP8Bear... [DEBUG][07:07:54] Running bear PycodestyleBear... [DEBUG][07:07:54] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/ksdme/org-status/org_status/__init__.py' [DEBUG][07:07:54] Use of change_line method is deprecated. Instead use modify_line method, without the original_line argument [DEBUG][07:07:54] Running bear PycodestyleBear... [DEBUG][07:07:54] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/ksdme/org-status/setup.py' [DEBUG][07:07:54] Running bear PyFlakesBear... [DEBUG][07:07:54] Running 'pyflakes /home/travis/build/ksdme/org-status/org_status/__init__.py' [DEBUG][07:07:54] Running bear PyFlakesBear... [DEBUG][07:07:54] Running 'pyflakes /home/travis/build/ksdme/org-status/setup.py' [DEBUG][07:07:54] Running bear AnnotationBear... [DEBUG][07:07:54] LanguageDefinition has been deprecated! Use `coalib.bearlib.languages.Language` instead. [DEBUG][07:07:54] Running bear QuotesBear... [DEBUG][07:07:54] Running bear PEP8Bear... [DEBUG][07:07:54] Running bear PycodestyleBear... [DEBUG][07:07:54] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/ksdme/org-status/org_status/__main__.py' [DEBUG][07:07:54] LanguageDefinition has been deprecated! Use `coalib.bearlib.languages.Language` instead. [DEBUG][07:07:54] Running bear AnnotationBear... [DEBUG][07:07:54] Running bear QuotesBear... [DEBUG][07:07:54] Running bear PEP8Bear... | | [NORMAL] PEP8Bear: | | The code does not comply to PEP8. |----| | /home/travis/build/ksdme/org-status/setup.py | |++++| /home/travis/build/ksdme/org-status/setup.py | 21| 21| ) | 22| 22| DEPENDENCY_LINKS = [] | 23| 23| | 24| |-KEYWORDS=[ | | 24|+KEYWORDS = [ | 25| 25| 'github', | 26| 26| 'gitlab-ci', | 27| 27| 'travis-ci', [INFO][07:07:54] Applied 'ShowPatchAction' on 'setup.py' from 'PEP8Bear'. [WARNING][07:07:54] PycodestyleBear (E225): This result has no patch attached. [DEBUG][07:07:54] Running bear PyFlakesBear... [DEBUG][07:07:54] Running 'pyflakes /home/travis/build/ksdme/org-status/org_status/__main__.py' setup.py [DEBUG][07:07:54] Running bear PycodestyleBear... [DEBUG][07:07:54] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/ksdme/org-status/org_status/org_hosts/gitlab.py' [DEBUG][07:07:54] LanguageDefinition has been deprecated! Use `coalib.bearlib.languages.Language` instead. [DEBUG][07:07:54] Running bear AnnotationBear... [DEBUG][07:07:54] Running bear QuotesBear... [DEBUG][07:07:54] Running bear PEP8Bear... [DEBUG][07:07:54] Running bear PyFlakesBear... [DEBUG][07:07:54] Running 'pyflakes /home/travis/build/ksdme/org-status/org_status/org_hosts/gitlab.py' [DEBUG][07:07:54] Running bear PycodestyleBear... [DEBUG][07:07:54] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/ksdme/org-status/org_status/org_hosts/github.py' | 24| KEYWORDS=[ | | [NORMAL] PycodestyleBear (E225): | | E225 missing whitespace around operator [DEBUG][07:07:54] LanguageDefinition has been deprecated! Use `coalib.bearlib.languages.Language` instead. [DEBUG][07:07:54] Running bear AnnotationBear... [DEBUG][07:07:54] Running bear QuotesBear... [DEBUG][07:07:54] Running bear PEP8Bear... [DEBUG][07:07:54] Running bear PyFlakesBear... [DEBUG][07:07:54] Running 'pyflakes /home/travis/build/ksdme/org-status/org_status/org_hosts/github.py' [DEBUG][07:07:54] Running bear PycodestyleBear... [DEBUG][07:07:54] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/ksdme/org-status/org_status/org_hosts/__init__.py' [DEBUG][07:07:55] LanguageDefinition has been deprecated! Use `coalib.bearlib.languages.Language` instead. [DEBUG][07:07:55] Running bear AnnotationBear... [DEBUG][07:07:55] Running bear QuotesBear... [DEBUG][07:07:55] Running bear PEP8Bear... [DEBUG][07:07:55] Running bear PyFlakesBear... [DEBUG][07:07:55] Running 'pyflakes /home/travis/build/ksdme/org-status/org_status/org_hosts/__init__.py' [DEBUG][07:07:55] Running bear PycodestyleBear... [DEBUG][07:07:55] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/ksdme/org-status/org_status/status_providers/gitlab_ci.py' [DEBUG][07:07:55] Running bear AnnotationBear... [DEBUG][07:07:55] LanguageDefinition has been deprecated! Use `coalib.bearlib.languages.Language` instead. [DEBUG][07:07:55] Running bear PyFlakesBear... [DEBUG][07:07:55] Running 'pyflakes /home/travis/build/ksdme/org-status/org_status/status_providers/gitlab_ci.py' [DEBUG][07:07:55] Running bear QuotesBear... [DEBUG][07:07:55] Running bear PEP8Bear... [DEBUG][07:07:55] Running bear PycodestyleBear... [DEBUG][07:07:55] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/ksdme/org-status/status.py' [DEBUG][07:07:55] LanguageDefinition has been deprecated! Use `coalib.bearlib.languages.Language` instead. [DEBUG][07:07:55] Running bear AnnotationBear... [DEBUG][DEBUG][07:07:55] LanguageDefinition has been deprecated! Use `coalib.bearlib.languages.Language` instead. [DEBUG][07:07:55] Running bear AnnotationBear... [DEBUG][07:07:55] Running bear PyFlakesBear... | | [NORMAL] PEP8Bear: [DEBUG][07:07:55] Running 'pyflakes /home/travis/build/ksdme/org-status/org_status/status_providers/travis.py' | | The code does not comply to PEP8. |----| | /home/travis/build/ksdme/org-status/status.py | |++++| /home/travis/build/ksdme/org-status/status.py | 1| 1| import urllib2 | | 2|+ | 2| 3| | 3| 4| class Status: | 4| 5| [INFO][07:07:55] Applied 'ShowPatchAction' on 'status.py' from 'PEP8Bear'. [WARNING][07:07:55] PycodestyleBear (E302): This result has no patch attached. status.py [DEBUG][07:07:55] Running bear QuotesBear... [DEBUG][07:07:55] Running bear PEP8Bear... | 3| class·Status: | | [NORMAL] PycodestyleBear (E302): | | E302 expected 2 blank lines, found 1 [DEBUG][07:07:55] Running bear PycodestyleBear... [DEBUG][07:07:55] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/ksdme/org-status/org_status/status_providers/__init__.py' [DEBUG][07:07:55] Running bear PyFlakesBear... [DEBUG][07:07:55] Running 'pyflakes /home/travis/build/ksdme/org-status/org_status/status_providers/__init__.py' Executing section all.linelength... [DEBUG][07:07:56] Files that will be checked: /home/travis/build/ksdme/org-status/setup.py /home/travis/build/ksdme/org-status/status.py /home/travis/build/ksdme/org-status/org_status/__main__.py /home/travis/build/ksdme/org-status/org_status/__init__.py /home/travis/build/ksdme/org-status/org_status/org_status.py /home/travis/build/ksdme/org-status/org_status/status_providers/__init__.py /home/travis/build/ksdme/org-status/org_status/status_providers/gitlab_ci.py /home/travis/build/ksdme/org-status/org_status/status_providers/travis.py /home/travis/build/ksdme/org-status/org_status/org_hosts/github.py /home/travis/build/ksdme/org-status/org_status/org_hosts/__init__.py /home/travis/build/ksdme/org-status/org_status/org_hosts/gitlab.py ```
TravisBuddy Request Identifier: b456dc20-dcdb-11e8-a919-2b33139089d4
jayvdb commented 5 years ago

Task completed by someone else