Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-59054

Enforce timeouts for generated fuzzer tasks

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.4, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v5.0
    • DAG 2021-08-23
    • 50
    • 2

      Here's an example task definition in the generated JSON from this task

              {
                  "name": "aggregation_expression_multiversion_fuzzer_0_enterprise-rhel-80-64-bit-dynamic-required",
                  "commands": [
                      {
                          "func": "git get project no modules"
                      },
                      {
                          "func": "do setup"
                      },
                      {
                          "func": "configure evergreen api credentials"
                      },
                      {
                          "func": "do multiversion setup"
                      },
                      {
                          "func": "setup jstestfuzz"
                      },
                      {
                          "func": "run jstestfuzz",
                          "vars": {
                              "jstestfuzz_vars": "--numGeneratedFiles 5 ",
                              "npm_command": "agg-expr-fuzzer"
                          }
                      },
                      {
                          "func": "run generated tests",
                          "vars": {
                              "continue_on_failure": "false",
                              "resmoke_args": "--suites=generational_fuzzer --mongodSetParameters='{logComponentVerbosity: {command: 2}}'",
                              "resmoke_jobs_max": "1",
                              "should_shuffle": "false",
                              "require_multiversion": "true",
                              "timeout_secs": "1800",
                              "task": "aggregation_expression_multiversion_fuzzer",
                              "gen_task_config_location": "enterprise-rhel-80-64-bit-dynamic-required/64a119b69ce7ae34ec7eac15e52ad1a08beb5b08/generate_tasks/build_variant_gen-mongodb_mongo_master_enterprise_rhel_80_64_bit_dynamic_required_64a119b69ce7ae34ec7eac15e52ad1a08beb5b08_21_08_03_08_34_20.tgz"
                          }
                      }
                  ],
                  "depends_on": [
                      {
                          "name": "archive_dist_test_debug"
                      }
                  ]
              },
      

      timeout_secs does not appear to be used. The agent log for the actual task shows that the timeout is 2h for all commands and globally.

      For non-generated tasks, this is not a problem. The "run tests" function in evergreen.yml calls "update_task_timeout_expansions", whereas the "run generated tests" function does not.

            Assignee:
            david.bradford@mongodb.com David Bradford (Inactive)
            Reporter:
            robert.guo@mongodb.com Robert Guo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: