diff options
author | vrachev <vlad.rachev@mongodb.com> | 2020-06-04 10:22:50 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-13 01:05:45 +0000 |
commit | 5266a96260f70fc4d4d561d505f62bba4c2ff76b (patch) | |
tree | 2fb91a511f2e128608124e12482af0cadc2f16e5 /jstests/resmoke_selftest | |
parent | b54c472708d1be127174fca53d4b5995c7d64908 (diff) | |
download | mongo-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.js | 12 | ||||
-rw-r--r-- | jstests/resmoke_selftest/end2end/timeout/nested/top_level_timeout.js | 28 |
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); +} +})(); |