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

filters.py: Filter required users #517

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Vamshi99
Copy link
Member

If RESP_ONLY_REQ_USERS configuration is true,
then stop responding to users other than those
in the REQUIRED_USERS list in config.

Closes #515

Reviewers Checklist

  • Appropriate logging is done.
  • Appropriate error responses.
  • Handle every possible exception.
  • Make sure there is a docstring in the command functions. Hint: Lookout for
    botcmd and re_botcmd decorators.
  • See that 100% coverage is there.
  • See to it that mocking is not done where it is not necessary.

utils/filters.py Outdated
def filter_ignored_users(self, msg, cmd, args, dry_run):
if msg.frm.nick in self.bot_config.IGNORE_USERNAMES:
def filter_users(self, msg, cmd, args, dry_run):
name = msg.frm.fullname if BACKEND == 'Zulip' else msg.frm.nick
Copy link
Member

Choose a reason for hiding this comment

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

this PR isnt about Zulip. Please remove. This isnt how we will do Zulip anyway; the patches for Zulip are public.

@Vamshi99
Copy link
Member Author

@jayvdb Updated

@jayvdb
Copy link
Member

jayvdb commented May 2, 2018

@gitmate-bot rebase

@gitmate-bot
Copy link

Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently ⚠️

@gitmate-bot
Copy link

Automated rebase with GitMate.io was successful! 🎉

@EverWinter23
Copy link
Contributor

Up for grabs, or is anyone working on it @jayvdb.

@jayvdb
Copy link
Member

jayvdb commented Aug 13, 2018

@gitmate-bot rebase

@gitmate-bot
Copy link

Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently ⚠️

@jayvdb
Copy link
Member

jayvdb commented Aug 13, 2018

@gitmate-bot rebase

@gitmate-bot
Copy link

Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently ⚠️

@gitmate-bot
Copy link

Automated rebase with GitMate.io was successful! 🎉

utils/filters.py Outdated
if msg.frm.nick in self.bot_config.IGNORE_USERNAMES:
return None, None, None
if msg.frm.nick not in self.bot_config.REQUIRED_USERS \
Copy link
Member

Choose a reason for hiding this comment

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

remove \

utils/filters.py Outdated
if msg.frm.nick in self.bot_config.IGNORE_USERNAMES:
return None, None, None
if msg.frm.nick not in self.bot_config.REQUIRED_USERS \
and self.bot_config.RESP_ONLY_REQ_USER:
Copy link
Member

Choose a reason for hiding this comment

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

this must be indented four more spaces to avoid confusion with the statements inside the if block

@TravisBuddy
Copy link

Travis tests have failed

Hey @Vamshi99,
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

coala --non-interactive -V
[WARNING][04:03:13] bears setting has already been defined in section all.python. The previous setting will be overridden.
[WARNING][04:03:13] bears setting has already been defined in section all.python. The previous setting will be overridden.
[DEBUG][04:03:13] Platform Linux -- Python 3.6.3, coalib 0.11.0
Executing section all...
[DEBUG][04:03:13] Files that will be checked:
/home/travis/build/coala/corobo/config.py
/home/travis/build/coala/corobo/plugins/labhub.py
/home/travis/build/coala/corobo/plugins/ship_it.py
/home/travis/build/coala/corobo/plugins/the_rules.py
/home/travis/build/coala/corobo/plugins/ghetto.py
/home/travis/build/coala/corobo/plugins/constants.py
/home/travis/build/coala/corobo/plugins/lmgtfy.py
/home/travis/build/coala/corobo/plugins/searchdocs.py
/home/travis/build/coala/corobo/plugins/git_stats.py
/home/travis/build/coala/corobo/plugins/__init__.py
/home/travis/build/coala/corobo/plugins/spam.py
/home/travis/build/coala/corobo/plugins/coala_lowercase_c.py
/home/travis/build/coala/corobo/plugins/answer.py
/home/travis/build/coala/corobo/plugins/pitchfork.py
/home/travis/build/coala/corobo/plugins/ban.py
/home/travis/build/coala/corobo/plugins/explain.py
/home/travis/build/coala/corobo/plugins/nevermind.py
/home/travis/build/coala/corobo/plugins/deprecate_bot_prefixes.py
/home/travis/build/coala/corobo/plugins/wolfram_alpha.py
/home/travis/build/coala/corobo/plugins/coatils.py
/home/travis/build/coala/corobo/answers/__init__.py
/home/travis/build/coala/corobo/answers/service.py
/home/travis/build/coala/corobo/answers/final.py
/home/travis/build/coala/corobo/answers/extraction.py
/home/travis/build/coala/corobo/answers/utils.py
/home/travis/build/coala/corobo/tests/nevermind_test.py
/home/travis/build/coala/corobo/tests/deprecate_bot_prefixes_test.py
/home/travis/build/coala/corobo/tests/answer_test.py
/home/travis/build/coala/corobo/tests/labhub_test_case.py
/home/travis/build/coala/corobo/tests/wolfram_alpha_test.py
/home/travis/build/coala/corobo/tests/coala_lowercase_c_test.py
/home/travis/build/coala/corobo/tests/searchdocs_test.py
/home/travis/build/coala/corobo/tests/git_stats_test.py
/home/travis/build/coala/corobo/tests/lmgtfy_test.py
/home/travis/build/coala/corobo/tests/the_rules_test.py
/home/travis/build/coala/corobo/tests/__init__.py
/home/travis/build/coala/corobo/tests/coatils_test.py
/home/travis/build/coala/corobo/tests/explain_test.py
/home/travis/build/coala/corobo/tests/ship_it_test.py
/home/travis/build/coala/corobo/tests/spam_test.py
/home/travis/build/coala/corobo/tests/ban_test.py
/home/travis/build/coala/corobo/tests/ghetto_test.py
/home/travis/build/coala/corobo/tests/labhub_test.py
/home/travis/build/coala/corobo/tests/corobo_test_case.py
/home/travis/build/coala/corobo/tests/pitchfork_test.py
/home/travis/build/coala/corobo/tests/isolated_testcase.py
[DEBUG][04:03:13] 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][04:03:14] Files that will be checked:
/home/travis/build/coala/corobo/config.py
/home/travis/build/coala/corobo/plugins/labhub.py
/home/travis/build/coala/corobo/plugins/ship_it.py
/home/travis/build/coala/corobo/plugins/the_rules.py
/home/travis/build/coala/corobo/plugins/ghetto.py
/home/travis/build/coala/corobo/plugins/constants.py
/home/travis/build/coala/corobo/plugins/lmgtfy.py
/home/travis/build/coala/corobo/plugins/searchdocs.py
/home/travis/build/coala/corobo/plugins/git_stats.py
/home/travis/build/coala/corobo/plugins/__init__.py
/home/travis/build/coala/corobo/plugins/spam.py
/home/travis/build/coala/corobo/plugins/coala_lowercase_c.py
/home/travis/build/coala/corobo/plugins/answer.py
/home/travis/build/coala/corobo/plugins/pitchfork.py
/home/travis/build/coala/corobo/plugins/ban.py
/home/travis/build/coala/corobo/plugins/explain.py
/home/travis/build/coala/corobo/plugins/nevermind.py
/home/travis/build/coala/corobo/plugins/deprecate_bot_prefixes.py
/home/travis/build/coala/corobo/plugins/wolfram_alpha.py
/home/travis/build/coala/corobo/plugins/coatils.py
/home/travis/build/coala/corobo/answers/__init__.py
/home/travis/build/coala/corobo/answers/service.py
/home/travis/build/coala/corobo/answers/final.py
/home/travis/build/coala/corobo/answers/extraction.py
/home/travis/build/coala/corobo/answers/utils.py
/home/travis/build/coala/corobo/tests/nevermind_test.py
/home/travis/build/coala/corobo/tests/deprecate_bot_prefixes_test.py
/home/travis/build/coala/corobo/tests/answer_test.py
/home/travis/build/coala/corobo/tests/labhub_test_case.py
/home/travis/build/coala/corobo/tests/wolfram_alpha_test.py
/home/travis/build/coala/corobo/tests/coala_lowercase_c_test.py
/home/travis/build/coala/corobo/tests/searchdocs_test.py
/home/travis/build/coala/corobo/tests/git_stats_test.py
/home/travis/build/coala/corobo/tests/lmgtfy_test.py
/home/travis/build/coala/corobo/tests/the_rules_test.py
/home/travis/build/coala/corobo/tests/__init__.py
/home/travis/build/coala/corobo/tests/coatils_test.py
/home/travis/build/coala/corobo/tests/explain_test.py
/home/travis/build/coala/corobo/tests/ship_it_test.py
/home/travis/build/coala/corobo/tests/spam_test.py
/home/travis/build/coala/corobo/tests/ban_test.py
/home/travis/build/coala/corobo/tests/ghetto_test.py
/home/travis/build/coala/corobo/tests/labhub_test.py
/home/travis/build/coala/corobo/tests/corobo_test_case.py
/home/travis/build/coala/corobo/tests/pitchfork_test.py
/home/travis/build/coala/corobo/tests/isolated_testcase.py
[DEBUG][04:03:14] 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][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
[DEBUG][04:03:14] Running bear SpaceConsistencyBear...
Executing section all.python...
[DEBUG][04:03:14] Files that will be checked:
/home/travis/build/coala/corobo/config.py
/home/travis/build/coala/corobo/plugins/labhub.py
/home/travis/build/coala/corobo/plugins/ship_it.py
/home/travis/build/coala/corobo/plugins/the_rules.py
/home/travis/build/coala/corobo/plugins/ghetto.py
/home/travis/build/coala/corobo/plugins/constants.py
/home/travis/build/coala/corobo/plugins/lmgtfy.py
/home/travis/build/coala/corobo/plugins/searchdocs.py
/home/travis/build/coala/corobo/plugins/git_stats.py
/home/travis/build/coala/corobo/plugins/__init__.py
/home/travis/build/coala/corobo/plugins/spam.py
/home/travis/build/coala/corobo/plugins/coala_lowercase_c.py
/home/travis/build/coala/corobo/plugins/answer.py
/home/travis/build/coala/corobo/plugins/pitchfork.py
/home/travis/build/coala/corobo/plugins/ban.py
/home/travis/build/coala/corobo/plugins/explain.py
/home/travis/build/coala/corobo/plugins/nevermind.py
/home/travis/build/coala/corobo/plugins/deprecate_bot_prefixes.py
/home/travis/build/coala/corobo/plugins/wolfram_alpha.py
/home/travis/build/coala/corobo/plugins/coatils.py
/home/travis/build/coala/corobo/answers/__init__.py
/home/travis/build/coala/corobo/answers/service.py
/home/travis/build/coala/corobo/answers/final.py
/home/travis/build/coala/corobo/answers/extraction.py
/home/travis/build/coala/corobo/answers/utils.py
/home/travis/build/coala/corobo/tests/nevermind_test.py
/home/travis/build/coala/corobo/tests/deprecate_bot_prefixes_test.py
/home/travis/build/coala/corobo/tests/answer_test.py
/home/travis/build/coala/corobo/tests/labhub_test_case.py
/home/travis/build/coala/corobo/tests/wolfram_alpha_test.py
/home/travis/build/coala/corobo/tests/coala_lowercase_c_test.py
/home/travis/build/coala/corobo/tests/searchdocs_test.py
/home/travis/build/coala/corobo/tests/git_stats_test.py
/home/travis/build/coala/corobo/tests/lmgtfy_test.py
/home/travis/build/coala/corobo/tests/the_rules_test.py
/home/travis/build/coala/corobo/tests/__init__.py
/home/travis/build/coala/corobo/tests/coatils_test.py
/home/travis/build/coala/corobo/tests/explain_test.py
/home/travis/build/coala/corobo/tests/ship_it_test.py
/home/travis/build/coala/corobo/tests/spam_test.py
/home/travis/build/coala/corobo/tests/ban_test.py
/home/travis/build/coala/corobo/tests/ghetto_test.py
/home/travis/build/coala/corobo/tests/labhub_test.py
/home/travis/build/coala/corobo/tests/corobo_test_case.py
/home/travis/build/coala/corobo/tests/pitchfork_test.py
/home/travis/build/coala/corobo/tests/isolated_testcase.py
[DEBUG][04:03:14] starting parse of '/home/travis/virtualenv/python3.6.3/bin/python -m pip show autoflake'
[DEBUG][04:03:14] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python'] redirects={})
[DEBUG][04:03:14] returning CommandNode(command=['-m'] redirects={})
[DEBUG][04:03:14] returning CommandNode(command=['pip'] redirects={})
[DEBUG][04:03:14] returning CommandNode(command=['show'] redirects={})
[DEBUG][04:03:14] returning CommandNode(command=['autoflake'] redirects={})
[DEBUG][04:03:14] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autoflake'] redirects={})
[DEBUG][04:03:14] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autoflake'] redirects={})
[DEBUG][04:03:14] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autoflake'] redirects={})
[DEBUG][04:03:14] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autoflake'] redirects={})
[DEBUG][04:03:14] started: CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autoflake'] redirects={}), None, False
[DEBUG][04:03:14] Command('/home/travis/virtualenv/python3.6.3/bin/python -m pip show autoflake') created
[DEBUG][04:03:14] About to call Popen: ['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autoflake'], {'stdout': -1, 'stderr': -1, 'stdin': None}
[DEBUG][04:03:14] Popen: Command('/home/travis/virtualenv/python3.6.3/bin/python -m pip show autoflake'), {'stdout': -1, 'stderr': -1, 'stdin': None} -> {'_waitpid_lock': <unlocked _thread.lock object at 0x7fe9f9799328>, '_input': None, '_communication_started': False, 'args': ['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autoflake'], 'stdin': None, 'stdout': <_io.BufferedReader name=18>, 'stderr': <_io.BufferedReader name=21>, 'pid': 4907, 'returncode': None, 'universal_newlines': False, 'encoding': None, 'errors': None, '_closed_child_pipe_fds': True, '_child_created': True}
[DEBUG][04:03:14] Created thread Thread-3 as reader for Capture-1
[DEBUG][04:03:14] Capture-1: reader thread about to read line
[DEBUG][04:03:14] Capture-1: reader thread kicked off, waiting start
[DEBUG][04:03:14] Capture-1: reader thread now started
[DEBUG][04:03:14] Created thread Thread-4 as reader for Capture-2
[DEBUG][04:03:14] Capture-2: reader thread about to read line
[DEBUG][04:03:14] Capture-2: reader thread kicked off, waiting start
[DEBUG][04:03:14] Capture-2: reader thread now started
[DEBUG][04:03:14] about to wait for process
[DEBUG][04:03:15] queued chunk of length 16 to <queue.Queue object at 0x7fe9f97a2710>: b'Name: autoflake\n'
[DEBUG][04:03:15] queued chunk of length 15 to <queue.Queue object at 0x7fe9f97a2710>: b'Version: 0.6.6\n'
[DEBUG][04:03:15] queued chunk of length 54 to <queue.Queue object at 0x7fe9f97a2710>: b'Summary: Removes unused import'
[DEBUG][04:03:15] queued chunk of length 46 to <queue.Queue object at 0x7fe9f97a2710>: b'Home-page: https://github.com/'
[DEBUG][04:03:15] queued chunk of length 21 to <queue.Queue object at 0x7fe9f97a2710>: b'Author: Steven Myint\n'
[DEBUG][04:03:15] queued chunk of length 22 to <queue.Queue object at 0x7fe9f97a2710>: b'Author-email: UNKNOWN\n'
[DEBUG][04:03:15] queued chunk of length 23 to <queue.Queue object at 0x7fe9f97a2710>: b'License: Expat License\n'
[DEBUG][04:03:15] queued chunk of length 74 to <queue.Queue object at 0x7fe9f97a2710>: b'Location: /home/travis/virtual'
[DEBUG][04:03:15] queued chunk of length 19 to <queue.Queue object at 0x7fe9f97a2710>: b'Requires: pyflakes\n'
[DEBUG][04:03:15] Capture-1: finished reading stream <_io.BufferedReader name=18>
[DEBUG][04:03:15] Capture-2: finished reading stream <_io.BufferedReader name=21>
[DEBUG][04:03:15] returning Command('/home/travis/virtualenv/python3.6.3/bin/python -m pip show autoflake') (Popen(returncode=0 stdin=None stdout=<_io.BufferedReader name=18> stderr=<_io.BufferedReader name=21>))
[DEBUG][04:03:15] pipeline closing
[DEBUG][04:03:15] 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][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
[DEBUG][04:03:15] Running bear PyUnusedCodeBear...
Executing section all.autopep8...
[DEBUG][04:03:15] Files that will be checked:
/home/travis/build/coala/corobo/config.py
/home/travis/build/coala/corobo/plugins/labhub.py
/home/travis/build/coala/corobo/plugins/ship_it.py
/home/travis/build/coala/corobo/plugins/the_rules.py
/home/travis/build/coala/corobo/plugins/ghetto.py
/home/travis/build/coala/corobo/plugins/constants.py
/home/travis/build/coala/corobo/plugins/lmgtfy.py
/home/travis/build/coala/corobo/plugins/searchdocs.py
/home/travis/build/coala/corobo/plugins/git_stats.py
/home/travis/build/coala/corobo/plugins/__init__.py
/home/travis/build/coala/corobo/plugins/spam.py
/home/travis/build/coala/corobo/plugins/coala_lowercase_c.py
/home/travis/build/coala/corobo/plugins/answer.py
/home/travis/build/coala/corobo/plugins/pitchfork.py
/home/travis/build/coala/corobo/plugins/ban.py
/home/travis/build/coala/corobo/plugins/explain.py
/home/travis/build/coala/corobo/plugins/nevermind.py
/home/travis/build/coala/corobo/plugins/deprecate_bot_prefixes.py
/home/travis/build/coala/corobo/plugins/wolfram_alpha.py
/home/travis/build/coala/corobo/plugins/coatils.py
/home/travis/build/coala/corobo/answers/__init__.py
/home/travis/build/coala/corobo/answers/service.py
/home/travis/build/coala/corobo/answers/final.py
/home/travis/build/coala/corobo/answers/extraction.py
/home/travis/build/coala/corobo/answers/utils.py
/home/travis/build/coala/corobo/tests/nevermind_test.py
/home/travis/build/coala/corobo/tests/deprecate_bot_prefixes_test.py
/home/travis/build/coala/corobo/tests/answer_test.py
/home/travis/build/coala/corobo/tests/labhub_test_case.py
/home/travis/build/coala/corobo/tests/wolfram_alpha_test.py
/home/travis/build/coala/corobo/tests/coala_lowercase_c_test.py
/home/travis/build/coala/corobo/tests/searchdocs_test.py
/home/travis/build/coala/corobo/tests/git_stats_test.py
/home/travis/build/coala/corobo/tests/lmgtfy_test.py
/home/travis/build/coala/corobo/tests/the_rules_test.py
/home/travis/build/coala/corobo/tests/__init__.py
/home/travis/build/coala/corobo/tests/coatils_test.py
/home/travis/build/coala/corobo/tests/explain_test.py
/home/travis/build/coala/corobo/tests/ship_it_test.py
/home/travis/build/coala/corobo/tests/spam_test.py
/home/travis/build/coala/corobo/tests/ban_test.py
/home/travis/build/coala/corobo/tests/ghetto_test.py
/home/travis/build/coala/corobo/tests/labhub_test.py
/home/travis/build/coala/corobo/tests/corobo_test_case.py
/home/travis/build/coala/corobo/tests/pitchfork_test.py
/home/travis/build/coala/corobo/tests/isolated_testcase.py
[DEBUG][04:03:15] starting parse of '/home/travis/virtualenv/python3.6.3/bin/python -m pip show autopep8'
[DEBUG][04:03:15] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python'] redirects={})
[DEBUG][04:03:15] returning CommandNode(command=['-m'] redirects={})
[DEBUG][04:03:15] returning CommandNode(command=['pip'] redirects={})
[DEBUG][04:03:15] returning CommandNode(command=['show'] redirects={})
[DEBUG][04:03:15] returning CommandNode(command=['autopep8'] redirects={})
[DEBUG][04:03:15] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'] redirects={})
[DEBUG][04:03:15] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'] redirects={})
[DEBUG][04:03:15] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'] redirects={})
[DEBUG][04:03:15] returning CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'] redirects={})
[DEBUG][04:03:15] started: CommandNode(command=['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'] redirects={}), None, False
[DEBUG][04:03:15] Command('/home/travis/virtualenv/python3.6.3/bin/python -m pip show autopep8') created
[DEBUG][04:03:15] About to call Popen: ['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'], {'stdout': -1, 'stderr': -1, 'stdin': None}
[DEBUG][04:03:15] 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 0x7fe9f97996e8>, '_input': None, '_communication_started': False, 'args': ['/home/travis/virtualenv/python3.6.3/bin/python', '-m', 'pip', 'show', 'autopep8'], 'stdin': None, 'stdout': <_io.BufferedReader name=20>, 'stderr': <_io.BufferedReader name=23>, 'pid': 4951, 'returncode': None, 'universal_newlines': False, 'encoding': None, 'errors': None, '_closed_child_pipe_fds': True, '_child_created': True}
[DEBUG][04:03:15] Created thread Thread-6 as reader for Capture-3
[DEBUG][04:03:15] Capture-3: reader thread about to read line
[DEBUG][04:03:15] Capture-3: reader thread kicked off, waiting start
[DEBUG][04:03:15] Capture-3: reader thread now started
[DEBUG][04:03:15] Created thread Thread-7 as reader for Capture-4
[DEBUG][04:03:15] Capture-4: reader thread about to read line
[DEBUG][04:03:15] Capture-4: reader thread kicked off, waiting start
[DEBUG][04:03:15] Capture-4: reader thread now started
[DEBUG][04:03:15] about to wait for process
[DEBUG][04:03:16] queued chunk of length 15 to <queue.Queue object at 0x7fe9f97aa898>: b'Name: autopep8\n'
[DEBUG][04:03:16] queued chunk of length 15 to <queue.Queue object at 0x7fe9f97aa898>: b'Version: 1.3.5\n'
[DEBUG][04:03:16] queued chunk of length 91 to <queue.Queue object at 0x7fe9f97aa898>: b'Summary: A tool that automatic'
[DEBUG][04:03:16] queued chunk of length 46 to <queue.Queue object at 0x7fe9f97aa898>: b'Home-page: https://github.com/'
[DEBUG][04:03:16] queued chunk of length 22 to <queue.Queue object at 0x7fe9f97aa898>: b'Author: Hideo Hattori\n'
[DEBUG][04:03:16] queued chunk of length 34 to <queue.Queue object at 0x7fe9f97aa898>: b'Author-email: hhatto.jp@gmail.'
[DEBUG][04:03:16] queued chunk of length 23 to <queue.Queue object at 0x7fe9f97aa898>: b'License: Expat License\n'
[DEBUG][04:03:16] queued chunk of length 74 to <queue.Queue object at 0x7fe9f97aa898>: b'Location: /home/travis/virtual'
[DEBUG][04:03:16] queued chunk of length 22 to <queue.Queue object at 0x7fe9f97aa898>: b'Requires: pycodestyle\n'
[DEBUG][04:03:16] Capture-3: finished reading stream <_io.BufferedReader name=20>
[DEBUG][04:03:16] Capture-4: finished reading stream <_io.BufferedReader name=23>
[DEBUG][04:03:16] returning Command('/home/travis/virtualenv/python3.6.3/bin/python -m pip show autopep8') (Popen(returncode=0 stdin=None stdout=<_io.BufferedReader name=20> stderr=<_io.BufferedReader name=23>))
[DEBUG][04:03:16] pipeline closing
[DEBUG][04:03:16] 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][04:03:16] Running bear PEP8Bear...
[DEBUG][04:03:16] Running bear PEP8Bear...
[DEBUG][04:03:16] Running bear PycodestyleBear...
[DEBUG][04:03:16] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/deprecate_bot_prefixes_test.py'
[DEBUG][04:03:16] Running bear PycodestyleBear...
[DEBUG][04:03:16] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/git_stats.py'
[DEBUG][04:03:16] Running bear PEP8Bear...
[DEBUG][04:03:16] Running bear PycodestyleBear...
[DEBUG][04:03:16] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/searchdocs_test.py'
[DEBUG][04:03:16] Running bear PEP8Bear...
[DEBUG][04:03:16] Running bear PycodestyleBear...
[DEBUG][04:03:16] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/ship_it.py'
[DEBUG][04:03:16] Running bear PEP8Bear...
[DEBUG][04:03:16] Running bear PycodestyleBear...
[DEBUG][04:03:16] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/pitchfork.py'
[DEBUG][04:03:16] Running bear PEP8Bear...
[DEBUG][04:03:16] Running bear PycodestyleBear...
[DEBUG][04:03:16] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/answers/__init__.py'
[DEBUG][04:03:16] Running bear PEP8Bear...
[DEBUG][04:03:16] Running bear PEP8Bear...
[DEBUG][04:03:16] Running bear PycodestyleBear...
[DEBUG][04:03:16] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/coala_lowercase_c.py'
[DEBUG][04:03:16] Running bear PycodestyleBear...
[DEBUG][04:03:16] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/lmgtfy.py'
[DEBUG][04:03:16] Running bear PEP8Bear...
[DEBUG][04:03:16] Running bear PEP8Bear...
[DEBUG][04:03:16] Running bear PycodestyleBear...
[DEBUG][04:03:16] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/ship_it_test.py'
[DEBUG][04:03:16] Running bear PycodestyleBear...
[DEBUG][04:03:16] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/answer.py'
[DEBUG][04:03:16] Running bear PEP8Bear...
[DEBUG][04:03:16] Running bear PycodestyleBear...
[DEBUG][04:03:16] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/ghetto_test.py'
[DEBUG][04:03:17] Running bear PEP8Bear...
[DEBUG][04:03:17] Running bear PycodestyleBear...
[DEBUG][04:03:17] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/wolfram_alpha.py'
[DEBUG][04:03:17] Running bear PEP8Bear...
[DEBUG][04:03:17] Running bear PycodestyleBear...
[DEBUG][04:03:17] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/answers/extraction.py'
[DEBUG][04:03:17] Running bear PEP8Bear...
[DEBUG][04:03:17] Running bear PycodestyleBear...
[DEBUG][04:03:17] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/coala_lowercase_c_test.py'
[DEBUG][04:03:17] Running bear PEP8Bear...
[DEBUG][04:03:17] Running bear PEP8Bear...
[DEBUG][04:03:17] Running bear PycodestyleBear...
[DEBUG][04:03:17] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/__init__.py'
[DEBUG][04:03:17] Running bear PycodestyleBear...
[DEBUG][04:03:17] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/git_stats_test.py'
[DEBUG][04:03:17] Running bear PEP8Bear...
[DEBUG][04:03:17] Running bear PycodestyleBear...
[DEBUG][04:03:17] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/explain_test.py'
[DEBUG][04:03:17] Running bear PEP8Bear...
[DEBUG][04:03:17] Running bear PycodestyleBear...
[DEBUG][04:03:17] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/__init__.py'
[DEBUG][04:03:17] Running bear PEP8Bear...
[DEBUG][04:03:17] Running bear PycodestyleBear...
[DEBUG][04:03:17] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/config.py'
[DEBUG][04:03:17] Running bear PEP8Bear...
[DEBUG][04:03:17] Running bear PycodestyleBear...
[DEBUG][04:03:17] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/answer_test.py'
[DEBUG][04:03:17] Running bear PEP8Bear...
[DEBUG][04:03:17] Running bear PEP8Bear...
[DEBUG][04:03:17] Running bear PycodestyleBear...
[DEBUG][04:03:17] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/spam_test.py'
[DEBUG][04:03:17] Running bear PycodestyleBear...
[DEBUG][04:03:17] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/spam.py'
[DEBUG][04:03:18] Running bear PEP8Bear...
[DEBUG][04:03:18] Running bear PEP8Bear...
[DEBUG][04:03:18] Running bear PycodestyleBear...
[DEBUG][04:03:18] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/nevermind_test.py'
[DEBUG][04:03:18] Running bear PycodestyleBear...
[DEBUG][04:03:18] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/answers/final.py'
[DEBUG][04:03:18] Running bear PEP8Bear...
[DEBUG][04:03:18] Running bear PycodestyleBear...
[DEBUG][04:03:18] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/corobo_test_case.py'
[DEBUG][04:03:18] Running bear PEP8Bear...
[DEBUG][04:03:18] Running bear PycodestyleBear...
[DEBUG][04:03:18] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/ghetto.py'
[DEBUG][04:03:18] Running bear PEP8Bear...
[DEBUG][04:03:18] Running bear PycodestyleBear...
[DEBUG][04:03:18] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/answers/service.py'
[DEBUG][04:03:18] Running bear PEP8Bear...
[DEBUG][04:03:18] Running bear PycodestyleBear...
[DEBUG][04:03:18] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/explain.py'
[DEBUG][04:03:18] Running bear PEP8Bear...
[DEBUG][04:03:18] Running bear PEP8Bear...
[DEBUG][04:03:18] Running bear PycodestyleBear...
[DEBUG][04:03:18] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/nevermind.py'
[DEBUG][04:03:18] Running bear PycodestyleBear...
[DEBUG][04:03:18] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/coatils.py'
[DEBUG][04:03:18] Running bear PEP8Bear...
[DEBUG][04:03:18] Running bear PycodestyleBear...
[DEBUG][04:03:18] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/the_rules_test.py'
[DEBUG][04:03:18] Running bear PEP8Bear...
[DEBUG][04:03:19] Running bear PEP8Bear...
[DEBUG][04:03:19] Running bear PycodestyleBear...
[DEBUG][04:03:19] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/searchdocs.py'
[DEBUG][04:03:19] Running bear PycodestyleBear...
[DEBUG][04:03:19] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/deprecate_bot_prefixes.py'
[DEBUG][04:03:19] Running bear PEP8Bear...
[DEBUG][04:03:19] Running bear PEP8Bear...
[DEBUG][04:03:19] Running bear PycodestyleBear...
[DEBUG][04:03:19] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/the_rules.py'
[DEBUG][04:03:19] Running bear PycodestyleBear...
[DEBUG][04:03:19] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/coatils_test.py'
[DEBUG][04:03:19] Running bear PEP8Bear...
[DEBUG][04:03:19] Running bear PEP8Bear...
[DEBUG][04:03:19] Running bear PycodestyleBear...
[DEBUG][04:03:19] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/wolfram_alpha_test.py'
[DEBUG][04:03:19] Running bear PEP8Bear...
[DEBUG][04:03:19] Running bear PycodestyleBear...
[DEBUG][04:03:19] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/answers/utils.py'
[DEBUG][04:03:19] Running bear PycodestyleBear...
[DEBUG][04:03:19] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/labhub.py'
[DEBUG][04:03:19] Running bear PEP8Bear...
[DEBUG][04:03:19] Running bear PycodestyleBear...
[DEBUG][04:03:19] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/constants.py'
[DEBUG][04:03:19] Running bear PEP8Bear...
[DEBUG][04:03:19] Running bear PycodestyleBear...
[DEBUG][04:03:19] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/isolated_testcase.py'
[DEBUG][04:03:19] Running bear PEP8Bear...
[DEBUG][04:03:20] Running bear PycodestyleBear...
[DEBUG][04:03:20] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/labhub_test_case.py'
[DEBUG][04:03:20] Running bear PEP8Bear...
[DEBUG][04:03:20] Running bear PycodestyleBear...
[DEBUG][04:03:20] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/plugins/ban.py'
[DEBUG][04:03:20] Running bear PEP8Bear...
[DEBUG][04:03:20] Running bear PycodestyleBear...
[DEBUG][04:03:20] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/lmgtfy_test.py'
[DEBUG][04:03:20] Running bear PEP8Bear...
[DEBUG][04:03:20] Running bear PEP8Bear...
[DEBUG][04:03:20] Running bear PycodestyleBear...
[DEBUG][04:03:20] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/pitchfork_test.py'
[DEBUG][04:03:20] Running bear PEP8Bear...
[DEBUG][04:03:20] Running bear PycodestyleBear...
[DEBUG][04:03:20] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/ban_test.py'
[DEBUG][04:03:20] Running bear PycodestyleBear...
[DEBUG][04:03:20] Running 'pycodestyle --format=%(row)d %(col)d %(code)s %(text)s --max-line-length=80 /home/travis/build/coala/corobo/tests/labhub_test.py'
Executing section all.linelength...
[DEBUG][04:03:21] Files that will be checked:
/home/travis/build/coala/corobo/config.py
/home/travis/build/coala/corobo/plugins/labhub.py
/home/travis/build/coala/corobo/plugins/ship_it.py
/home/travis/build/coala/corobo/plugins/the_rules.py
/home/travis/build/coala/corobo/plugins/ghetto.py
/home/travis/build/coala/corobo/plugins/constants.py
/home/travis/build/coala/corobo/plugins/lmgtfy.py
/home/travis/build/coala/corobo/plugins/searchdocs.py
/home/travis/build/coala/corobo/plugins/git_stats.py
/home/travis/build/coala/corobo/plugins/__init__.py
/home/travis/build/coala/corobo/plugins/spam.py
/home/travis/build/coala/corobo/plugins/coala_lowercase_c.py
/home/travis/build/coala/corobo/plugins/answer.py
/home/travis/build/coala/corobo/plugins/pitchfork.py
/home/travis/build/coala/corobo/plugins/ban.py
/home/travis/build/coala/corobo/plugins/explain.py
/home/travis/build/coala/corobo/plugins/nevermind.py
/home/travis/build/coala/corobo/plugins/deprecate_bot_prefixes.py
/home/travis/build/coala/corobo/plugins/wolfram_alpha.py
/home/travis/build/coala/corobo/plugins/coatils.py
/home/travis/build/coala/corobo/answers/__init__.py
/home/travis/build/coala/corobo/answers/service.py
/home/travis/build/coala/corobo/answers/final.py
/home/travis/build/coala/corobo/answers/extraction.py
/home/travis/build/coala/corobo/answers/utils.py
/home/travis/build/coala/corobo/tests/nevermind_test.py
/home/travis/build/coala/corobo/tests/deprecate_bot_prefixes_test.py
/home/travis/build/coala/corobo/tests/answer_test.py
/home/travis/build/coala/corobo/tests/labhub_test_case.py
/home/travis/build/coala/corobo/tests/wolfram_alpha_test.py
/home/travis/build/coala/corobo/tests/coala_lowercase_c_test.py
/home/travis/build/coala/corobo/tests/searchdocs_test.py
/home/travis/build/coala/corobo/tests/git_stats_test.py
/home/travis/build/coala/corobo/tests/lmgtfy_test.py
/home/travis/build/coala/corobo/tests/the_rules_test.py
/home/travis/build/coala/corobo/tests/__init__.py
/home/travis/build/coala/corobo/tests/coatils_test.py
/home/travis/build/coala/corobo/tests/explain_test.py
/home/travis/build/coala/corobo/tests/ship_it_test.py
/home/travis/build/coala/corobo/tests/spam_test.py
/home/travis/build/coala/corobo/tests/ban_test.py
/home/travis/build/coala/corobo/tests/ghetto_test.py
/home/travis/build/coala/corobo/tests/labhub_test.py
/home/travis/build/coala/corobo/tests/corobo_test_case.py
/home/travis/build/coala/corobo/tests/pitchfork_test.py
/home/travis/build/coala/corobo/tests/isolated_testcase.py
[DEBUG][04:03:21] 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][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
[DEBUG][04:03:21] Running bear LineLengthBear...
Executing section all.links...
[DEBUG][04:03:21] Files that will be checked:
/home/travis/build/coala/corobo/config.py
/home/travis/build/coala/corobo/plugins/labhub.py
/home/travis/build/coala/corobo/plugins/ship_it.py
/home/travis/build/coala/corobo/plugins/the_rules.py
/home/travis/build/coala/corobo/plugins/ghetto.py
/home/travis/build/coala/corobo/plugins/constants.py
/home/travis/build/coala/corobo/plugins/lmgtfy.py
/home/travis/build/coala/corobo/plugins/searchdocs.py
/home/travis/build/coala/corobo/plugins/git_stats.py
/home/travis/build/coala/corobo/plugins/__init__.py
/home/travis/build/coala/corobo/plugins/spam.py
/home/travis/build/coala/corobo/plugins/coala_lowercase_c.py
/home/travis/build/coala/corobo/plugins/answer.py
/home/travis/build/coala/corobo/plugins/pitchfork.py
/home/travis/build/coala/corobo/plugins/ban.py
/home/travis/build/coala/corobo/plugins/explain.py
/home/travis/build/coala/corobo/plugins/nevermind.py
/home/travis/build/coala/corobo/plugins/deprecate_bot_prefixes.py
/home/travis/build/coala/corobo/plugins/wolfram_alpha.py
/home/travis/build/coala/corobo/plugins/coatils.py
/home/travis/build/coala/corobo/answers/__init__.py
/home/travis/build/coala/corobo/answers/service.py
/home/travis/build/coala/corobo/answers/final.py
/home/travis/build/coala/corobo/answers/extraction.py
/home/travis/build/coala/corobo/answers/utils.py
/home/travis/build/coala/corobo/tests/nevermind_test.py
/home/travis/build/coala/corobo/tests/deprecate_bot_prefixes_test.py
/home/travis/build/coala/corobo/tests/answer_test.py
/home/travis/build/coala/corobo/tests/labhub_test_case.py
/home/travis/build/coala/corobo/tests/wolfram_alpha_test.py
/home/travis/build/coala/corobo/tests/coala_lowercase_c_test.py
/home/travis/build/coala/corobo/tests/searchdocs_test.py
/home/travis/build/coala/corobo/tests/git_stats_test.py
/home/travis/build/coala/corobo/tests/lmgtfy_test.py
/home/travis/build/coala/corobo/tests/the_rules_test.py
/home/travis/build/coala/corobo/tests/__init__.py
/home/travis/build/coala/corobo/tests/coatils_test.py
/home/travis/build/coala/corobo/tests/explain_test.py
/home/travis/build/coala/corobo/tests/ship_it_test.py
/home/travis/build/coala/corobo/tests/spam_test.py
/home/travis/build/coala/corobo/tests/ban_test.py
/home/travis/build/coala/corobo/tests/ghetto_test.py
/home/travis/build/coala/corobo/tests/labhub_test.py
/home/travis/build/coala/corobo/tests/corobo_test_case.py
/home/travis/build/coala/corobo/tests/pitchfork_test.py
/home/travis/build/coala/corobo/tests/isolated_testcase.py
[DEBUG][04:03:21] Starting new HTTP connection (1): 216.58.218.174:80
[DEBUG][04:03:21] http://216.58.218.174:80 "HEAD / HTTP/1.1" 301 0
[DEBUG][04:03:21] 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][04:03:21] Running bear InvalidLinkBear...
[DEBUG][04:03:21] Running bear InvalidLinkBear...
[DEBUG][04:03:21] Running bear InvalidLinkBear...
[DEBUG][04:03:21] Running bear InvalidLinkBear...
[DEBUG][04:03:21] Starting new HTTP connection (1): i.imgur.com:80
[DEBUG][04:03:21] Starting new HTTPS connection (1): gitter.im:443
[DEBUG][04:03:21] Running bear InvalidLinkBear...
[DEBUG][04:03:21] https://gitter.im:443 "HEAD /coala/coala/offtopic HTTP/1.1" 200 0
[DEBUG][04:03:21] Running bear InvalidLinkBear...
[DEBUG][04:03:21] Running bear InvalidLinkBear...
[DEBUG][04:03:21] Running bear InvalidLinkBear...
[DEBUG][04:03:21] Running bear InvalidLinkBear...
[DEBUG][04:03:21] Running bear InvalidLinkBear...
[DEBUG][04:03:21] Running bear InvalidLinkBear...
[DEBUG][04:03:21] Starting new HTTP connection (1): www.gizoogle.net:80
[DEBUG][04:03:22] http://www.gizoogle.net:80 "HEAD /textilizer.php HTTP/1.1" 200 0
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Starting new HTTP connection (1): 0.0.0.0:8000
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Starting new HTTP connection (1): www.gizoogle.net:80
[DEBUG][04:03:22] http://www.gizoogle.net:80 "HEAD /textilizer.php HTTP/1.1" 200 0
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Running bear InvalidLinkBear...
[DEBUG][04:03:22] Starting new HTTPS connection (1): api.gitmate.io:443
[DEBUG][04:03:36] Starting new HTTP connection (1): d2f8dzk2mhcqts.cloudfront.net:80
[DEBUG][04:03:36] http://d2f8dzk2mhcqts.cloudfront.net:80 "HEAD /0772_PEW_Roundup/09_Squirrel.jpg HTTP/1.1" 200 0
[DEBUG][04:03:36] Starting new HTTP connection (1): www.cybersalt.org:80
[DEBUG][04:03:36] http://www.cybersalt.org:80 "HEAD /images/funnypictures/s/supersquirrel.jpg HTTP/1.1" 200 0
[DEBUG][04:03:36] Starting new HTTP connection (1): www.zmescience.com:80
[DEBUG][04:03:36] http://www.zmescience.com:80 "HEAD /wp-content/uploads/2010/09/squirrel.jpg HTTP/1.1" 301 0
[DEBUG][04:03:36] Running bear InvalidLinkBear...
[DEBUG][04:03:36] Running bear InvalidLinkBear...
[DEBUG][04:03:36] Running bear InvalidLinkBear...
[DEBUG][04:03:36] Running bear InvalidLinkBear...
[DEBUG][04:03:36] Running bear InvalidLinkBear...
[DEBUG][04:03:36] Running bear InvalidLinkBear...
[WARNING][04:03:36] InvalidLinkBear: This result has no patch attached.

