@@ -24,6 +24,25 @@ function landedQaReceiptsVerified(array $command, string $output): bool
|
||||
return false;
|
||||
};
|
||||
$mode = ($command[1] ?? '') === 'vendor/bin/pest' ? 'pest' : ($command[3] ?? '');
|
||||
if ($mode === 'recover-cycles') {
|
||||
return $contains(fn ($row) => ($row['cycle_post_extension_all_tables_equal'] ?? false) === true
|
||||
&& ($row['cycle_native_replays_without_effects'] ?? false) === true && ($row['cycle_history_and_reserve_restored'] ?? false) === true
|
||||
&& ($row['cycle_reserved_minor'] ?? null) === 12000 && ($row['cycle_pre_extension_all_tables_equal'] ?? false) === true)
|
||||
&& $contains(fn ($row) => ($row['isolated_restore_removed'] ?? false) === true);
|
||||
}
|
||||
if ($mode === 'race-cycles') {
|
||||
foreach (['same_operation', 'different_operations', 'late_decision'] as $scenario) {
|
||||
$matches = array_values(array_filter($records, fn ($row) => ($row['scenario'] ?? null) === $scenario));
|
||||
if (count($matches) !== 1 || ($matches[0]['blocked_writers_observed'] ?? 0) < 2
|
||||
|| ($matches[0]['returns'] ?? null) !== 1 || ($matches[0]['reserve_minor'] ?? null) !== 0
|
||||
|| ($matches[0]['late_approvals'] ?? null) !== 0
|
||||
|| ($matches[0]['statuses'] ?? null) !== ($scenario === 'same_operation' ? [200, 200] : [200, 409])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return $contains(fn ($row) => ($row['old_cycle_runtime_rejected_before_balance'] ?? false) === true && ($row['status'] ?? null) === 503);
|
||||
}
|
||||
if ($mode === 'capital') {
|
||||
if (! $contains(fn ($row) => ($row['capital_register_versions_restored'] ?? null) === 2
|
||||
&& ($row['capital_assignment_source_version_restored'] ?? null) === 1 && ($row['capital_archived_head_preserved'] ?? false) === true
|
||||
|
||||
Reference in New Issue
Block a user