saltstack/salt

View on GitHub
fix doc, module.run example missing module name #12475
A0f47d2aef1769c60d41d0843388e8b3c authored 48e3a92b
complete00:04:55
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
WARNING: 'languages' has been deprecated, and will not be used
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
W, [2019-10-21T23:38:28.865091 #1]  WARN -- : Skipping doc/_themes/saltstack/static/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js due to CC::Parser::Client::HTTPError
W, [2019-10-21T23:38:28.865173 #1]  WARN -- : Response status: 422
W, [2019-10-21T23:38:29.007792 #1]  WARN -- : Skipping doc/_themes/saltstack/static/js/vendor/bootstrap.min.js due to CC::Parser::Client::HTTPError
W, [2019-10-21T23:38:29.007866 #1]  WARN -- : Response status: 422
W, [2019-10-21T23:38:29.015185 #1]  WARN -- : Skipping doc/_themes/saltstack2/static/js/core.min.js due to CC::Parser::Client::HTTPError
W, [2019-10-21T23:38:29.015281 #1]  WARN -- : Response status: 422
W, [2019-10-21T23:38:29.017707 #1]  WARN -- : Skipping doc/_themes/saltstack2/static/js/respond.min.js due to CC::Parser::Client::HTTPError
W, [2019-10-21T23:38:29.017796 #1]  WARN -- : Response status: 422
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
/home/app/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/concurrent-ruby-1.0.0/lib/concurrent/atomic/mutex_atomic_fixnum.rb:80: warning: constant ::Fixnum is deprecated
W, [2019-10-21T23:41:07.299755 #1]  WARN -- : Skipping ./doc/_themes/saltstack/static/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js due to CC::Parser::Client::HTTPError
W, [2019-10-21T23:41:07.299844 #1]  WARN -- : Response status: 422
W, [2019-10-21T23:41:08.488917 #1]  WARN -- : Skipping ./doc/_themes/saltstack/static/js/vendor/bootstrap.min.js due to CC::Parser::Client::HTTPError
W, [2019-10-21T23:41:08.588929 #1]  WARN -- : Response status: 422
W, [2019-10-21T23:41:09.292977 #1]  WARN -- : Skipping ./doc/_themes/saltstack2/static/js/core.min.js due to CC::Parser::Client::HTTPError
W, [2019-10-21T23:41:09.392958 #1]  WARN -- : Response status: 422
W, [2019-10-21T23:41:09.593291 #1]  WARN -- : Skipping ./doc/_themes/saltstack2/static/js/respond.min.js due to CC::Parser::Client::HTTPError
W, [2019-10-21T23:41:09.693328 #1]  WARN -- : Response status: 422
/home/app/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/concurrent-ruby-1.0.0/lib/concurrent/atomic/mutex_atomic_fixnum.rb:80: warning: constant ::Fixnum is deprecated
I, [2019-10-21T23:41:10.168477 #1]  INFO -- : Skipping file ./templates/test_state/tests/unit/states/test_{{module_name}}.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 47, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    import salt.states.{{module_name}} as {{module_name}}
                       ^
SyntaxError: invalid syntax

/usr/src/app/lib/cc/engine/analyzers/command_line_runner.rb:26:in `block in run'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:93:in `block in timeout'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `block in catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:108:in `timeout'
/usr/src/app/lib/cc/engine/analyzers/command_line_runner.rb:18:in `run'
/usr/src/app/lib/cc/engine/analyzers/python/parser.rb:23:in `parse'
/usr/src/app/lib/cc/engine/analyzers/python/main.rb:26:in `process_file'
/usr/src/app/lib/cc/engine/analyzers/analyzer_base.rb:41:in `run'
/usr/src/app/lib/cc/engine/analyzers/reporter.rb:76:in `block in process_files'
/usr/src/app/lib/cc/engine/analyzers/file_thread_pool.rb:24:in `block (2 levels) in run'
I, [2019-10-21T23:41:10.195399 #1]  INFO -- : Skipping file ./templates/state/salt/states/{{module_name}}.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 47, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 27
    {% if depending_libraries %}
     ^
SyntaxError: invalid syntax

/usr/src/app/lib/cc/engine/analyzers/command_line_runner.rb:26:in `block in run'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:93:in `block in timeout'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `block in catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:108:in `timeout'
/usr/src/app/lib/cc/engine/analyzers/command_line_runner.rb:18:in `run'
/usr/src/app/lib/cc/engine/analyzers/python/parser.rb:23:in `parse'
/usr/src/app/lib/cc/engine/analyzers/python/main.rb:26:in `process_file'
/usr/src/app/lib/cc/engine/analyzers/analyzer_base.rb:41:in `run'
/usr/src/app/lib/cc/engine/analyzers/reporter.rb:76:in `block in process_files'
/usr/src/app/lib/cc/engine/analyzers/file_thread_pool.rb:24:in `block (2 levels) in run'
I, [2019-10-21T23:41:10.199264 #1]  INFO -- : Skipping file ./templates/test_module/tests/unit/modules/test_{{module_name}}.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 47, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    import salt.modules.{{module_name}} as {{module_name}}
                        ^
SyntaxError: invalid syntax

/usr/src/app/lib/cc/engine/analyzers/command_line_runner.rb:26:in `block in run'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:93:in `block in timeout'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `block in catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:108:in `timeout'
/usr/src/app/lib/cc/engine/analyzers/command_line_runner.rb:18:in `run'
/usr/src/app/lib/cc/engine/analyzers/python/parser.rb:23:in `parse'
/usr/src/app/lib/cc/engine/analyzers/python/main.rb:26:in `process_file'
/usr/src/app/lib/cc/engine/analyzers/analyzer_base.rb:41:in `run'
/usr/src/app/lib/cc/engine/analyzers/reporter.rb:76:in `block in process_files'
/usr/src/app/lib/cc/engine/analyzers/file_thread_pool.rb:24:in `block (2 levels) in run'
I, [2019-10-21T23:41:10.213245 #1]  INFO -- : Skipping file ./templates/module/salt/modules/{{module_name}}.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 47, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 26
    {% if depending_libraries %}
     ^
SyntaxError: invalid syntax

/usr/src/app/lib/cc/engine/analyzers/command_line_runner.rb:26:in `block in run'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:93:in `block in timeout'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `block in catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:108:in `timeout'
/usr/src/app/lib/cc/engine/analyzers/command_line_runner.rb:18:in `run'
/usr/src/app/lib/cc/engine/analyzers/python/parser.rb:23:in `parse'
/usr/src/app/lib/cc/engine/analyzers/python/main.rb:26:in `process_file'
/usr/src/app/lib/cc/engine/analyzers/analyzer_base.rb:41:in `run'
/usr/src/app/lib/cc/engine/analyzers/reporter.rb:76:in `block in process_files'
/usr/src/app/lib/cc/engine/analyzers/file_thread_pool.rb:24:in `block (2 levels) in run'
I, [2019-10-21T23:41:51.785583 #1]  INFO -- : Skipping file ./salt/modules/network.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 47, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/json/__init__.py", line 244, in dumps
    return _default_encoder.encode(obj)
  File "/usr/local/python2/lib/python2.7/json/encoder.py", line 207, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/local/python2/lib/python2.7/json/encoder.py", line 270, in iterencode
    return _iterencode(o, 0)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: invalid start byte

/usr/src/app/lib/cc/engine/analyzers/command_line_runner.rb:26:in `block in run'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:93:in `block in timeout'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `block in catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:108:in `timeout'
/usr/src/app/lib/cc/engine/analyzers/command_line_runner.rb:18:in `run'
/usr/src/app/lib/cc/engine/analyzers/python/parser.rb:23:in `parse'
/usr/src/app/lib/cc/engine/analyzers/python/main.rb:26:in `process_file'
/usr/src/app/lib/cc/engine/analyzers/analyzer_base.rb:41:in `run'
/usr/src/app/lib/cc/engine/analyzers/reporter.rb:76:in `block in process_files'
/usr/src/app/lib/cc/engine/analyzers/file_thread_pool.rb:24:in `block (2 levels) in run'
I, [2019-10-21T23:42:19.627514 #1]  INFO -- : Skipping file ./salt/runners/network.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 47, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/json/__init__.py", line 244, in dumps
    return _default_encoder.encode(obj)
  File "/usr/local/python2/lib/python2.7/json/encoder.py", line 207, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/local/python2/lib/python2.7/json/encoder.py", line 270, in iterencode
    return _iterencode(o, 0)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: invalid start byte

/usr/src/app/lib/cc/engine/analyzers/command_line_runner.rb:26:in `block in run'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:93:in `block in timeout'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `block in catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in `catch'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:108:in `timeout'
/usr/src/app/lib/cc/engine/analyzers/command_line_runner.rb:18:in `run'
/usr/src/app/lib/cc/engine/analyzers/python/parser.rb:23:in `parse'
/usr/src/app/lib/cc/engine/analyzers/python/main.rb:26:in `process_file'
/usr/src/app/lib/cc/engine/analyzers/analyzer_base.rb:41:in `run'
/usr/src/app/lib/cc/engine/analyzers/reporter.rb:76:in `block in process_files'
/usr/src/app/lib/cc/engine/analyzers/file_thread_pool.rb:24:in `block (2 levels) in run'
7
radon
radon engine documentation
View output
Running radon3...