@@ -54,6 +54,7 @@ const ANDROID_RELEASE_WORKFLOW = ".github/workflows/android-release.yml";
5454const STABLE_MAIN_CLOSEOUT_WORKFLOW = ".github/workflows/openclaw-stable-main-closeout.yml" ;
5555const WINDOWS_NODE_RELEASE_WORKFLOW = ".github/workflows/windows-node-release.yml" ;
5656const FULL_RELEASE_VALIDATION_WORKFLOW = ".github/workflows/full-release-validation.yml" ;
57+ const ACTIONS_CACHE_V5 = "actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae" ;
5758const CI_WORKFLOW = ".github/workflows/ci.yml" ;
5859const PERFORMANCE_WORKFLOW = ".github/workflows/openclaw-performance.yml" ;
5960const FULL_RELEASE_CHILD_DISPATCHES = [
@@ -2967,6 +2968,7 @@ describe("package acceptance workflow", () => {
29672968 const decisionUpload = workflowStep ( decision , "Upload release decision" ) ;
29682969 const drainUpload = workflowStep ( drain , "Upload diagnostic drain manifest" ) ;
29692970 const planStep = workflowStep ( executionPlan , "Seal immutable release execution plan" ) ;
2971+ const planCache = workflowStep ( executionPlan , "Cache immutable release execution plan" ) ;
29702972 const planUpload = workflowStep ( executionPlan , "Upload immutable release execution plan" ) ;
29712973 const manifestStep = workflowStep ( summary , "Write release validation manifest" ) ;
29722974 const selectState = workflowStep ( summary , "Select newest compatible release state artifacts" ) ;
@@ -2999,7 +3001,12 @@ describe("package acceptance workflow", () => {
29993001 expect ( planStep . run ) . not . toContain ( "EVIDENCE_MANIFEST" ) ;
30003002 expect ( planStep . run ) . toContain ( '--arg evidenceRunId "$EVIDENCE_RUN_ID"' ) ;
30013003 expect ( planStep . run ) . toContain ( '--argjson trustedWorkflow "$TRUSTED_WORKFLOW_JSON"' ) ;
3002- expect ( planUpload . if ) . toBe ( "${{ always() && github.run_attempt == 1 }}" ) ;
3004+ expect ( planCache . uses ) . toBe ( ACTIONS_CACHE_V5 ) ;
3005+ expect ( planCache . with ) . toMatchObject ( {
3006+ "fail-on-cache-miss" : "${{ github.run_attempt != 1 }}" ,
3007+ key : "full-release-execution-plan-v1-${{ github.run_id }}" ,
3008+ } ) ;
3009+ expect ( planUpload . if ) . toBe ( "always()" ) ;
30033010 expect ( planUpload . with ?. name ) . toBe ( "full-release-execution-plan-${{ github.run_id }}" ) ;
30043011 expect ( manifestStep . env ) . not . toHaveProperty ( "EVIDENCE_MANIFEST" ) ;
30053012 expect ( manifestStep . run ) . toContain (
@@ -3065,7 +3072,7 @@ describe("package acceptance workflow", () => {
30653072 ( job . steps ?? [ ] ) . filter ( ( step ) => step . uses ?. startsWith ( "actions/download-artifact@" ) ) ,
30663073 ) ;
30673074
3068- expect ( downloadSteps ) . toHaveLength ( 6 ) ;
3075+ expect ( downloadSteps ) . toHaveLength ( 5 ) ;
30693076 for ( const step of downloadSteps ) {
30703077 expect ( step . uses ) . toBe ( DOWNLOAD_ARTIFACT_V8 ) ;
30713078 }
0 commit comments