惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
Microsoft Azure Blog
Microsoft Azure Blog
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
小众软件
小众软件
F
Fortinet All Blogs
Microsoft Security Blog
Microsoft Security Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
Google DeepMind News
Google DeepMind News
Jina AI
Jina AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
宝玉的分享
宝玉的分享
有赞技术团队
有赞技术团队
J
Java Code Geeks
WordPress大学
WordPress大学
The Cloudflare Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: tighten qa matrix room assertions · openclaw/opencl...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -3811,51 +3811,47 @@ describe("matrix live qa scenarios", () => {

3811381138123812

const scenario = requireMatrixQaScenario("matrix-dm-per-room-session-override");

381338133814-

await expect(

3815-

runMatrixQaScenario(scenario, {

3816-

baseUrl: "http://127.0.0.1:28008/",

3817-

canary: undefined,

3818-

driverAccessToken: "driver-token",

3819-

driverUserId: "@driver:matrix-qa.test",

3820-

observedEvents: [],

3821-

observerAccessToken: "observer-token",

3822-

observerUserId: "@observer:matrix-qa.test",

3823-

roomId: "!main:matrix-qa.test",

3824-

restartGateway: undefined,

3825-

syncState: {},

3826-

sutAccessToken: "sut-token",

3827-

sutUserId: "@sut:matrix-qa.test",

3828-

timeoutMs: 8_000,

3829-

topology: {

3830-

defaultRoomId: "!main:matrix-qa.test",

3831-

defaultRoomKey: "main",

3832-

rooms: [

3833-

{

3834-

key: scenarioTesting.MATRIX_QA_DRIVER_DM_ROOM_KEY,

3835-

kind: "dm",

3836-

memberRoles: ["driver", "sut"],

3837-

memberUserIds: ["@driver:matrix-qa.test", "@sut:matrix-qa.test"],

3838-

name: "DM",

3839-

requireMention: false,

3840-

roomId: "!dm:matrix-qa.test",

3841-

},

3842-

{

3843-

key: scenarioTesting.MATRIX_QA_DRIVER_DM_SHARED_ROOM_KEY,

3844-

kind: "dm",

3845-

memberRoles: ["driver", "sut"],

3846-

memberUserIds: ["@driver:matrix-qa.test", "@sut:matrix-qa.test"],

3847-

name: "Shared DM",

3848-

requireMention: false,

3849-

roomId: "!dm-shared:matrix-qa.test",

3850-

},

3851-

],

3852-

},

3853-

}),

3854-

).resolves.toMatchObject({

3855-

artifacts: {

3856-

roomKey: scenarioTesting.MATRIX_QA_DRIVER_DM_SHARED_ROOM_KEY,

3814+

const result = await runMatrixQaScenario(scenario, {

3815+

baseUrl: "http://127.0.0.1:28008/",

3816+

canary: undefined,

3817+

driverAccessToken: "driver-token",

3818+

driverUserId: "@driver:matrix-qa.test",

3819+

observedEvents: [],

3820+

observerAccessToken: "observer-token",

3821+

observerUserId: "@observer:matrix-qa.test",

3822+

roomId: "!main:matrix-qa.test",

3823+

restartGateway: undefined,

3824+

syncState: {},

3825+

sutAccessToken: "sut-token",

3826+

sutUserId: "@sut:matrix-qa.test",

3827+

timeoutMs: 8_000,

3828+

topology: {

3829+

defaultRoomId: "!main:matrix-qa.test",

3830+

defaultRoomKey: "main",

3831+

rooms: [

3832+

{

3833+

key: scenarioTesting.MATRIX_QA_DRIVER_DM_ROOM_KEY,

3834+

kind: "dm",

3835+

memberRoles: ["driver", "sut"],

3836+

memberUserIds: ["@driver:matrix-qa.test", "@sut:matrix-qa.test"],

3837+

name: "DM",

3838+

requireMention: false,

3839+

roomId: "!dm:matrix-qa.test",

3840+

},

3841+

{

3842+

key: scenarioTesting.MATRIX_QA_DRIVER_DM_SHARED_ROOM_KEY,

3843+

kind: "dm",

3844+

memberRoles: ["driver", "sut"],

3845+

memberUserIds: ["@driver:matrix-qa.test", "@sut:matrix-qa.test"],

3846+

name: "Shared DM",

3847+

requireMention: false,

3848+

roomId: "!dm-shared:matrix-qa.test",

3849+

},

3850+

],

38573851

},

38583852

});

3853+

const artifacts = result.artifacts as { roomKey?: unknown };

3854+

expect(artifacts.roomKey).toBe(scenarioTesting.MATRIX_QA_DRIVER_DM_SHARED_ROOM_KEY);

3859385538603856

expect(waitSecondaryNotice).toHaveBeenCalledTimes(1);

38613857

});

@@ -3902,33 +3898,32 @@ describe("matrix live qa scenarios", () => {

3902389839033899

const scenario = requireMatrixQaScenario("matrix-room-autojoin-invite");

390439003905-

await expect(

3906-

runMatrixQaScenario(scenario, {

3907-

baseUrl: "http://127.0.0.1:28008/",

3908-

canary: undefined,

3909-

driverAccessToken: "driver-token",

3910-

driverUserId: "@driver:matrix-qa.test",

3911-

observedEvents: [],

3912-

observerAccessToken: "observer-token",

3913-

observerUserId: "@observer:matrix-qa.test",

3914-

roomId: "!main:matrix-qa.test",

3915-

restartGateway: undefined,

3916-

syncState: {},

3917-

sutAccessToken: "sut-token",

3918-

sutUserId: "@sut:matrix-qa.test",

3919-

timeoutMs: 8_000,

3920-

topology: {

3921-

defaultRoomId: "!main:matrix-qa.test",

3922-

defaultRoomKey: "main",

3923-

rooms: [],

3924-

},

3925-

}),

3926-

).resolves.toMatchObject({

3927-

artifacts: {

3928-

joinedRoomId: "!autojoin:matrix-qa.test",

3929-

membershipJoinEventId: "$autojoin-join",

3901+

const result = await runMatrixQaScenario(scenario, {

3902+

baseUrl: "http://127.0.0.1:28008/",

3903+

canary: undefined,

3904+

driverAccessToken: "driver-token",

3905+

driverUserId: "@driver:matrix-qa.test",

3906+

observedEvents: [],

3907+

observerAccessToken: "observer-token",

3908+

observerUserId: "@observer:matrix-qa.test",

3909+

roomId: "!main:matrix-qa.test",

3910+

restartGateway: undefined,

3911+

syncState: {},

3912+

sutAccessToken: "sut-token",

3913+

sutUserId: "@sut:matrix-qa.test",

3914+

timeoutMs: 8_000,

3915+

topology: {

3916+

defaultRoomId: "!main:matrix-qa.test",

3917+

defaultRoomKey: "main",

3918+

rooms: [],

39303919

},

39313920

});

3921+

const artifacts = result.artifacts as {

3922+

joinedRoomId?: unknown;

3923+

membershipJoinEventId?: unknown;

3924+

};

3925+

expect(artifacts.joinedRoomId).toBe("!autojoin:matrix-qa.test");

3926+

expect(artifacts.membershipJoinEventId).toBe("$autojoin-join");

3932392739333928

expect(createPrivateRoom).toHaveBeenCalledWith({

39343929

inviteUserIds: ["@observer:matrix-qa.test", "@sut:matrix-qa.test"],

@@ -3966,70 +3961,62 @@ describe("matrix live qa scenarios", () => {

3966396139673962

const scenario = requireMatrixQaScenario("matrix-secondary-room-reply");

396839633969-

await expect(

3970-

runMatrixQaScenario(scenario, {

3971-

baseUrl: "http://127.0.0.1:28008/",

3972-

canary: undefined,

3973-

driverAccessToken: "driver-token",

3974-

driverUserId: "@driver:matrix-qa.test",

3975-

observedEvents: [],

3976-

observerAccessToken: "observer-token",

3977-

observerUserId: "@observer:matrix-qa.test",

3978-

roomId: "!main:matrix-qa.test",

3979-

restartGateway: undefined,

3980-

syncState: {},

3981-

sutAccessToken: "sut-token",

3982-

sutUserId: "@sut:matrix-qa.test",

3983-

timeoutMs: 8_000,

3984-

topology: {

3985-

defaultRoomId: "!main:matrix-qa.test",

3986-

defaultRoomKey: "main",

3987-

rooms: [

3988-

{

3989-

key: "main",

3990-

kind: "group",

3991-

memberRoles: ["driver", "observer", "sut"],

3992-

memberUserIds: [

3993-

"@driver:matrix-qa.test",

3994-

"@observer:matrix-qa.test",

3995-

"@sut:matrix-qa.test",

3996-

],

3997-

name: "Main",

3998-

requireMention: true,

3999-

roomId: "!main:matrix-qa.test",

4000-

},

4001-

{

4002-

key: scenarioTesting.MATRIX_QA_SECONDARY_ROOM_KEY,

4003-

kind: "group",

4004-

memberRoles: ["driver", "observer", "sut"],

4005-

memberUserIds: [

4006-

"@driver:matrix-qa.test",

4007-

"@observer:matrix-qa.test",

4008-

"@sut:matrix-qa.test",

4009-

],

4010-

name: "Secondary",

4011-

requireMention: true,

4012-

roomId: "!secondary:matrix-qa.test",

4013-

},

4014-

],

4015-

},

4016-

}),

4017-

).resolves.toMatchObject({

4018-

artifacts: {

4019-

actorUserId: "@driver:matrix-qa.test",

3964+

const result = await runMatrixQaScenario(scenario, {

3965+

baseUrl: "http://127.0.0.1:28008/",

3966+

canary: undefined,

3967+

driverAccessToken: "driver-token",

3968+

driverUserId: "@driver:matrix-qa.test",

3969+

observedEvents: [],

3970+

observerAccessToken: "observer-token",

3971+

observerUserId: "@observer:matrix-qa.test",

3972+

roomId: "!main:matrix-qa.test",

3973+

restartGateway: undefined,

3974+

syncState: {},

3975+

sutAccessToken: "sut-token",

3976+

sutUserId: "@sut:matrix-qa.test",

3977+

timeoutMs: 8_000,

3978+

topology: {

3979+

defaultRoomId: "!main:matrix-qa.test",

3980+

defaultRoomKey: "main",

3981+

rooms: [

3982+

{

3983+

key: "main",

3984+

kind: "group",

3985+

memberRoles: ["driver", "observer", "sut"],

3986+

memberUserIds: [

3987+

"@driver:matrix-qa.test",

3988+

"@observer:matrix-qa.test",

3989+

"@sut:matrix-qa.test",

3990+

],

3991+

name: "Main",

3992+

requireMention: true,

3993+

roomId: "!main:matrix-qa.test",

3994+

},

3995+

{

3996+

key: scenarioTesting.MATRIX_QA_SECONDARY_ROOM_KEY,

3997+

kind: "group",

3998+

memberRoles: ["driver", "observer", "sut"],

3999+

memberUserIds: [

4000+

"@driver:matrix-qa.test",

4001+

"@observer:matrix-qa.test",

4002+

"@sut:matrix-qa.test",

4003+

],

4004+

name: "Secondary",

4005+

requireMention: true,

4006+

roomId: "!secondary:matrix-qa.test",

4007+

},

4008+

],

40204009

},

40214010

});

4011+

const artifacts = result.artifacts as { actorUserId?: unknown };

4012+

expect(artifacts.actorUserId).toBe("@driver:matrix-qa.test");

4022401340234014

expect(sendTextMessage).toHaveBeenCalledWith({

40244015

body: expect.stringContaining("@sut:matrix-qa.test"),

40254016

mentionUserIds: ["@sut:matrix-qa.test"],

40264017

roomId: "!secondary:matrix-qa.test",

40274018

});

4028-

expect(waitForRoomEvent).toHaveBeenCalledWith(

4029-

expect.objectContaining({

4030-

roomId: "!secondary:matrix-qa.test",

4031-

}),

4032-

);

4019+

expect(waitForRoomEvent.mock.calls[0]?.[0]?.roomId).toBe("!secondary:matrix-qa.test");

40334020

});

4034402140354022

it("ignores stale E2EE replies when checking a verification notice", async () => {