Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-7758

CheckYamlStrict complains about patch_optional and status if used in dependency

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: current_quarter
    • Component/s: app
    • Labels:

      Description

      Example project config:

      tasks:
        - name: taskA
          commands:
            - command: shell.exec
              params:
                script: |
                  echo hello
        - name: taskB
          commands:
            - command: shell.exec
              params:
                script: | 
                  echo goodbye
       
       
      buildvariants:
        - name: some_buildvariant
          run_on:
          - ubuntu1604-small
          tasks:
          - name: taskA
          - name: taskB
            depends_on:
              - name: taskA
                patch_optional: true
                status: "*"
      

      If I run evergreen validate on this config, it gives this warning during CheckYamlStrict:
      WARNING: yaml: unmarshal errors:
      line 24: field patch_optional not found in struct model.copyType
      line 24: field status not found in struct model.copyType

      It gives the same error if you specify depends_on in the task definition instead of the buildvariant task list. However, if you call LoadProjectInto, the actual model.Project result has PatchOptional and Status properly populated for that dependency.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kimberly.tao Kim Tao
              Reporter:
              kimberly.tao Kim Tao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: