Add robust release update and API health checks
This commit introduces a release update mechanism, including candidate detection, asset pre-downloading, and installation workflows with proper state management. Additionally, it implements API health checks both for successful and failure scenarios and adds related unit and e2e tests for enhanced reliability.
This commit is contained in:
@@ -647,7 +647,7 @@ it('builds guided simulator debug payload with blockers and canvas annotations',
|
||||
->and($debug['graph_annotations']['nodes']['lane:7']['state'])->toBe('error');
|
||||
});
|
||||
|
||||
it('adds program picker before mapped machine buttons in simulator debug decisions', function (): void {
|
||||
it('uses program picker button numbers as thumb selectors in simulator debug decisions', function (): void {
|
||||
$service = selfserve_wash_flow_without_constructor();
|
||||
|
||||
$debug = $service->buildStudioDebugPayload(6, [
|
||||
@@ -666,7 +666,7 @@ it('adds program picker before mapped machine buttons in simulator debug decisio
|
||||
'answers' => [],
|
||||
'questions' => [],
|
||||
'tasks' => [
|
||||
['id' => 41, 'task' => 'Choose program', 'services' => ['PROGRAM_PICKER'], 'buttons' => [], 'dynamic_images_vehicle_type' => 4, 'order_priority' => 1],
|
||||
['id' => 41, 'task' => 'Choose program', 'services' => ['PROGRAM_PICKER'], 'buttons' => [3], 'dynamic_images_vehicle_type' => 4, 'order_priority' => 1],
|
||||
['id' => 42, 'task' => 'Press first button', 'services' => ['MACHINE'], 'buttons' => [0], 'dynamic_images_vehicle_type' => 4, 'order_priority' => 2],
|
||||
],
|
||||
'allowed_services' => ['PROGRAM_PICKER', 'MACHINE'],
|
||||
@@ -689,7 +689,7 @@ it('adds program picker before mapped machine buttons in simulator debug decisio
|
||||
'conditions' => [],
|
||||
'rules' => [],
|
||||
'tasks' => [
|
||||
['id' => 41, 'task' => 'Choose program', 'gate_type' => 'ALWAYS', 'gate_ref_id' => null, 'services' => ['PROGRAM_PICKER'], 'buttons' => [], 'dynamic_images_vehicle_type' => 4, 'order_priority' => 1],
|
||||
['id' => 41, 'task' => 'Choose program', 'gate_type' => 'ALWAYS', 'gate_ref_id' => null, 'services' => ['PROGRAM_PICKER'], 'buttons' => [3], 'dynamic_images_vehicle_type' => 4, 'order_priority' => 1],
|
||||
['id' => 42, 'task' => 'Press first button', 'gate_type' => 'ALWAYS', 'gate_ref_id' => null, 'services' => ['MACHINE'], 'buttons' => [0], 'dynamic_images_vehicle_type' => 4, 'order_priority' => 2],
|
||||
],
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user