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

Enable test commands in default test configuration and add guidance for dealing with ansi color output

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.12.0.rc0
    • Affects Version/s: None
    • Component/s: Tests
    • None
    • Environment:
    • Fully Compatible

      I tried running "rake" with standalone mongod 4.2 following this document.[
      https://github.com/mongodb/mongo-ruby-driver/blob/master/spec/README.md#standalone]

      Here is the steps: https://github.com/junaruga/report-mongo-ruby-with-mongo-4.2-on-fedora/blob/master/reproduce.md

       

      $ bundle install --path vendor/bundle --without release development
      $ vi .rspec
      => Replace "--colour" with "--no-colour".
      $ bundle exec rake 2>&1 | tee rake.log
      

       

      I faced "1969 failures". So, did you see the tests were succeeded in your internal CI?

      How can we simplify the output of the log? Right now the log is a mixture of the output of mongod and rspec. The "rake.log" is 118571 lines. It's very hard to see. Can we update the above document for simpler developer experience to test Ruby driver?

       

       

      ...
      1) Bulk insert inserted_ids entire operation fails is an empty array Failure/Error: raise error Mongo::Error::OperationFailure: no such command: 'configureFailPoint' (59) (on localhost:27017) (on localhost:27017) # ./lib/mongo/operation/result.rb:297:in `raise_operation_failure' # ./lib/mongo/operation/result.rb:268:in `validate!'
      ...
      Finished in 5 minutes 18 seconds (files took 4.97 seconds to load)
      16490 examples, 1969 failures, 7548 pending
      Failed examples:
      rspec ./spec/integration/bulk_insert_spec.rb:61 # Bulk insert inserted_ids entire operation fails is an empty array
      ...
      

       

       

      It is related to https://jira.mongodb.org/browse/RUBY-1775 .

      Thank you.

       

       

       

       

       

       

       

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

              Created:
              Updated:
              Resolved: