Uploaded image for project: 'Coin'
  1. Coin
  2. COIN-1062

GET /tasks returned a task in state Cancelled that is missing basic details

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • master
    • WebServer
    • None

    Description

      My script got the following self explanatory assertion failure:

      AssertionError: 'Initializing' is the only acceptable state for a task with missing fields;  
      task:{
          'id': 'nightly1693266501', 'project': 'qt/tqtc-qt5', 'branch': 'tqtc/5.15_AndroidAutomotive', 
          'type': 'StatusCheck', 'started_on': '2023-07-01 02:20:09 +0000', 
          'state': 'Cancelled', 
          'self_url': 'http://ci-files01-hki.intra.qt.io:8080/coin/integration/qt/tqtc-qt5/tasks/nightly1693266501', 
          'is_public': False, 
          'completed_on': '2023-07-20 04:32:25 +0000', 'duration_s': 1649536.0, 
          'task_id': 'nightly1693266501', 'task_type': 'StatusCheck', 
          'task_state': 'Cancelled', 'verbose_status': None, 'tested_changes': [], 'workitem_ids': [],
          'top_sha': None, 'final_sha': None
      }
      

      I'll code a workaround, but posting it here because I don't think this should happen. Is a task even cancel-able before having initialized?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tosaario Toni Saario
            jimis Dimitrios Apostolou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes