Intermittent test failure test_list_summary_with_git_refs
arkindex.process.tests.test_workerruns.TestWorkerRuns.test_list_summary_with_git_refs
fails sometimes, looks like an issue with the order of the git refs
======================================================================
FAIL [0.057s]: test_list_summary_with_git_refs (arkindex.process.tests.test_workerruns.TestWorkerRuns)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mbonhomme/dev/arkindex/backend/arkindex/process/tests/test_workerruns.py", line 612, in test_list_summary_with_git_refs
self.assertDictEqual(data, {
AssertionError: {'parents': [], 'worker_version': {'id': '7[1622 chars]uet'} != {'worker_version': {'id': '7ac170b3-f3ab-43[1622 chars]uet'}
{'configuration': None,
'model_version': None,
'parents': [],
'process': {'activity_state': 'disabled',
'corpus': '1204ee59-2b68-4dfb-a083-3df4996c2337',
'id': 'fb53bde5-5e43-4c5c-a077-6a310cbed1b6',
'mode': 'workers',
'name': None,
'state': 'unscheduled',
'use_cache': False},
'summary': 'Worker Recognizer @ main, develop, trunk, master, patate, pouet',
'worker_version': {'configuration': {},
'created': '2024-03-05T12:56:27.741828Z',
'docker_image': '492ea45f-2c2d-4bf3-a461-016204fcfb03',
'docker_image_iid': None,
'docker_image_name': 'my_repo.fake/workers/worker/reco:7ac170b3-f3ab-435c-a520-14cd9dac64d9',
'gpu_usage': 'disabled',
'id': '7ac170b3-f3ab-435c-a520-14cd9dac64d9',
'model_usage': 'disabled',
'revision': {'author': 'Teklia Bot',
'commit_url': 'http://my_repo.fake/workers/worker/commit/f2979b1170114a43884b64fab0c98b93',
'created': '2024-03-05T12:56:27.734911Z',
'hash': 'f2979b1170114a43884b64fab0c98b93',
'id': 'e79d5049-122e-4953-ba5f-921015ceb695',
'message': 'Fake revision',
- 'refs': [{'id': '6ad6277c-e21f-427e-8f48-6d1604194285',
+ 'refs': [{'id': '0f4b7f0e-3d08-40ab-9a9a-41f5ad40e081',
+ 'name': 'main',
+ 'type': 'branch'},
+ {'id': 'dcbff573-620f-4f1a-b568-cb87faea9602',
+ 'name': 'develop',
+ 'type': 'branch'},
+ {'id': 'd4f0f9c5-d259-4fec-8ee8-3799e1094d3d',
- 'name': 'pouet',
? ^^ ^^
+ 'name': 'trunk',
? ^^ ^^
+ 'type': 'branch'},
+ {'id': '8d7ce9bd-5fca-4144-a216-8f8c475771bb',
+ 'name': 'master',
'type': 'branch'},
{'id': '7cfa319c-71a9-4356-b20f-dd80be59f460',
'name': 'patate',
'type': 'branch'},
- {'id': '8d7ce9bd-5fca-4144-a216-8f8c475771bb',
? ^ ^^^^^ -- ----- ^^ ^ ^ -----
+ {'id': '6ad6277c-e21f-427e-8f48-6d1604194285',
? ^^ +++ + ^^ ^^ + ^^^^^^ ^^^^^
- 'name': 'master',
- 'type': 'branch'},
- {'id': 'd4f0f9c5-d259-4fec-8ee8-3799e1094d3d',
- 'name': 'trunk',
? ----
+ 'name': 'pouet',
? ++++
- 'type': 'branch'},
- {'id': 'dcbff573-620f-4f1a-b568-cb87faea9602',
- 'name': 'develop',
- 'type': 'branch'},
- {'id': '0f4b7f0e-3d08-40ab-9a9a-41f5ad40e081',
- 'name': 'main',
'type': 'branch'}]},
'state': 'available',
'version': None,
'worker': {'id': 'c88cf97b-25a1-4074-a88c-8d2b7a82db8c',
'name': 'Recognizer',
'slug': 'reco',
'type': 'recognizer'}}}