Skip to content

Windows core specs failures #8074

@colinsurprenant

Description

@colinsurprenant

In the effort #7767 to have LS correctly build on Windows on our CI, this is the list of current specs failures on master.

Failures:

  1) LogStash::Agent when we try to start one pipeline and it succeed sets the `last_error` to nil
     Failure/Error: expect(mval(:stats, :pipelines, pipeline_name, :reloads, :last_error)).to be_nil

       expected: nil
            got: {:message=>"The queue failed to obtain exclusive access, cause: Lock held by this virtual machine on ...runner.rb:71:in `run'", "C:\\Users\\colin\\dev\\logstash\\lib\\bootstrap\\rspec
.rb:13:in `<main>'"]}
     # ./logstash-core/spec/logstash/agent/metrics_spec.rb:91:in `block in (root)'
     # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in (root)'
     # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  2) LogStash::PipelineAction::Create when the pipeline successfully start returns a successful execution status
     Failure/Error: expect(subject.execute(agent, pipelines)).to be_truthy

     IOError:
       The queue failed to obtain exclusive access, cause: Lock held by this virtual machine on lock path: C:\Users\colin\dev\logstash\data\queue\main\.lock
     # org/logstash/ackedqueue/ext/JrubyAckedQueueMemoryExtLibrary.java:130:in `open'
     # ./logstash-core/lib/logstash/util/wrapped_acked_queue.rb:41:in `with_queue'
     # ./logstash-core/lib/logstash/util/wrapped_acked_queue.rb:25:in `create_memory_based'
     # ./logstash-core/lib/logstash/queue_factory.rb:25:in `create'
     # ./logstash-core/lib/logstash/pipeline.rb:218:in `initialize'
     # ./logstash-core/lib/logstash/pipeline_action/create.rb:35:in `execute'
     # ./logstash-core/spec/logstash/pipeline_action/create_spec.rb:49:in `block in (root)'
     # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
     # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  3) LogStash::PipelineAction::Create when we have really short lived pipeline returns a successful execution status
     Failure/Error: expect(subject.execute(agent, pipelines)).to be_truthy

     IOError:
       The queue failed to obtain exclusive access, cause: Lock held by this virtual machine on lock path: C:\Users\colin\dev\logstash\data\queue\main\.lock
     # org/logstash/ackedqueue/ext/JrubyAckedQueueMemoryExtLibrary.java:130:in `open'
     # ./logstash-core/lib/logstash/util/wrapped_acked_queue.rb:41:in `with_queue'
     # ./logstash-core/lib/logstash/util/wrapped_acked_queue.rb:25:in `create_memory_based'
     # ./logstash-core/lib/logstash/queue_factory.rb:25:in `create'
     # ./logstash-core/lib/logstash/pipeline.rb:218:in `initialize'
     # ./logstash-core/lib/logstash/pipeline_action/create.rb:35:in `execute'
     # ./logstash-core/spec/logstash/pipeline_action/create_spec.rb:34:in `block in (root)'
     # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
     # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  4) LogStash::PipelineAction::Create when the pipeline doesn't start with an error raised during `#register` returns false
     Failure/Error: expect(subject.execute(agent, pipelines)).not_to be_a_successful_action

     IOError:
       The queue failed to obtain exclusive access, cause: Lock held by this virtual machine on lock path: C:\Users\colin\dev\logstash\data\queue\main\.lock
     # org/logstash/ackedqueue/ext/JrubyAckedQueueMemoryExtLibrary.java:130:in `open'
     # ./logstash-core/lib/logstash/util/wrapped_acked_queue.rb:41:in `with_queue'
     # ./logstash-core/lib/logstash/util/wrapped_acked_queue.rb:25:in `create_memory_based'
     # ./logstash-core/lib/logstash/queue_factory.rb:25:in `create'
     # ./logstash-core/lib/logstash/pipeline.rb:218:in `initialize'
     # ./logstash-core/lib/logstash/pipeline_action/create.rb:35:in `execute'
     # ./logstash-core/spec/logstash/pipeline_action/create_spec.rb:66:in `block in (root)'
     # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
     # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  5) LogStash::PipelineAction::Stop returns the pipeline_id
     Got 0 failures and 2 other errors:

     5.1) Failure/Error: let(:pipeline) { mock_pipeline_from_string(pipeline_config) }

          IOError:
            The queue failed to obtain exclusive access, cause: Lock held by this virtual machine on lock path: C:\Users\colin\dev\logstash\data\queue\main\.lock
          # org/logstash/ackedqueue/ext/JrubyAckedQueueMemoryExtLibrary.java:130:in `open'
          # ./logstash-core/lib/logstash/util/wrapped_acked_queue.rb:41:in `with_queue'
          # ./logstash-core/lib/logstash/util/wrapped_acked_queue.rb:25:in `create_memory_based'
          # ./logstash-core/lib/logstash/queue_factory.rb:25:in `create'
          # ./logstash-core/lib/logstash/pipeline.rb:218:in `initialize'
          # ./logstash-core/spec/support/helpers.rb:54:in `mock_pipeline_from_string'
          # ./logstash-core/spec/logstash/pipeline_action/stop_spec.rb:11:in `block in pipeline'
          # ./logstash-core/spec/logstash/pipeline_action/stop_spec.rb:19:in `block in (root)'
          # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
          # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

     5.2) Failure/Error: let(:pipeline) { mock_pipeline_from_string(pipeline_config) }

          IOError:
            The queue failed to obtain exclusive access, cause: Lock held by this virtual machine on lock path: C:\Users\colin\dev\logstash\data\queue\main\.lock
          # org/logstash/ackedqueue/ext/JrubyAckedQueueMemoryExtLibrary.java:130:in `open'
          # ./logstash-core/lib/logstash/util/wrapped_acked_queue.rb:41:in `with_queue'
          # ./logstash-core/lib/logstash/util/wrapped_acked_queue.rb:25:in `create_memory_based'
          # ./logstash-core/lib/logstash/queue_factory.rb:25:in `create'
          # ./logstash-core/lib/logstash/pipeline.rb:218:in `initialize'
          # ./logstash-core/spec/support/helpers.rb:54:in `mock_pipeline_from_string'
          # ./logstash-core/spec/logstash/pipeline_action/stop_spec.rb:11:in `block in pipeline'
          # ./logstash-core/spec/logstash/pipeline_action/stop_spec.rb:23:in `block in (root)'
          # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
          # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  6) LogStash::PipelineAction::Stop removes the pipeline from the running pipelines
     Got 0 failures and 2 other errors:

     6.1) Failure/Error: let(:pipeline) { mock_pipeline_from_string(pipeline_config) }

          IOError:
            The queue failed to obtain exclusive access, cause: Lock held by this virtual machine on lock path: C:\Users\colin\dev\logstash\data\queue\main\.lock
          # org/logstash/ackedqueue/ext/JrubyAckedQueueMemoryExtLibrary.java:130:in `open'
          # ./logstash-core/lib/logstash/util/wrapped_acked_queue.rb:41:in `with_queue'
          # ./logstash-core/lib/logstash/util/wrapped_acked_queue.rb:25:in `create_memory_based'
          # ./logstash-core/lib/logstash/queue_factory.rb:25:in `create'
          # ./logstash-core/lib/logstash/pipeline.rb:218:in `initialize'
          # ./logstash-core/spec/support/helpers.rb:54:in `mock_pipeline_from_string'
          # ./logstash-core/spec/logstash/pipeline_action/stop_spec.rb:11:in `block in pipeline'
          # ./logstash-core/spec/logstash/pipeline_action/stop_spec.rb:19:in `block in (root)'
          # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
          # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

     6.2) Failure/Error: let(:pipeline) { mock_pipeline_from_string(pipeline_config) }

          IOError:
            The queue failed to obtain exclusive access, cause: Lock held by this virtual machine on lock path: C:\Users\colin\dev\logstash\data\queue\main\.lock
          # org/logstash/ackedqueue/ext/JrubyAckedQueueMemoryExtLibrary.java:130:in `open'
          # ./logstash-core/lib/logstash/util/wrapped_acked_queue.rb:41:in `with_queue'
          # ./logstash-core/lib/logstash/util/wrapped_acked_queue.rb:25:in `create_memory_based'
          # ./logstash-core/lib/logstash/queue_factory.rb:25:in `create'
          # ./logstash-core/lib/logstash/pipeline.rb:218:in `initialize'
          # ./logstash-core/spec/support/helpers.rb:54:in `mock_pipeline_from_string'
          # ./logstash-core/spec/logstash/pipeline_action/stop_spec.rb:11:in `block in pipeline'
          # ./logstash-core/spec/logstash/pipeline_action/stop_spec.rb:23:in `block in (root)'
          # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
          # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  7) LogStash::Agent#upgrade_pipeline when the upgrade succeeds starts the pipeline
     Failure/Error: expect(subject.converge_state_and_update).to be_a_successful_converge

       Expected all actions to be successful:
           pipeline_id: main, message: The queue failed to obtain exclusive access, cause: Lock held by this virtual machine on lock path: C:\Users\colin\dev\logstash\data\queue\main\.lock
     # ./logstash-core/spec/logstash/agent_spec.rb:272:in `block in (root)'
     # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
     # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  8) LogStash::Agent metrics after config reloading when reloading a good config does not set the failure reload timestamp
     Failure/Error: sleep(0.01) while ::File.read(new_file).chomp.empty?

     Timeout::Error:
       execution expired
     # ./logstash-core/spec/logstash/agent_spec.rb:375:in `block in (root)'
     # ./logstash-core/spec/logstash/agent_spec.rb:374:in `block in (root)'
     # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
     # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'
     # ------------------
     # --- Caused by: ---
     # (anonymous error class):
     #   execution expired
     #   ./logstash-core/spec/logstash/agent_spec.rb:375:in `block in (root)'

  9) LogStash::Agent metrics after config reloading when reloading a good config increases the successful reload count
     Failure/Error: sleep(0.01) while ::File.read(new_file).chomp.empty?

     Timeout::Error:
       execution expired
     # ./logstash-core/spec/logstash/agent_spec.rb:375:in `block in (root)'
     # ./logstash-core/spec/logstash/agent_spec.rb:374:in `block in (root)'
     # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
     # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'
     # ------------------
     # --- Caused by: ---
     # (anonymous error class):
     #   execution expired
     #   ./logstash-core/spec/logstash/agent_spec.rb:375:in `block in (root)'

  10) LogStash::Agent metrics after config reloading when reloading a good config sets the success reload timestamp
      Failure/Error: after(:each) { File.unlink(new_file) }

      Errno::EACCES:
        Permission denied - C:\Users\colin\AppData\Local\Temp/studtmp-a6ce9e9ad4f8790c92ac81e17f8035f016b3c25790caced01723fa942864
      # ./logstash-core/spec/logstash/agent_spec.rb:382:in `block in (root)'
      # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
      # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  11) LogStash::PluginManager::Utils::Downloader when the file exist when an exception occur deletes in progress file
      Failure/Error: expect(Dir.glob(::File.join(temporary_path, "**")).size).to eq(0)

        expected: 0
             got: 1

        (compared using ==)
      # ./spec/unit/plugin_manager/utils/downloader_spec.rb:65:in `block in (root)'
      # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
      # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  12) LogStash::PluginManager::PrepareOfflinePack when not debugging if the file already exist without `--overwrite` should fails
      Failure/Error: expect { subject.run(cmd_args) }.to raise_error Clamp::ExecutionError, /output file destination #{tmp_zip_file} already exist/

        expected Clamp::ExecutionError with message matching /output file destination C:\Users\colin\AppData\Local\Temp\/studtmp-736f44a38d83a59f27db76ba4d41a3cb3dd0c3a29df204a91a3aa703afbb\/myspecial
