Skip to content

Instantly share code, notes, and snippets.

@lisovskyvlad
Last active January 17, 2018 09:36
Show Gist options
  • Save lisovskyvlad/dda60a91e6831ff8aa4df8cf3887b6be to your computer and use it in GitHub Desktop.
Save lisovskyvlad/dda60a91e6831ff8aa4df8cf3887b6be to your computer and use it in GitHub Desktop.
Running with gitlab-ci-multi-runner 9.5.1 (96b34cc)
on ci_runner_02 (bcf9d6e9)
Using Docker executor with image ruby:2.4.3 ...
Starting service postgres:latest ...
Pulling docker image postgres:latest ...
Using docker image postgres:latest ID=sha256:ec61d13c85666651ff092b89d46ae958d81c7f3d387ed91ae5c530a38b9896e2 for postgres service...
Waiting for services to be up and running...
Using docker image sha256:b8b3cb280f3e2b76afb91d3c7c3227bac6de27e9f27e7ace2d9dd533b9c92309 for predefined container...
Pulling docker image ruby:2.4.3 ...
Using docker image ruby:2.4.3 ID=sha256:713da53688a6446953cb7c0260d03a65a115cb60b727a890142628a4622642c7 for build container...
Running on runner-bcf9d6e9-project-11-concurrent-1 via pages.sensorberg.io...
Fetching changes...
Removing log/test.log
HEAD is now at 9ae125b show $DATABASE_URL
From https://git.sensorberg.io/web/smart-workspace
x [deleted] (none) -> origin/feature/general-framework-companie-project-part
eab99c7..ee887a1 develop -> origin/develop
Checking out ee887a11 as develop...
Skipping Git submodules setup
Checking cache for default...
Successfully extracted cache
$ ruby -v
ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux]
$ bundle install --path=cache/bundler --without production --jobs $(nproc) "${FLAGS[@]}"
Fetching gem metadata from https://rubygems.org/.........
Fetching rake 12.3.0
Installing rake 12.3.0
Fetching concurrent-ruby 1.0.5
Installing concurrent-ruby 1.0.5
Fetching i18n 0.9.1
Installing i18n 0.9.1
Fetching minitest 5.11.1
Installing minitest 5.11.1
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.4
Installing tzinfo 1.2.4
Fetching activesupport 5.1.4
Installing activesupport 5.1.4
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubi 1.7.0
Installing erubi 1.7.0
Fetching mini_portile2 2.3.0
Installing mini_portile2 2.3.0
Fetching nokogiri 1.8.1
Installing nokogiri 1.8.1 with native extensions
Fetching rails-dom-testing 2.0.3
Installing rails-dom-testing 2.0.3
Fetching crass 1.0.3
Installing crass 1.0.3
Fetching loofah 2.1.1
Installing loofah 2.1.1
Fetching rails-html-sanitizer 1.0.3
Installing rails-html-sanitizer 1.0.3
Fetching actionview 5.1.4
Installing actionview 5.1.4
Fetching rack 2.0.3
Installing rack 2.0.3
Fetching rack-test 0.8.2
Installing rack-test 0.8.2
Fetching actionpack 5.1.4
Installing actionpack 5.1.4
Fetching nio4r 2.2.0
Installing nio4r 2.2.0 with native extensions
Fetching websocket-extensions 0.1.3
Installing websocket-extensions 0.1.3
Fetching websocket-driver 0.6.5
Installing websocket-driver 0.6.5 with native extensions
Fetching actioncable 5.1.4
Installing actioncable 5.1.4
Fetching globalid 0.4.1
Installing globalid 0.4.1
Fetching activejob 5.1.4
Installing activejob 5.1.4
Fetching mini_mime 1.0.0
Installing mini_mime 1.0.0
Fetching mail 2.7.0
Installing mail 2.7.0
Fetching actionmailer 5.1.4
Installing actionmailer 5.1.4
Fetching activemodel 5.1.4
Installing activemodel 5.1.4
Fetching arel 8.0.0
Installing arel 8.0.0
Fetching activerecord 5.1.4
Installing activerecord 5.1.4
Fetching ast 2.3.0
Installing ast 2.3.0
Fetching awesome_print 1.8.0
Installing awesome_print 1.8.0
Fetching bcrypt 3.1.11
Installing bcrypt 3.1.11 with native extensions
Fetching coderay 1.1.2
Installing coderay 1.1.2
Fetching better_errors 2.4.0
Installing better_errors 2.4.0
Fetching debug_inspector 0.0.3
Installing debug_inspector 0.0.3 with native extensions
Fetching binding_of_caller 0.7.3
Installing binding_of_caller 0.7.3 with native extensions
Using bundler 1.16.1
Fetching byebug 9.1.0
Installing byebug 9.1.0 with native extensions
Fetching database_cleaner 1.6.2
Installing database_cleaner 1.6.2
Fetching diff-lcs 1.3
Installing diff-lcs 1.3
Fetching discard 0.2.0
Installing discard 0.2.0
Fetching dotenv 2.2.1
Installing dotenv 2.2.1
Fetching method_source 0.9.0
Installing method_source 0.9.0
Fetching thor 0.20.0
Installing thor 0.20.0
Fetching railties 5.1.4
Installing railties 5.1.4
Fetching dotenv-rails 2.2.1
Installing dotenv-rails 2.2.1
Fetching dry-configurable 0.7.0
Installing dry-configurable 0.7.0
Fetching dry-container 0.6.0
Installing dry-container 0.6.0
Fetching dry-core 0.4.2
Installing dry-core 0.4.2
Fetching dry-equalizer 0.2.0
Installing dry-equalizer 0.2.0
Fetching dry-logic 0.4.2
Installing dry-logic 0.4.2
Fetching inflecto 0.0.2
Installing inflecto 0.0.2
Fetching dry-types 0.12.2
Installing dry-types 0.12.2
Fetching dry-validation 0.11.1
Installing dry-validation 0.11.1
Fetching ffi 1.9.18
Installing ffi 1.9.18 with native extensions
Fetching jsonapi-resources 0.9.0
Installing jsonapi-resources 0.9.0
Fetching jwt 2.1.0
Installing jwt 2.1.0
Fetching rb-fsevent 0.10.2
Installing rb-fsevent 0.10.2
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching ruby_dep 1.5.0
Installing ruby_dep 1.5.0
Fetching listen 3.1.5
Installing listen 3.1.5
Fetching request_store 1.4.0
Installing request_store 1.4.0
Fetching paper_trail 8.1.2
Installing paper_trail 8.1.2
Fetching parallel 1.12.1
Installing parallel 1.12.1
Fetching parser 2.4.0.2
Installing parser 2.4.0.2
Fetching pg 0.21.0
Installing pg 0.21.0 with native extensions
Fetching powerpack 0.1.1
Installing powerpack 0.1.1
Fetching pry 0.11.3
Installing pry 0.11.3
Fetching pry-byebug 3.5.1
Installing pry-byebug 3.5.1
Fetching puma 3.11.0
Installing puma 3.11.0 with native extensions
Fetching sprockets 3.7.1
Installing sprockets 3.7.1
Fetching sprockets-rails 3.2.1
Installing sprockets-rails 3.2.1
Fetching rails 5.1.4
Installing rails 5.1.4
Fetching rainbow 3.0.0
Installing rainbow 3.0.0
Fetching rspec-support 3.7.0
Installing rspec-support 3.7.0
Fetching rspec-core 3.7.1
Installing rspec-core 3.7.1
Fetching rspec-expectations 3.7.0
Installing rspec-expectations 3.7.0
Fetching rspec-mocks 3.7.0
Installing rspec-mocks 3.7.0
Fetching rspec-rails 3.7.2
Installing rspec-rails 3.7.2
Fetching ruby-progressbar 1.9.0
Installing ruby-progressbar 1.9.0
Fetching unicode-display_width 1.3.0
Installing unicode-display_width 1.3.0
Fetching rubocop 0.52.1
Installing rubocop 0.52.1
Fetching rubocop-bitcrowd 1.1.2
Installing rubocop-bitcrowd 1.1.2
Fetching rubocop-rspec 1.21.0
Installing rubocop-rspec 1.21.0
Fetching spring 2.0.2
Installing spring 2.0.2
Fetching spring-commands-rspec 1.0.4
Installing spring-commands-rspec 1.0.4
Fetching spring-watcher-listen 2.0.1
Installing spring-watcher-listen 2.0.1
Fetching vcr 4.0.0
Installing vcr 4.0.0
Bundle complete! 25 Gemfile dependencies, 90 gems now installed.
Gems in the group production were not installed.
Bundled gems are installed into `./cache/bundler`
$ bundle exec rspec
API::Mobile::V1::SessionsController
#create
with a existed mobile user
returns json with token
returns token with mobile_user_id
API::Mobile::V1::SettingsController
#index
behaves like requires API authentication
requires sign in
with a valid token
returns sample json
Company
add some examples to (or delete) /builds/web/smart-workspace/spec/models/company_spec.rb (PENDING: Not yet implemented)
MobileUser
create user
Project
add some examples to (or delete) /builds/web/smart-workspace/spec/models/project_spec.rb (PENDING: Not yet implemented)
MobileUserAuthentication
#issue_token
returns kind of jwt token
#decrypt_token
can decrypt the token
return exception if wrong token is provided
#fetch_user_by_token
returns user or nil
Pending: (Failures listed here are expected and do not affect your suite's status)
1) Company add some examples to (or delete) /builds/web/smart-workspace/spec/models/company_spec.rb
# Not yet implemented
# ./spec/models/company_spec.rb:2
2) Project add some examples to (or delete) /builds/web/smart-workspace/spec/models/project_spec.rb
# Not yet implemented
# ./spec/models/project_spec.rb:2
Top 10 slowest examples (0.11842 seconds, 94.7% of total time):
API::Mobile::V1::SessionsController#create with a existed mobile user returns json with token
0.06699 seconds ./spec/controllers/api/mobile/v1/sessions_controller_spec.rb:27
API::Mobile::V1::SessionsController#create with a existed mobile user returns token with mobile_user_id
0.01301 seconds ./spec/controllers/api/mobile/v1/sessions_controller_spec.rb:32
API::Mobile::V1::SettingsController#index with a valid token returns sample json
0.01099 seconds ./spec/controllers/api/mobile/v1/settings_controller_spec.rb:29
MobileUser create user
0.00948 seconds ./spec/models/mobile_user_spec.rb:11
MobileUserAuthentication#fetch_user_by_token returns user or nil
0.00854 seconds ./spec/services/mobile_user_authentication_spec.rb:47
API::Mobile::V1::SettingsController#index behaves like requires API authentication requires sign in
0.00447 seconds ./spec/shared_examples/require_authentication.rb:6
MobileUserAuthentication#decrypt_token return exception if wrong token is provided
0.00243 seconds ./spec/services/mobile_user_authentication_spec.rb:33
MobileUserAuthentication#issue_token returns kind of jwt token
0.00126 seconds ./spec/services/mobile_user_authentication_spec.rb:11
MobileUserAuthentication#decrypt_token can decrypt the token
0.00124 seconds ./spec/services/mobile_user_authentication_spec.rb:28
Company add some examples to (or delete) /builds/web/smart-workspace/spec/models/company_spec.rb
0.00002 seconds ./spec/models/company_spec.rb:2
Top 6 slowest example groups:
API::Mobile::V1::SessionsController
0.0406 seconds average (0.0812 seconds / 2 examples) ./spec/controllers/api/mobile/v1/sessions_controller_spec.rb:3
MobileUser
0.00975 seconds average (0.00975 seconds / 1 example) ./spec/models/mobile_user_spec.rb:3
API::Mobile::V1::SettingsController
0.00814 seconds average (0.01629 seconds / 2 examples) ./spec/controllers/api/mobile/v1/settings_controller_spec.rb:3
MobileUserAuthentication
0.00363 seconds average (0.01452 seconds / 4 examples) ./spec/services/mobile_user_authentication_spec.rb:3
Company
0.00032 seconds average (0.00032 seconds / 1 example) ./spec/models/company_spec.rb:1
Project
0.00027 seconds average (0.00027 seconds / 1 example) ./spec/models/project_spec.rb:1
Finished in 0.1251 seconds (files took 10.29 seconds to load)
11 examples, 0 failures, 2 pending
Creating cache default...
cache/bundler/: found 8002 matching files 
untracked: found 6692 files 
Created cache
Job succeeded

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