github.com/justinjmoses/evergreen@v0.0.0-20170530173719-1d50e381ff0d/agent/testdata/config_test_plugin/project/project-timeout-test.yml (about)

     1  display_name: project-timeout-test
     2  owner: evergreen-ci
     3  repo: render
     4  repokind: github
     5  branch: master
     6  enabled: true
     7  batch_time: 180
     8  stepback: true
     9  exec_timeout_secs: 3
    10  
    11  functions:
    12    "list of commands":
    13       - command: shell.exec
    14         params:
    15           script: |
    16             echo "step 1 of multi-command func"
    17       - command: shell.exec
    18         params:
    19           script: |
    20             echo "step 2 of multi-command func"
    21       - command: shell.exec
    22         params:
    23           script: |
    24             echo "step 3 of multi-command func"
    25    "predefined command test" :
    26       command: shell.exec
    27       params:
    28         script: |
    29           echo "predefined command!"
    30    "silent shell test" :
    31       command: shell.exec
    32       params:
    33         silent: true
    34         script: |
    35          cat > testfile <<END_OF_HEREDOC
    36          this should not end up in the logs!
    37          END_OF_HEREDOC
    38    "function with arg test" :
    39       command: shell.exec
    40       timeout_secs: 1300
    41       params:
    42         script: |
    43           echo "arg1 is ${arg1}"
    44           echo "arg2 is ${arg2}"
    45           echo "arg3 is ${arg3}"
    46           echo "arg4 is ${arg4}"
    47  
    48  pre:
    49    - command: shell.exec
    50      params:
    51        script: |
    52          echo "executing the pre-run script"
    53  
    54  post:
    55    - command: attach.results
    56      params:
    57        file_location: src/report.json
    58    - command: shell.exec
    59      params:
    60        script: |
    61          echo "executing the post-run script!"
    62  
    63  timeout:
    64    - command: shell.exec
    65      params:
    66        script: |
    67          echo "executing the task-timeout script!"
    68          sleep 5 #for testing callback timeouts
    69  
    70  tasks:
    71  - name: compile
    72    depends_on: []
    73    commands:
    74      - func: "predefined command test"
    75      - func: "silent shell test"
    76      - func: "function with arg test"
    77        vars:
    78          arg1: "FOO"
    79          arg2: "BAR"
    80          arg3: "Expanded: ${expandme}"
    81          arg4: "Default: ${empty|default_value}"
    82      - func: "list of commands"
    83        timeout_secs: 2600
    84      - command: manifest.load
    85      - command: git.get_project
    86        params:
    87          directory: src
    88          revisions:
    89            recursive: ${recursive_rev}
    90      - command: shell.exec
    91        params:
    92          working_dir: src
    93          script: |
    94              set -o verbose
    95              set -o errexit
    96              echo "i am compiling!"
    97              echo "blah blah compiling"
    98              cp "README.md" "readme2.md"
    99              mkdir jstests
   100              hostname > jstests/hostname.txt
   101              date +"%m-%d-%y" > jstests/date.txt
   102              echo "stuff" >> jstests/dont_archive_me_test.pdb
   103              echo "i am sanity testing!"
   104              echo ${fetch_key}
   105              printf "this should be on the same line..."
   106              printf "as this.\n"
   107              cat doc.go recursive/clone/recursive/doc.go
   108      - command: archive.targz_pack
   109        params:
   110          target: "target.tgz"
   111          source_dir: "src"
   112          include:
   113            - "jstests/**"
   114            - "readme2.md"
   115            - "date.txt"
   116            - "compile_expansions.yml"
   117            - "*.tgz"
   118            - "*.zip"
   119            - "*.exe"
   120            - "jstests/**"
   121            - "./test*"
   122            - "./mongobridge*"
   123            - "buildscripts/**"
   124            - "*Example"
   125            - "*Test"
   126            - "sharedclient/**"
   127            - "./**.pdb"
   128            - "./**.msi"
   129          exclude_files:
   130            - "*_test.pdb"
   131      - command: s3.put
   132        params:
   133          aws_key: ${aws_key}
   134          aws_secret: ${aws_secret}
   135          local_file: target.tgz
   136          remote_file: unittest/blah.tgz
   137          bucket: mci-test-uploads
   138          permissions: public-read-write
   139          content_type: application/tar
   140          display_name: mongodb_binaries
   141      - func: "silent shell test"
   142        type: "system"
   143  
   144  - name: project_exec_timeout_task
   145    depends_on:
   146    - name: compile
   147    commands:
   148      - command: shell.exec
   149        params:
   150          script: |
   151              set -o verbose
   152              set -o errexit
   153              echo "starting project_exec_timeout_task!"
   154              for i in `seq 1 10`;
   155              do
   156                  sleep 1
   157                  echo $i
   158              done
   159              echo "done with project_exec_timeout_task!"
   160  
   161  - name: push
   162    depends_on:
   163    - name: "*"
   164    commands:
   165      - command: shell.exec
   166        params:
   167          script: |
   168            set -o verbose
   169            set -o errexit
   170            ls
   171            pwd
   172            echo "push task pre-run!"
   173            date_exp=`date "+%Y-%m-%d:%H-%M-%S"`
   174            echo $date_exp | tee -a "unittest-${distro_exp}-${buildvar_exp}.txt"
   175            echo "file_exp: FILE_EXP" | tee -a compile_expansions.yml
   176            echo "new_date: $date_exp" | tee -a compile_expansions.yml
   177      - command: expansions.update
   178        params:
   179          file: compile_expansions.yml
   180      - command: s3.put
   181        params:
   182          aws_key: ${aws_key}
   183          aws_secret: ${aws_secret}
   184          local_file:  unittest-${distro_exp}-${buildvar_exp}.txt
   185          remote_file: pushtest-stage/unittest-${task_id}-${distro_exp}-${buildvar_exp}-${file_exp}.txt
   186          bucket: build-push-testing
   187          permissions: public-read-write
   188          content_type: application/tar
   189          display_name: push_file
   190      - command: s3Copy.copy
   191        params:
   192          aws_key: ${aws_key}
   193          aws_secret: ${aws_secret}
   194          s3_copy_files:
   195          - source:
   196              bucket: build-push-testing
   197              path: pushtest-stage/unittest-${task_id}-${distro_exp}-${buildvar_exp}-${file_exp}.txt
   198            destination:
   199              bucket: build-push-testing
   200              path: pushtest/unittest-${distro_exp}-${buildvar_exp}-${file_exp}-latest.txt
   201            display_name: copy_file
   202      - command: shell.exec
   203        params:
   204          script: |
   205            set -o verbose
   206            set -o errexit
   207            echo "push task post-run!\n"
   208            date +"%m-%d-%y" > "unittest-${distro_exp}-${buildvar_exp}.txt"
   209            echo "file_exp: FILE_EXP" > compile_expansions.yml
   210  modules:
   211  - name: recursive
   212    repo: git@github.com:evergreen-ci/render.git
   213    prefix: recursive/clone
   214    branch: master
   215  
   216  #######################################
   217  # Buildvariants
   218  #######################################
   219  
   220  buildvariants:
   221  
   222  ###########################################
   223  #         Linux buildvariants             #
   224  ###########################################
   225  
   226  - name: linux-64
   227    display_name: Linux 64-bit
   228    modules:
   229    - recursive
   230    run_on:
   231    - rhel55
   232    expansions:
   233      expandme: "qux"
   234      buildvar_exp: BUILDVAR_EXP
   235      push_path: linux
   236      push_bucket: build-push-testing
   237      push_name: linux
   238      push_arch: x86_64
   239      compile_flags: --sharedclient -j$(grep -c ^processor /proc/cpuinfo) --release
   240      test_flags: --continue-on-failure
   241      buildvariant_pushes: true
   242    tasks:
   243    - name: push
   244  
   245  - name: windows8
   246    display_name: Windows 8
   247    modules:
   248    - recursive
   249    run_on:
   250    - rhel55
   251    expansions:
   252      expandme: "qux"
   253      buildvar_exp: BUILDVAR_EXP
   254      push_path: windows8
   255      push_bucket: build-push-testing
   256      push_name: windows8
   257      push_arch: x86_64
   258      compile_flags: --sharedclient -j$(grep -c ^processor /proc/cpuinfo) --release
   259      test_flags: --continue-on-failure
   260      buildvariant_pushes: true
   261    tasks:
   262    - name: push
   263