shia icon indicating copy to clipboard operation
shia copied to clipboard

SHIA-Pipeline not running

Open chucky2305 opened this issue 7 years ago • 0 comments

these are the logs when i try to run the SHIA-pipeline.

I use this .gitlab-ci.yml

cache:
  paths:
  - .bundler/

stages:
  - tests
  - publish

image: ruby:latest

rubocop:
  stage: tests
  before_script:
    - gem install rubocop
  script:
    - rubocop

rspec:
  stage: tests
  before_script:
    - ruby -v
    - which ruby
    - gem install bundler --no-ri --no-rdoc
    - bundle install --jobs $(nproc)  "${FLAGS[@]}" --path=.bundler
  script:
    - bundle exec rspec

docker:
  stage: publish
  image: docker:latest
  script:
    - docker build -t git1.gedak.de/docker/shia:latest .
    - docker run git1.gedak.de/docker/shia:latest
    - docker push git1.gedak.de/docker/shia:latest
  only:
    - master

RSPEC

Running with gitlab-ci-multi-runner 9.1.1 (6104325)
  on git1 (1803bbfd)
Using Docker executor with image ruby:latest ...
Using docker image sha256:c244767f8d56e0d101b16cd4aabda84976f839121fcf8ea8678f5551f37e2c67 for predefined container...
Pulling docker image ruby:latest ...
Using docker image ruby:latest ID=sha256:3630c02d3d1b80bb1413f80c164a06a1184577d22cb12e5479dd6ee081449b77 for build container...
Running on runner-1803bbfd-project-210-concurrent-0 via git1...
Fetching changes...
HEAD is now at cee0c08 Update .gitlab-ci.yml
Checking out cee0c087 as master...
Skipping Git submodules setup
Checking cache for default...
Successfully extracted cache
$ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
$ which ruby
/usr/local/bin/ruby
$ gem install bundler --no-ri --no-rdoc
Successfully installed bundler-1.15.3
1 gem installed
$ bundle install --jobs $(nproc)  "${FLAGS[@]}" --path=.bundler
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Fetching rake 10.5.0
Fetching i18n 0.7.0
Fetching json 1.8.3
Installing i18n 0.7.0
Installing rake 10.5.0
Installing json 1.8.3 with native extensions
Fetching minitest 5.9.0
Installing minitest 5.9.0
Fetching thread_safe 0.3.5
Fetching builder 3.2.2
Fetching addressable 2.4.0
Installing builder 3.2.2
Fetching ast 2.3.0
Installing thread_safe 0.3.5
Installing addressable 2.4.0
Fetching awesome_print 1.7.0
Installing ast 2.3.0
Using bundler 1.15.3
Fetching coderay 1.1.1
Fetching colorize 0.8.1
Installing awesome_print 1.7.0
Fetching safe_yaml 1.0.4
Installing colorize 0.8.1
Fetching diff-lcs 1.2.5
Installing coderay 1.1.1
Installing safe_yaml 1.0.4
Fetching docile 1.1.5
Fetching unf_ext 0.0.7.2
Installing diff-lcs 1.2.5
Fetching mime-types-data 3.2016.0521
Installing docile 1.1.5
Fetching netrc 0.11.0
Installing netrc 0.11.0
Installing mime-types-data 3.2016.0521
Fetching eventmachine 1.2.0.1
Installing unf_ext 0.0.7.2 with native extensions
Fetching multipart-post 2.0.0
Installing multipart-post 2.0.0
Installing eventmachine 1.2.0.1 with native extensions
Fetching websocket-extensions 0.1.2
Installing websocket-extensions 0.1.2
Fetching ffi 1.9.10
Fetching formatador 0.2.5
Installing formatador 0.2.5
Installing ffi 1.9.10 with native extensions
Fetching rb-fsevent 0.9.7
Installing rb-fsevent 0.9.7
Fetching ruby_dep 1.3.1
Fetching lumberjack 1.0.10
Fetching nenv 0.3.0
Installing lumberjack 1.0.10
Fetching shellany 0.0.1
Installing shellany 0.0.1
Installing ruby_dep 1.3.1
Fetching method_source 0.8.2
Fetching slop 3.6.0
Installing slop 3.6.0
Fetching thor 0.19.1
Installing thor 0.19.1
Installing method_source 0.8.2
Installing nenv 0.3.0
Fetching guard-compat 1.2.1
Fetching rspec-support 3.4.1
Fetching hashdiff 0.3.0
Installing guard-compat 1.2.1
Installing hashdiff 0.3.0
Installing rspec-support 3.4.1
Fetching multi_json 1.12.1
Fetching net-ssh 3.2.0
Fetching powerpack 0.1.1
Installing multi_json 1.12.1
Fetching rainbow 2.1.0
Installing powerpack 0.1.1
Installing net-ssh 3.2.0
Installing rainbow 2.1.0
Fetching ruby-progressbar 1.8.1
Fetching unicode-display_width 1.1.0
Installing ruby-progressbar 1.8.1
Fetching simplecov-html 0.10.0
Installing unicode-display_width 1.1.0
Fetching vcr 3.0.3
Installing vcr 3.0.3
Installing simplecov-html 0.10.0
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/builds/docker/shia/.bundler/ruby/2.4.0/gems/json-1.8.3/ext/json/ext/generator
/usr/local/bin/ruby -r ./siteconf20170803-17-whsexr.rb extconf.rb
creating Makefile

current directory:
/builds/docker/shia/.bundler/ruby/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR=" clean

current directory:
/builds/docker/shia/.bundler/ruby/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
generator.c: In function 'generate_json':
generator.c:861:25: error: 'rb_cFixnum' undeclared (first use in this function)
     } else if (klass == rb_cFixnum) {
                         ^
generator.c:861:25: note: each undeclared identifier is reported only once for
each function it appears in
generator.c:863:25: error: 'rb_cBignum' undeclared (first use in this function)
     } else if (klass == rb_cBignum) {
                         ^
generator.c: At top level:
cc1: warning: unrecognized command line option "-Wno-self-assign"
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand"
cc1: warning: unrecognized command line option "-Wno-parentheses-equality"
cc1: warning: unrecognized command line option "-Wno-tautological-compare"
Makefile:241: recipe for target 'generator.o' failed
make: *** [generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in
/builds/docker/shia/.bundler/ruby/2.4.0/gems/json-1.8.3 for inspection.
Results logged to
/builds/docker/shia/.bundler/ruby/2.4.0/extensions/x86_64-linux/2.4.0/json-1.8.3/gem_make.out

An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.

In Gemfile:
  shia was resolved to 0.1.5.0, which depends on
    rancher-api was resolved to 0.5.2, which depends on
      her was resolved to 0.8.1, which depends on
        activemodel was resolved to 4.2.7.1, which depends on
          activesupport was resolved to 4.2.7.1, which depends on
            json
ERROR: Job failed: exit code 1

RUBOCOP

Running with gitlab-ci-multi-runner 9.1.1 (6104325)
  on git1 (1803bbfd)
Using Docker executor with image ruby:latest ...
Using docker image sha256:c244767f8d56e0d101b16cd4aabda84976f839121fcf8ea8678f5551f37e2c67 for predefined container...
Pulling docker image ruby:latest ...
Using docker image ruby:latest ID=sha256:3630c02d3d1b80bb1413f80c164a06a1184577d22cb12e5479dd6ee081449b77 for build container...
Running on runner-1803bbfd-project-210-concurrent-0 via git1...
Fetching changes...
HEAD is now at cee0c08 Update .gitlab-ci.yml
Checking out cee0c087 as master...
Skipping Git submodules setup
Checking cache for default...
Successfully extracted cache
$ gem install rubocop
Building native extensions.  This could take a while...
Successfully installed rainbow-2.2.2
Successfully installed ast-2.3.0
Successfully installed parser-2.4.0.0
Successfully installed powerpack-0.1.1
Successfully installed ruby-progressbar-1.8.1
Successfully installed unicode-display_width-1.3.0
Successfully installed parallel-1.12.0
Successfully installed rubocop-0.49.1
8 gems installed
$ rubocop
/builds/docker/shia/.rubocop.yml: Style/AlignParameters has the wrong namespace - should be Layout
/builds/docker/shia/.rubocop.yml: Style/MultilineMethodCallIndentation has the wrong namespace - should be Layout
/builds/docker/shia/.rubocop.yml: Style/SpaceInsideBlockBraces has the wrong namespace - should be Layout
Inspecting 36 files
....C...........C.CC.CCC..CC.CC.....

Offenses:

lib/shia/ranch/environment_manager.rb:21:9: C: %w-literals should be delimited by [ and ].
        %w(Environment Machine Host Registry Registrycredential).each do |model|
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/shia/repo/base.rb:8:29: C: Prefer using YAML.safe_load over YAML.load.
        OpenStruct.new(YAML.load(File.read(config_path)))
                            ^^^^
lib/shia/repo/base.rb:53:24: C: Prefer using YAML.safe_load over YAML.load.
        compose = YAML.load(text)
                       ^^^^
lib/shia/config.rb:28:14: C: Prefer using YAML.safe_load over YAML.load.
        YAML.load(File.read(filename))
             ^^^^
lib/shia.rb:17:22: C: %w-literals should be delimited by [ and ].
  ALLOWED_COMMANDS = %w(ls deploy destroy teardown deploy_all).freeze
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/shia_spec.rb:16:5: C: %w-literals should be delimited by [ and ].
    %w(ls deploy destroy teardown).each do |command|
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/shia/options_spec.rb:4:3: C: Block has too many lines. [36/25]
  describe Options do ...
  ^^^^^^^^^^^^^^^^^^^
spec/lib/shia/options_spec.rb:5:5: C: Block has too many lines. [34/25]
    describe '#parse' do ...
    ^^^^^^^^^^^^^^^^^^^^
spec/lib/shia/options_spec.rb:16:33: C: %w-literals should be delimited by [ and ].
        subject { Options.parse(%w(deploy -e foobar ls)) }
                                ^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/shia/options_spec.rb:19:42: C: %w-literals should be delimited by [ and ].
          expect(subject.commands).to eq(%w(deploy ls))
                                         ^^^^^^^^^^^^^
spec/lib/shia/options_spec.rb:37:34: C: %w-literals should be delimited by [ and ].
          expect { Options.parse(%w(-h)) }.to raise_error(SystemExit)
                                 ^^^^^^
spec/lib/shia/options_spec.rb:44:34: C: %w-literals should be delimited by [ and ].
          expect { Options.parse(%w(--version)) }.to raise_error(SystemExit)
                                 ^^^^^^^^^^^^^
spec/lib/shia/ranch/cowboy_spec.rb:5:5: C: Block has too many lines. [83/25]
    describe Cowboy do ...
    ^^^^^^^^^^^^^^^^^^
spec/lib/shia/ranch/cowboy_spec.rb:14:9: C: %w-literals should be delimited by [ and ].
        %w(Project Environment Machine Registry).each do |klass|
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/shia/ranch/cowboy_spec.rb:36:67: C: Prefer using YAML.safe_load over YAML.load.
          allow(Shia::Config).to receive(:stacks).and_return(YAML.load(File.read('spec/files/ymls/stacks.yml')))
                                                                  ^^^^
spec/lib/shia/ranch/cowboy_spec.rb:37:76: C: Prefer using YAML.safe_load over YAML.load.
          allow(Shia::Config).to receive(:docker_registry).and_return(YAML.load(File.read('spec/files/ymls/docker_registry.yml')))
                                                                           ^^^^
spec/lib/shia/logger_spec.rb:11:5: C: %w-literals should be delimited by [ and ].
    %w(info warn error).each do |level|
    ^^^^^^^^^^^^^^^^^^^
spec/lib/shia/repo/remote_spec.rb:10:67: C: Prefer using YAML.safe_load over YAML.load.
          allow(Shia::Config).to receive(:stacks).and_return(YAML.load(File.read('spec/files/ymls/stacks.yml')))
                                                                  ^^^^
spec/lib/shia/repo/remote_spec.rb:14:45: C: %w-literals should be delimited by [ and ].
          expect(subject.map(&:name)).to eq(%w(deployment-test))
                                            ^^^^^^^^^^^^^^^^^^^
spec/lib/shia/repo/remote_spec.rb:22:71: C: Prefer using YAML.safe_load over YAML.load.
          allow(Shia::Config).to receive(:git_config).and_return(YAML.load(File.read('spec/files/ymls/git_config.yml')))
                                                                      ^^^^
spec/lib/shia/repo/base_spec.rb:5:5: C: Block has too many lines. [107/25]
    describe Base do ...
    ^^^^^^^^^^^^^^^^
spec/lib/shia/repo/base_spec.rb:49:7: C: Block has too many lines. [30/25]
      describe '#variable_expansion' do ...
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/shia/repo/base_spec.rb:71:78: C: Prefer using YAML.safe_load over YAML.load.
            allow(Shia::Config).to receive(:docker_registry).and_return(YAML.load(File.read('spec/files/ymls/docker_registry.yml')))
                                                                             ^^^^
spec/lib/shia/repo/base_spec.rb:86:7: C: Block has too many lines. [36/25]
      describe '#make_volume_names_safe' do ...
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/shia/environment_spec.rb:4:3: C: Block has too many lines. [86/25]
  describe Environment do ...
  ^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/shia/environment_spec.rb:14:5: C: Block has too many lines. [33/25]
    describe '#name' do ...
    ^^^^^^^^^^^^^^^^^^^

36 files inspected, 26 offenses detected
ERROR: Job failed: exit code 1

chucky2305 avatar Aug 03 '17 13:08 chucky2305