fix: address PR 47 batch execution and resource audit
Core regression / Python core, intervention UI and release configuration (push) Failing after 7m8s
Core regression / JavaScript syntax (push) Successful in 8s
Core regression / Python core, intervention UI and release configuration (pull_request) Failing after 7m12s
Core regression / JavaScript syntax (pull_request) Successful in 8s
Core regression / Python core, intervention UI and release configuration (push) Failing after 7m8s
Core regression / JavaScript syntax (push) Successful in 8s
Core regression / Python core, intervention UI and release configuration (pull_request) Failing after 7m12s
Core regression / JavaScript syntax (pull_request) Successful in 8s
This commit is contained in:
1 parent
392ae365da
commit
2a89d6fdd4
29 files changed
+1449
-298
No files matched your search
@@ -78,21 +78,13 @@ def test_bound_receipt_preserves_verified_result_and_checks_resource_state(batch
|
||||
(TASK_ID, 'round', 'key', json.dumps({'target_scope': 'targets',
|
||||
'project_path': 'board.prj', 'schematic_name': 'MAIN', 'sheet_number': '1',
|
||||
'target_selectors': 'uid1\x1fR1'}), 'verified', 'a', 1, '{}'))
|
||||
current_service._last_supervisor_batch_id = BATCH_ID
|
||||
record = {'version': 1, 'session_id': BATCH_ID, 'kind': 'task_queue',
|
||||
'generation': 1, 'desktop': 'dx-' + BATCH_ID, 'state': resource_state, 'processes': [],
|
||||
'cad_pid': None, 'cad_guid': None, 'checkpoints': {}, 'retries': {}, 'timings': [],
|
||||
'release_proof': {'generation': 1, 'desktop_not_acquired': True},
|
||||
'cleanup': {'desktop_not_acquired': True, 'desktop_handle_closed': True,
|
||||
'owned_cleanup_complete': True}}
|
||||
batch_resources.write_record(data / 'batch-resources' / BATCH_ID / 'session.json', record)
|
||||
from dx_productivity.trial_task_center.supervisor_protocol import VERSION
|
||||
batch_resources.write_record(data / 'batch-resources' / BATCH_ID / 'supervisor.json',
|
||||
{'version': VERSION, 'batch_id': BATCH_ID, 'state': 'finished', 'outcome': 'ok',
|
||||
'operation': 'execute_task_queue', 'task_ids': [TASK_ID], 'attempt_id': '3' * 32,
|
||||
'request_sha256': '0' * 64, 'parent_process': {'pid': 1, 'creation_time': 'test'}})
|
||||
return TaskQueueResult(RUN_ID, (TaskQueueEntry(TASK_ID, 'completed'),), False,
|
||||
result = TaskQueueResult(RUN_ID, (TaskQueueEntry(TASK_ID, 'completed'),), False,
|
||||
netlist_verification={TASK_ID: {'status': 'verified', 'verified': True}})
|
||||
_durable_supervisor_result(data, result)
|
||||
path = data / 'batch-resources' / BATCH_ID / 'session.json'
|
||||
record = json.loads(path.read_bytes())
|
||||
batch_resources.write_record(path, dict(record, state=resource_state))
|
||||
return result
|
||||
|
||||
monkeypatch.setattr(execution_runs, 'execute_task_queue', dispatch)
|
||||
receipt = execution_runs.execute_confirmed_run(service, data, (TASK_ID,), report, Event(),
|
||||
|
||||
Reference in new issue
Block a user