summaryrefslogtreecommitdiff
path: root/jstests/libs/parallelTester.js
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2020-12-17 21:17:32 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-12-18 02:36:48 +0000
commitf46bc1279d81e1982137364dd60c0e274d2cc80d (patch)
tree2f8302beb81f387b2cb47fb7766d2af19717760f /jstests/libs/parallelTester.js
parent13cdf63ab3f6a3d622c0587ad6f464fe8939f3b0 (diff)
downloadmongo-f46bc1279d81e1982137364dd60c0e274d2cc80d.tar.gz
SERVER-53416 exclude time-series tests from parallel tests when using legacy read mode
Diffstat (limited to 'jstests/libs/parallelTester.js')
-rw-r--r--jstests/libs/parallelTester.js34
1 files changed, 20 insertions, 14 deletions
diff --git a/jstests/libs/parallelTester.js b/jstests/libs/parallelTester.js
index a624ee2ba99..2098fea3228 100644
--- a/jstests/libs/parallelTester.js
+++ b/jstests/libs/parallelTester.js
@@ -219,6 +219,20 @@ if (typeof _threadInject != "undefined") {
"require_api_version.js",
]);
+ // Get files, including files in subdirectories.
+ var getFilesRecursive = function(dir) {
+ var files = listFiles(dir);
+ var fileList = [];
+ files.forEach(file => {
+ if (file.isDirectory) {
+ getFilesRecursive(file.name).forEach(subDirFile => fileList.push(subDirFile));
+ } else {
+ fileList.push(file);
+ }
+ });
+ return fileList;
+ };
+
// The following tests cannot run when shell readMode is legacy.
if (db.getMongo().readMode() === "legacy") {
var requires_find_command = [
@@ -238,21 +252,13 @@ if (typeof _threadInject != "undefined") {
"wildcard_index_collation.js"
];
Object.assign(skipTests, makeKeys(requires_find_command));
- }
- // Get files, including files in subdirectories.
- var getFilesRecursive = function(dir) {
- var files = listFiles(dir);
- var fileList = [];
- files.forEach(file => {
- if (file.isDirectory) {
- getFilesRecursive(file.name).forEach(subDirFile => fileList.push(subDirFile));
- } else {
- fileList.push(file);
- }
- });
- return fileList;
- };
+ // Time-series collections require support for views, so are incompatible with legacy
+ // readMode.
+ const timeseriesTestFiles =
+ getFilesRecursive('jstests/core/timeseries').map(f => ('timeseries/' + f.baseName));
+ Object.assign(skipTests, makeKeys(timeseriesTestFiles));
+ }
// Transactions are not supported on standalone nodes so we do not run them here.
let txnsTestFiles = getFilesRecursive("jstests/core/txns").map(f => ("txns/" + f.baseName));