Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2440

Missing mrss libraries

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Seeing the document to run the unit tests [1], I find missing mrss libraries.

      $ bundle install --path vendor/bundle
      
      $ bundle exec rake
      [mongo] Warning: No private key present, creating unsigned gem.
      rake aborted!
      LoadError: cannot load such file -- mrss/spec_organizer
      /home/jaruga/git/mongo-ruby-driver/Rakefile:21:in `require'
      /home/jaruga/git/mongo-ruby-driver/Rakefile:21:in `<top (required)>'
      /home/jaruga/git/mongo-ruby-driver/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
      /usr/local/ruby-2.7.1/bin/bundle:23:in `load'
      /usr/local/ruby-2.7.1/bin/bundle:23:in `<main>'
      (See full trace by running task with --trace)
      
      LoadError:
        cannot load such file -- mrss/lite_constraints
      # ./spec/lite_spec_helper.rb:72:in `require'
      # ./spec/lite_spec_helper.rb:72:in `<top (required)>'
      # ./spec/spec_helper.rb:1:in `require'
      # ./spec/spec_helper.rb:1:in `<top (required)>'
      # ./spec/stress/fork_reconnect_stress_spec.rb:1:in `require'
      # ./spec/stress/fork_reconnect_stress_spec.rb:1:in `<top (required)>'
      

      Could you add the dependency to Gemfile, or the skip the logic like this to pass the tests?

      -require 'mrss/spec_organizer'
      +begin
      +  require 'mrss/spec_organizer'
      +rescue LoadError
      +  warn '[FAIL] mrss/spec_organizer not found!'
      +end
      

      Thank you.

      [1] https://github.com/mongodb/mongo-ruby-driver/blob/master/spec/README.md

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            jaruga@redhat.com Jun Aruga
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: