Skip to content

Commit 0ae194d

Browse files
committed
fix(qa): accept default OpenClaw compaction runtime
1 parent 66e14c9 commit 0ae194d

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎extensions/qa-lab/src/scenario-catalog-compaction.test.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ describe("qa compaction scenario catalog", () => {
9898
},
9999
},
100100
]);
101+
const runtimeGuard = scenario.execution.flow?.steps[0]?.actions[1] as
102+
| Record<string, unknown>
103+
| undefined;
104+
expect(runtimeGuard?.assert).toMatchObject({
105+
expr: expect.stringContaining(
106+
"(env.gateway.runtimeEnv.OPENCLAW_QA_FORCE_RUNTIME ?? 'openclaw') === 'openclaw'",
107+
),
108+
});
101109

102110
const knownGapIndex = flow.indexOf(knownGap);
103111
const gatewayWorkIndex = flow.indexOf('"call":"waitForGatewayHealthy"');

‎qa/scenarios/runtime/compaction-retry-mutating-tool.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ flow:
5757
- throw:
5858
expr: "new qaErrors.QaSuiteScenarioSkipError('known-harness-gap compaction-retry-mutating-tool: provider-error recovery does not invoke Codex native compaction; native token-threshold compaction needs a separate scenario.')"
5959
- assert:
60-
expr: "env.gateway.runtimeEnv.OPENCLAW_QA_FORCE_RUNTIME === 'openclaw' && env.providerMode === 'mock-openai' && Boolean(env.mock)"
60+
expr: "(env.gateway.runtimeEnv.OPENCLAW_QA_FORCE_RUNTIME ?? 'openclaw') === 'openclaw' && env.providerMode === 'mock-openai' && Boolean(env.mock)"
6161
message: compaction overflow injection requires the mock-openai OpenClaw runtime
6262
- call: waitForGatewayHealthy
6363
args:

0 commit comments

Comments
 (0)