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

Address flakiness in CSFLE deadlock prevention and unskip tests

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing

      Use Case

      As a CSFLE user
      I want the deadlock tests to consistently run
      So that I can check that the results are assured.

      Our deadlock prevention tests sometimes flake during set up, which makes me believe it doesn't have to do with the actual testing itself. The beforeEach hook fails with MongoCryptError: not all keys requested were satisfied. It only occurs in evergreen.

      Dependencies

      • CSFLE and deadlock prevention tests

      Unknowns

      • what causes this error to occur
      • is it in the promise chain or is it throw synchronously hard to tell

      Acceptance Criteria

      Implementation Requirements
      • remove skip logic from tests, run a few times to see error
      • investigate what causes it, and fix it, ensure tests pass with a few runs
      Testing Requirements
      • Optionally make use of mocha's retry functionality, it doesn't work on hooks, so need to move logic into tests
      Documentation Requirements
      • None
      Follow Up Requirements
      • None

            Assignee:
            Unassigned Unassigned
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: