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

variant_tasks in patches endpoint contains all tasks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v2019.11.01
    • Component/s: app
    • Labels:

      Description

      I was looking at the data returned by the patches endpoint, /rest/v2/projects/<project>/patches. One section of the data is "variants_tasks", I assume that this is supposed to be which tasks are being run in each build variant. However, all of the tasks appear in each variant, which greatly reduces the value of this data (we already have all the variants and all the tasks in other parts of the data).

      This seems like a bug. It seems like each entry should only list the tasks that are contained in that variant.

      Here is an example from a server commit-queue patch:

      "variants_tasks": [
            {
              "name": "enterprise-rhel-62-64-bit",
              "tasks": [
                "lint_pylinters",
                "lint_clang_format",
                "lint_eslint",
                "lint_cpplint",
                "lint_yaml",
                "lint_fuzzer_sanity_patch",
                "compile_core_tools",
                "commit_queue_placeholder"
              ]
            },
            {
              "name": "commit-queue",
              "tasks": [
                "lint_pylinters",
                "lint_clang_format",
                "lint_eslint",
                "lint_cpplint",
                "lint_yaml",
                "lint_fuzzer_sanity_patch",
                "compile_core_tools",
                "commit_queue_placeholder"
              ]
            }
          ],
      

      The lint tasks only exist in the 'enterprise-rhel-62-64-bit' variant, so seeing them in the 'commit-queue' variant is surprising. And the 'compile_core_tools' and 'commit_queue_placeholder' only exist in the 'commit-queue' variant.

        Attachments

          Activity

            People

            Assignee:
            arjun.patel Arjun Patel
            Reporter:
            david.bradford David Bradford
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: