Last active
February 26, 2018 16:50
-
-
Save harshhx17/fa4d3f3cac5b8162e4df7327355f7531 to your computer and use it in GitHub Desktop.
test on coala repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1m============================= test session starts ==============================[0m | |
platform linux -- Python 3.6.3, pytest-3.1.3, py-1.5.2, pluggy-0.4.0 | |
rootdir: /home/bhartiya/coala-bears, inifile: setup.cfg | |
plugins: xdist-1.22.1, timeout-1.2.1, reqs-0.0.7, reorder-0.1.0, mock-1.7.0, instafail-0.3.0, forked-0.2, error-for-skips-1.0.0, env-0.6.2, cov-2.5.1 | |
timeout: 35.0s method: signal | |
collected 798 items | |
tests/coalaBearTest.py . | |
tests/generate_packageTest.py ............ | |
tests/apertium/ApertiumLintBearTest.py .. | |
tests/c_languages/ArtisticStyleBearTest.py sssssssssssss | |
tests/c_languages/CPPCheckBearTest.py ss | |
tests/c_languages/CPPCleanBearTest.py ...... | |
tests/c_languages/CPPLintBearTest.py ........ | |
tests/c_languages/CSecurityBearTest.py ss | |
tests/c_languages/CSharpLintBearTest.py . | |
tests/c_languages/ClangBearTest.py .s.ssss | |
tests/c_languages/ClangComplexityBearTest.py ssss | |
tests/c_languages/GNUIndentBearTest.py ................ | |
tests/c_languages/codeclone_detection/ClangASTPrintBearTest.py ss | |
tests/c_languages/codeclone_detection/ClangCloneDetectionBearTest.py ssss | |
tests/c_languages/codeclone_detection/ClangCountVectorCreatorTest.py ss | |
tests/c_languages/codeclone_detection/ClangCountingConditionsTest.py sssssssssssssss | |
tests/c_languages/codeclone_detection/CloneDetectionRoutinesTest.py . | |
tests/c_languages/codeclone_detection/CountVectorTest.py ......... | |
tests/cmake/CMakeLintBearTest.py .... | |
tests/coffee_script/CoffeeLintBearTest.py ................................ | |
tests/configfiles/DockerfileLintBearTest.py FFFFFF | |
tests/configfiles/PuppetLintBearTest.py ss | |
tests/configfiles/TOMLBearTest.py ss | |
tests/css/CSSAutoPrefixBearTest.py ss | |
tests/css/CSSCombBearTest.py ssssssssssss | |
tests/css/CSSLintBearTest.py .. | |
tests/css/StyleLintBearTest.py s | |
tests/csv/CSVLintBearTest.py ssss | |
tests/dart/DartLintBearTest.py ssss | |
tests/documentation/DocGrammarBearTest.py .......... | |
tests/documentation/DocumentationStyleBearTest.py ............ | |
tests/elm/ElmLintBearTest.py sssssssssssss | |
tests/general/AnnotationBearTest.py ........ | |
tests/general/CPDBearTest.py sss | |
tests/general/DuplicateFileBearTest.py .... | |
tests/general/FilenameBearTest.py ................. | |
tests/general/IndentationBearTest.py ............ | |
tests/general/InvalidLinkBearTest.py ................. | |
tests/general/KeywordBearTest.py ........... | |
tests/general/LicenseCheckBearTest.py ss | |
tests/general/LineCountBearTest.py .. | |
tests/general/LineLengthBearTest.py .... | |
tests/general/MementoBearTest.py ......... | |
tests/general/QuotesBearTest.py ... | |
tests/general/SpaceConsistencyBearTest.py ..... | |
tests/general/TextLintBearTest.py ssssssssss | |
tests/general/URLBearTest.py ....... | |
tests/general/coalaBearTest.py .. | |
tests/gettext/DennisBearTest.py .. | |
tests/go/GoErrCheckBearTest.py ssssssssss | |
tests/go/GoImportsBearTest.py ss | |
tests/go/GoLintBearTest.py ssss | |
tests/go/GoReturnsBearTest.py ss | |
tests/go/GoTypeBearTest.py ss | |
tests/go/GoVetBearTest.py s | |
tests/go/GofmtBearTest.py FF | |
tests/haml/HAMLLintBearTest.py sssssssssssss | |
tests/haskell/GhcModBearTest.py ss | |
tests/haskell/HaskellLintBearTest.py ss | |
tests/hypertext/BootLintBearTest.py ssss | |
tests/hypertext/HTMLHintBearTest.py ssssssssss | |
tests/hypertext/HTMLLintBearTest.py ........ | |
tests/hypertext/HTTPoliceLintBearTest.py .... | |
tests/java/CheckstyleBearTest.py ........ | |
tests/java/InferBearTest.py ss | |
tests/java/JavaPMDBearTest.py ss | |
tests/jinja2/Jinja2BearTest.py ................ | |
tests/js/ESLintBearTest.py ssssssss | |
tests/js/HappinessLintBearTest.py sss | |
tests/js/JSComplexityBearTest.py ssssss | |
tests/js/JSHintBearTest.py .......... | |
tests/js/JSONFormatBearTest.py .......... | |
tests/js/JSStandardBearTest.py ss | |
tests/js/PrettierLintBearTest.py ss | |
tests/julia/JuliaLintBearTest.py ss | |
tests/latex/LatexLintBearTest.py ss | |
tests/lua/LuaLintBearTest.py ss | |
tests/markdown/MarkdownBearTest.py ssssssssssssssss | |
tests/matlab/MatlabIndentationBearTest.py .. | |
tests/natural_language/AlexBearTest.py ...F. | |
tests/natural_language/LanguageToolBearTest.py ........... | |
tests/natural_language/ProseLintBearTest.py .. | |
tests/natural_language/SpellCheckBearTest.py .. | |
tests/natural_language/WriteGoodLintBearTest.py ssssssssssssssssss | |
tests/perl/PerlCriticBearTest.py ssss | |
tests/php/PHPCodeSnifferBearTest.py ssss | |
tests/php/PHPLintBearTest.py . | |
tests/php/PHPMessDetectorBearTest.py sssss | |
tests/pug/PugLintBearTest.py sssssssss | |
tests/python/BanditBearTest.py ....... | |
tests/python/MypyBearTest.py .......... | |
tests/python/PEP8BearTest.py ..... | |
tests/python/PEP8NotebookBearTest.py .... | |
tests/python/PyCommentedCodeBearTest.py .. | |
tests/python/PyDocStyleBearTest.py ................ | |
tests/python/PyFlakesBearTest.py .. | |
tests/python/PyImportSortBearTest.py ......... | |
tests/python/PyLintBearTest.py .. | |
tests/python/PyUnusedCodeBearTest.py ........ | |
tests/python/PycodestyleBearTest.py .......... | |
tests/python/PyromaBearTest.py ... | |
tests/python/PythonPackageInitBearTest.py .. | |
tests/python/RadonBearTest.py ...... | |
tests/python/VultureBearTest.py .......... | |
tests/python/YapfBearTest.py ....... | |
tests/python/requirements/PinRequirementsBearTest.py .... | |
tests/python/requirements/PySafetyBearTest.py ..... | |
tests/r/FormatRBearTest.py ssssssssssssssss | |
tests/r/RLintBearTest.py ss | |
tests/rest/RSTcheckBearTest.py ........ | |
tests/rest/reSTLintBearTest.py .. | |
tests/ruby/RuboCopBearTest.py ssssss | |
tests/ruby/RubySmellBearTest.py ssss | |
tests/ruby/RubySyntaxBearTest.py ss | |
tests/scala/ScalaLintBearTest.py .... | |
tests/scss/SCSSLintBearTest.py ssss | |
tests/shell/ShellCheckBearTest.py ssssssssss | |
tests/sql/SQLintBearTest.py ss | |
tests/stylus/StylintBearTest.py ssssssssss | |
tests/swift/TailorBearTest.py ssssss | |
tests/typescript/TSLintBearTest.py ssssss | |
tests/vcs/git/GitCommitBearTest.py ................ | |
tests/verilog/VerilogLintBearTest.py ss | |
tests/vhdl/VHDLLintBearTest.py ss | |
tests/vimscript/VintBearTest.py .. | |
tests/xml2/XMLBearTest.py ssssssssssss | |
tests/yaml/RAMLLintBearTest.py ss | |
tests/yaml/TravisLintBearTest.py ssss | |
tests/yaml/YAMLLintBearTest.py ............. | |
=================================== FAILURES =================================== | |
[31m[1m__________________ DockerfileLintBearTest.test_invalid_files ___________________[0m | |
bear = <DockerfileLintBear linter object (wrapping 'dockerfile_lint') at 0x7fb094bb0860> | |
args = ('/tmp/tmp6tkhhwrx', ['\n', 'FROM ubuntu:14.04\n', '\n', '# Install basic tools\n', 'apt-get -y -qq update\n', 'apt-get -y -qq upgrade\n']) | |
kwargs = {'dependency_results': None} | |
stack = <contextlib.ExitStack object at 0x7fb094bb06d8> | |
new_create_arguments = <function execute_bear.<locals>.new_create_arguments at 0x7fb094ba5510> | |
new_process_output = <function execute_bear.<locals>.new_process_output at 0x7fb094ba51e0> | |
bear_output_generator = None | |
msg = ['Running bear DockerfileLintBear...', "Running 'dockerfile_lint --json -f /tmp/tmp6tkhhwrx'", 'Bear DockerfileLintBea...ar 1)', "Program arguments:\n('--json', '-f', '/tmp/tmp6tkhhwrx')", 'The program yielded the following output:\n', ...] | |
[1m @contextmanager[0m | |
[1m def execute_bear(bear, *args, **kwargs):[0m | |
[1m try:[0m | |
[1m console_output = [][0m | |
[1m [0m | |
[1m # For linters provide additional information, such as[0m | |
[1m # stdout and stderr.[0m | |
[1m with ExitStack() as stack:[0m | |
[1m if isinstance(bear, LinterClass):[0m | |
[1m old_process_output = bear.process_output[0m | |
[1m old_create_arguments = bear.create_arguments[0m | |
[1m [0m | |
[1m def new_create_arguments(filename, file, config_file,[0m | |
[1m *args, **kwargs):[0m | |
[1m arguments = old_create_arguments(filename, file,[0m | |
[1m config_file, *args,[0m | |
[1m **kwargs)[0m | |
[1m console_output.append([0m | |
[1m 'Program arguments:\n' + repr(arguments))[0m | |
[1m [0m | |
[1m return arguments[0m | |
[1m [0m | |
[1m def new_process_output(output, filename=None, file=None,[0m | |
[1m **process_output_kwargs):[0m | |
[1m [0m | |
[1m console_output.append('The program yielded '[0m | |
[1m 'the following output:\n')[0m | |
[1m if isinstance(output, tuple):[0m | |
[1m stdout, stderr = output[0m | |
[1m console_output.append('Stdout:\n' + stdout)[0m | |
[1m console_output.append('Stderr:\n' + stderr)[0m | |
[1m else:[0m | |
[1m console_output.append(output)[0m | |
[1m return old_process_output(output, filename, file,[0m | |
[1m **process_output_kwargs)[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'process_output', wraps=new_process_output))[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'create_arguments', wraps=new_create_arguments))[0m | |
[1m [0m | |
[1m bear_output_generator = bear.execute(*args, **kwargs)[0m | |
[1m [0m | |
[1m assert bear_output_generator is not None, \[0m | |
[1m> 'Bear returned None on execution\n'[0m | |
[1m[31mE AssertionError: Bear returned None on execution[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:62: AssertionError | |
[33mDuring handling of the above exception, another exception occurred:[0m | |
self = <coalib.testing.LocalBearTestHelper.verify_local_bear.<locals>.LocalBearTest testMethod=test_invalid_files> | |
[1m def test_invalid_files(self):[0m | |
[1m self.assertIsInstance(invalid_files, (list, tuple))[0m | |
[1m for file in invalid_files:[0m | |
[1m self.check_validity(self.uut,[0m | |
[1m file.splitlines(keepends=True),[0m | |
[1m filename,[0m | |
[1m valid=False,[0m | |
[1m force_linebreaks=force_linebreaks,[0m | |
[1m create_tempfile=create_tempfile,[0m | |
[1m> tempfile_kwargs=tempfile_kwargs)[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:376: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:173: in check_validity | |
[1m settings=settings,[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:209: in check_invalidity | |
[1m settings=settings,[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:99: in get_results | |
[1m **local_bear.get_metadata().filter_parameters(settings)[0m | |
[1m[31m/usr/lib/python3.6/contextlib.py[0m:81: in __enter__ | |
[1m return next(self.gen)[0m | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
bear = <DockerfileLintBear linter object (wrapping 'dockerfile_lint') at 0x7fb094bb0860> | |
args = ('/tmp/tmp6tkhhwrx', ['\n', 'FROM ubuntu:14.04\n', '\n', '# Install basic tools\n', 'apt-get -y -qq update\n', 'apt-get -y -qq upgrade\n']) | |
kwargs = {'dependency_results': None} | |
stack = <contextlib.ExitStack object at 0x7fb094bb06d8> | |
new_create_arguments = <function execute_bear.<locals>.new_create_arguments at 0x7fb094ba5510> | |
new_process_output = <function execute_bear.<locals>.new_process_output at 0x7fb094ba51e0> | |
bear_output_generator = None | |
msg = ['Running bear DockerfileLintBear...', "Running 'dockerfile_lint --json -f /tmp/tmp6tkhhwrx'", 'Bear DockerfileLintBea...ar 1)', "Program arguments:\n('--json', '-f', '/tmp/tmp6tkhhwrx')", 'The program yielded the following output:\n', ...] | |
[1m @contextmanager[0m | |
[1m def execute_bear(bear, *args, **kwargs):[0m | |
[1m try:[0m | |
[1m console_output = [][0m | |
[1m [0m | |
[1m # For linters provide additional information, such as[0m | |
[1m # stdout and stderr.[0m | |
[1m with ExitStack() as stack:[0m | |
[1m if isinstance(bear, LinterClass):[0m | |
[1m old_process_output = bear.process_output[0m | |
[1m old_create_arguments = bear.create_arguments[0m | |
[1m [0m | |
[1m def new_create_arguments(filename, file, config_file,[0m | |
[1m *args, **kwargs):[0m | |
[1m arguments = old_create_arguments(filename, file,[0m | |
[1m config_file, *args,[0m | |
[1m **kwargs)[0m | |
[1m console_output.append([0m | |
[1m 'Program arguments:\n' + repr(arguments))[0m | |
[1m [0m | |
[1m return arguments[0m | |
[1m [0m | |
[1m def new_process_output(output, filename=None, file=None,[0m | |
[1m **process_output_kwargs):[0m | |
[1m [0m | |
[1m console_output.append('The program yielded '[0m | |
[1m 'the following output:\n')[0m | |
[1m if isinstance(output, tuple):[0m | |
[1m stdout, stderr = output[0m | |
[1m console_output.append('Stdout:\n' + stdout)[0m | |
[1m console_output.append('Stderr:\n' + stderr)[0m | |
[1m else:[0m | |
[1m console_output.append(output)[0m | |
[1m return old_process_output(output, filename, file,[0m | |
[1m **process_output_kwargs)[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'process_output', wraps=new_process_output))[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'create_arguments', wraps=new_create_arguments))[0m | |
[1m [0m | |
[1m bear_output_generator = bear.execute(*args, **kwargs)[0m | |
[1m [0m | |
[1m assert bear_output_generator is not None, \[0m | |
[1m 'Bear returned None on execution\n'[0m | |
[1m yield bear_output_generator[0m | |
[1m except Exception as err:[0m | |
[1m msg = [][0m | |
[1m while not bear.message_queue.empty():[0m | |
[1m msg.append(bear.message_queue.get().message)[0m | |
[1m msg += console_output[0m | |
[1m> raise AssertionError(str(err) + ''.join('\n' + m for m in msg))[0m | |
[1m[31mE AssertionError: Bear returned None on execution[0m | |
[1m[31mE [0m | |
[1m[31mE Running bear DockerfileLintBear...[0m | |
[1m[31mE Running 'dockerfile_lint --json -f /tmp/tmp6tkhhwrx'[0m | |
[1m[31mE Bear DockerfileLintBear failed to run on file /tmp/tmp6tkhhwrx. Take a look at debug messages (`-V`) for further information.[0m | |
[1m[31mE The bear DockerfileLintBear raised an exception. If you are the author of this bear, please make sure to catch all exceptions. If not and this error annoys you, you might want to get in contact with the author of this bear.[0m | |
[1m[31mE [0m | |
[1m[31mE Traceback information is provided below:[0m | |
[1m[31mE [0m | |
[1m[31mE Traceback (most recent call last):[0m | |
[1m[31mE File "/home/bhartiya/venv/lib/python3.6/site-packages/coalib/bears/Bear.py", line 308, in execute[0m | |
[1m[31mE return [] if result is None else list(result)[0m | |
[1m[31mE File "/home/bhartiya/coala-bears/bears/configfiles/DockerfileLintBear.py", line 44, in process_output[0m | |
[1m[31mE output = json.loads(output)[0m | |
[1m[31mE File "/usr/lib/python3.6/json/__init__.py", line 354, in loads[0m | |
[1m[31mE return _default_decoder.decode(s)[0m | |
[1m[31mE File "/usr/lib/python3.6/json/decoder.py", line 339, in decode[0m | |
[1m[31mE obj, end = self.raw_decode(s, idx=_w(s, 0).end())[0m | |
[1m[31mE File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode[0m | |
[1m[31mE raise JSONDecodeError("Expecting value", s, err.value) from None[0m | |
[1m[31mE json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)[0m | |
[1m[31mE Program arguments:[0m | |
[1m[31mE ('--json', '-f', '/tmp/tmp6tkhhwrx')[0m | |
[1m[31mE The program yielded the following output:[0m | |
[1m[31mE [0m | |
[1m[31mE [0m | |
[1m[31mE # Analyzing /tmp/tmp6tkhhwrx[0m | |
[1m[31mE [0m | |
[1m[31mE {[0m | |
[1m[31mE "error": {[0m | |
[1m[31mE "count": 6,[0m | |
[1m[31mE "data": [[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "Invalid Command",[0m | |
[1m[31mE "line": 5,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "apt-get -y -qq update",[0m | |
[1m[31mE "reference_url": "https://docs.docker.com/engine/reference/builder/"[0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "Invalid instruction",[0m | |
[1m[31mE "line": 5,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "apt-get -y -qq update",[0m | |
[1m[31mE "reference_url": "https://docs.docker.com/engine/reference/builder/"[0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "Invalid Command",[0m | |
[1m[31mE "line": 6,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "apt-get -y -qq upgrade",[0m | |
[1m[31mE "reference_url": "https://docs.docker.com/engine/reference/builder/"[0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "Invalid instruction",[0m | |
[1m[31mE "line": 6,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "apt-get -y -qq upgrade",[0m | |
[1m[31mE "reference_url": "https://docs.docker.com/engine/reference/builder/"[0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "Required LABEL name/key 'Name' is not defined",[0m | |
[1m[31mE "line": -1,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "",[0m | |
[1m[31mE "reference_url": [[0m | |
[1m[31mE "http://docs.projectatomic.io/container-best-practices/#",[0m | |
[1m[31mE "_recommended_labels_for_your_project"[0m | |
[1m[31mE ][0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "Required LABEL name/key 'Version' is not defined",[0m | |
[1m[31mE "line": -1,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "",[0m | |
[1m[31mE "reference_url": [[0m | |
[1m[31mE "http://docs.projectatomic.io/container-best-practices/#",[0m | |
[1m[31mE "_recommended_labels_for_your_project"[0m | |
[1m[31mE ][0m | |
[1m[31mE }[0m | |
[1m[31mE ][0m | |
[1m[31mE },[0m | |
[1m[31mE "warn": {[0m | |
[1m[31mE "count": 0,[0m | |
[1m[31mE "data": [][0m | |
[1m[31mE },[0m | |
[1m[31mE "info": {[0m | |
[1m[31mE "count": 2,[0m | |
[1m[31mE "data": [[0m | |
[1m[31mE {[0m | |
[1m[31mE "instruction": "EXPOSE",[0m | |
[1m[31mE "count": 1,[0m | |
[1m[31mE "level": "info",[0m | |
[1m[31mE "message": "There is no 'EXPOSE' instruction",[0m | |
[1m[31mE "description": "Without exposed ports how will the service of the container be accessed?",[0m | |
[1m[31mE "reference_url": [[0m | |
[1m[31mE "https://docs.docker.com/engine/reference/builder/",[0m | |
[1m[31mE "#expose"[0m | |
[1m[31mE ][0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "instruction": "CMD",[0m | |
[1m[31mE "count": 1,[0m | |
[1m[31mE "level": "info",[0m | |
[1m[31mE "message": "There is no 'CMD' instruction",[0m | |
[1m[31mE "description": "None",[0m | |
[1m[31mE "reference_url": [[0m | |
[1m[31mE "https://docs.docker.com/engine/reference/builder/",[0m | |
[1m[31mE "#cmd"[0m | |
[1m[31mE ][0m | |
[1m[31mE }[0m | |
[1m[31mE ][0m | |
[1m[31mE },[0m | |
[1m[31mE "summary": [][0m | |
[1m[31mE }[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:69: AssertionError | |
[31m[1m___________________ DockerfileLintBearTest.test_valid_files ____________________[0m | |
bear = <DockerfileLintBear linter object (wrapping 'dockerfile_lint') at 0x7fb097cc75f8> | |
args = ('/tmp/tmplyrz9db4', ['\n', 'FROM ubuntu:14.04\n', 'MAINTAINER coala\n', 'LABEL Name coala-docker\n', 'LABEL Version 0.1\n', '\n', ...]) | |
kwargs = {'dependency_results': None} | |
stack = <contextlib.ExitStack object at 0x7fb094c0deb8> | |
new_create_arguments = <function execute_bear.<locals>.new_create_arguments at 0x7fb094bd7ae8> | |
new_process_output = <function execute_bear.<locals>.new_process_output at 0x7fb094bf3bf8> | |
bear_output_generator = None | |
msg = ['Running bear DockerfileLintBear...', "Running 'dockerfile_lint --json -f /tmp/tmplyrz9db4'", 'Bear DockerfileLintBea...ar 1)', "Program arguments:\n('--json', '-f', '/tmp/tmplyrz9db4')", 'The program yielded the following output:\n', ...] | |
[1m @contextmanager[0m | |
[1m def execute_bear(bear, *args, **kwargs):[0m | |
[1m try:[0m | |
[1m console_output = [][0m | |
[1m [0m | |
[1m # For linters provide additional information, such as[0m | |
[1m # stdout and stderr.[0m | |
[1m with ExitStack() as stack:[0m | |
[1m if isinstance(bear, LinterClass):[0m | |
[1m old_process_output = bear.process_output[0m | |
[1m old_create_arguments = bear.create_arguments[0m | |
[1m [0m | |
[1m def new_create_arguments(filename, file, config_file,[0m | |
[1m *args, **kwargs):[0m | |
[1m arguments = old_create_arguments(filename, file,[0m | |
[1m config_file, *args,[0m | |
[1m **kwargs)[0m | |
[1m console_output.append([0m | |
[1m 'Program arguments:\n' + repr(arguments))[0m | |
[1m [0m | |
[1m return arguments[0m | |
[1m [0m | |
[1m def new_process_output(output, filename=None, file=None,[0m | |
[1m **process_output_kwargs):[0m | |
[1m [0m | |
[1m console_output.append('The program yielded '[0m | |
[1m 'the following output:\n')[0m | |
[1m if isinstance(output, tuple):[0m | |
[1m stdout, stderr = output[0m | |
[1m console_output.append('Stdout:\n' + stdout)[0m | |
[1m console_output.append('Stderr:\n' + stderr)[0m | |
[1m else:[0m | |
[1m console_output.append(output)[0m | |
[1m return old_process_output(output, filename, file,[0m | |
[1m **process_output_kwargs)[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'process_output', wraps=new_process_output))[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'create_arguments', wraps=new_create_arguments))[0m | |
[1m [0m | |
[1m bear_output_generator = bear.execute(*args, **kwargs)[0m | |
[1m [0m | |
[1m assert bear_output_generator is not None, \[0m | |
[1m> 'Bear returned None on execution\n'[0m | |
[1m[31mE AssertionError: Bear returned None on execution[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:62: AssertionError | |
[33mDuring handling of the above exception, another exception occurred:[0m | |
self = <coalib.testing.LocalBearTestHelper.verify_local_bear.<locals>.LocalBearTest testMethod=test_valid_files> | |
[1m def test_valid_files(self):[0m | |
[1m self.assertIsInstance(valid_files, (list, tuple))[0m | |
[1m for file in valid_files:[0m | |
[1m self.check_validity(self.uut,[0m | |
[1m file.splitlines(keepends=True),[0m | |
[1m filename,[0m | |
[1m valid=True,[0m | |
[1m force_linebreaks=force_linebreaks,[0m | |
[1m create_tempfile=create_tempfile,[0m | |
[1m> tempfile_kwargs=tempfile_kwargs)[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:365: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:165: in check_validity | |
[1m settings=settings,[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:261: in check_results | |
[1m settings=settings)[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:99: in get_results | |
[1m **local_bear.get_metadata().filter_parameters(settings)[0m | |
[1m[31m/usr/lib/python3.6/contextlib.py[0m:81: in __enter__ | |
[1m return next(self.gen)[0m | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
bear = <DockerfileLintBear linter object (wrapping 'dockerfile_lint') at 0x7fb097cc75f8> | |
args = ('/tmp/tmplyrz9db4', ['\n', 'FROM ubuntu:14.04\n', 'MAINTAINER coala\n', 'LABEL Name coala-docker\n', 'LABEL Version 0.1\n', '\n', ...]) | |
kwargs = {'dependency_results': None} | |
stack = <contextlib.ExitStack object at 0x7fb094c0deb8> | |
new_create_arguments = <function execute_bear.<locals>.new_create_arguments at 0x7fb094bd7ae8> | |
new_process_output = <function execute_bear.<locals>.new_process_output at 0x7fb094bf3bf8> | |
bear_output_generator = None | |
msg = ['Running bear DockerfileLintBear...', "Running 'dockerfile_lint --json -f /tmp/tmplyrz9db4'", 'Bear DockerfileLintBea...ar 1)', "Program arguments:\n('--json', '-f', '/tmp/tmplyrz9db4')", 'The program yielded the following output:\n', ...] | |
[1m @contextmanager[0m | |
[1m def execute_bear(bear, *args, **kwargs):[0m | |
[1m try:[0m | |
[1m console_output = [][0m | |
[1m [0m | |
[1m # For linters provide additional information, such as[0m | |
[1m # stdout and stderr.[0m | |
[1m with ExitStack() as stack:[0m | |
[1m if isinstance(bear, LinterClass):[0m | |
[1m old_process_output = bear.process_output[0m | |
[1m old_create_arguments = bear.create_arguments[0m | |
[1m [0m | |
[1m def new_create_arguments(filename, file, config_file,[0m | |
[1m *args, **kwargs):[0m | |
[1m arguments = old_create_arguments(filename, file,[0m | |
[1m config_file, *args,[0m | |
[1m **kwargs)[0m | |
[1m console_output.append([0m | |
[1m 'Program arguments:\n' + repr(arguments))[0m | |
[1m [0m | |
[1m return arguments[0m | |
[1m [0m | |
[1m def new_process_output(output, filename=None, file=None,[0m | |
[1m **process_output_kwargs):[0m | |
[1m [0m | |
[1m console_output.append('The program yielded '[0m | |
[1m 'the following output:\n')[0m | |
[1m if isinstance(output, tuple):[0m | |
[1m stdout, stderr = output[0m | |
[1m console_output.append('Stdout:\n' + stdout)[0m | |
[1m console_output.append('Stderr:\n' + stderr)[0m | |
[1m else:[0m | |
[1m console_output.append(output)[0m | |
[1m return old_process_output(output, filename, file,[0m | |
[1m **process_output_kwargs)[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'process_output', wraps=new_process_output))[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'create_arguments', wraps=new_create_arguments))[0m | |
[1m [0m | |
[1m bear_output_generator = bear.execute(*args, **kwargs)[0m | |
[1m [0m | |
[1m assert bear_output_generator is not None, \[0m | |
[1m 'Bear returned None on execution\n'[0m | |
[1m yield bear_output_generator[0m | |
[1m except Exception as err:[0m | |
[1m msg = [][0m | |
[1m while not bear.message_queue.empty():[0m | |
[1m msg.append(bear.message_queue.get().message)[0m | |
[1m msg += console_output[0m | |
[1m> raise AssertionError(str(err) + ''.join('\n' + m for m in msg))[0m | |
[1m[31mE AssertionError: Bear returned None on execution[0m | |
[1m[31mE [0m | |
[1m[31mE Running bear DockerfileLintBear...[0m | |
[1m[31mE Running 'dockerfile_lint --json -f /tmp/tmplyrz9db4'[0m | |
[1m[31mE Bear DockerfileLintBear failed to run on file /tmp/tmplyrz9db4. Take a look at debug messages (`-V`) for further information.[0m | |
[1m[31mE The bear DockerfileLintBear raised an exception. If you are the author of this bear, please make sure to catch all exceptions. If not and this error annoys you, you might want to get in contact with the author of this bear.[0m | |
[1m[31mE [0m | |
[1m[31mE Traceback information is provided below:[0m | |
[1m[31mE [0m | |
[1m[31mE Traceback (most recent call last):[0m | |
[1m[31mE File "/home/bhartiya/venv/lib/python3.6/site-packages/coalib/bears/Bear.py", line 308, in execute[0m | |
[1m[31mE return [] if result is None else list(result)[0m | |
[1m[31mE File "/home/bhartiya/coala-bears/bears/configfiles/DockerfileLintBear.py", line 44, in process_output[0m | |
[1m[31mE output = json.loads(output)[0m | |
[1m[31mE File "/usr/lib/python3.6/json/__init__.py", line 354, in loads[0m | |
[1m[31mE return _default_decoder.decode(s)[0m | |
[1m[31mE File "/usr/lib/python3.6/json/decoder.py", line 339, in decode[0m | |
[1m[31mE obj, end = self.raw_decode(s, idx=_w(s, 0).end())[0m | |
[1m[31mE File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode[0m | |
[1m[31mE raise JSONDecodeError("Expecting value", s, err.value) from None[0m | |
[1m[31mE json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)[0m | |
[1m[31mE Program arguments:[0m | |
[1m[31mE ('--json', '-f', '/tmp/tmplyrz9db4')[0m | |
[1m[31mE The program yielded the following output:[0m | |
[1m[31mE [0m | |
[1m[31mE [0m | |
[1m[31mE # Analyzing /tmp/tmplyrz9db4[0m | |
[1m[31mE [0m | |
[1m[31mE {[0m | |
[1m[31mE "error": {[0m | |
[1m[31mE "count": 0,[0m | |
[1m[31mE "data": [][0m | |
[1m[31mE },[0m | |
[1m[31mE "warn": {[0m | |
[1m[31mE "count": 0,[0m | |
[1m[31mE "data": [][0m | |
[1m[31mE },[0m | |
[1m[31mE "info": {[0m | |
[1m[31mE "count": 1,[0m | |
[1m[31mE "data": [[0m | |
[1m[31mE {[0m | |
[1m[31mE "label": "maintainer_deprecated",[0m | |
[1m[31mE "regex": {},[0m | |
[1m[31mE "level": "info",[0m | |
[1m[31mE "message": "the MAINTAINER command is deprecated",[0m | |
[1m[31mE "description": "MAINTAINER is deprecated in favor of using LABEL since Docker v1.13.0",[0m | |
[1m[31mE "reference_url": [[0m | |
[1m[31mE "https://github.com/docker/docker/blob/master/docs/deprecated.md",[0m | |
[1m[31mE "#maintainer-in-dockerfile"[0m | |
[1m[31mE ],[0m | |
[1m[31mE "lineContent": "MAINTAINER coala",[0m | |
[1m[31mE "line": 3[0m | |
[1m[31mE }[0m | |
[1m[31mE ][0m | |
[1m[31mE },[0m | |
[1m[31mE "summary": [][0m | |
[1m[31mE }[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:69: AssertionError | |
[31m[1m_____________ DockerfileLintBearDefaultRuleTest.test_invalid_files _____________[0m | |
bear = <DockerfileLintBear linter object (wrapping 'dockerfile_lint') at 0x7fb094be75c0> | |
args = ('/tmp/tmpr22b2gg9', ['\n', 'FROM ubuntu\n', '\n', 'apt-get -y -qq update\n', 'apt-get -y -qq upgrade\n', 'curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -\n']) | |
kwargs = {'dependency_results': None} | |
stack = <contextlib.ExitStack object at 0x7fb094be7940> | |
new_create_arguments = <function execute_bear.<locals>.new_create_arguments at 0x7fb094c13510> | |
new_process_output = <function execute_bear.<locals>.new_process_output at 0x7fb094c132f0> | |
bear_output_generator = None | |
msg = ['Running bear DockerfileLintBear...', "Running 'dockerfile_lint --json -f /tmp/tmpr22b2gg9 -r /home/bhartiya/coala-be.../tests/configfiles/dockerfile_lint_test_files/default_rule.yaml')", 'The program yielded the following output:\n', ...] | |
[1m @contextmanager[0m | |
[1m def execute_bear(bear, *args, **kwargs):[0m | |
[1m try:[0m | |
[1m console_output = [][0m | |
[1m [0m | |
[1m # For linters provide additional information, such as[0m | |
[1m # stdout and stderr.[0m | |
[1m with ExitStack() as stack:[0m | |
[1m if isinstance(bear, LinterClass):[0m | |
[1m old_process_output = bear.process_output[0m | |
[1m old_create_arguments = bear.create_arguments[0m | |
[1m [0m | |
[1m def new_create_arguments(filename, file, config_file,[0m | |
[1m *args, **kwargs):[0m | |
[1m arguments = old_create_arguments(filename, file,[0m | |
[1m config_file, *args,[0m | |
[1m **kwargs)[0m | |
[1m console_output.append([0m | |
[1m 'Program arguments:\n' + repr(arguments))[0m | |
[1m [0m | |
[1m return arguments[0m | |
[1m [0m | |
[1m def new_process_output(output, filename=None, file=None,[0m | |
[1m **process_output_kwargs):[0m | |
[1m [0m | |
[1m console_output.append('The program yielded '[0m | |
[1m 'the following output:\n')[0m | |
[1m if isinstance(output, tuple):[0m | |
[1m stdout, stderr = output[0m | |
[1m console_output.append('Stdout:\n' + stdout)[0m | |
[1m console_output.append('Stderr:\n' + stderr)[0m | |
[1m else:[0m | |
[1m console_output.append(output)[0m | |
[1m return old_process_output(output, filename, file,[0m | |
[1m **process_output_kwargs)[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'process_output', wraps=new_process_output))[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'create_arguments', wraps=new_create_arguments))[0m | |
[1m [0m | |
[1m bear_output_generator = bear.execute(*args, **kwargs)[0m | |
[1m [0m | |
[1m assert bear_output_generator is not None, \[0m | |
[1m> 'Bear returned None on execution\n'[0m | |
[1m[31mE AssertionError: Bear returned None on execution[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:62: AssertionError | |
[33mDuring handling of the above exception, another exception occurred:[0m | |
self = <coalib.testing.LocalBearTestHelper.verify_local_bear.<locals>.LocalBearTest testMethod=test_invalid_files> | |
[1m def test_invalid_files(self):[0m | |
[1m self.assertIsInstance(invalid_files, (list, tuple))[0m | |
[1m for file in invalid_files:[0m | |
[1m self.check_validity(self.uut,[0m | |
[1m file.splitlines(keepends=True),[0m | |
[1m filename,[0m | |
[1m valid=False,[0m | |
[1m force_linebreaks=force_linebreaks,[0m | |
[1m create_tempfile=create_tempfile,[0m | |
[1m> tempfile_kwargs=tempfile_kwargs)[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:376: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:173: in check_validity | |
[1m settings=settings,[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:209: in check_invalidity | |
[1m settings=settings,[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:99: in get_results | |
[1m **local_bear.get_metadata().filter_parameters(settings)[0m | |
[1m[31m/usr/lib/python3.6/contextlib.py[0m:81: in __enter__ | |
[1m return next(self.gen)[0m | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
bear = <DockerfileLintBear linter object (wrapping 'dockerfile_lint') at 0x7fb094be75c0> | |
args = ('/tmp/tmpr22b2gg9', ['\n', 'FROM ubuntu\n', '\n', 'apt-get -y -qq update\n', 'apt-get -y -qq upgrade\n', 'curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -\n']) | |
kwargs = {'dependency_results': None} | |
stack = <contextlib.ExitStack object at 0x7fb094be7940> | |
new_create_arguments = <function execute_bear.<locals>.new_create_arguments at 0x7fb094c13510> | |
new_process_output = <function execute_bear.<locals>.new_process_output at 0x7fb094c132f0> | |
bear_output_generator = None | |
msg = ['Running bear DockerfileLintBear...', "Running 'dockerfile_lint --json -f /tmp/tmpr22b2gg9 -r /home/bhartiya/coala-be.../tests/configfiles/dockerfile_lint_test_files/default_rule.yaml')", 'The program yielded the following output:\n', ...] | |
[1m @contextmanager[0m | |
[1m def execute_bear(bear, *args, **kwargs):[0m | |
[1m try:[0m | |
[1m console_output = [][0m | |
[1m [0m | |
[1m # For linters provide additional information, such as[0m | |
[1m # stdout and stderr.[0m | |
[1m with ExitStack() as stack:[0m | |
[1m if isinstance(bear, LinterClass):[0m | |
[1m old_process_output = bear.process_output[0m | |
[1m old_create_arguments = bear.create_arguments[0m | |
[1m [0m | |
[1m def new_create_arguments(filename, file, config_file,[0m | |
[1m *args, **kwargs):[0m | |
[1m arguments = old_create_arguments(filename, file,[0m | |
[1m config_file, *args,[0m | |
[1m **kwargs)[0m | |
[1m console_output.append([0m | |
[1m 'Program arguments:\n' + repr(arguments))[0m | |
[1m [0m | |
[1m return arguments[0m | |
[1m [0m | |
[1m def new_process_output(output, filename=None, file=None,[0m | |
[1m **process_output_kwargs):[0m | |
[1m [0m | |
[1m console_output.append('The program yielded '[0m | |
[1m 'the following output:\n')[0m | |
[1m if isinstance(output, tuple):[0m | |
[1m stdout, stderr = output[0m | |
[1m console_output.append('Stdout:\n' + stdout)[0m | |
[1m console_output.append('Stderr:\n' + stderr)[0m | |
[1m else:[0m | |
[1m console_output.append(output)[0m | |
[1m return old_process_output(output, filename, file,[0m | |
[1m **process_output_kwargs)[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'process_output', wraps=new_process_output))[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'create_arguments', wraps=new_create_arguments))[0m | |
[1m [0m | |
[1m bear_output_generator = bear.execute(*args, **kwargs)[0m | |
[1m [0m | |
[1m assert bear_output_generator is not None, \[0m | |
[1m 'Bear returned None on execution\n'[0m | |
[1m yield bear_output_generator[0m | |
[1m except Exception as err:[0m | |
[1m msg = [][0m | |
[1m while not bear.message_queue.empty():[0m | |
[1m msg.append(bear.message_queue.get().message)[0m | |
[1m msg += console_output[0m | |
[1m> raise AssertionError(str(err) + ''.join('\n' + m for m in msg))[0m | |
[1m[31mE AssertionError: Bear returned None on execution[0m | |
[1m[31mE [0m | |
[1m[31mE Running bear DockerfileLintBear...[0m | |
[1m[31mE Running 'dockerfile_lint --json -f /tmp/tmpr22b2gg9 -r /home/bhartiya/coala-bears/tests/configfiles/dockerfile_lint_test_files/default_rule.yaml'[0m | |
[1m[31mE Bear DockerfileLintBear failed to run on file /tmp/tmpr22b2gg9. Take a look at debug messages (`-V`) for further information.[0m | |
[1m[31mE The bear DockerfileLintBear raised an exception. If you are the author of this bear, please make sure to catch all exceptions. If not and this error annoys you, you might want to get in contact with the author of this bear.[0m | |
[1m[31mE [0m | |
[1m[31mE Traceback information is provided below:[0m | |
[1m[31mE [0m | |
[1m[31mE Traceback (most recent call last):[0m | |
[1m[31mE File "/home/bhartiya/venv/lib/python3.6/site-packages/coalib/bears/Bear.py", line 308, in execute[0m | |
[1m[31mE return [] if result is None else list(result)[0m | |
[1m[31mE File "/home/bhartiya/coala-bears/bears/configfiles/DockerfileLintBear.py", line 44, in process_output[0m | |
[1m[31mE output = json.loads(output)[0m | |
[1m[31mE File "/usr/lib/python3.6/json/__init__.py", line 354, in loads[0m | |
[1m[31mE return _default_decoder.decode(s)[0m | |
[1m[31mE File "/usr/lib/python3.6/json/decoder.py", line 339, in decode[0m | |
[1m[31mE obj, end = self.raw_decode(s, idx=_w(s, 0).end())[0m | |
[1m[31mE File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode[0m | |
[1m[31mE raise JSONDecodeError("Expecting value", s, err.value) from None[0m | |
[1m[31mE json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)[0m | |
[1m[31mE Program arguments:[0m | |
[1m[31mE ('--json', '-f', '/tmp/tmpr22b2gg9', '-r', '/home/bhartiya/coala-bears/tests/configfiles/dockerfile_lint_test_files/default_rule.yaml')[0m | |
[1m[31mE The program yielded the following output:[0m | |
[1m[31mE [0m | |
[1m[31mE [0m | |
[1m[31mE # Analyzing /tmp/tmpr22b2gg9[0m | |
[1m[31mE [0m | |
[1m[31mE {[0m | |
[1m[31mE "error": {[0m | |
[1m[31mE "count": 8,[0m | |
[1m[31mE "data": [[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "Invalid Command",[0m | |
[1m[31mE "line": 4,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "apt-get -y -qq update",[0m | |
[1m[31mE "reference_url": "https://docs.docker.com/engine/reference/builder/"[0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "Invalid instruction",[0m | |
[1m[31mE "line": 4,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "apt-get -y -qq update",[0m | |
[1m[31mE "reference_url": "https://docs.docker.com/engine/reference/builder/"[0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "Invalid Command",[0m | |
[1m[31mE "line": 5,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "apt-get -y -qq upgrade",[0m | |
[1m[31mE "reference_url": "https://docs.docker.com/engine/reference/builder/"[0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "Invalid instruction",[0m | |
[1m[31mE "line": 5,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "apt-get -y -qq upgrade",[0m | |
[1m[31mE "reference_url": "https://docs.docker.com/engine/reference/builder/"[0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "Invalid Command",[0m | |
[1m[31mE "line": 6,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -",[0m | |
[1m[31mE "reference_url": "https://docs.docker.com/engine/reference/builder/"[0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "Invalid instruction",[0m | |
[1m[31mE "line": 6,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -",[0m | |
[1m[31mE "reference_url": "https://docs.docker.com/engine/reference/builder/"[0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "Required LABEL name/key 'Name' is not defined",[0m | |
[1m[31mE "line": -1,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "",[0m | |
[1m[31mE "reference_url": [[0m | |
[1m[31mE "http://docs.projectatomic.io/container-best-practices/#",[0m | |
[1m[31mE "_recommended_labels_for_your_project"[0m | |
[1m[31mE ][0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "Required LABEL name/key 'Version' is not defined",[0m | |
[1m[31mE "line": -1,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "",[0m | |
[1m[31mE "reference_url": [[0m | |
[1m[31mE "http://docs.projectatomic.io/container-best-practices/#",[0m | |
[1m[31mE "_recommended_labels_for_your_project"[0m | |
[1m[31mE ][0m | |
[1m[31mE }[0m | |
[1m[31mE ][0m | |
[1m[31mE },[0m | |
[1m[31mE "warn": {[0m | |
[1m[31mE "count": 0,[0m | |
[1m[31mE "data": [][0m | |
[1m[31mE },[0m | |
[1m[31mE "info": {[0m | |
[1m[31mE "count": 2,[0m | |
[1m[31mE "data": [[0m | |
[1m[31mE {[0m | |
[1m[31mE "instruction": "EXPOSE",[0m | |
[1m[31mE "count": 1,[0m | |
[1m[31mE "level": "info",[0m | |
[1m[31mE "message": "There is no 'EXPOSE' instruction",[0m | |
[1m[31mE "description": "Without exposed ports how will the service of the container be accessed?",[0m | |
[1m[31mE "reference_url": [[0m | |
[1m[31mE "https://docs.docker.com/engine/reference/builder/",[0m | |
[1m[31mE "#expose"[0m | |
[1m[31mE ][0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "instruction": "CMD",[0m | |
[1m[31mE "count": 1,[0m | |
[1m[31mE "level": "info",[0m | |
[1m[31mE "message": "There is no 'CMD' instruction",[0m | |
[1m[31mE "description": "None",[0m | |
[1m[31mE "reference_url": [[0m | |
[1m[31mE "https://docs.docker.com/engine/reference/builder/",[0m | |
[1m[31mE "#cmd"[0m | |
[1m[31mE ][0m | |
[1m[31mE }[0m | |
[1m[31mE ][0m | |
[1m[31mE },[0m | |
[1m[31mE "summary": [][0m | |
[1m[31mE }[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:69: AssertionError | |
[31m[1m______________ DockerfileLintBearDefaultRuleTest.test_valid_files ______________[0m | |
bear = <DockerfileLintBear linter object (wrapping 'dockerfile_lint') at 0x7fb094bf6b38> | |
args = ('/tmp/tmp_1qgquzo', ['\n', 'FROM ubuntu\n', 'MAINTAINER coala\n', 'LABEL Name coala-docker\n', 'LABEL Version 0.1\n', '\n', ...]) | |
kwargs = {'dependency_results': None} | |
stack = <contextlib.ExitStack object at 0x7fb094bf6b00> | |
new_create_arguments = <function execute_bear.<locals>.new_create_arguments at 0x7fb094ba5b70> | |
new_process_output = <function execute_bear.<locals>.new_process_output at 0x7fb094ba50d0> | |
bear_output_generator = None | |
msg = ['Running bear DockerfileLintBear...', "Running 'dockerfile_lint --json -f /tmp/tmp_1qgquzo -r /home/bhartiya/coala-be.../tests/configfiles/dockerfile_lint_test_files/default_rule.yaml')", 'The program yielded the following output:\n', ...] | |
[1m @contextmanager[0m | |
[1m def execute_bear(bear, *args, **kwargs):[0m | |
[1m try:[0m | |
[1m console_output = [][0m | |
[1m [0m | |
[1m # For linters provide additional information, such as[0m | |
[1m # stdout and stderr.[0m | |
[1m with ExitStack() as stack:[0m | |
[1m if isinstance(bear, LinterClass):[0m | |
[1m old_process_output = bear.process_output[0m | |
[1m old_create_arguments = bear.create_arguments[0m | |
[1m [0m | |
[1m def new_create_arguments(filename, file, config_file,[0m | |
[1m *args, **kwargs):[0m | |
[1m arguments = old_create_arguments(filename, file,[0m | |
[1m config_file, *args,[0m | |
[1m **kwargs)[0m | |
[1m console_output.append([0m | |
[1m 'Program arguments:\n' + repr(arguments))[0m | |
[1m [0m | |
[1m return arguments[0m | |
[1m [0m | |
[1m def new_process_output(output, filename=None, file=None,[0m | |
[1m **process_output_kwargs):[0m | |
[1m [0m | |
[1m console_output.append('The program yielded '[0m | |
[1m 'the following output:\n')[0m | |
[1m if isinstance(output, tuple):[0m | |
[1m stdout, stderr = output[0m | |
[1m console_output.append('Stdout:\n' + stdout)[0m | |
[1m console_output.append('Stderr:\n' + stderr)[0m | |
[1m else:[0m | |
[1m console_output.append(output)[0m | |
[1m return old_process_output(output, filename, file,[0m | |
[1m **process_output_kwargs)[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'process_output', wraps=new_process_output))[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'create_arguments', wraps=new_create_arguments))[0m | |
[1m [0m | |
[1m bear_output_generator = bear.execute(*args, **kwargs)[0m | |
[1m [0m | |
[1m assert bear_output_generator is not None, \[0m | |
[1m> 'Bear returned None on execution\n'[0m | |
[1m[31mE AssertionError: Bear returned None on execution[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:62: AssertionError | |
[33mDuring handling of the above exception, another exception occurred:[0m | |
self = <coalib.testing.LocalBearTestHelper.verify_local_bear.<locals>.LocalBearTest testMethod=test_valid_files> | |
[1m def test_valid_files(self):[0m | |
[1m self.assertIsInstance(valid_files, (list, tuple))[0m | |
[1m for file in valid_files:[0m | |
[1m self.check_validity(self.uut,[0m | |
[1m file.splitlines(keepends=True),[0m | |
[1m filename,[0m | |
[1m valid=True,[0m | |
[1m force_linebreaks=force_linebreaks,[0m | |
[1m create_tempfile=create_tempfile,[0m | |
[1m> tempfile_kwargs=tempfile_kwargs)[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:365: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:165: in check_validity | |
[1m settings=settings,[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:261: in check_results | |
[1m settings=settings)[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:99: in get_results | |
[1m **local_bear.get_metadata().filter_parameters(settings)[0m | |
[1m[31m/usr/lib/python3.6/contextlib.py[0m:81: in __enter__ | |
[1m return next(self.gen)[0m | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
bear = <DockerfileLintBear linter object (wrapping 'dockerfile_lint') at 0x7fb094bf6b38> | |
args = ('/tmp/tmp_1qgquzo', ['\n', 'FROM ubuntu\n', 'MAINTAINER coala\n', 'LABEL Name coala-docker\n', 'LABEL Version 0.1\n', '\n', ...]) | |
kwargs = {'dependency_results': None} | |
stack = <contextlib.ExitStack object at 0x7fb094bf6b00> | |
new_create_arguments = <function execute_bear.<locals>.new_create_arguments at 0x7fb094ba5b70> | |
new_process_output = <function execute_bear.<locals>.new_process_output at 0x7fb094ba50d0> | |
bear_output_generator = None | |
msg = ['Running bear DockerfileLintBear...', "Running 'dockerfile_lint --json -f /tmp/tmp_1qgquzo -r /home/bhartiya/coala-be.../tests/configfiles/dockerfile_lint_test_files/default_rule.yaml')", 'The program yielded the following output:\n', ...] | |
[1m @contextmanager[0m | |
[1m def execute_bear(bear, *args, **kwargs):[0m | |
[1m try:[0m | |
[1m console_output = [][0m | |
[1m [0m | |
[1m # For linters provide additional information, such as[0m | |
[1m # stdout and stderr.[0m | |
[1m with ExitStack() as stack:[0m | |
[1m if isinstance(bear, LinterClass):[0m | |
[1m old_process_output = bear.process_output[0m | |
[1m old_create_arguments = bear.create_arguments[0m | |
[1m [0m | |
[1m def new_create_arguments(filename, file, config_file,[0m | |
[1m *args, **kwargs):[0m | |
[1m arguments = old_create_arguments(filename, file,[0m | |
[1m config_file, *args,[0m | |
[1m **kwargs)[0m | |
[1m console_output.append([0m | |
[1m 'Program arguments:\n' + repr(arguments))[0m | |
[1m [0m | |
[1m return arguments[0m | |
[1m [0m | |
[1m def new_process_output(output, filename=None, file=None,[0m | |
[1m **process_output_kwargs):[0m | |
[1m [0m | |
[1m console_output.append('The program yielded '[0m | |
[1m 'the following output:\n')[0m | |
[1m if isinstance(output, tuple):[0m | |
[1m stdout, stderr = output[0m | |
[1m console_output.append('Stdout:\n' + stdout)[0m | |
[1m console_output.append('Stderr:\n' + stderr)[0m | |
[1m else:[0m | |
[1m console_output.append(output)[0m | |
[1m return old_process_output(output, filename, file,[0m | |
[1m **process_output_kwargs)[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'process_output', wraps=new_process_output))[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'create_arguments', wraps=new_create_arguments))[0m | |
[1m [0m | |
[1m bear_output_generator = bear.execute(*args, **kwargs)[0m | |
[1m [0m | |
[1m assert bear_output_generator is not None, \[0m | |
[1m 'Bear returned None on execution\n'[0m | |
[1m yield bear_output_generator[0m | |
[1m except Exception as err:[0m | |
[1m msg = [][0m | |
[1m while not bear.message_queue.empty():[0m | |
[1m msg.append(bear.message_queue.get().message)[0m | |
[1m msg += console_output[0m | |
[1m> raise AssertionError(str(err) + ''.join('\n' + m for m in msg))[0m | |
[1m[31mE AssertionError: Bear returned None on execution[0m | |
[1m[31mE [0m | |
[1m[31mE Running bear DockerfileLintBear...[0m | |
[1m[31mE Running 'dockerfile_lint --json -f /tmp/tmp_1qgquzo -r /home/bhartiya/coala-bears/tests/configfiles/dockerfile_lint_test_files/default_rule.yaml'[0m | |
[1m[31mE Bear DockerfileLintBear failed to run on file /tmp/tmp_1qgquzo. Take a look at debug messages (`-V`) for further information.[0m | |
[1m[31mE The bear DockerfileLintBear raised an exception. If you are the author of this bear, please make sure to catch all exceptions. If not and this error annoys you, you might want to get in contact with the author of this bear.[0m | |
[1m[31mE [0m | |
[1m[31mE Traceback information is provided below:[0m | |
[1m[31mE [0m | |
[1m[31mE Traceback (most recent call last):[0m | |
[1m[31mE File "/home/bhartiya/venv/lib/python3.6/site-packages/coalib/bears/Bear.py", line 308, in execute[0m | |
[1m[31mE return [] if result is None else list(result)[0m | |
[1m[31mE File "/home/bhartiya/coala-bears/bears/configfiles/DockerfileLintBear.py", line 44, in process_output[0m | |
[1m[31mE output = json.loads(output)[0m | |
[1m[31mE File "/usr/lib/python3.6/json/__init__.py", line 354, in loads[0m | |
[1m[31mE return _default_decoder.decode(s)[0m | |
[1m[31mE File "/usr/lib/python3.6/json/decoder.py", line 339, in decode[0m | |
[1m[31mE obj, end = self.raw_decode(s, idx=_w(s, 0).end())[0m | |
[1m[31mE File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode[0m | |
[1m[31mE raise JSONDecodeError("Expecting value", s, err.value) from None[0m | |
[1m[31mE json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)[0m | |
[1m[31mE Program arguments:[0m | |
[1m[31mE ('--json', '-f', '/tmp/tmp_1qgquzo', '-r', '/home/bhartiya/coala-bears/tests/configfiles/dockerfile_lint_test_files/default_rule.yaml')[0m | |
[1m[31mE The program yielded the following output:[0m | |
[1m[31mE [0m | |
[1m[31mE [0m | |
[1m[31mE # Analyzing /tmp/tmp_1qgquzo[0m | |
[1m[31mE [0m | |
[1m[31mE {[0m | |
[1m[31mE "error": {[0m | |
[1m[31mE "count": 0,[0m | |
[1m[31mE "data": [][0m | |
[1m[31mE },[0m | |
[1m[31mE "warn": {[0m | |
[1m[31mE "count": 0,[0m | |
[1m[31mE "data": [][0m | |
[1m[31mE },[0m | |
[1m[31mE "info": {[0m | |
[1m[31mE "count": 0,[0m | |
[1m[31mE "data": [][0m | |
[1m[31mE },[0m | |
[1m[31mE "summary": [][0m | |
[1m[31mE }[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:69: AssertionError | |
[31m[1m_____________ DockerfileLintBearCustomRuleTest.test_invalid_files ______________[0m | |
bear = <DockerfileLintBear linter object (wrapping 'dockerfile_lint') at 0x7fb094c30f28> | |
args = ('/tmp/tmpeeq2tzte', ['\n', 'FROM kali\n', 'LABEL Name\n', 'LABEL Version\n']) | |
kwargs = {'dependency_results': None} | |
stack = <contextlib.ExitStack object at 0x7fb094c30cf8> | |
new_create_arguments = <function execute_bear.<locals>.new_create_arguments at 0x7fb094b7ff28> | |
new_process_output = <function execute_bear.<locals>.new_process_output at 0x7fb094b7fea0> | |
bear_output_generator = None | |
msg = ['Running bear DockerfileLintBear...', "Running 'dockerfile_lint --json -f /tmp/tmpeeq2tzte -r /home/bhartiya/coala-be...s/tests/configfiles/dockerfile_lint_test_files/sample_rule.yaml')", 'The program yielded the following output:\n', ...] | |
[1m @contextmanager[0m | |
[1m def execute_bear(bear, *args, **kwargs):[0m | |
[1m try:[0m | |
[1m console_output = [][0m | |
[1m [0m | |
[1m # For linters provide additional information, such as[0m | |
[1m # stdout and stderr.[0m | |
[1m with ExitStack() as stack:[0m | |
[1m if isinstance(bear, LinterClass):[0m | |
[1m old_process_output = bear.process_output[0m | |
[1m old_create_arguments = bear.create_arguments[0m | |
[1m [0m | |
[1m def new_create_arguments(filename, file, config_file,[0m | |
[1m *args, **kwargs):[0m | |
[1m arguments = old_create_arguments(filename, file,[0m | |
[1m config_file, *args,[0m | |
[1m **kwargs)[0m | |
[1m console_output.append([0m | |
[1m 'Program arguments:\n' + repr(arguments))[0m | |
[1m [0m | |
[1m return arguments[0m | |
[1m [0m | |
[1m def new_process_output(output, filename=None, file=None,[0m | |
[1m **process_output_kwargs):[0m | |
[1m [0m | |
[1m console_output.append('The program yielded '[0m | |
[1m 'the following output:\n')[0m | |
[1m if isinstance(output, tuple):[0m | |
[1m stdout, stderr = output[0m | |
[1m console_output.append('Stdout:\n' + stdout)[0m | |
[1m console_output.append('Stderr:\n' + stderr)[0m | |
[1m else:[0m | |
[1m console_output.append(output)[0m | |
[1m return old_process_output(output, filename, file,[0m | |
[1m **process_output_kwargs)[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'process_output', wraps=new_process_output))[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'create_arguments', wraps=new_create_arguments))[0m | |
[1m [0m | |
[1m bear_output_generator = bear.execute(*args, **kwargs)[0m | |
[1m [0m | |
[1m assert bear_output_generator is not None, \[0m | |
[1m> 'Bear returned None on execution\n'[0m | |
[1m[31mE AssertionError: Bear returned None on execution[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:62: AssertionError | |
[33mDuring handling of the above exception, another exception occurred:[0m | |
self = <coalib.testing.LocalBearTestHelper.verify_local_bear.<locals>.LocalBearTest testMethod=test_invalid_files> | |
[1m def test_invalid_files(self):[0m | |
[1m self.assertIsInstance(invalid_files, (list, tuple))[0m | |
[1m for file in invalid_files:[0m | |
[1m self.check_validity(self.uut,[0m | |
[1m file.splitlines(keepends=True),[0m | |
[1m filename,[0m | |
[1m valid=False,[0m | |
[1m force_linebreaks=force_linebreaks,[0m | |
[1m create_tempfile=create_tempfile,[0m | |
[1m> tempfile_kwargs=tempfile_kwargs)[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:376: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:173: in check_validity | |
[1m settings=settings,[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:209: in check_invalidity | |
[1m settings=settings,[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:99: in get_results | |
[1m **local_bear.get_metadata().filter_parameters(settings)[0m | |
[1m[31m/usr/lib/python3.6/contextlib.py[0m:81: in __enter__ | |
[1m return next(self.gen)[0m | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
bear = <DockerfileLintBear linter object (wrapping 'dockerfile_lint') at 0x7fb094c30f28> | |
args = ('/tmp/tmpeeq2tzte', ['\n', 'FROM kali\n', 'LABEL Name\n', 'LABEL Version\n']) | |
kwargs = {'dependency_results': None} | |
stack = <contextlib.ExitStack object at 0x7fb094c30cf8> | |
new_create_arguments = <function execute_bear.<locals>.new_create_arguments at 0x7fb094b7ff28> | |
new_process_output = <function execute_bear.<locals>.new_process_output at 0x7fb094b7fea0> | |
bear_output_generator = None | |
msg = ['Running bear DockerfileLintBear...', "Running 'dockerfile_lint --json -f /tmp/tmpeeq2tzte -r /home/bhartiya/coala-be...s/tests/configfiles/dockerfile_lint_test_files/sample_rule.yaml')", 'The program yielded the following output:\n', ...] | |
[1m @contextmanager[0m | |
[1m def execute_bear(bear, *args, **kwargs):[0m | |
[1m try:[0m | |
[1m console_output = [][0m | |
[1m [0m | |
[1m # For linters provide additional information, such as[0m | |
[1m # stdout and stderr.[0m | |
[1m with ExitStack() as stack:[0m | |
[1m if isinstance(bear, LinterClass):[0m | |
[1m old_process_output = bear.process_output[0m | |
[1m old_create_arguments = bear.create_arguments[0m | |
[1m [0m | |
[1m def new_create_arguments(filename, file, config_file,[0m | |
[1m *args, **kwargs):[0m | |
[1m arguments = old_create_arguments(filename, file,[0m | |
[1m config_file, *args,[0m | |
[1m **kwargs)[0m | |
[1m console_output.append([0m | |
[1m 'Program arguments:\n' + repr(arguments))[0m | |
[1m [0m | |
[1m return arguments[0m | |
[1m [0m | |
[1m def new_process_output(output, filename=None, file=None,[0m | |
[1m **process_output_kwargs):[0m | |
[1m [0m | |
[1m console_output.append('The program yielded '[0m | |
[1m 'the following output:\n')[0m | |
[1m if isinstance(output, tuple):[0m | |
[1m stdout, stderr = output[0m | |
[1m console_output.append('Stdout:\n' + stdout)[0m | |
[1m console_output.append('Stderr:\n' + stderr)[0m | |
[1m else:[0m | |
[1m console_output.append(output)[0m | |
[1m return old_process_output(output, filename, file,[0m | |
[1m **process_output_kwargs)[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'process_output', wraps=new_process_output))[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'create_arguments', wraps=new_create_arguments))[0m | |
[1m [0m | |
[1m bear_output_generator = bear.execute(*args, **kwargs)[0m | |
[1m [0m | |
[1m assert bear_output_generator is not None, \[0m | |
[1m 'Bear returned None on execution\n'[0m | |
[1m yield bear_output_generator[0m | |
[1m except Exception as err:[0m | |
[1m msg = [][0m | |
[1m while not bear.message_queue.empty():[0m | |
[1m msg.append(bear.message_queue.get().message)[0m | |
[1m msg += console_output[0m | |
[1m> raise AssertionError(str(err) + ''.join('\n' + m for m in msg))[0m | |
[1m[31mE AssertionError: Bear returned None on execution[0m | |
[1m[31mE [0m | |
[1m[31mE Running bear DockerfileLintBear...[0m | |
[1m[31mE Running 'dockerfile_lint --json -f /tmp/tmpeeq2tzte -r /home/bhartiya/coala-bears/tests/configfiles/dockerfile_lint_test_files/sample_rule.yaml'[0m | |
[1m[31mE Bear DockerfileLintBear failed to run on file /tmp/tmpeeq2tzte. Take a look at debug messages (`-V`) for further information.[0m | |
[1m[31mE The bear DockerfileLintBear raised an exception. If you are the author of this bear, please make sure to catch all exceptions. If not and this error annoys you, you might want to get in contact with the author of this bear.[0m | |
[1m[31mE [0m | |
[1m[31mE Traceback information is provided below:[0m | |
[1m[31mE [0m | |
[1m[31mE Traceback (most recent call last):[0m | |
[1m[31mE File "/home/bhartiya/venv/lib/python3.6/site-packages/coalib/bears/Bear.py", line 308, in execute[0m | |
[1m[31mE return [] if result is None else list(result)[0m | |
[1m[31mE File "/home/bhartiya/coala-bears/bears/configfiles/DockerfileLintBear.py", line 44, in process_output[0m | |
[1m[31mE output = json.loads(output)[0m | |
[1m[31mE File "/usr/lib/python3.6/json/__init__.py", line 354, in loads[0m | |
[1m[31mE return _default_decoder.decode(s)[0m | |
[1m[31mE File "/usr/lib/python3.6/json/decoder.py", line 339, in decode[0m | |
[1m[31mE obj, end = self.raw_decode(s, idx=_w(s, 0).end())[0m | |
[1m[31mE File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode[0m | |
[1m[31mE raise JSONDecodeError("Expecting value", s, err.value) from None[0m | |
[1m[31mE json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)[0m | |
[1m[31mE Program arguments:[0m | |
[1m[31mE ('--json', '-f', '/tmp/tmpeeq2tzte', '-r', '/home/bhartiya/coala-bears/tests/configfiles/dockerfile_lint_test_files/sample_rule.yaml')[0m | |
[1m[31mE The program yielded the following output:[0m | |
[1m[31mE [0m | |
[1m[31mE [0m | |
[1m[31mE # Analyzing /tmp/tmpeeq2tzte[0m | |
[1m[31mE [0m | |
[1m[31mE {[0m | |
[1m[31mE "error": {[0m | |
[1m[31mE "count": 2,[0m | |
[1m[31mE "data": [[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "LABEL must have two arguments, got Name",[0m | |
[1m[31mE "line": 3,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "LABEL Name",[0m | |
[1m[31mE "reference_url": "https://docs.docker.com/engine/reference/builder/"[0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "message": "LABEL must have two arguments, got Version",[0m | |
[1m[31mE "line": 4,[0m | |
[1m[31mE "level": "error",[0m | |
[1m[31mE "lineContent": "LABEL Version",[0m | |
[1m[31mE "reference_url": "https://docs.docker.com/engine/reference/builder/"[0m | |
[1m[31mE }[0m | |
[1m[31mE ][0m | |
[1m[31mE },[0m | |
[1m[31mE "warn": {[0m | |
[1m[31mE "count": 0,[0m | |
[1m[31mE "data": [][0m | |
[1m[31mE },[0m | |
[1m[31mE "info": {[0m | |
[1m[31mE "count": 2,[0m | |
[1m[31mE "data": [[0m | |
[1m[31mE {[0m | |
[1m[31mE "instruction": "MAINTAINER",[0m | |
[1m[31mE "count": 1,[0m | |
[1m[31mE "level": "info",[0m | |
[1m[31mE "message": "Maintainer is not defined",[0m | |
[1m[31mE "description": "The MAINTAINER line is useful for identifying the author in the form of MAINTAINER Joe Smith <[email protected]>",[0m | |
[1m[31mE "reference_url": [[0m | |
[1m[31mE "https://docs.docker.com/engine/reference/builder/",[0m | |
[1m[31mE "#maintainer"[0m | |
[1m[31mE ][0m | |
[1m[31mE },[0m | |
[1m[31mE {[0m | |
[1m[31mE "instruction": "EXPOSE",[0m | |
[1m[31mE "count": 1,[0m | |
[1m[31mE "level": "info",[0m | |
[1m[31mE "message": "There is no 'EXPOSE' instruction",[0m | |
[1m[31mE "description": "Without exposed ports how will the service of the container be accessed?",[0m | |
[1m[31mE "reference_url": [[0m | |
[1m[31mE "https://docs.docker.com/engine/reference/builder/",[0m | |
[1m[31mE "#expose"[0m | |
[1m[31mE ][0m | |
[1m[31mE }[0m | |
[1m[31mE ][0m | |
[1m[31mE },[0m | |
[1m[31mE "summary": [][0m | |
[1m[31mE }[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:69: AssertionError | |
[31m[1m______________ DockerfileLintBearCustomRuleTest.test_valid_files _______________[0m | |
bear = <DockerfileLintBear linter object (wrapping 'dockerfile_lint') at 0x7fb094c45a58> | |
args = ('/tmp/tmpdyb77ln2', ['\n', 'FROM kali\n', 'MAINTAINER coala\n', 'LABEL Name coala-docker\n', 'LABEL Version 0.1\n', 'EXPOSE 5432\n']) | |
kwargs = {'dependency_results': None} | |
stack = <contextlib.ExitStack object at 0x7fb094c45668> | |
new_create_arguments = <function execute_bear.<locals>.new_create_arguments at 0x7fb094b346a8> | |
new_process_output = <function execute_bear.<locals>.new_process_output at 0x7fb094b347b8> | |
bear_output_generator = None | |
msg = ['Running bear DockerfileLintBear...', "Running 'dockerfile_lint --json -f /tmp/tmpdyb77ln2 -r /home/bhartiya/coala-be...s/tests/configfiles/dockerfile_lint_test_files/sample_rule.yaml')", 'The program yielded the following output:\n', ...] | |
[1m @contextmanager[0m | |
[1m def execute_bear(bear, *args, **kwargs):[0m | |
[1m try:[0m | |
[1m console_output = [][0m | |
[1m [0m | |
[1m # For linters provide additional information, such as[0m | |
[1m # stdout and stderr.[0m | |
[1m with ExitStack() as stack:[0m | |
[1m if isinstance(bear, LinterClass):[0m | |
[1m old_process_output = bear.process_output[0m | |
[1m old_create_arguments = bear.create_arguments[0m | |
[1m [0m | |
[1m def new_create_arguments(filename, file, config_file,[0m | |
[1m *args, **kwargs):[0m | |
[1m arguments = old_create_arguments(filename, file,[0m | |
[1m config_file, *args,[0m | |
[1m **kwargs)[0m | |
[1m console_output.append([0m | |
[1m 'Program arguments:\n' + repr(arguments))[0m | |
[1m [0m | |
[1m return arguments[0m | |
[1m [0m | |
[1m def new_process_output(output, filename=None, file=None,[0m | |
[1m **process_output_kwargs):[0m | |
[1m [0m | |
[1m console_output.append('The program yielded '[0m | |
[1m 'the following output:\n')[0m | |
[1m if isinstance(output, tuple):[0m | |
[1m stdout, stderr = output[0m | |
[1m console_output.append('Stdout:\n' + stdout)[0m | |
[1m console_output.append('Stderr:\n' + stderr)[0m | |
[1m else:[0m | |
[1m console_output.append(output)[0m | |
[1m return old_process_output(output, filename, file,[0m | |
[1m **process_output_kwargs)[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'process_output', wraps=new_process_output))[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'create_arguments', wraps=new_create_arguments))[0m | |
[1m [0m | |
[1m bear_output_generator = bear.execute(*args, **kwargs)[0m | |
[1m [0m | |
[1m assert bear_output_generator is not None, \[0m | |
[1m> 'Bear returned None on execution\n'[0m | |
[1m[31mE AssertionError: Bear returned None on execution[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:62: AssertionError | |
[33mDuring handling of the above exception, another exception occurred:[0m | |
self = <coalib.testing.LocalBearTestHelper.verify_local_bear.<locals>.LocalBearTest testMethod=test_valid_files> | |
[1m def test_valid_files(self):[0m | |
[1m self.assertIsInstance(valid_files, (list, tuple))[0m | |
[1m for file in valid_files:[0m | |
[1m self.check_validity(self.uut,[0m | |
[1m file.splitlines(keepends=True),[0m | |
[1m filename,[0m | |
[1m valid=True,[0m | |
[1m force_linebreaks=force_linebreaks,[0m | |
[1m create_tempfile=create_tempfile,[0m | |
[1m> tempfile_kwargs=tempfile_kwargs)[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:365: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:165: in check_validity | |
[1m settings=settings,[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:261: in check_results | |
[1m settings=settings)[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:99: in get_results | |
[1m **local_bear.get_metadata().filter_parameters(settings)[0m | |
[1m[31m/usr/lib/python3.6/contextlib.py[0m:81: in __enter__ | |
[1m return next(self.gen)[0m | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
bear = <DockerfileLintBear linter object (wrapping 'dockerfile_lint') at 0x7fb094c45a58> | |
args = ('/tmp/tmpdyb77ln2', ['\n', 'FROM kali\n', 'MAINTAINER coala\n', 'LABEL Name coala-docker\n', 'LABEL Version 0.1\n', 'EXPOSE 5432\n']) | |
kwargs = {'dependency_results': None} | |
stack = <contextlib.ExitStack object at 0x7fb094c45668> | |
new_create_arguments = <function execute_bear.<locals>.new_create_arguments at 0x7fb094b346a8> | |
new_process_output = <function execute_bear.<locals>.new_process_output at 0x7fb094b347b8> | |
bear_output_generator = None | |
msg = ['Running bear DockerfileLintBear...', "Running 'dockerfile_lint --json -f /tmp/tmpdyb77ln2 -r /home/bhartiya/coala-be...s/tests/configfiles/dockerfile_lint_test_files/sample_rule.yaml')", 'The program yielded the following output:\n', ...] | |
[1m @contextmanager[0m | |
[1m def execute_bear(bear, *args, **kwargs):[0m | |
[1m try:[0m | |
[1m console_output = [][0m | |
[1m [0m | |
[1m # For linters provide additional information, such as[0m | |
[1m # stdout and stderr.[0m | |
[1m with ExitStack() as stack:[0m | |
[1m if isinstance(bear, LinterClass):[0m | |
[1m old_process_output = bear.process_output[0m | |
[1m old_create_arguments = bear.create_arguments[0m | |
[1m [0m | |
[1m def new_create_arguments(filename, file, config_file,[0m | |
[1m *args, **kwargs):[0m | |
[1m arguments = old_create_arguments(filename, file,[0m | |
[1m config_file, *args,[0m | |
[1m **kwargs)[0m | |
[1m console_output.append([0m | |
[1m 'Program arguments:\n' + repr(arguments))[0m | |
[1m [0m | |
[1m return arguments[0m | |
[1m [0m | |
[1m def new_process_output(output, filename=None, file=None,[0m | |
[1m **process_output_kwargs):[0m | |
[1m [0m | |
[1m console_output.append('The program yielded '[0m | |
[1m 'the following output:\n')[0m | |
[1m if isinstance(output, tuple):[0m | |
[1m stdout, stderr = output[0m | |
[1m console_output.append('Stdout:\n' + stdout)[0m | |
[1m console_output.append('Stderr:\n' + stderr)[0m | |
[1m else:[0m | |
[1m console_output.append(output)[0m | |
[1m return old_process_output(output, filename, file,[0m | |
[1m **process_output_kwargs)[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'process_output', wraps=new_process_output))[0m | |
[1m [0m | |
[1m stack.enter_context(patch.object([0m | |
[1m bear, 'create_arguments', wraps=new_create_arguments))[0m | |
[1m [0m | |
[1m bear_output_generator = bear.execute(*args, **kwargs)[0m | |
[1m [0m | |
[1m assert bear_output_generator is not None, \[0m | |
[1m 'Bear returned None on execution\n'[0m | |
[1m yield bear_output_generator[0m | |
[1m except Exception as err:[0m | |
[1m msg = [][0m | |
[1m while not bear.message_queue.empty():[0m | |
[1m msg.append(bear.message_queue.get().message)[0m | |
[1m msg += console_output[0m | |
[1m> raise AssertionError(str(err) + ''.join('\n' + m for m in msg))[0m | |
[1m[31mE AssertionError: Bear returned None on execution[0m | |
[1m[31mE [0m | |
[1m[31mE Running bear DockerfileLintBear...[0m | |
[1m[31mE Running 'dockerfile_lint --json -f /tmp/tmpdyb77ln2 -r /home/bhartiya/coala-bears/tests/configfiles/dockerfile_lint_test_files/sample_rule.yaml'[0m | |
[1m[31mE Bear DockerfileLintBear failed to run on file /tmp/tmpdyb77ln2. Take a look at debug messages (`-V`) for further information.[0m | |
[1m[31mE The bear DockerfileLintBear raised an exception. If you are the author of this bear, please make sure to catch all exceptions. If not and this error annoys you, you might want to get in contact with the author of this bear.[0m | |
[1m[31mE [0m | |
[1m[31mE Traceback information is provided below:[0m | |
[1m[31mE [0m | |
[1m[31mE Traceback (most recent call last):[0m | |
[1m[31mE File "/home/bhartiya/venv/lib/python3.6/site-packages/coalib/bears/Bear.py", line 308, in execute[0m | |
[1m[31mE return [] if result is None else list(result)[0m | |
[1m[31mE File "/home/bhartiya/coala-bears/bears/configfiles/DockerfileLintBear.py", line 44, in process_output[0m | |
[1m[31mE output = json.loads(output)[0m | |
[1m[31mE File "/usr/lib/python3.6/json/__init__.py", line 354, in loads[0m | |
[1m[31mE return _default_decoder.decode(s)[0m | |
[1m[31mE File "/usr/lib/python3.6/json/decoder.py", line 339, in decode[0m | |
[1m[31mE obj, end = self.raw_decode(s, idx=_w(s, 0).end())[0m | |
[1m[31mE File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode[0m | |
[1m[31mE raise JSONDecodeError("Expecting value", s, err.value) from None[0m | |
[1m[31mE json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)[0m | |
[1m[31mE Program arguments:[0m | |
[1m[31mE ('--json', '-f', '/tmp/tmpdyb77ln2', '-r', '/home/bhartiya/coala-bears/tests/configfiles/dockerfile_lint_test_files/sample_rule.yaml')[0m | |
[1m[31mE The program yielded the following output:[0m | |
[1m[31mE [0m | |
[1m[31mE [0m | |
[1m[31mE # Analyzing /tmp/tmpdyb77ln2[0m | |
[1m[31mE [0m | |
[1m[31mE {[0m | |
[1m[31mE "error": {[0m | |
[1m[31mE "count": 0,[0m | |
[1m[31mE "data": [][0m | |
[1m[31mE },[0m | |
[1m[31mE "warn": {[0m | |
[1m[31mE "count": 0,[0m | |
[1m[31mE "data": [][0m | |
[1m[31mE },[0m | |
[1m[31mE "info": {[0m | |
[1m[31mE "count": 0,[0m | |
[1m[31mE "data": [][0m | |
[1m[31mE },[0m | |
[1m[31mE "summary": [][0m | |
[1m[31mE }[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:69: AssertionError | |
[31m[1m_______________________ GofmtBearTest.test_with_simplify _______________________[0m | |
self = <tests.go.GofmtBearTest.GofmtBearTest testMethod=test_with_simplify> | |
[1m def setUp(self):[0m | |
[1m self.section = Section('')[0m | |
[1m> self.uut = GofmtBear(self.section, Queue())[0m | |
[1m[31mtests/go/GofmtBearTest.py[0m:51: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
[1m[31m../venv/lib/python3.6/site-packages/coala_utils/decorators.py[0m:430: in decorated | |
[1m return function(*args, **kwargs)[0m | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <GofmtBear linter object (wrapping 'gofmt') at 0x7fb09423ef28> | |
section = <Section object(aspects=None, contents=OrderedDict(), defaults=None, language=None, name='') at 0x7fb09423e6a0> | |
message_queue = <queue.Queue object at 0x7fb09423e198>, timeout = 0 | |
[1m @enforce_signature[0m | |
[1m def __init__(self,[0m | |
[1m section: Section,[0m | |
[1m message_queue,[0m | |
[1m timeout=0):[0m | |
[1m """[0m | |
[1m Constructs a new bear.[0m | |
[1m [0m | |
[1m :param section: The section object where bear settings are[0m | |
[1m contained.[0m | |
[1m :param message_queue: The queue object for messages. Can be ``None``.[0m | |
[1m :param timeout: The time the bear is allowed to run. To set no[0m | |
[1m time limit, use 0.[0m | |
[1m :raises TypeError: Raised when ``message_queue`` is no queue.[0m | |
[1m :raises RuntimeError: Raised when bear requirements are not fulfilled.[0m | |
[1m """[0m | |
[1m Printer.__init__(self)[0m | |
[1m [0m | |
[1m if message_queue is not None and not hasattr(message_queue, 'put'):[0m | |
[1m raise TypeError('message_queue has to be a Queue or None.')[0m | |
[1m [0m | |
[1m self.section = section[0m | |
[1m self.message_queue = message_queue[0m | |
[1m self.timeout = timeout[0m | |
[1m [0m | |
[1m self.setup_dependencies()[0m | |
[1m cp = type(self).check_prerequisites()[0m | |
[1m if cp is not True:[0m | |
[1m error_string = ('The bear ' + self.name +[0m | |
[1m ' does not fulfill all requirements.')[0m | |
[1m if cp is not False:[0m | |
[1m error_string += ' ' + cp[0m | |
[1m [0m | |
[1m self.err(error_string)[0m | |
[1m> raise RuntimeError(error_string)[0m | |
[1m[31mE RuntimeError: The bear GofmtBear does not fulfill all requirements. 'gofmt' is not installed.[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/bears/Bear.py[0m:264: RuntimeError | |
[31m[1m_____________________ GofmtBearTest.test_without_simplify ______________________[0m | |
self = <tests.go.GofmtBearTest.GofmtBearTest testMethod=test_without_simplify> | |
[1m def setUp(self):[0m | |
[1m self.section = Section('')[0m | |
[1m> self.uut = GofmtBear(self.section, Queue())[0m | |
[1m[31mtests/go/GofmtBearTest.py[0m:51: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
[1m[31m../venv/lib/python3.6/site-packages/coala_utils/decorators.py[0m:430: in decorated | |
[1m return function(*args, **kwargs)[0m | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <GofmtBear linter object (wrapping 'gofmt') at 0x7fb09424e7f0> | |
section = <Section object(aspects=None, contents=OrderedDict(), defaults=None, language=None, name='') at 0x7fb09424e710> | |
message_queue = <queue.Queue object at 0x7fb09424e978>, timeout = 0 | |
[1m @enforce_signature[0m | |
[1m def __init__(self,[0m | |
[1m section: Section,[0m | |
[1m message_queue,[0m | |
[1m timeout=0):[0m | |
[1m """[0m | |
[1m Constructs a new bear.[0m | |
[1m [0m | |
[1m :param section: The section object where bear settings are[0m | |
[1m contained.[0m | |
[1m :param message_queue: The queue object for messages. Can be ``None``.[0m | |
[1m :param timeout: The time the bear is allowed to run. To set no[0m | |
[1m time limit, use 0.[0m | |
[1m :raises TypeError: Raised when ``message_queue`` is no queue.[0m | |
[1m :raises RuntimeError: Raised when bear requirements are not fulfilled.[0m | |
[1m """[0m | |
[1m Printer.__init__(self)[0m | |
[1m [0m | |
[1m if message_queue is not None and not hasattr(message_queue, 'put'):[0m | |
[1m raise TypeError('message_queue has to be a Queue or None.')[0m | |
[1m [0m | |
[1m self.section = section[0m | |
[1m self.message_queue = message_queue[0m | |
[1m self.timeout = timeout[0m | |
[1m [0m | |
[1m self.setup_dependencies()[0m | |
[1m cp = type(self).check_prerequisites()[0m | |
[1m if cp is not True:[0m | |
[1m error_string = ('The bear ' + self.name +[0m | |
[1m ' does not fulfill all requirements.')[0m | |
[1m if cp is not False:[0m | |
[1m error_string += ' ' + cp[0m | |
[1m [0m | |
[1m self.err(error_string)[0m | |
[1m> raise RuntimeError(error_string)[0m | |
[1m[31mE RuntimeError: The bear GofmtBear does not fulfill all requirements. 'gofmt' is not installed.[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/bears/Bear.py[0m:264: RuntimeError | |
[31m[1m_______________________ AlexBearTest.test_invalid_files ________________________[0m | |
self = <coalib.testing.LocalBearTestHelper.verify_local_bear.<locals>.LocalBearTest testMethod=test_invalid_files> | |
[1m def test_invalid_files(self):[0m | |
[1m self.assertIsInstance(invalid_files, (list, tuple))[0m | |
[1m for file in invalid_files:[0m | |
[1m self.check_validity(self.uut,[0m | |
[1m file.splitlines(keepends=True),[0m | |
[1m filename,[0m | |
[1m valid=False,[0m | |
[1m force_linebreaks=force_linebreaks,[0m | |
[1m create_tempfile=create_tempfile,[0m | |
[1m> tempfile_kwargs=tempfile_kwargs)[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:376: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:173: in check_validity | |
[1m settings=settings,[0m | |
[1m[31m../venv/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py[0m:213: in check_invalidity | |
[1m self.assertNotEqual(len(bear_output), 0, msg=msg)[0m | |
[1m[31mE AssertionError: 0 == 0 : The local bear 'AlexBear' yields no result although it should.[0m | |
[33m=============================== warnings summary ===============================[0m | |
tests/natural_language/LanguageToolBearTest.py::SkipTest | |
cannot collect test class 'SkipTest' because it has a __init__ constructor | |
tests/python/PyromaBearTest.py::PyromaBearTest::test_minimal | |
/home/bhartiya/venv/lib/python3.6/site-packages/setuptools/dist.py:364: UserWarning: The version specified ('0.0foo') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. | |
"details." % self.metadata.version | |
-- Docs: http://doc.pytest.org/en/latest/warnings.html | |
[31m[1m======== 9 failed, 456 passed, 333 skipped, 2 warnings in 92.72 seconds ========[0m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment