-
Type: Improvement
-
Resolution: Unresolved
-
Priority: 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.