Skip to content

Commit af62fd4

Browse files
committed
test: stabilize release qa gates
1 parent 6ebc5e4 commit af62fd4

6 files changed

Lines changed: 28 additions & 12 deletions

File tree

‎.github/workflows/openclaw-release-checks.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ jobs:
660660
published_upgrade_survivor_baselines: ${{ needs.resolve_target.outputs.run_release_soak == 'true' && 'last-stable-4 2026.4.23 2026.5.2 2026.4.15' || '' }}
661661
published_upgrade_survivor_scenarios: ${{ needs.resolve_target.outputs.run_release_soak == 'true' && 'reported-issues' || '' }}
662662
telegram_mode: mock-openai
663-
telegram_scenarios: telegram-help-command,telegram-commands-command,telegram-tools-compact-command,telegram-whoami-command,telegram-status-command,telegram-other-bot-command-gating,telegram-context-command,telegram-mentioned-message-reply,telegram-reply-chain-exact-marker,telegram-stream-final-single-message,telegram-long-final-reuses-preview,telegram-mention-gating
663+
telegram_scenarios: telegram-help-command,telegram-commands-command,telegram-tools-compact-command,telegram-whoami-command,telegram-status-command,telegram-other-bot-command-gating,telegram-context-command,telegram-mentioned-message-reply,telegram-long-final-reuses-preview,telegram-mention-gating
664664
secrets:
665665
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
666666
OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL }}

‎extensions/qa-lab/src/live-transports/telegram/telegram-live.runtime.test.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,6 @@ describe("telegram live qa runtime", () => {
483483
"telegram-other-bot-command-gating",
484484
"telegram-context-command",
485485
"telegram-mentioned-message-reply",
486-
"telegram-reply-chain-exact-marker",
487-
"telegram-stream-final-single-message",
488486
"telegram-long-final-reuses-preview",
489487
"telegram-mention-gating",
490488
],
@@ -500,8 +498,11 @@ describe("telegram live qa runtime", () => {
500498
false,
501499
);
502500
const streamSingle = requireScenario(catalog, "telegram-stream-final-single-message");
503-
expect(streamSingle.defaultEnabled).toBe(true);
501+
expect(streamSingle.defaultEnabled).toBe(false);
504502
expect(streamSingle.regressionRefs).toEqual(["openclaw/openclaw#39905"]);
503+
expect(requireScenario(catalog, "telegram-reply-chain-exact-marker").defaultEnabled).toBe(
504+
false,
505+
);
505506
});
506507

507508
it("tracks Telegram live coverage against the shared transport contract", () => {

‎extensions/qa-lab/src/live-transports/telegram/telegram-live.runtime.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,10 @@ const TELEGRAM_QA_SCENARIOS: TelegramQaScenarioDefinition[] = [
396396
{
397397
id: "telegram-reply-chain-exact-marker",
398398
title: "Telegram reply-chain exact marker",
399+
defaultEnabled: false,
399400
defaultProviderModes: ["mock-openai"],
400-
rationale: "Mock-backed exact-marker check proves Telegram final text survives reply handling.",
401+
rationale:
402+
"Opt-in mock-backed exact-marker check for Telegram final text through reply handling.",
401403
timeoutMs: 75_000,
402404
buildRun: (sutUsername) =>
403405
telegramQaStepRun({
@@ -412,8 +414,9 @@ const TELEGRAM_QA_SCENARIOS: TelegramQaScenarioDefinition[] = [
412414
{
413415
id: "telegram-stream-final-single-message",
414416
title: "Telegram streamed final stays one message",
417+
defaultEnabled: false,
415418
defaultProviderModes: ["mock-openai"],
416-
rationale: "Regression guard for duplicate final replies from Telegram streaming paths.",
419+
rationale: "Opt-in regression guard for duplicate final replies from Telegram streaming paths.",
417420
regressionRefs: ["openclaw/openclaw#39905"],
418421
timeoutMs: 75_000,
419422
buildRun: (sutUsername) =>

‎extensions/qa-matrix/src/runners/contract/scenario-runtime-room.ts‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,19 @@ export async function runThreadIsolationScenario(context: MatrixQaScenarioContex
303303
export async function runSubagentThreadSpawnScenario(context: MatrixQaScenarioContext) {
304304
const { client, startSince } = await primeMatrixQaDriverScenarioClient(context);
305305
const childToken = buildMatrixQaToken("MATRIX_QA_SUBAGENT_CHILD");
306+
const spawnArgs = {
307+
task: `Finish with exactly ${childToken}.`,
308+
label: "matrix-thread-subagent",
309+
thread: true,
310+
mode: "session",
311+
runTimeoutSeconds: 120,
312+
};
306313
const triggerBody = [
307-
`${context.sutUserId} For this QA check, call the sessions_spawn tool now.`,
308-
`Use exactly these arguments: task="Finish with exactly ${childToken}.", label="matrix-thread-subagent", thread=true, mode="session", runTimeoutSeconds=120.`,
314+
`${context.sutUserId} Run this exact OpenClaw Matrix thread-spawn QA check. Use tool calls, not prose.`,
315+
`Step 1: call sessions_spawn with exactly this JSON input: ${JSON.stringify(spawnArgs)}.`,
316+
'Step 2: after spawn returns status="accepted", wait for the child session reply in the spawned Matrix thread.',
309317
"Do not omit thread=true; the child must bind to this Matrix thread.",
310-
"Do not write the child token in the parent response.",
318+
`Do not write ${childToken} in the parent response.`,
311319
].join(" ");
312320
const driverEventId = await client.sendTextMessage({
313321
body: triggerBody,

‎extensions/qa-matrix/src/runners/contract/scenarios.test.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2694,7 +2694,7 @@ describe("matrix live qa scenarios", () => {
26942694
}))
26952695
.mockImplementationOnce(async () => {
26962696
const childToken =
2697-
/task="Finish with exactly ([^".]+)\./.exec(
2697+
/"task":"Finish with exactly ([^".]+)\./.exec(
26982698
mockMessageBody(sendTextMessage, "sendTextMessage"),
26992699
)?.[1] ?? "MATRIX_QA_SUBAGENT_CHILD_FIXED";
27002700
return {
@@ -2766,7 +2766,11 @@ describe("matrix live qa scenarios", () => {
27662766
expect(artifacts.threadRootEventId).toBe("$subagent-thread-root");
27672767

27682768
expectSentTextMessage(sendTextMessage, {
2769-
bodyIncludes: ["call the sessions_spawn tool now", "thread=true", "runTimeoutSeconds=120"],
2769+
bodyIncludes: [
2770+
"call sessions_spawn with exactly this JSON input",
2771+
'"thread":true',
2772+
'"runTimeoutSeconds":120',
2773+
],
27702774
mentionUserIds: ["@sut:matrix-qa.test"],
27712775
roomId: "!main:matrix-qa.test",
27722776
});

‎test/scripts/package-acceptance-workflow.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ describe("package artifact reuse", () => {
614614
);
615615
expect(workflow).toContain("telegram_mode: mock-openai");
616616
expect(workflow).toContain(
617-
"telegram_scenarios: telegram-help-command,telegram-commands-command,telegram-tools-compact-command,telegram-whoami-command,telegram-status-command,telegram-other-bot-command-gating,telegram-context-command,telegram-mentioned-message-reply,telegram-reply-chain-exact-marker,telegram-stream-final-single-message,telegram-long-final-reuses-preview,telegram-mention-gating",
617+
"telegram_scenarios: telegram-help-command,telegram-commands-command,telegram-tools-compact-command,telegram-whoami-command,telegram-status-command,telegram-other-bot-command-gating,telegram-context-command,telegram-mentioned-message-reply,telegram-long-final-reuses-preview,telegram-mention-gating",
618618
);
619619
expect(workflow).toContain("ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}");
620620
expect(workflow).toContain("ANTHROPIC_API_TOKEN: ${{ secrets.ANTHROPIC_API_TOKEN }}");

0 commit comments

Comments
 (0)