thepracticaldev/dev.to

View on GitHub
Improve testing and error handling in create_job #8217
9089551John Curcio authored b3a774a3
complete00:01:03
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.yml.
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-09-19T22:20:07.460285 #1]  WARN -- : Skipping app/javascript/packs/colorPicker.js due to CC::Parser::Client::HTTPError
W, [2019-09-19T22:20:07.460344 #1]  WARN -- : Response status: 422
W, [2019-09-19T22:20:07.478268 #1]  WARN -- : Skipping app/javascript/packs/clipboardCopy.js due to CC::Parser::Client::HTTPError
W, [2019-09-19T22:20:07.478308 #1]  WARN -- : Response status: 422
W, [2019-09-19T22:20:07.487771 #1]  WARN -- : Skipping app/javascript/packs/Onboarding.jsx due to CC::Parser::Client::HTTPError
W, [2019-09-19T22:20:07.487810 #1]  WARN -- : Response status: 422
W, [2019-09-19T22:20:07.590106 #1]  WARN -- : Skipping app/javascript/chat/video.jsx due to CC::Parser::Client::HTTPError
W, [2019-09-19T22:20:07.590146 #1]  WARN -- : Response status: 422
W, [2019-09-19T22:20:07.799650 #1]  WARN -- : Skipping app/javascript/chat/codeEditor.jsx due to CC::Parser::Client::HTTPError
W, [2019-09-19T22:20:07.799700 #1]  WARN -- : Response status: 422
W, [2019-09-19T22:20:07.914010 #1]  WARN -- : Skipping app/javascript/src/utils/pusher.js due to CC::Parser::Client::HTTPError
W, [2019-09-19T22:20:07.914062 #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-09-19T22:20:18.293443 #1]  WARN -- : Skipping ./app/javascript/packs/colorPicker.js due to CC::Parser::Client::HTTPError
W, [2019-09-19T22:20:18.293756 #1]  WARN -- : Response status: 422
W, [2019-09-19T22:20:18.330903 #1]  WARN -- : Skipping ./app/javascript/packs/clipboardCopy.js due to CC::Parser::Client::HTTPError
W, [2019-09-19T22:20:18.330989 #1]  WARN -- : Response status: 422
W, [2019-09-19T22:20:18.344966 #1]  WARN -- : Skipping ./app/javascript/packs/Onboarding.jsx due to CC::Parser::Client::HTTPError
W, [2019-09-19T22:20:18.345760 #1]  WARN -- : Response status: 422
W, [2019-09-19T22:20:18.536281 #1]  WARN -- : Skipping app/javascript/chat/video.jsx due to CC::Parser::Client::HTTPError
W, [2019-09-19T22:20:18.537755 #1]  WARN -- : Response status: 422
W, [2019-09-19T22:20:19.069993 #1]  WARN -- : Skipping app/javascript/chat/codeEditor.jsx due to CC::Parser::Client::HTTPError
W, [2019-09-19T22:20:19.070071 #1]  WARN -- : Response status: 422
W, [2019-09-19T22:20:19.350937 #1]  WARN -- : Skipping app/javascript/src/utils/pusher.js due to CC::Parser::Client::HTTPError
W, [2019-09-19T22:20:19.351290 #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-09-19T22:20:23.463907 #1]  INFO -- : Skipping file ./app/services/rss_reader.rb due to exception (Racc::ParseError): ./app/services/rss_reader.rb:7 :: parse error on value ":" (tCOLON)
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/racc/parser.rb:528:in `on_error'
/home/app/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser_extras.rb:1175:in `on_error'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/racc/parser.rb:259:in `_racc_do_parse_c'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/racc/parser.rb:259:in `do_parse'
/home/app/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser_extras.rb:1082:in `block in process'
/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'
/home/app/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser_extras.rb:1070:in `process'
/home/app/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser.rb:31:in `block in process'
/home/app/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser.rb:28:in `each'
/home/app/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser.rb:28:in `process'
/usr/src/app/lib/cc/engine/analyzers/ruby/main.rb:25: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-09-19T22:20:23.971308 #1]  INFO -- : Skipping file ./app/labor/unread_notifications_emailer.rb due to exception (Racc::ParseError): ./app/labor/unread_notifications_emailer.rb:11 :: parse error on value ["rescue", 11] (kRESCUE)
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/racc/parser.rb:528:in `on_error'
/home/app/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser_extras.rb:1175:in `on_error'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/racc/parser.rb:259:in `_racc_do_parse_c'
/home/app/.rubies/ruby-2.5.1/lib/ruby/2.5.0/racc/parser.rb:259:in `do_parse'
/home/app/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser_extras.rb:1082:in `block in process'
/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'
/home/app/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser_extras.rb:1070:in `process'
/home/app/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser.rb:31:in `block in process'
/home/app/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser.rb:28:in `each'
/home/app/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser.rb:28:in `process'
/usr/src/app/lib/cc/engine/analyzers/ruby/main.rb:25: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
rubocop
rubocop engine documentation
8
brakeman
brakeman engine documentation
9
eslint
eslint engine documentation
View output
No rules are configured. Make sure you have added a config file with rules enabled.
See our documentation at https://docs.codeclimate.com/docs/eslint for more information.