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

Enable both task-level dependencies and variant-level dependencies

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: app
    • Labels:

      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

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

              Dates

              Created:
              Updated: