Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
master
-
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?