You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -542,13 +538,11 @@ public function execute( array $input ): array {
542
538
'mode' => 'retention',
543
539
'source' => 'workspace_cleanup_cli',
544
540
),
545
-
'system_task_result' => array(
546
-
'success' => true,
547
-
'job_backed' => true,
548
-
'report' => array(
549
-
'bytes_reclaimed' => 0,
550
-
'freed_human' => 'pending child jobs',
551
-
),
541
+
'success' => true,
542
+
'job_backed' => true,
543
+
'report' => array(
544
+
'bytes_reclaimed' => 0,
545
+
'freed_human' => 'pending child jobs',
552
546
),
553
547
),
554
548
),
@@ -689,6 +683,9 @@ public function execute( array $input ): array {
689
683
datamachine_code_cleanup_assert( 4096 === (int) ( $status_json['artifact_cleanup']['bytes_reclaimed'] ?? 0 ), 'cleanup status aggregates artifact bytes from child chunks' );
690
684
datamachine_code_cleanup_assert( 4 === (int) ( $status_json['cleanup_items']['planned_rows'] ?? 0 ), 'cleanup status aggregates planned rows from DB-backed cleanup item evidence' );
691
685
datamachine_code_cleanup_assert( 4096 === (int) ( $status_json['cleanup_items']['bytes_reclaimed'] ?? 0 ), 'cleanup status reconstructs reclaimed bytes from cleanup item evidence' );
686
+
datamachine_code_cleanup_assert( 3 === (int) ( $status_json['cleanup_items']['by_type']['artifact_discovery']['planned_rows'] ?? 0 ), 'cleanup status preserves artifact discovery chunk type aggregation' );
687
+
datamachine_code_cleanup_assert( 1 === (int) ( $status_json['cleanup_items']['by_type']['artifacts']['planned_rows'] ?? 0 ), 'cleanup status preserves artifact apply chunk type aggregation' );
688
+
datamachine_code_cleanup_assert( ! isset( $status_json['cleanup_items']['by_type']['unknown'] ), 'cleanup status does not aggregate completed chunks under unknown type' );
datamachine_code_cleanup_assert( ! isset( $status_json['system_task_result']['children']['job_ids'] ), 'cleanup status system task result omits full child job ids by default' );
0 commit comments