Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-947

Failure in test-requireApiVersion task on MongoDB 6.0 in legacy CSFLE spec test for explain

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.17.0
    • Affects Version/s: None
    • Component/s: None
    • None

      mongodb/mongo-php-library@0fe1a0f for PHPLIB-911 resulted in crypt_shared being used by default for server versions where it's available.

      This resulted in a new failure in the test-requireApiVersion task for 6.0 in the legacy CSFLE test suite's explain.yml test. The apiVersion field is not present in the outgoing explain command.

      This initially seemed related to SERVER-58293; however, that pertained to mongocryptd and was fixed in 5.0.3 and 5.1.0-rc0. kevin.albertson@mongodb.com thought this might be a new issue in crypt_shared, which is being tracked in SERVER-69564.

      Task failure copied below:

      [2022/09/08 02:51:10.623] FAILURE:  (PHPUnit\Framework\AssertionFailedError)
      [2022/09/08 02:51:10.623] MongoDB\Tests\SpecTests\ClientSideEncryptionSpecTest::testClientSideEncryption with data set "explain: Explain a find with deterministic encryption" (stdClass Object (...), array(stdClass Object (...)), array(stdClass Object (...), stdClass Object (...)), null, array(stdClass Object (...)), stdClass Object (...), 'default', 'default')
      [2022/09/08 02:51:10.623] Operation threw unexpected MongoDB\Driver\Exception\CommandException: The apiVersion parameter is required, please configure your MongoClient's API version
      [2022/09/08 02:51:10.623] #0 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/src/Operation/DatabaseCommand.php(100): MongoDB\Driver\Server->executeCommand('default', Object(MongoDB\Driver\Command), Array)
      [2022/09/08 02:51:10.623] #1 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/src/Database.php(253): MongoDB\Operation\DatabaseCommand->execute(Object(MongoDB\Driver\Server))
      [2022/09/08 02:51:10.623] #2 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/tests/SpecTests/Operation.php(500): MongoDB\Database->command(Object(stdClass), Array)
      [2022/09/08 02:51:10.623] #3 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/tests/SpecTests/Operation.php(255): MongoDB\Tests\SpecTests\Operation->executeForDatabase(Object(MongoDB\Database), Object(MongoDB\Tests\SpecTests\Context))
      [2022/09/08 02:51:10.623] #4 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/tests/SpecTests/Operation.php(201): MongoDB\Tests\SpecTests\Operation->execute(Object(MongoDB\Tests\SpecTests\ClientSideEncryptionSpecTest), Object(MongoDB\Tests\SpecTests\Context))
      [2022/09/08 02:51:10.623] #5 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/tests/SpecTests/ClientSideEncryptionSpecTest.php(161): MongoDB\Tests\SpecTests\Operation->assert(Object(MongoDB\Tests\SpecTests\ClientSideEncryptionSpecTest), Object(MongoDB\Tests\SpecTests\Context))
      [2022/09/08 02:51:10.623] #6 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/vendor/bin/.phpunit/phpunit-9.5-0/src/Framework/TestCase.php(1546): MongoDB\Tests\SpecTests\ClientSideEncryptionSpecTest->testClientSideEncryption(Object(stdClass), Array, Array, NULL, Array, Object(stdClass), 'default', 'default')
      [2022/09/08 02:51:10.623] #7 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/vendor/bin/.phpunit/phpunit-9.5-0/src/Framework/TestCase.php(1152): PHPUnit\Framework\TestCase->runTest()
      [2022/09/08 02:51:10.623] #8 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/vendor/bin/.phpunit/phpunit-9.5-0/src/Framework/TestResult.php(726): PHPUnit\Framework\TestCase->runBare()
      [2022/09/08 02:51:10.623] #9 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/vendor/bin/.phpunit/phpunit-9.5-0/src/Framework/TestCase.php(904): PHPUnit\Framework\TestResult->run(Object(MongoDB\Tests\SpecTests\ClientSideEncryptionSpecTest))
      [2022/09/08 02:51:10.623] #10 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/vendor/bin/.phpunit/phpunit-9.5-0/src/Framework/TestSuite.php(672): PHPUnit\Framework\TestCase->run(Object(PHPUnit\Framework\TestResult))
      [2022/09/08 02:51:10.623] #11 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/vendor/bin/.phpunit/phpunit-9.5-0/src/Framework/TestSuite.php(672): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
      [2022/09/08 02:51:10.623] #12 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/vendor/bin/.phpunit/phpunit-9.5-0/src/Framework/TestSuite.php(672): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
      [2022/09/08 02:51:10.623] #13 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/vendor/bin/.phpunit/phpunit-9.5-0/src/Framework/TestSuite.php(672): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
      [2022/09/08 02:51:10.623] #14 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/vendor/bin/.phpunit/phpunit-9.5-0/src/TextUI/TestRunner.php(673): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
      [2022/09/08 02:51:10.623] #15 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/vendor/bin/.phpunit/phpunit-9.5-0/src/TextUI/Command.php(143): PHPUnit\TextUI\TestRunner->run(Object(PHPUnit\Framework\TestSuite), Array, Array, true)
      [2022/09/08 02:51:10.623] #16 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/vendor/bin/.phpunit/phpunit-9.5-0/src/TextUI/Command.php(96): PHPUnit\TextUI\Command->run(Array, true)
      [2022/09/08 02:51:10.623] #17 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/vendor/bin/.phpunit/phpunit-9.5-0/phpunit(22): PHPUnit\TextUI\Command::main()
      [2022/09/08 02:51:10.623] #18 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php(437): include('/data/mci/92201...')
      [2022/09/08 02:51:10.623] #19 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/vendor/symfony/phpunit-bridge/bin/simple-phpunit(13): require('/data/mci/92201...')
      [2022/09/08 02:51:10.623] #20 /data/mci/92201bba36434d363ccca7b2ec0418a1/src/vendor/bin/simple-phpunit(120): include('/data/mci/92201...')
      [2022/09/08 02:51:10.623] #21 {main}
      [2022/09/08 02:51:10.623] /data/mci/92201bba36434d363ccca7b2ec0418a1/src/tests/SpecTests/ErrorExpectation.php:144
      [2022/09/08 02:51:10.623] /data/mci/92201bba36434d363ccca7b2ec0418a1/src/tests/SpecTests/Operation.php:220
      [2022/09/08 02:51:10.623] /data/mci/92201bba36434d363ccca7b2ec0418a1/src/tests/SpecTests/ClientSideEncryptionSpecTest.php:161
      

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: