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

Enable both task-level dependencies and variant-level dependencies

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Major - P3
    • Resolution: Unresolved
    • None
    • Backlog
    • app

    Description

      Currently it seems that either a task can have a `depends_on` section, or the variant it runs on can have a `depends_on` section, but not both. For example, I would like for `my_task` to depend on `task_dependency`, but this is currently impossible because `my_task`'s buildvariant depends on compile, so `task_dependency` is completely ignored.

      This behavior seems consistent with the code here , but is it necessary? Couldn't variant-level dependencies and task-level dependencies be merged and both satisfied?

      Otherwise the workaround seems to be to add `task_dependency` as another variant-level dependency along with compile, but this is wasteful in situations where `my_task` isn't run.

       

      Attachments

        Activity

          People

            backlog-server-evg Backlog - Evergreen Team
            daniel.ernst@mongodb.com Daniel Ernst
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: