Schedule archive_dist_test_debug when automatic activation finds no task

XMLWordPrintableJSON

    • DevProd Build
    • Fully Compatible
    • ALL
    • v9.0, v8.3, v8.0, v7.0
    • Build OnDeck
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Problem

      The MongoDB Evergreen helper that runs from archive_dist_test activates archive_dist_test_debug only when the debug task is already present in the build. If the task is not materialized yet on a waterfall or cron version, the helper fails the archive task instead of scheduling the configured debug task.

      This behavior contributed to BF-45621: https://jira.mongodb.org/browse/BF-45621.

      Current behavior

      • evergreen/activate_task.py activates an existing task with configure_task.
      • For patches, a missing task is scheduled with configure_patch.
      • For non-patch versions, a missing task causes a RuntimeError.
      • The version API already provides activate_version_tasks, and the repository uses it for generated result tasks.

      Requested change

      • Add a non-patch fallback that activates/schedules the requested task through the Evergreen version task activation API.
      • Preserve existing patch behavior, task-name overrides, commit-queue behavior, and explicit skip controls.
      • Add unit coverage for the missing-task waterfall/version path and existing paths.

      Acceptance criteria

      • A configured archive_dist_test_debug task that is not yet present in a waterfall or cron build is scheduled through Evergreen without failing archive_dist_test.
      • Existing tasks continue to be activated idempotently.
      • Patch activation and explicit skip behavior remain unchanged.
      • Unit tests cover the new API call and regression cases.

            Assignee:
            Daniel Moody
            Reporter:
            Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: