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

"FLE: latest ruby-3.1" fails in "snapshot_query_examples_spec.rb"

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.19.0
    • Affects Version/s: None
    • Component/s: Tests
    • None

      In the "FLE: latest ruby-3.1" variant, the "spec/integration/snapshot_query_examples_spec.rb" tests fail due to an aggregate command unexpectedly returning nil. This only happens in evergreen; when run locally with the same configuration, the tests pass.

      Unable to find source-code formatter for language: text. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      Failure/Error:
        adoptable_pets_count = client['cats'].aggregate([
          { "$match": { "adoptable": true } },
          { "$count": "adoptable_cats_count" }
        ], session: session).first["adoptable_cats_count"]
      
      NoMethodError:
        undefined method `[]' for nil:NilClass
      
                ], session: session).first["adoptable_cats_count"]
                                          ^^^^^^^^^^^^^^^^^^^^^^^^
      # ./spec/integration/snapshot_query_examples_spec.rb:56:in `block (4 levels) in <top (required)>'
      # ./lib/mongo/client.rb:1014:in `start_session'
      # ./spec/integration/snapshot_query_examples_spec.rb:52:in `block (3 levels) in <top (required)>'
      # ./spec/lite_spec_helper.rb:141:in `block (3 levels) in <top (required)>'
      # ./spec/lite_spec_helper.rb:140:in `block (2 levels) in <top (required)>'
      # ./spec/lite_spec_helper.rb:120:in `block (2 levels) in <top (required)>'
      

      -> Evergreen link

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            jamis.buck@mongodb.com Jamis Buck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: