Fix leap_cli ci build
https://0xacab.org/elijah/leap_cli/builds/2294 is failing, and i tried to debug locally (that's why gitlab ci is so super awesome):
--- git/leap_cli ‹develop› » git co -b bugfix_ci elijah_acab/bugfix/ci --- git/leap_cli ‹bugfix_ci› » gitlab-runner exec docker test Running with gitlab-ci-multi-runner 1.6.0 (01b3ea1) Using Docker executor with image leapcode/ruby:2.1-slim ... Pulling docker image leapcode/ruby:2.1-slim ... Running on runner--project-1-concurrent-0 via rocinante... Cloning repository... Cloning into '/builds/project-1'... done. Checking out 708c3b42 as bugfix_ci... $ bundle install --path vendor/bundle --with test Fetching gem metadata from https://rubygems.org/ Fetching version metadata from https://rubygems.org/ Resolving dependencies... Installing rake 11.3.0 Installing builder 3.2.2 Installing excon 0.53.0 Installing multipart-post 2.0.0 Installing formatador 0.2.5 Installing multi_json 1.12.1 Installing mini_portile2 2.1.0 Installing pkg-config 1.1.7 Installing ipaddress 0.8.3 Installing gli 2.14.0 Installing json_pure 1.8.3 Installing net-ssh 3.2.0 Installing ya2yaml 0.31 Installing minitest 5.9.1 Using bundler 1.12.5 Installing faraday 0.9.2 Installing fog-core 1.43.0 Installing nokogiri 1.6.8 with native extensions Installing net-scp 1.2.1 Installing fog-json 1.0.2 Installing fog-xml 0.1.2 Installing sshkit 1.11.3 Installing fog-aws 0.12.0 Using leap_cli 1.9 from source at `.` Bundle complete! 3 Gemfile dependencies, 24 gems now installed. Bundled gems are installed into ./vendor/bundle. $ git clone --depth=1 https://leap.se/git/leap_platform.git -b develop Cloning into 'leap_platform'... $ chmod -R a+rwX test/provider $ useradd -ms /bin/bash testuser $ pwd /builds/project-1 $ su -c pwd testuser /builds/project-1 $ su -c whoami testuser testuser $ su -c "PLATFORM_DIR=$(readlink -e leap_platform) bundle exec rake test" testuser Run options: --seed 54364 # Running: ....
at this point the output stalls.
I started a bash in the docker container and saw that it was hanging with this process:
--- git/leap_cli ‹bugfix_ci› » docker ps 1 ↵ CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 225dc9050e31 87a3bdb0ba19 "sh -c 'if [ -x /usr/" 11 minutes ago Up 11 minutes runner--project-1-concurrent-0-build --- git/leap_cli ‹bugfix_ci› » docker exec -it 225dc9050e31 /bin/bash root@runner--project-1-concurrent-0:/# ps aux|more USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 20068 132 ? Ss 18:06 0:00 /bin/bash root 8 0.0 0.0 20080 124 ? S 18:06 0:00 /bin/bash root 12493 0.0 0.0 44760 148 ? S 18:08 0:00 su -c PLATFORM_DIR=/builds/project-1/leap_platform bundle exec rake test testuser testuser 12494 0.0 0.0 99864 696 ? Ssl 18:08 0:00 /builds/project-1/vendor/bundle/ruby/2.1.0/bin/rake testuser 12508 0.0 0.0 4336 0 ? S 18:08 0:00 sh -c /usr/local/bin/ruby -I"lib" -I"/builds/project-1/vendor/bundle/ruby/2.1.0/gems/rake-11.3.0/lib" "/builds/project-1/vendor/bundle/ruby/2.1.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb" "test/unit/*_test.rb" testuser 12509 29.4 70.2 12890184 8433112 ? Sl 18:08 3:09 /usr/local/bin/ruby -Ilib -I/builds/project-1/vendor/bundle/ruby/2.1.0/gems/rake-11.3.0/lib /builds/project-1/vendor/bundle/ruby/2.1.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb test/unit/*_test.rb testuser 12546 0.0 0.0 4336 0 ? S 18:08 0:00 sh -c cd /tmp/test_leap_provider_20160928-12509-are91h && /builds/project-1/bin/leap --no-color new --contacts me@example.org --domain example.org --name Example --platform='/builds/project-1/../leap_platform' . testuser 12547 99.0 0.1 106804 20484 ? Rl 18:08 10:35 ruby /builds/project-1/bin/leap --no-color new --contacts me@example.org --domain example.org --name Example --platform=/builds/project-1/../leap_platform . root 12555 0.0 0.0 20232 2744 ? Ss 18:18 0:00 /bin/bash root 12563 0.0 0.0 17500 1904 ? R+ 18:19 0:00 ps aux root 12564 0.0 0.0 6464 776 ? S+ 18:19 0:00 more
(from redmine: created on 2016-09-28, closed on 2016-09-29)