Restarted resmoke_tests task fails when attempting to activate downstream tasks

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • DevProd Test Infrastructure
    • ALL
    • Correctness 2026-04-21, DevProd Test Infra 2026-05-05
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      See this example of a restarted resmoke_tests tasks:

      https://parsley.corp.mongodb.com/evergreen/mongodb_mongo_v8.3_commit_queue_resmoke_tests_patch_16f5cb0a5641b5b3549e10d45ec5eee853574e84_69e239f5b3897c0007a12ab7_26_04_17_13_47_46/1/task?bookmarks=0,2746&shareLine=2440

      Activating result task group...
      [2026-04-17 18:20:54,739 - __main__ - INFO] 2026-04-17 18:20:54 [info     ] Activating result tasks        already_activated=31 count=0 task_group=resmoke_tests_results_commit-queue
      [2026-04-17 18:20:54,930 - __main__ - ERROR] 2026-04-17 18:20:54 [error    ] Failed to activate result task group build_variant=commit-queue task_group=resmoke_tests_results_commit-queue version_id=69e239f5b3897c0007a12ab7 

      Relevant stack:

      │ /data/mci/fb4eea44853c8f2800c3533bc603cbb0/venv/lib/python3.13/site-packages/evergreen/api.py:25 │
      │ 4 in _call_api                                                                                   │
      │                                                                                                  │
      │    251 │   │   )                                                                                 │
      │    252 │   │   self._log_api_call_time(response, start_time)                                     │
      │    253 │   │                                                                                     │
      │ ❱  254 │   │   self._raise_for_status(response)                                                  │
      │    255 │   │   return response                                                                   │
      │    256 │                                                                                         │
      │    257 │   def _stream_api(                                                                      │
      │                                                                                                  │
      │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
      │ │       data = '{"variants": [{"name": "commit-queue", "tasks": []}]}'                         │ │
      │ │     method = 'POST'                                                                          │ │
      │ │     params = None                                                                            │ │
      │ │   response = <Response [400]>                                                                │ │
      │ │       self = <evergreen.api.RetryingEvergreenApi object at 0xffffa49a7e00>                   │ │
      │ │ start_time = 1776450054.739699                                                               │ │
      │ │        url = 'https://evergreen.mongodb.com/rest/v2/versions/69e239f5b3897c0007a12ab7/activ… │ │
      │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
      │                                                                                                  │
      │ /data/mci/fb4eea44853c8f2800c3533bc603cbb0/venv/lib/python3.13/site-packages/evergreen/api.py:30 │
      │ 8 in _raise_for_status                                                                           │
      │                                                                                                  │
      │    305 │   │   except JSONDecodeError:                                                           │
      │    306 │   │   │   pass                                                                          │
      │    307 │   │                                                                                     │
      │ ❱  308 │   │   response.raise_for_status()                                                       │
      │    309 │                                                                                         │
      │    310 │   def _paginate(                                                                        │
      │    311 │   │   self, url: str, params: Optional[Dict] = None                                     │
      │                                                                                                  │
      │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
      │ │ json_data = {                                                                                │ │
      │ │             │   'status': 400,                                                               │ │
      │ │             │   'message': 'No inactive tasks found matching the specified variant/task      │ │        <----- LOOK HERE
      │ │             combinations',                                                                   │ │
      │ │             │   'metadata': {'time': '0001-01-01T00:00:00Z'}                                 │ │
      │ │             }                                                                                │ │
      │ │  response = <Response [400]>                                                                 │ │
      │ │      self = <evergreen.api.RetryingEvergreenApi object at 0xffffa49a7e00>                    │ │
      │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
      │                                                                                                  │
      │ /data/mci/fb4eea44853c8f2800c3533bc603cbb0/venv/lib/python3.13/site-packages/requests/models.py: │
      │ 1024 in raise_for_status                                                                         │
      │                                                                                                  │
      │   1021 │   │   │   )                                                                             │
      │   1022 │   │                                                                                     │
      │   1023 │   │   if http_error_msg:                                                                │
      │ ❱ 1024 │   │   │   raise HTTPError(http_error_msg, response=self)                                │
      │   1025 │                                                                                         │
      │   1026 │   def close(self):                                                                      │
      │   1027 │   │   """Releases the connection back to the pool. Once this method has been            │
      │                                                                                                  │
      │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
      │ │ http_error_msg = '400 Client Error: Bad Request for url:                                     │ │
      │ │                  https://evergreen.mongodb.com/rest/v2/ver'+45                               │ │
      │ │         reason = 'Bad Request'                                                               │ │
      │ │           self = <Response [400]>                                                            │ │
      │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
      ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ 

            Assignee:
            Sean Lyons
            Reporter:
            Sean Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: