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

Enable the initial sync fuzzer in Evergreen

    • Fully Compatible
    • STM 2019-04-08
    • 40
    • 3

      Create a new initial_sync_fuzzer.yml resmoke.py YAML suite file that causes mongod processes to use an effectively infinite number of initial sync attempts.

      buildscripts/resmokeconfig/suites/initial_sync_fuzzer.yml
      test_kind: js_test
      
      selector: 
        roots: 
        - jstestfuzz/out/*.js
      
      executor: 
        archive: 
          tests: true
        config: 
          shell_options: 
            nodb: ''
            readMode: commands
            global_vars: 
              TestData: 
                # TODO: logComponentVerbosity?
                setParameters: 
                  numInitialSyncAttempts: 10000000
      

      Define a new initial_sync_fuzzer_gen Evergreen task based on the existing rollback_fuzzer_gen Evergreen task.

      ## initial sync fuzzer ##
      - <<: *jstestfuzz_template
        name: initial_sync_fuzzer_gen
        commands: 
        - func: "generate fuzzer tasks"
          vars: 
            <<: *jstestfuzz_config_vars
            # TODO: The number of files should be based on how the tests themselves take to run. We
            # should target a time for each generated task of ~10 minutes.
            num_files: ??
            num_tasks: 5
            npm_command: initsync-fuzzer
            resmoke_args: --suites=initial_sync_fuzzer
            name: initial_sync_fuzzer
      

      Configure the new initial_sync_fuzzer_gen Evergreen task to run on all of the build variants the existing rollback_fuzzer_gen Evergreen task runs on with the exception of the "Enterprise RHEL 6.2 (inMemory)" and "Linux (ephemeralForTest)" build variants. Since the initial version of the initial sync fuzzer is meant to only be targeting the interaction between initial sync and prepared transactions, we can only run it against the WiredTiger storage engine.

      • Enterprise RHEL 6.2
      • Enterprise RHEL 6.2 (majority read concern off)
      • Windows 2008R2 DEBUG
      • macOS
      • Enterprise RHEL 6.2 DEBUG Code Coverage
      • ASAN Enterprise SSL Ubuntu 16.04 DEBUG
      • UBSAN Enterprise Ubuntu 16.04 DEBUG

            Assignee:
            vlad.rachev@mongodb.com Vlad Rachev (Inactive)
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: