@@ -38,7 +38,6 @@ import {
3838 shardItemNumbers ,
3939 shouldSyncReviewComment ,
4040 shouldRetryGh ,
41- sweepStatusApplyHealthForTest ,
4241 timeoutWithinRuntimeBudget ,
4342} from "../dist/clawsweeper.js" ;
4443import { parseArgs as parseClawsweeperArgs } from "../dist/clawsweeper-args.js" ;
@@ -82,27 +81,6 @@ const maintainerDecision = {
8281 } ,
8382} ;
8483
85- test ( "sweep status preserves a retained apply-health run URL" , ( ) => {
86- const retained = {
87- mode : "close" ,
88- run_url : "https://github.com/openclaw/clawsweeper/actions/runs/29091427650" ,
89- } ;
90- assert . deepEqual (
91- sweepStatusApplyHealthForTest ( {
92- previousApplyHealth : retained ,
93- runUrl : "https://github.com/openclaw/clawsweeper/actions/runs/29091585991" ,
94- } ) ,
95- retained ,
96- ) ;
97- assert . deepEqual (
98- sweepStatusApplyHealthForTest ( {
99- requestedApplyHealth : { mode : "close" } ,
100- runUrl : "https://github.com/openclaw/clawsweeper/actions/runs/29091427650" ,
101- } ) ,
102- retained ,
103- ) ;
104- } ) ;
105-
10684test ( "review comments include a compact maintainer decision packet block" , ( ) => {
10785 const comment = renderReviewCommentFromReport (
10886 workPlanCandidateReport ( {
@@ -2679,20 +2657,6 @@ test("sweep dashboard status writes are scoped to the target repository", () =>
26792657 }
26802658} ) ;
26812659
2682- test ( "sweep status writer preserves non-apply health and clears stale apply updates" , ( ) => {
2683- const source = readText ( "src/clawsweeper.ts" ) ;
2684-
2685- assert . match (
2686- source ,
2687- / a p p l y H e a l t h A r g = = = u n d e f i n e d & & s t a t e \. s t a r t s W i t h \( " A p p l y " \) \? n u l l : a p p l y H e a l t h A r g / ,
2688- ) ;
2689- assert . match ( source , / r e q u e s t e d A p p l y H e a l t h : o p t i o n s \. a p p l y H e a l t h / ) ;
2690- assert . match ( source , / a p p l y _ h e a l t h : a p p l y H e a l t h \? \? n u l l / ) ;
2691- assert . match ( source , / l a s t _ c l o s e _ a p p l y _ h e a l t h : l a s t C l o s e A p p l y H e a l t h \? \? n u l l / ) ;
2692- assert . match ( source , / p r e v i o u s S t a t u s \? \. l a s t C l o s e A p p l y H e a l t h / ) ;
2693- assert . match ( source , / p r e v i o u s S t a t u s \? \. a p p l y H e a l t h \? \. m o d e = = = " c l o s e " / ) ;
2694- } ) ;
2695-
26962660test ( "review parser strips environment access caveats from risks" , ( ) => {
26972661 const parsed = parseDecision (
26982662 closeDecision ( {
0 commit comments