plugins/ship_it.py
[DEBUG][04:03:36] Running bear InvalidLinkBear...
[DEBUG][04:03:36] Running bear InvalidLinkBear...
[DEBUG][04:03:36] Running bear InvalidLinkBear...
[DEBUG][04:03:36] Running bear InvalidLinkBear...
[DEBUG][04:03:36] Running bear InvalidLinkBear...
[DEBUG][04:03:36] Running bear InvalidLinkBear...
[DEBUG][04:03:36] Running bear InvalidLinkBear...
[DEBUG][04:03:36] Starting new HTTPS connection (1): api.gitter.im:443
|  14| ········'http://i.imgur.com/DPVM1.png',
|    | [MAJOR] InvalidLinkBear:
|    | Broken link - unable to connect to http://i.imgur.com/DPVM1.png
[DEBUG][04:03:37] https://api.gitter.im:443 "HEAD /v1/rooms HTTP/1.1" 401 0
[DEBUG][04:03:37] Starting new HTTPS connection (1): api.gitter.im:443
[DEBUG][04:03:37] https://api.gitter.im:443 "HEAD /v1/rooms/ HTTP/1.1" 401 0
[DEBUG][04:03:37] Starting new HTTPS connection (1): api.gitter.im:443
[DEBUG][04:03:37] Starting new HTTPS connection (1): www.lmgtfy.com:443
[DEBUG][04:03:37] Running bear InvalidLinkBear...
[DEBUG][04:03:37] https://api.gitter.im:443 "HEAD /v1/rooms HTTP/1.1" 401 0
[DEBUG][04:03:37] Starting new HTTPS connection (1): api.gitter.im:443
[DEBUG][04:03:37] https://api.gitter.im:443 "HEAD /v1/rooms/ HTTP/1.1" 401 0
[DEBUG][04:03:37] Starting new HTTPS connection (1): gitlab.com:443
[DEBUG][04:03:37] Running bear InvalidLinkBear...
[DEBUG][04:03:37] Running bear InvalidLinkBear...
[DEBUG][04:03:37] https://www.lmgtfy.com:443 "HEAD /?q=py HTTP/1.1" 200 0
[DEBUG][04:03:37] Running bear InvalidLinkBear...
[DEBUG][04:03:37] https://gitlab.com:443 "HEAD /a/b/merge_requests/2 HTTP/1.1" 302 0
Executing section jinja2...
[DEBUG][04:03:38] Files that will be checked:
/home/travis/build/coala/corobo/plugins/templates/the_rules.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/spam_alert.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/lmgtfy.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/hello-world.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/errors/not-eligible-invite.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/errors/not-eligible.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/errors/no-repository.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/errors/already-assigned.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/promotions/developers.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/promotions/newcomers.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/labhub/promotions/maintainers.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/cep.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/gitlab.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/rebase.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/commit.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/closes.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/review.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/fixes.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/promotion.jinja2.md
/home/travis/build/coala/corobo/plugins/templates/explain/google.jinja2.md
[DEBUG][04:03:38] 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][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
[DEBUG][04:03:38] Running bear Jinja2Bear...
Executing section commit...
[DEBUG][04:03:38] Files that will be checked:
[DEBUG][04:03:38] 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 cli...
[DEBUG][04:03:38] Files that will be checked:
[DEBUG][04:03:38] 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.

Copy link
Member

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

Ideally we need tests for this.
I think the tests should be easy to do now, and would be similar to the tests that @nvzard recently added for non-org members

@Vamshi99 Vamshi99 force-pushed the filter branch 2 times, most recently from c9d6cf1 to f0c514d Compare August 21, 2018 12:32
If RESP_ONLY_REQ_USERS configuration is true,
then stop responding to users other than those
in the REQUIRED_USERS list in config.

Closes coala#515
class FiltersTest(IsolatedTestCase):

def test_filter_users(self):
self.bot_config.RESP_ONLY_REQ_USERS = False
Copy link
Member Author

Choose a reason for hiding this comment

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

@nvzard Am I doing anything wrong here?

Copy link
Member

@nvzard nvzard Aug 21, 2018

Choose a reason for hiding this comment

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

@Vamshi99 IsolatedTestCase loads all the plugins present in plugins/ directory except LabHub, hence this filter is not loaded by the bot since it is in utils/ dir.

@TravisBuddy
Copy link

Travis tests have failed

Hey @Vamshi99,
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

python -m pytest
============================= test session starts ==============================
platform linux -- Python 3.6.3, pytest-3.6.4, py-1.5.2, pluggy-0.6.0
rootdir: /home/travis/build/coala/corobo, inifile: setup.cfg
plugins: requests-mock-1.5.2, xdist-1.22.5, travis-fold-1.3.0, timeout-1.3.1, reqs-0.0.7, reorder-0.1.1, profiling-1.3.0, mock-1.10.0, instafail-0.3.0, forked-0.2, error-for-skips-1.0.0, env-0.6.2, cov-2.5.1
collected 44 items                                                             

tests/answer_test.py ...                                                 [  6%]
tests/ban_test.py ..                                                     [ 11%]
tests/coala_lowercase_c_test.py ..                                       [ 15%]
tests/coatils_test.py ...........                                        [ 40%]
tests/deprecate_bot_prefixes_test.py .                                   [ 43%]
tests/explain_test.py .                                                  [ 45%]
tests/filters_test.py F

________________________ FiltersTest.test_filter_users _________________________

self = <tests.filters_test.FiltersTest testMethod=test_filter_users>

    def test_filter_users(self):
        self.bot_config.RESP_ONLY_REQ_USERS = False
        self.bot_config.REQUIRED_USERS = []
        self.assertCommand('!help', 'All commands')
        self.bot_config.RESP_ONLY_REQ_USERS = True
        self.bot_config.REQUIRED_USERS = ['testuser']
        self.bot_config.BOT_IDENTITY['nickname'] = 'testuser'
        with self.assertRaises(queue.Empty):
>           self.assertCommand('!help', 'All commands')
E           AssertionError: Empty not raised

tests/filters_test.py:16: AssertionError
----------------------------- Captured stdout call -----------------------------
waiting on queue
message received
waiting on queue
message received
waiting on queue
message received
waiting on queue
message received
----------------------------- Captured stderr call -----------------------------
ERROR:Error loading GitStats.
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/plugin_manager.py", line 358, in activate_non_started_plugins
    self.activate_plugin(name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/plugin_manager.py", line 440, in activate_plugin
    depends_on = self._activate_plugin_dependencies(name, dep_track)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/plugin_manager.py", line 460, in _activate_plugin_dependencies
    raise PluginActivationException(f'Unknown plugin dependency {dep_name}.')
errbot.plugin_manager.PluginActivationException: Unknown plugin dependency LabHub.
2018-08-21 12:41:46,204 ERROR    errbot.plugin_manager     Error loading GitStats.
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/plugin_manager.py", line 358, in activate_non_started_plugins
    self.activate_plugin(name)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/plugin_manager.py", line 440, in activate_plugin
    depends_on = self._activate_plugin_dependencies(name, dep_track)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/plugin_manager.py", line 460, in _activate_plugin_dependencies
    raise PluginActivationException(f'Unknown plugin dependency {dep_name}.')
errbot.plugin_manager.PluginActivationException: Unknown plugin dependency LabHub.
ERROR:callback_message on deprecate_bot_prefixes crashed.
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 111, in _dispatch_to_plugins
    getattr(plugin, method)(*args, **kwargs)
  File "plugins/deprecate_bot_prefixes.py", line 15, in callback_message
    for deprecated_prefix in self.bot_config.BOT_DEPRECATED_PREFIXES:
AttributeError: 'ShallowConfig' object has no attribute 'BOT_DEPRECATED_PREFIXES'
2018-08-21 12:41:46,209 ERROR    errbot.core               callback_message on deprecate_bot_prefixes crashed.
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 111, in _dispatch_to_plugins
    getattr(plugin, method)(*args, **kwargs)
  File "plugins/deprecate_bot_prefixes.py", line 15, in callback_message
    for deprecated_prefix in self.bot_config.BOT_DEPRECATED_PREFIXES:
AttributeError: 'ShallowConfig' object has no attribute 'BOT_DEPRECATED_PREFIXES'
ERROR:callback_message on deprecate_bot_prefixes crashed.
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 111, in _dispatch_to_plugins
    getattr(plugin, method)(*args, **kwargs)
  File "plugins/deprecate_bot_prefixes.py", line 15, in callback_message
    for deprecated_prefix in self.bot_config.BOT_DEPRECATED_PREFIXES:
AttributeError: 'ShallowConfig' object has no attribute 'BOT_DEPRECATED_PREFIXES'
2018-08-21 12:41:46,212 ERROR    errbot.core               callback_message on deprecate_bot_prefixes crashed.
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 111, in _dispatch_to_plugins
    getattr(plugin, method)(*args, **kwargs)
  File "plugins/deprecate_bot_prefixes.py", line 15, in callback_message
    for deprecated_prefix in self.bot_config.BOT_DEPRECATED_PREFIXES:
AttributeError: 'ShallowConfig' object has no attribute 'BOT_DEPRECATED_PREFIXES'
ERROR:callback_message on deprecate_bot_prefixes crashed.
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 111, in _dispatch_to_plugins
    getattr(plugin, method)(*args, **kwargs)
  File "plugins/deprecate_bot_prefixes.py", line 15, in callback_message
    for deprecated_prefix in self.bot_config.BOT_DEPRECATED_PREFIXES:
AttributeError: 'ShallowConfig' object has no attribute 'BOT_DEPRECATED_PREFIXES'
2018-08-21 12:41:46,240 ERROR    errbot.core               callback_message on deprecate_bot_prefixes crashed.
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/errbot/core.py", line 111, in _dispatch_to_plugins
    getattr(plugin, method)(*args, **kwargs)
  File "plugins/deprecate_bot_prefixes.py", line 15, in callback_message
    for deprecated_prefix in self.bot_config.BOT_DEPRECATED_PREFIXES:
AttributeError: 'ShallowConfig' object has no attribute 'BOT_DEPRECATED_PREFIXES'

tests/ghetto_test.py .                                                   [ 50%]
tests/git_stats_test.py .                                                [ 52%]
tests/labhub_test.py ..........                                          [ 75%]
tests/lmgtfy_test.py .                                                   [ 77%]
tests/nevermind_test.py .                                                [ 79%]
tests/pitchfork_test.py .                                                [ 81%]
tests/searchdocs_test.py .                                               [ 84%]
tests/ship_it_test.py .                                                  [ 86%]
tests/spam_test.py ....                                                  [ 95%]
tests/the_rules_test.py .                                                [ 97%]
tests/wolfram_alpha_test.py .                                            [100%]
Profiling (from /home/travis/build/coala/corobo/prof/combined.prof):
Tue Aug 21 12:44:19 2018    /home/travis/build/coala/corobo/prof/combined.prof

         7831673 function calls (7279695 primitive calls) in 157.823 seconds

   Ordered by: cumulative time
   List reduced from 2298 to 20 due to restriction <20>

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
       44    0.000    0.000  157.811    3.587 runner.py:105(pytest_runtest_call)
       44    0.000    0.000  157.809    3.587 unittest.py:182(runtest)
       44    0.000    0.000  157.809    3.587 case.py:652(__call__)
       44    0.003    0.000  157.809    3.587 case.py:570(run)
        1    0.000    0.000  129.203  129.203 labhub_test.py:427(test_alive)
  311/175    0.736    0.002  114.819    0.656 mock.py:2120(create_autospec)
        1    0.006    0.006   95.257   95.257 labhub_test.py:438(<dictcomp>)
     7709    0.777    0.000   87.093    0.011 mock.py:1828(__init__)
    15418   22.865    0.001   56.522    0.004 mock.py:1834(_mock_set_magics)
    15316    2.176    0.000   47.768    0.003 mock.py:63(_get_signature_object)
    15264    0.018    0.000   45.584    0.003 inspect.py:3031(signature)
    15264    0.022    0.000   45.566    0.003 inspect.py:2779(from_callable)
29288/15264    0.976    0.000   45.543    0.003 inspect.py:2173(_signature_from_callable)
     5298   38.542    0.007   38.542    0.007 {method 'acquire' of '_thread.lock' objects}
     1183    0.009    0.000   37.962    0.032 threading.py:263(wait)
      216    0.001    0.000   37.138    0.172 test.py:307(pop_message)
      265    0.004    0.000   37.137    0.140 queue.py:147(get)
      126    0.001    0.000   31.638    0.251 test.py:453(assertCommand)
     7777    1.169    0.000   29.638    0.004 mock.py:376(__init__)
994092/497054    0.849    0.000   28.957    0.000 {built-in method builtins.delattr}



travis_fold:start:py-5587.cov.0
----------- coverage: platform linux, python 3.6.3-final-0 -----------
Name                                Stmts   Miss Branch BrPart  Cover   Missing
-------------------------------------------------------------------------------
answers/__init__.py                     0      0      0      0   100%
plugins/__init__.py                     0      0      0      0   100%
plugins/answer.py                      31      0      8      0   100%
plugins/coala_lowercase_c.py           12      0      4      0   100%
plugins/coatils.py                    115      0     67      0   100%
plugins/constants.py                    5      0      0      0   100%
plugins/deprecate_bot_prefixes.py       6      0      4      0   100%
plugins/explain.py                     20      0      6      0   100%
plugins/ghetto.py                      10      0      2      0   100%
plugins/git_stats.py                   51      0     19      0   100%
plugins/lmgtfy.py                       4      0      0      0   100%
plugins/nevermind.py                    5      0      0      0   100%
plugins/pitchfork.py                   12      0      2      0   100%
plugins/searchdocs.py                  14      0      2      0   100%
plugins/ship_it.py                      7      0      0      0   100%
plugins/spam.py                        13      0      2      0   100%
plugins/the_rules.py                    5      0      0      0   100%
plugins/wolfram_alpha.py               19      0      6      0   100%
utils/__init__.py                       0      0      0      0   100%
utils/backends.py                       0      0      0      0   100%
utils/mixin.py                         20      0      6      0   100%
-------------------------------------------------------------------------------
TOTAL                                 349      0    128      0   100%
travis_fold:end:py-5587.cov.0

Required test coverage of 100% reached. Total coverage: 100.00%
=========================== short test summary info ============================
FAIL tests/filters_test.py::FiltersTest::test_filter_users

==================== 1 failed, 43 passed in 164.84 seconds =====================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

6 participants