.zip already exist/, got #<Clamp::ExecutionError: Package creation cancelled: output file destination C:\Users\colin\AppData\L.../studtmp-736f44a38d83a59f27db76ba4d41a3cb3dd0c3a29df204a91a3aa703afbb/m
yspecial.zip already exists.> with backtrace:
          # ./lib/pluginmanager/prepare_offline_pack.rb:36:in `execute'
          # ./vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'
          # ./spec/unit/plugin_manager/prepare_offline_pack_spec.rb:110:in `block in (root)'
          # ./spec/unit/plugin_manager/prepare_offline_pack_spec.rb:110:in `block in (root)'
          # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
          # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'
      # ./spec/unit/plugin_manager/prepare_offline_pack_spec.rb:110:in `block in (root)'
      # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
      # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  13) LogStash::Api::Modules::NodeStats GET / should set 'process.cpu.load_average.1m' at '/' to be a 'Numeric'
      Failure/Error: expect(acc).to be_a(Hash), "Got a nil looking for #{resource_path} in #{payload}"
        Got a nil looking for ["process", "cpu", "load_average", "1m"] in {"host"=>"COLINSURPREF058", "version"=>"7.0.0-alpha1", "http_address"=>"127.0.0.1:9600", "id"=>"23334a78-81cb-4a0e-8288-de3c07
43e032", "name"=>"COLINSURPREF058", "jvm"=>{"threads"=>{"count"=>12, "peak_count"=>27}, "mem"=>{"heap_used_percent"=>58, "heap_committed_in_bytes"=>805425152, "heap_max_in_bytes"=>1056309248, "heap_us
ed_in_bytes"=>617171072, "non_heap_used_in_bytes"=>195462520, "non_heap_committed_in_bytes"=>235978752, "pools"=>{"survivor"=>{"peak_used_in_bytes"=>9572408, "used_in_bytes"=>1894568, "peak_max_in_byt
es"=>17432576, "max_in_bytes"=>17432576, "committed_in_bytes"=>17432576}, "old"=>{"peak_used_in_bytes"=>482921600, "used_in_bytes"=>482921600, "peak_max_in_bytes"=>899284992, "max_in_bytes"=>899284992
, "committed_in_bytes"=>648400896}, "young"=>{"peak_used_in_bytes"=>139591680, "used_in_bytes"=>132354904, "peak_max_in_bytes"=>139591680, "max_in_bytes"=>139591680, "committed_in_bytes"=>139591680}}}
, "gc"=>{"collectors"=>{"old"=>{"collection_time_in_millis"=>3631, "collection_count"=>56}, "young"=>{"collection_time_in_millis"=>8197, "collection_count"=>927}}}, "uptime_in_millis"=>593343}, "proce
ss"=>{"open_file_descriptors"=>-1, "peak_open_file_descriptors"=>-1, "max_file_descriptors"=>-1, "mem"=>{"total_virtual_in_bytes"=>-1}, "cpu"=>{"total_in_millis"=>-1, "percent"=>-3, "load_average"=>ni
l}}, "events"=>{"in"=>100, "filtered"=>100, "out"=>100, "duration_in_millis"=>94, "queue_push_duration_in_millis"=>0}, "pipelines"=>{"main"=>{"events"=>{"duration_in_millis"=>94, "in"=>100, "filtered"
=>100, "out"=>100, "queue_push_duration_in_millis"=>0}, "plugins"=>{"inputs"=>[{"id"=>"api-generator-pipeline", "events"=>{"out"=>100, "queue_push_duration_in_millis"=>0}, "name"=>"generator"}], "filt
ers"=>[], "outputs"=>[{"id"=>"5d2e9c9b7c6171771d1f9510313fda837d1a888b83d531fbc9512e3a929dab1a", "events"=>{"duration_in_millis"=>0, "in"=>100, "out"=>100}, "name"=>"dummyoutput"}]}, "reloads"=>{"last
_error"=>nil, "successes"=>0, "last_success_timestamp"=>nil, "last_failure_timestamp"=>nil, "failures"=>0}, "queue"=>{"type"=>"memory_acked"}}}, "reloads"=>{"successes"=>0, "failures"=>0}, "os"=>{}}
      # ./spec/support/resource_dsl_methods.rb:66:in `block in test_api'
      # ./spec/support/resource_dsl_methods.rb:65:in `block in test_api'
      # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
      # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  14) LogStash::Api::Modules::NodeStats GET /process should set 'process.cpu.load_average.1m' at '/process' to be a 'Numeric'
      Failure/Error: expect(acc).to be_a(Hash), "Got a nil looking for #{resource_path} in #{payload}"
        Got a nil looking for ["process", "cpu", "load_average", "1m"] in {"host"=>"COLINSURPREF058", "version"=>"7.0.0-alpha1", "http_address"=>"127.0.0.1:9600", "id"=>"23334a78-81cb-4a0e-8288-de3c07
43e032", "name"=>"COLINSURPREF058", "process"=>{"open_file_descriptors"=>-1, "peak_open_file_descriptors"=>-1, "max_file_descriptors"=>-1, "mem"=>{"total_virtual_in_bytes"=>-1}, "cpu"=>{"total_in_mill
is"=>-1, "percent"=>-3, "load_average"=>nil}}}
      # ./spec/support/resource_dsl_methods.rb:66:in `block in test_api'
      # ./spec/support/resource_dsl_methods.rb:65:in `block in test_api'
      # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
      # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  15) LogStash::PluginManager::PackFetchStrategy::Uri when we have a local path returns a `LocalInstaller`
      Failure/Error: expect(subject.get_installer_for(plugin_path)).to be_kind_of(LogStash::PluginManager::PackInstaller::Local)
        expected nil to be a kind of LogStash::PluginManager::PackInstaller::Local
      # ./spec/unit/plugin_manager/pack_fetch_strategy/uri_spec.rb:41:in `block in (root)'
      # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
      # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  16) LogStash::Config::Source::Local::ConfigPathLoader when it exist relative path returns valid `config_parts`
      Failure/Error: expect(part).to be_a_source_with_metadata("file", file_path, content)
        expected #<Java::OrgLogstashCommon::SourceWithMetadata:0x70316eef> to be a source with metadata "file", "C:\\Users\\colin\\AppData\\Local\\Temp/studtmp-6074be66f4527305b869d987e5c384b2baf3c610
727ede5b34ff5904ea36/config1.conf", and "input2"
      Shared Example Group: "read config from files" called from ./logstash-core/spec/logstash/config/source/local_spec.rb:224
      # ./logstash-core/spec/logstash/config/source/local_spec.rb:84:in `block in (root)'
      # ./logstash-core/spec/logstash/config/source/local_spec.rb:80:in `block in (root)'
      # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
      # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  17) LogStash::Config::Source::Local::ConfigPathLoader when it exist URI defined path (file://..) returns valid `config_parts`
      Failure/Error: expect(part).to be_a_source_with_metadata("file", file_path, content)
        expected #<Java::OrgLogstashCommon::SourceWithMetadata:0x3bd015e9> to be a source with metadata "file", "C:\\Users\\colin\\AppData\\Local\\Temp/studtmp-4db8e901ebb1787ea99a002a38f51b09c8088761
a8e3a71b638fb44e0f1d/config1.conf", and "input1"
      Shared Example Group: "read config from files" called from ./logstash-core/spec/logstash/config/source/local_spec.rb:208
      # ./logstash-core/spec/logstash/config/source/local_spec.rb:84:in `block in (root)'
      # ./logstash-core/spec/logstash/config/source/local_spec.rb:80:in `block in (root)'
      # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
      # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  18) LogStash::Config::Source::Local::ConfigPathLoader when it exist when there temporary files in the directory returns valid `config_parts`
      Failure/Error: expect(part).to be_a_source_with_metadata("file", file_path, content)
        expected #<Java::OrgLogstashCommon::SourceWithMetadata:0x7c141811> to be a source with metadata "file", "C:\\Users\\colin\\AppData\\Local\\Temp/studtmp-f20e446810d70cbe148671a51c9d1b341f0d877d
c55ee1410d21d99148c1/config1.conf", and "input1"
      Shared Example Group: "read config from files" called from ./logstash-core/spec/logstash/config/source/local_spec.rb:153
      # ./logstash-core/spec/logstash/config/source/local_spec.rb:84:in `block in (root)'
      # ./logstash-core/spec/logstash/config/source/local_spec.rb:80:in `block in (root)'
      # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
      # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  19) LogStash::Config::Source::Local::ConfigPathLoader when it exist when the files have invalid encoding raises an exception
      Failure/Error: expect { subject.read(file_path) }.to raise_error LogStash::ConfigLoadingError, /#{file_path}/

        expected LogStash::ConfigLoadingError with message matching /C:\Users\colin\AppData\Local\Temp\/studtmp-d2d79ef0bd1899918f2a10821605cb5f2e672f1aa2cc64276cfa048f0edb/, got #<LogStash::ConfigLoa
dingError: The following config files contains non-ascii characters but are not ...cal/Temp/studtmp-d2d79ef0bd1899918f2a10821605cb5f2e672f1aa2cc64276cfa048f0edb/wrong_encoding.conf"]> with backtrace:
          # ./logstash-core/lib/logstash/config/source/local.rb:84:in `read'
          # ./logstash-core/lib/logstash/config/source/local.rb:95:in `read'
          # ./logstash-core/spec/logstash/config/source/local_spec.rb:102:in `block in (root)'
          # ./logstash-core/spec/logstash/config/source/local_spec.rb:102:in `block in (root)'
          # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
          # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'
      # ./logstash-core/spec/logstash/config/source/local_spec.rb:102:in `block in (root)'
      # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
      # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  20) LogStash::Config::Source::Local::ConfigPathLoader when it exist when we target a path with multiples files returns valid `config_parts`
      Failure/Error: expect(part).to be_a_source_with_metadata("file", file_path, content)
        expected #<Java::OrgLogstashCommon::SourceWithMetadata:0x75e09930> to be a source with metadata "file", "C:\\Users\\colin\\AppData\\Local\\Temp/studtmp-b936c67f3b9d075bf76d3b977e853bb6451d4f8b
5a99e880aefbaa6c5035/config1.conf", and "input1"
      Shared Example Group: "read config from files" called from ./logstash-core/spec/logstash/config/source/local_spec.rb:129
      # ./logstash-core/spec/logstash/config/source/local_spec.rb:84:in `block in (root)'
      # ./logstash-core/spec/logstash/config/source/local_spec.rb:80:in `block in (root)'
      # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
      # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  21) LogStash::Config::Source::Local::ConfigPathLoader when it exist when we target one file returns valid `config_parts`
      Failure/Error: expect(part).to be_a_source_with_metadata("file", file_path, content)
        expected #<Java::OrgLogstashCommon::SourceWithMetadata:0x7c475fa3> to be a source with metadata "file", "C:\\Users\\colin\\AppData\\Local\\Temp/studtmp-784f71953aa9d33a1a9d66cbc9a744f5d65be8b2
de170ca95ee0b4379f7b/config1.conf", and "input1"
      Shared Example Group: "read config from files" called from ./logstash-core/spec/logstash/config/source/local_spec.rb:114
      # ./logstash-core/spec/logstash/config/source/local_spec.rb:84:in `block in (root)'
      # ./logstash-core/spec/logstash/config/source/local_spec.rb:80:in `block in (root)'
      # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
      # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  22) LogStash::Config::Source::Local::ConfigPathLoader when it exist when the path is a wildcard returns valid `config_parts`
      Failure/Error: expect(part).to be_a_source_with_metadata("file", file_path, content)
        expected #<Java::OrgLogstashCommon::SourceWithMetadata:0x573ac679> to be a source with metadata "file", "C:\\Users\\colin\\AppData\\Local\\Temp/studtmp-4a4258fd28671cd2f08e4e98a68ebc4460ae93af
1371553cb17e14cd9704/config1.conf", and "input1"
      Shared Example Group: "read config from files" called from ./logstash-core/spec/logstash/config/source/local_spec.rb:187
      # ./logstash-core/spec/logstash/config/source/local_spec.rb:84:in `block in (root)'
      # ./logstash-core/spec/logstash/config/source/local_spec.rb:80:in `block in (root)'
      # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
      # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  23) LogStash::Pipeline dlq is enabled retrieves proper pipeline-level DLQ writer
      Failure/Error: FileUtils.remove_entry pipeline_settings["path.dead_letter_queue"]

      Errno::ENOTEMPTY:
        Directory not empty - C:/Users/colin/AppData/Local/Temp/d20170825-616-3k7qkt
      # ./logstash-core/spec/logstash/pipeline_dlq_commit_spec.rb:70:in `block in (root)'
      # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
      # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  24) LogStash::Setting::WritableDirectory#value when the directory is missing and the directory cannot be created should fail
      Got 1 failure and 1 other error:

      24.1) Failure/Error: expect { subject.value }.to raise_error
              expected Exception but nothing was raised
            # ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:49:in `block in (root)'
            # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
            # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

      24.2) Failure/Error: after { Dir.unlink(parent) }

            Errno::ENOTEMPTY:
              Directory not empty - C:/Users/colin/AppData/Local/Temp/1503681695.316
            # ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:16:in `block in (root)'
            # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
            # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  25) LogStash::Setting::WritableDirectory#set and #validate_value when the directory exists but is not writable behaves like failure should fail
      Failure/Error: expect { subject.validate_value }.to raise_error
        expected Exception but nothing was raised
      Shared Example Group: "failure" called from ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:70
      # ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:21:in `block in (root)'
      # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
      # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  26) LogStash::Setting::WritableDirectory#set and #validate_value when the directory is missing and cannot be created behaves like failure should fail
      Got 1 failure and 1 other error:
      Shared Example Group: "failure" called from ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:121

      26.1) Failure/Error: expect { subject.validate_value }.to raise_error
              expected Exception but nothing was raised
            # ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:21:in `block in (root)'
            # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
            # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

      26.2) Failure/Error: after { Dir.unlink(parent) }

            Errno::ENOTEMPTY:
              Directory not empty - C:/Users/colin/AppData/Local/Temp/1503681695.347
            # ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:16:in `block in (root)'
            # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
            # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  27) LogStash::Setting::WritableDirectory#set and #validate_value when the path exists but is a symlink behaves like failure should fail
      Got 0 failures and 2 other errors:
      Shared Example Group: "failure" called from ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:91

      27.1) Failure/Error: before { File::symlink("whatever", path) }

            SystemCallError:
              Unknown error (SystemCallError) 1314 - CreateSymbolicLink
            # uri:classloader:/jruby/kernel/file.rb:115:in `symlink'
            # ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:90:in `block in (root)'
            # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
            # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

      27.2) Failure/Error: after { File.unlink(path) }

            Errno::ENOENT:
              No such file or directory - C:/Users/colin/AppData/Local/Temp/1503681695.363/fancy
            # ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:75:in `block in (root)'
            # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
            # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

  28) LogStash::Setting::WritableDirectory#set and #validate_value when the path exists but is a socket behaves like failure should fail
      Got 0 failures and 3 other errors:
      Shared Example Group: "failure" called from ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:86

      28.1) Failure/Error: let(:socket) { UNIXServer.new(path) }

            NameError:
              uninitialized constant UNIXServer
            # ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:83:in `block in socket'
            # ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:84:in `block in (root)'
            # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
            # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

      28.2) Failure/Error: let(:socket) { UNIXServer.new(path) }

            NameError:
              uninitialized constant UNIXServer
            # ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:83:in `block in socket'
            # ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:85:in `block in (root)'
            # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
            # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

      28.3) Failure/Error: after { File.unlink(path) }

            Errno::ENOENT:
              No such file or directory - C:/Users/colin/AppData/Local/Temp/1503681695.441/fancy
            # ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:75:in `block in (root)'
            # ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in C:/Users/colin/dev/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
            # C:\Users\colin\dev\logstash\lib\bootstrap\rspec.rb:13:in `<main>'

Finished in 10 minutes 16 seconds (files took 16.28 seconds to load)
2641 examples, 28 failures, 3 pending

Failed examples:

rspec ./logstash-core/spec/logstash/agent/metrics_spec.rb:89 # LogStash::Agent when we try to start one pipeline and it succeed sets the `last_error` to nil
rspec ./logstash-core/spec/logstash/pipeline_action/create_spec.rb:48 # LogStash::PipelineAction::Create when the pipeline successfully start returns a successful execution status
rspec ./logstash-core/spec/logstash/pipeline_action/create_spec.rb:33 # LogStash::PipelineAction::Create when we have really short lived pipeline returns a successful execution status
rspec ./logstash-core/spec/logstash/pipeline_action/create_spec.rb:65 # LogStash::PipelineAction::Create when the pipeline doesn't start with an error raised during `#register` returns false
rspec ./logstash-core/spec/logstash/pipeline_action/stop_spec.rb:26 # LogStash::PipelineAction::Stop returns the pipeline_id
rspec ./logstash-core/spec/logstash/pipeline_action/stop_spec.rb:34 # LogStash::PipelineAction::Stop removes the pipeline from the running pipelines
rspec ./logstash-core/spec/logstash/agent_spec.rb:305 # LogStash::Agent#upgrade_pipeline when the upgrade succeeds starts the pipeline
rspec ./logstash-core/spec/logstash/agent_spec.rb:404 # LogStash::Agent metrics after config reloading when reloading a good config does not set the failure reload timestamp
rspec ./logstash-core/spec/logstash/agent_spec.rb:396 # LogStash::Agent metrics after config reloading when reloading a good config increases the successful reload count
rspec ./logstash-core/spec/logstash/agent_spec.rb:410 # LogStash::Agent metrics after config reloading when reloading a good config sets the success reload timestamp
rspec ./spec/unit/plugin_manager/utils/downloader_spec.rb:63 # LogStash::PluginManager::Utils::Downloader when the file exist when an exception occur deletes in progress file
rspec ./spec/unit/plugin_manager/prepare_offline_pack_spec.rb:109 # LogStash::PluginManager::PrepareOfflinePack when not debugging if the file already exist without `--overwrite` should fails
rspec './logstash-core/spec/logstash/api/modules/node_stats_spec.rb[1:2:34]' # LogStash::Api::Modules::NodeStats GET / should set 'process.cpu.load_average.1m' at '/' to be a 'Numeric'
rspec './logstash-core/spec/logstash/api/modules/node_stats_spec.rb[1:4:9]' # LogStash::Api::Modules::NodeStats GET /process should set 'process.cpu.load_average.1m' at '/process' to be a 'Numeric'
rspec ./spec/unit/plugin_manager/pack_fetch_strategy/uri_spec.rb:40 # LogStash::PluginManager::PackFetchStrategy::Uri when we have a local path returns a `LocalInstaller`
rspec './logstash-core/spec/logstash/config/source/local_spec.rb[2:2:7:3]' # LogStash::Config::Source::Local::ConfigPathLoader when it exist relative path returns valid `config_parts`
rspec './logstash-core/spec/logstash/config/source/local_spec.rb[2:2:6:3]' # LogStash::Config::Source::Local::ConfigPathLoader when it exist URI defined path (file://..) returns valid `config_parts`
rspec './logstash-core/spec/logstash/config/source/local_spec.rb[2:2:4:3]' # LogStash::Config::Source::Local::ConfigPathLoader when it exist when there temporary files in the directory returns valid `
config_parts`
rspec ./logstash-core/spec/logstash/config/source/local_spec.rb:101 # LogStash::Config::Source::Local::ConfigPathLoader when it exist when the files have invalid encoding raises an exception
rspec './logstash-core/spec/logstash/config/source/local_spec.rb[2:2:3:3]' # LogStash::Config::Source::Local::ConfigPathLoader when it exist when we target a path with multiples files returns valid `c
onfig_parts`
rspec './logstash-core/spec/logstash/config/source/local_spec.rb[2:2:2:3]' # LogStash::Config::Source::Local::ConfigPathLoader when it exist when we target one file returns valid `config_parts`
rspec './logstash-core/spec/logstash/config/source/local_spec.rb[2:2:5:3]' # LogStash::Config::Source::Local::ConfigPathLoader when it exist when the path is a wildcard returns valid `config_parts`
rspec ./logstash-core/spec/logstash/pipeline_dlq_commit_spec.rb:77 # LogStash::Pipeline dlq is enabled retrieves proper pipeline-level DLQ writer
rspec ./logstash-core/spec/logstash/settings/writable_directory_spec.rb:48 # LogStash::Setting::WritableDirectory#value when the directory is missing and the directory cannot be created should fail
rspec './logstash-core/spec/logstash/settings/writable_directory_spec.rb[1:2:1:2:1:1]' # LogStash::Setting::WritableDirectory#set and #validate_value when the directory exists but is not writable beha
ves like failure should fail
rspec './logstash-core/spec/logstash/settings/writable_directory_spec.rb[1:2:3:2:1:1]' # LogStash::Setting::WritableDirectory#set and #validate_value when the directory is missing and cannot be create
d behaves like failure should fail
rspec './logstash-core/spec/logstash/settings/writable_directory_spec.rb[1:2:2:3:1:1]' # LogStash::Setting::WritableDirectory#set and #validate_value when the path exists but is a symlink behaves like
 failure should fail
rspec './logstash-core/spec/logstash/settings/writable_directory_spec.rb[1:2:2:2:1:1]' # LogStash::Setting::WritableDirectory#set and #validate_value when the path exists but is a socket behaves like
failure should fail

Randomized with seed 36679

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions