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

Retry unified tests that access KMS

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.19.0
    • Affects Version/s: None
    • Component/s: Tests

      Some unified tests access a KMS and can fail due to network intermittently not working:

      [2022-08-01 14:57:36.376]   1) Client side encryption spec tests - unified unified/rewrapManyDataKey.yml rewrap with new AWS KMS provider passes
      [2022-08-01 14:57:36.376]      Failure/Error: raise Error::KmsError, "Error when connecting to KMS provider: #{e.class}: #{e.message}"
      [2022-08-01 14:57:36.376]      
      [2022-08-01 14:57:36.376]      Mongo::Error::KmsError:
      [2022-08-01 14:57:36.376]        Error when connecting to KMS provider: Mongo::Error::SocketTimeoutError: Socket read operation timed out
      [2022-08-01 14:57:36.376]      # ./lib/mongo/crypt/encryption_io.rb:337:in `with_ssl_socket'
      [2022-08-01 14:57:36.376]      # ./lib/mongo/crypt/encryption_io.rb:140:in `feed_kms'
      [2022-08-01 14:57:36.376]      # ./lib/mongo/crypt/context.rb:109:in `run_state_machine'
      [2022-08-01 14:57:36.376]      # ./lib/mongo/crypt/explicit_encrypter.rb:212:in `rewrap_many_data_key'
      [2022-08-01 14:57:36.376]      # ./lib/mongo/client_encryption.rb:205:in `rewrap_many_data_key'
      [2022-08-01 14:57:36.376]      # ./spec/runners/unified/client_side_encryption_operations.rb:76:in `block in rewrap_many_data_key'
      [2022-08-01 14:57:36.376]      # ./spec/runners/unified/test.rb:433:in `use_all'
      [2022-08-01 14:57:36.376]      # ./spec/runners/unified/test.rb:428:in `use_sub'
      [2022-08-01 14:57:36.376]      # ./spec/runners/unified/test.rb:442:in `use_arguments'
      [2022-08-01 14:57:36.376]      # ./spec/runners/unified/client_side_encryption_operations.rb:73:in `rewrap_many_data_key'
      [2022-08-01 14:57:36.376]      # ./spec/runners/unified/test.rb:406:in `block in execute_operation'
      [2022-08-01 14:57:36.376]      # ./spec/runners/unified/test.rb:433:in `use_all'
      [2022-08-01 14:57:36.376]      # ./spec/runners/unified/test.rb:333:in `execute_operation'
      [2022-08-01 14:57:36.376]      # ./spec/runners/unified/test.rb:328:in `block in execute_operations'
      [2022-08-01 14:57:36.376]      # ./spec/runners/unified/test.rb:327:in `execute_operations'
      [2022-08-01 14:57:36.376]      # ./spec/runners/unified/test.rb:297:in `run'
      [2022-08-01 14:57:36.376]      # ./spec/runners/unified.rb:96:in `block in define_unified_spec_tests'
      [2022-08-01 14:57:36.376]      # ./spec/support/macros.rb:12:in `block in config_override'
      [2022-08-01 14:57:36.376]      # ./spec/lite_spec_helper.rb:141:in `block in <main>'
      [2022-08-01 14:57:36.376]      # ./spec/lite_spec_helper.rb:140:in `block in <main>'
      [2022-08-01 14:57:36.376]      # ./spec/lite_spec_helper.rb:120:in `block in <main>'
      [2022-08-01 14:57:36.376]      # ------------------
      [2022-08-01 14:57:36.376]      # --- Caused by: ---
      [2022-08-01 14:57:36.376]      # Timeout::Error:
      [2022-08-01 14:57:36.376]      #   execution expired
      [2022-08-01 14:57:36.376]      #   ./lib/mongo/crypt/encryption_io.rb:152:in `block in feed_kms'
      [2022-08-01 14:57:36.376]
      

      These tests should be retried using rspec-retry.

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: