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

evergreen validate exits with 0 status on bogus input with empty config file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: app
    • Labels:

      Description

      In a sandbox user account, run this:

      speed% :>~/.evergreen.yml
      speed% echo hello world >test.yml
      speed% /home/w/bin/evergreen validate -f test.yml 
      speed% echo $?
      0
      

      Same validate request from another user account with a config file:

      speed% evergreen validate -f /home/sandbox/test.yml 
      ERROR: load project error(s): yaml: unmarshal errors:
        line 1: cannot unmarshal !!str `hello w...` into model.parserProject
      invalid configuration
      

      It appears that when the config file is empty, evergreen does not perform any validation and exits with 0 status regardless of the contents of the input file.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-evg Backlog - Evergreen Team
            Reporter:
            oleg.pudeyev Oleg Pudeyev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: