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

Depends_on does not pull in tasks from other buildvariants

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • v2019.11.01
    • app

    Description

      When generating tasks dynamically, it is not possible to specify a "depends_on" task to run on a different buildvariant. For example, the following task (which runs on the "enterprise-rhel-62-64-bit-majority-read-concern-off-required" buildvariant) should create a "compile" task on buildvariant "enterprise-rhel-62-64-bit":

      {
          "tasks": [
              {
                  "name": "burn_in:enterprise-rhel-62-64-bit-majority-read-concern-off-required_noPassthroughWithMongod_0",
                  "commands": [
                  ...
                      {
                          "func": "run tests",
                          "vars": {
                              "resmoke_args": "--suites=no_passthrough_with_mongod --storageEngine=wiredTiger --majorityReadConcern=off --excludeWithAnyTags=requires_majority_read_concern,uses_prepare_transaction,uses_multi_shard_transaction,uses_atclustertime --repeatTestsSecs=600.0 --repeatTestsMin=2 --repeatTestsMax=1000 jstests/noPassthroughWithMongod/bulk_api_limits.js"
                          }
                      }
                  ],
                  "depends_on": [
                      {
                          "name": "compile",
                          "variant": "enterprise-rhel-62-64-bit"
                      }
                  ]
              }
      

      The patch build can be seen here: https://evergreen.mongodb.com/version/5d237977c9ec442fc4a4158c. The task "burn_in:enterprise-rhel-62-64-bit-majority-read-concern-off-required_noPassthroughWithMongod_0" does have the correct dependency (compile in enterprise-rhel-62-64-bit) but I had to manually add the compile task on enterprise-rhel-62-64-bit, it was not generated by Evergreen.

      Attached to this ticket is the full project file for this group of generated tasks.

      Attachments

        Activity

          People

            jonathan.brill@mongodb.com Jonathan Brill
            lydia.stepanek@mongodb.com Lydia Stepanek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: