Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-97542

Create time-series test helper to run integration tests with all bucket versions

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration

      Often we write time-series correctness tests with no specific bucket version in mind. By default, the server will use the most recent bucket version. Since some of our code behaves differently depending on the bucket version, it would be nice if we could have a helper that runs our test with all bucket versions. This includes version 1, 2 and 3, and also extended range, fixed, and normal.

      Currently this is a bit of a risk because customers may have old bucket versions that we don't test as thoroughly on master. One way for this helper to work would be

      function myTest(){ ... }
      // Runs myTest() repeatedly with different bucket versions for the data
      assertWithAllBucketVersions(myData, myTest)
      

      Another way to implement this from gil.alon@mongodb.com would be as a passthrough on time-series tests that could randomize bucket versions or rerun the test to try all of them.

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.boros@mongodb.com Matt Boros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: