Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-6528

Legacy Unit Tests Failing on Bulk Write API

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • 2
    • 2
    • Not Needed
    • Hide

      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.

      Show
      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.
    • Not Needed

      After the merge of CSOT into the main driver the mongodb-legacy unit tests fail when testing an unordered bulk write:

       Exception during run: TypeError: Cannot read properties of undefined (reading 'timeoutMS')
          at LegacyCollection.get timeoutMS [as timeoutMS] (/home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/node_modules/mongodb/src/collection.ts:269:27)
          at resolveOptions (/home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/node_modules/mongodb/src/utils.ts:519:49)
          at LegacyCollection.initializeOrderedBulkOp (/home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/node_modules/mongodb/src/collection.ts:1147:75)
          at LegacyCollection.initializeOrderedBulkOp (/home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/src/legacy_wrappers/collection.js:342:20)
          at /home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/test/unit/api.test.js:33:45
          at generateTests (/home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/test/unit/api.test.js:85:24)
          at generateTests.next (<anonymous>)
          at Suite.<anonymous> (/home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/test/unit/api.test.js:128:3)
          at Object.create (/home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/node_modules/mocha/lib/interfaces/common.js:148:19)
          at context.describe.context.context (/home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/node_modules/mocha/lib/interfaces/bdd.js:42:27)
          at Object.<anonymous> (/home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/test/unit/api.test.js:111:1)
          at Module._compile (node:internal/modules/cjs/loader:1546:14)
          at node:internal/modules/cjs/loader:1689:10
          at Object.require.extensions.<computed> [as .js] (/home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/node_modules/ts-node/src/index.ts:1608:43)
          at Module.load (node:internal/modules/cjs/loader:1318:32)
          at Function._load (node:internal/modules/cjs/loader:1128:12)
          at TracingChannel.traceSync (node:diagnostics_channel:315:14)
          at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
          at cjsLoader (node:internal/modules/esm/translators:263:5)
          at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:196:7)
          at ModuleJob.run (node:internal/modules/esm/module_job:268:25)
          at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:543:26)
          at async formattedImport (/home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/node_modules/mocha/lib/nodejs/esm-utils.js:9:14)
          at async Object.exports.requireOrImport (/home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/node_modules/mocha/lib/nodejs/esm-utils.js:42:28)
          at async Object.exports.loadFilesAsync (/home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/node_modules/mocha/lib/nodejs/esm-utils.js:100:20)
          at async singleRun (/home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/node_modules/mocha/lib/cli/run-helpers.js:162:3)
          at async Object.exports.handler (/home/runner/work/nodejs-mongodb-legacy/nodejs-mongodb-legacy/node_modules/mocha/lib/cli/run.js:375:5)
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            durran.jordan@mongodb.com Durran Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: