summaryrefslogtreecommitdiff
path: root/jstests/resmoke_selftest
diff options
context:
space:
mode:
authorvrachev <vlad.rachev@mongodb.com>2020-06-04 10:22:50 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-13 01:05:45 +0000
commit5266a96260f70fc4d4d561d505f62bba4c2ff76b (patch)
tree2fb91a511f2e128608124e12482af0cadc2f16e5 /jstests/resmoke_selftest
parentb54c472708d1be127174fca53d4b5995c7d64908 (diff)
downloadmongo-5266a96260f70fc4d4d561d505f62bba4c2ff76b.tar.gz
SERVER-46687 Run hang-analyzer from resmoke and integrate with archival
Diffstat (limited to 'jstests/resmoke_selftest')
-rw-r--r--jstests/resmoke_selftest/end2end/timeout/nested/inner_level_timeout.js12
-rw-r--r--jstests/resmoke_selftest/end2end/timeout/nested/top_level_timeout.js28
2 files changed, 40 insertions, 0 deletions
diff --git a/jstests/resmoke_selftest/end2end/timeout/nested/inner_level_timeout.js b/jstests/resmoke_selftest/end2end/timeout/nested/inner_level_timeout.js
new file mode 100644
index 00000000000..960a56308cf
--- /dev/null
+++ b/jstests/resmoke_selftest/end2end/timeout/nested/inner_level_timeout.js
@@ -0,0 +1,12 @@
+(function() {
+'use strict';
+
+const rst = new ReplSetTest({nodes: 2});
+rst.startSet();
+rst.initiate();
+
+while (true) {
+ print("looping");
+ sleep(1000);
+}
+})();
diff --git a/jstests/resmoke_selftest/end2end/timeout/nested/top_level_timeout.js b/jstests/resmoke_selftest/end2end/timeout/nested/top_level_timeout.js
new file mode 100644
index 00000000000..065b9dcd55e
--- /dev/null
+++ b/jstests/resmoke_selftest/end2end/timeout/nested/top_level_timeout.js
@@ -0,0 +1,28 @@
+(function() {
+'use strict';
+
+const rst = new ReplSetTest({nodes: 2});
+rst.startSet();
+rst.initiate();
+
+function start() {
+ const resmokeCmd = 'python3 buildscripts/resmoke.py run ' +
+ '--storageEngineCacheSizeGB=1 --dbpathPrefix=/data/db/selftest_inner ' +
+ '--internalParam=test_archival --taskId=123 ' +
+ '--internalParam=is_inner_level ' +
+ '--basePort=20020 ' +
+ '--suites=buildscripts/tests/resmoke_end2end/suites/resmoke_selftest_nested_timeout.yml ' +
+ 'jstests/resmoke_selftest/end2end/timeout/nested/inner_level_timeout.js';
+
+ // Start a new resmoke test
+ return _startMongoProgram({args: resmokeCmd.split(' ')});
+}
+
+const pid = start();
+
+while (true) {
+ checkProgram(pid);
+ print("looping");
+ sleep(1000);
+}
+})();