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

Check for GitLab status #18

Closed
wants to merge 1 commit into from
Closed

Check for GitLab status #18

wants to merge 1 commit into from

Conversation

arihantbansal
Copy link

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 #5

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 #5
@TravisBuddy
Copy link

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': <unlocked _thread.lock object at 0x7f979b77d800>, '_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 <queue.Queue object at 0x7f979b79e8d0>: b'Name: autopep8\n'
[DEBUG][07:07:53] queued chunk of length 15 to <queue.Queue object at 0x7f979b79e8d0>: b'Version: 1.4.2\n'
[DEBUG][07:07:53] queued chunk of length 91 to <queue.Queue object at 0x7f979b79e8d0>: b'Summary: A tool that automatic'
[DEBUG][07:07:53] queued chunk of length 46 to <queue.Queue object at 0x7f979b79e8d0>: b'Home-page: https://github.com/'
[DEBUG][07:07:53] queued chunk of length 22 to <queue.Queue object at 0x7f979b79e8d0>: b'Author: Hideo Hattori\n'
[DEBUG][07:07:53] queued chunk of length 34 to <queue.Queue object at 0x7f979b79e8d0>: b'Author-email: hhatto.jp@gmail.'
[DEBUG][07:07:53] queued chunk of length 23 to <queue.Queue object at 0x7f979b79e8d0>: b'License: Expat License\n'
[DEBUG][07:07:53] queued chunk of length 74 to <queue.Queue object at 0x7f979b79e8d0>: b'Location: /home/travis/virtual'
[DEBUG][07:07:53] queued chunk of length 22 to <queue.Queue object at 0x7f979b79e8d0>: 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

Copy link
Collaborator

@jayvdb jayvdb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please look at how the other status checks are done, inside org_status/ , and make your one the same.

Come on to https://coala.zulipchat.com/#narrow/stream/106201-gci to get help.

Do NOT close your PR, under any circumstances. We'll help you use git properly to fix this one, otherwise you have not done the task correctly.

@jayvdb
Copy link
Collaborator

jayvdb commented Nov 11, 2018

Task completed by someone else

@jayvdb jayvdb closed this Nov 11, 2018
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 this pull request may close these issues.

3 participants