diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2019-03-18 13:14:22 -0400 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2019-03-18 13:14:22 -0400 |
commit | bd487118cc1f8d233881950f81006c9da89377b9 (patch) | |
tree | 46ac3f0b14508ffc1e563904b1e2b97f76d02b85 /buildscripts/burn_in_tests.py | |
parent | c90d961fbe008f81455ceaf53a4c8284eb76bbc5 (diff) | |
download | mongo-bd487118cc1f8d233881950f81006c9da89377b9.tar.gz |
Revert "SERVER-39311 Enable burn_in repetition count: at least 2 executions, with a maximum of 1000 excutions or 10 minutes of execution time"
This reverts commit df4243e71b7c69c4da59c90e657f0749d6c9c979.
Diffstat (limited to 'buildscripts/burn_in_tests.py')
-rw-r--r-- | buildscripts/burn_in_tests.py | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/buildscripts/burn_in_tests.py b/buildscripts/burn_in_tests.py index 906aa618e7a..398184d4f96 100644 --- a/buildscripts/burn_in_tests.py +++ b/buildscripts/burn_in_tests.py @@ -65,13 +65,9 @@ def parse_command_line(): help="The base commit to compare to for determining changes.") parser.add_option("--buildVariant", dest="buildvariant", default=None, - help=("The buildvariant to select the tasks. Required when" + help=("The buildvariant the tasks will execute on. Required when" " generating the JSON file with test executor information")) - parser.add_option("--runBuildVariant", dest="run_buildvariant", default=None, - help=("The buildvariant the tasks will execute on. If not specied then tasks" - " will execute on the the buildvariant specied in --buildVariant.")) - parser.add_option("--distro", dest="distro", default=None, help=("The distro the tasks will execute on. Can only be specified" " with --generateTasksFile.")) @@ -123,14 +119,6 @@ def parse_command_line(): return options, args -def check_variant(buildvariant, parser): - """Check if the buildvariant is found in the evergreen file.""" - evg_conf = evergreen.parse_evergreen_file(EVERGREEN_FILE) - if not evg_conf.get_variant(buildvariant): - parser.error("Buildvariant '{}' not found in {}, select from:\n\t{}".format( - buildvariant, EVERGREEN_FILE, "\n\t".join(sorted(evg_conf.variant_names)))) - - def validate_options(parser, options): """Validate command line options.""" @@ -151,10 +139,10 @@ def validate_options(parser, options): parser.error("Must specify --buildVariant to find changed tests") if options.buildvariant: - check_variant(options.buildvariant, parser) - - if options.run_buildvariant: - check_variant(options.run_buildvariant, parser) + evg_conf = evergreen.parse_evergreen_file(EVERGREEN_FILE) + if not evg_conf.get_variant(options.buildvariant): + parser.error("Buildvariant '{}' not found in {}, select from:\n\t{}".format( + options.buildvariant, EVERGREEN_FILE, "\n\t".join(sorted(evg_conf.variant_names)))) def find_last_activated_task(revisions, variant, branch_name): @@ -440,13 +428,6 @@ def _sub_task_name(variant, task, task_num): return "burn_in:{}_{}_{}".format(variant, task, task_num) -def _get_run_buildvariant(options): - """Return the build variant to execute the tasks on.""" - if options.run_buildvariant: - return options.run_buildvariant - return options.buildvariant - - def create_generate_tasks_file(options, tests_by_task): """Create the Evergreen generate.tasks file.""" @@ -481,7 +462,7 @@ def create_generate_tasks_file(options, tests_by_task): evg_sub_task.commands(commands) display_task = DisplayTaskDefinition("burn_in_tests").execution_tasks(task_names) - evg_config.variant(_get_run_buildvariant(options)).tasks(task_specs).display_task(display_task) + evg_config.variant(options.buildvariant).tasks(task_specs).display_task(display_task) _write_json_file(evg_config.to_map(), options.generate_tasks_file) |