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
),
@@ -673,6 +667,9 @@ public function execute( array $input ): array {
673
667
datamachine_code_cleanup_assert( 4096 === (int) ( $status_json['artifact_cleanup']['bytes_reclaimed'] ?? 0 ), 'cleanup status aggregates artifact bytes from child chunks' );
674
668
datamachine_code_cleanup_assert( 4 === (int) ( $status_json['cleanup_items']['planned_rows'] ?? 0 ), 'cleanup status aggregates planned rows from DB-backed cleanup item evidence' );
675
669
datamachine_code_cleanup_assert( 4096 === (int) ( $status_json['cleanup_items']['bytes_reclaimed'] ?? 0 ), 'cleanup status reconstructs reclaimed bytes from cleanup item evidence' );
670
+
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' );
671
+
datamachine_code_cleanup_assert( 1 === (int) ( $status_json['cleanup_items']['by_type']['artifacts']['planned_rows'] ?? 0 ), 'cleanup status preserves artifact apply chunk type aggregation' );
672
+
datamachine_code_cleanup_assert( ! isset( $status_json['cleanup_items']['by_type']['unknown'] ), 'cleanup status does not aggregate completed chunks under unknown type' );
0 commit comments