@@ -232,9 +232,9 @@ describe("OpenClaw performance workflow", () => {
232232 const workflow = readFileSync ( WORKFLOW , "utf8" ) ;
233233 const installRun = findStep ( "Install OCM and Kova" ) . run ?? "" ;
234234
235- expect ( workflow ) . toContain ( "OCM_VERSION: v0.2.29 " ) ;
235+ expect ( workflow ) . toContain ( "OCM_VERSION: v0.2.32 " ) ;
236236 expect ( workflow ) . toContain (
237- "OCM_LINUX_X64_SHA256: d966098d6ba2bc10891be3c76e162a37b07f28c4f51da75d2eb509886eb7e1cf " ,
237+ "OCM_LINUX_X64_SHA256: 5b20c21b2825f69b89eb37baa657f0f0062124517e6e6828e9857c7e9bbd3070 " ,
238238 ) ;
239239 expect ( installRun ) . toContain (
240240 '"https://github.com/shakkernerd/ocm/releases/download/${OCM_VERSION}/ocm-x86_64-unknown-linux-gnu.tar.gz"' ,
@@ -1076,22 +1076,19 @@ esac
10761076 expect ( publish . run ) . not . toContain ( "report_jsons" ) ;
10771077 } ) ;
10781078
1079- it ( "installs local workspace packages beside the OCM root tarball" , ( ) => {
1080- const workflow = readWorkflow ( ) ;
1081- const configure = findStep ( "Configure OCM local workspace dependencies" ) ;
1079+ it ( "lets OCM discover its native workspace dependency adapter" , ( ) => {
1080+ const workflowText = readFileSync ( WORKFLOW , "utf8" ) ;
1081+ const steps = readWorkflow ( ) . jobs ?. kova ?. steps ?? [ ] ;
1082+ const installIndex = steps . findIndex ( ( step ) => step . name === "Install OCM and Kova" ) ;
10821083
1083- expect ( workflow . jobs ?. kova ?. env ) . not . toHaveProperty ( "OPENCLAW_OCM_RUNTIME_BUILD_PROFILE" ) ;
1084- expect ( configure . run ) . toContain (
1085- 'npm_wrapper="$PERFORMANCE_HELPER_DIR/scripts/ocm-npm-workspace-deps.mts"' ,
1086- ) ;
1087- expect ( configure . run ) . toContain ( "OCM_INTERNAL_NPM_BIN=$npm_adapter" ) ;
1088- expect ( configure . run ) . toContain ( "OPENCLAW_OCM_NPM_WRAPPER=$npm_wrapper" ) ;
1089- expect ( configure . run ) . toContain (
1090- 'if [[ -f "${GITHUB_WORKSPACE}/packages/ai/package.json" ]]; then' ,
1091- ) ;
1092- expect ( configure . run ) . toContain (
1093- "OPENCLAW_OCM_WORKSPACE_DEPENDENCY_DIRS=$workspace_dependency_dirs" ,
1084+ expect ( installIndex ) . toBeGreaterThanOrEqual ( 0 ) ;
1085+ expect ( steps . map ( ( step ) => step . name ) ) . not . toContain (
1086+ "Configure OCM local workspace dependencies" ,
10941087 ) ;
1088+ expect ( workflowText ) . not . toContain ( "OCM_INTERNAL_NPM_BIN" ) ;
1089+ expect ( workflowText ) . not . toContain ( "OPENCLAW_OCM_NPM_WRAPPER" ) ;
1090+ expect ( workflowText ) . not . toContain ( "OPENCLAW_OCM_WORKSPACE_DEPENDENCY_DIRS" ) ;
1091+ expect ( steps [ installIndex + 1 ] ?. name ) . toBe ( "Kova version and plan sanity" ) ;
10951092 } ) ;
10961093
10971094 it ( "fails selected live Kova lanes when live auth is missing" , ( ) => {
0 commit comments