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

推荐订阅源

Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
博客园_首页
T
Tailwind CSS Blog
美团技术团队
博客园 - 叶小钗
Microsoft Security Blog
Microsoft Security Blog
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
MongoDB | Blog
MongoDB | Blog
The Cloudflare Blog
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
IT之家
IT之家
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Y
Y Combinator 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 barnacle action assertions · openclaw/openc...
steipete · 2026-05-09 · via Recent Commits to openclaw:main

@@ -222,6 +222,33 @@ function barnacleGithub(

222222

return { calls, github };

223223

}

224224225+

function expectedIssueUpdate(issue_number: number, state: string) {

226+

return {

227+

owner: "openclaw",

228+

repo: "openclaw",

229+

issue_number,

230+

state,

231+

};

232+

}

233+234+

function expectedRemoveLabel(issue_number: number, name: string) {

235+

return {

236+

owner: "openclaw",

237+

repo: "openclaw",

238+

issue_number,

239+

name,

240+

};

241+

}

242+243+

function expectedAddLabels(issue_number: number, labels: string[]) {

244+

return {

245+

owner: "openclaw",

246+

repo: "openclaw",

247+

issue_number,

248+

labels,

249+

};

250+

}

251+225252

describe("barnacle-auto-response", () => {

226253

it("keeps Barnacle-owned labels documented and ClawHub spelled correctly", () => {

227254

expect(managedLabelSpecs["r: skill"].description).toContain("ClawHub");

@@ -505,12 +532,10 @@ describe("barnacle-auto-response", () => {

505532

},

506533

});

507534508-

expect(calls.createComment).toContainEqual(

509-

expect.objectContaining({

510-

body: expect.stringContaining("false positive"),

511-

}),

512-

);

513-

expect(calls.update).toContainEqual(expect.objectContaining({ state: "closed" }));

535+

expect(calls.createComment).toHaveLength(1);

536+

expect(calls.createComment[0]?.issue_number).toBe(456);

537+

expect(calls.createComment[0]?.body).toContain("false positive");

538+

expect(calls.update).toStrictEqual([expectedIssueUpdate(456, "closed")]);

514539

});

515540516541

it("does not respond to maintainer comments on contributor items", async () => {

@@ -575,15 +600,11 @@ describe("barnacle-auto-response", () => {

575600

},

576601

});

577602578-

expect(calls.removeLabel).toContainEqual(

579-

expect.objectContaining({ name: "r: too-many-prs" }),

580-

);

581-

expect(calls.createComment).not.toContainEqual(

582-

expect.objectContaining({

583-

body: expect.stringContaining("more than 20 active PRs"),

584-

}),

585-

);

586-

expect(calls.update).not.toContainEqual(expect.objectContaining({ state: "closed" }));

603+

expect(calls.removeLabel).toStrictEqual([expectedRemoveLabel(123, "r: too-many-prs")]);

604+

expect(

605+

calls.createComment.every((call) => !call.body.includes("more than 20 active PRs")),

606+

).toBe(true);

607+

expect(calls.update).toStrictEqual([]);

587608

}

588609

});

589610

@@ -606,7 +627,7 @@ describe("barnacle-auto-response", () => {

606627

},

607628

});

608629609-

expect(calls.removeLabel).toContainEqual(expect.objectContaining({ name: "r: too-many-prs" }));

630+

expect(calls.removeLabel).toStrictEqual([expectedRemoveLabel(123, "r: too-many-prs")]);

610631

expect(calls.createComment).toStrictEqual([]);

611632

expect(calls.update).toStrictEqual([]);

612633

});

@@ -632,7 +653,7 @@ describe("barnacle-auto-response", () => {

632653

},

633654

});

634655635-

expect(calls.removeLabel).toContainEqual(expect.objectContaining({ name: "r: too-many-prs" }));

656+

expect(calls.removeLabel).toStrictEqual([expectedRemoveLabel(123, "r: too-many-prs")]);

636657

expect(calls.createComment).toStrictEqual([]);

637658

expect(calls.update).toStrictEqual([]);

638659

});

@@ -653,11 +674,14 @@ describe("barnacle-auto-response", () => {

653674

},

654675

});

655676656-

expect(calls.addLabels).toContainEqual(

657-

expect.objectContaining({

658-

labels: expect.arrayContaining([candidateLabels.dirtyCandidate]),

659-

}),

660-

);

677+

expect(calls.addLabels).toStrictEqual([

678+

expectedAddLabels(123, [

679+

candidateLabels.blankTemplate,

680+

candidateLabels.needsRealBehaviorProof,

681+

candidateLabels.refactorOnly,

682+

candidateLabels.dirtyCandidate,

683+

]),

684+

]);

661685

expect(calls.createComment).toStrictEqual([]);

662686

expect(calls.update).toStrictEqual([]);

663687

});

@@ -673,11 +697,13 @@ describe("barnacle-auto-response", () => {

673697

},

674698

});

675699676-

expect(calls.addLabels).toContainEqual(

677-

expect.objectContaining({

678-

labels: expect.arrayContaining([candidateLabels.needsRealBehaviorProof]),

679-

}),

680-

);

700+

expect(calls.addLabels).toStrictEqual([

701+

expectedAddLabels(123, [

702+

candidateLabels.blankTemplate,

703+

candidateLabels.needsRealBehaviorProof,

704+

candidateLabels.refactorOnly,

705+

]),

706+

]);

681707

expect(calls.createComment).toStrictEqual([]);

682708

expect(calls.update).toStrictEqual([]);

683709

});

@@ -699,14 +725,12 @@ describe("barnacle-auto-response", () => {

699725

},

700726

});

701727702-

expect(calls.removeLabel.map((call) => call.name)).toEqual(

703-

expect.arrayContaining([

704-

candidateLabels.needsRealBehaviorProof,

705-

candidateLabels.mockOnlyProof,

706-

PROOF_SUPPLIED_LABEL,

707-

PROOF_SUFFICIENT_LABEL,

708-

]),

709-

);

728+

expect(calls.removeLabel).toStrictEqual([

729+

expectedRemoveLabel(123, candidateLabels.needsRealBehaviorProof),

730+

expectedRemoveLabel(123, candidateLabels.mockOnlyProof),

731+

expectedRemoveLabel(123, PROOF_SUPPLIED_LABEL),

732+

expectedRemoveLabel(123, PROOF_SUFFICIENT_LABEL),

733+

]);

710734

expect(calls.update).toStrictEqual([]);

711735

});

712736

@@ -728,17 +752,11 @@ describe("barnacle-auto-response", () => {

728752

},

729753

});

730754731-

expect(calls.removeLabel.map((call) => call.name)).toEqual(

732-

expect.arrayContaining([

733-

candidateLabels.needsRealBehaviorProof,

734-

candidateLabels.mockOnlyProof,

735-

]),

736-

);

737-

expect(calls.addLabels).toContainEqual(

738-

expect.objectContaining({

739-

labels: expect.arrayContaining([PROOF_SUPPLIED_LABEL]),

740-

}),

741-

);

755+

expect(calls.removeLabel).toStrictEqual([

756+

expectedRemoveLabel(123, candidateLabels.needsRealBehaviorProof),

757+

expectedRemoveLabel(123, candidateLabels.mockOnlyProof),

758+

]);

759+

expect(calls.addLabels).toStrictEqual([expectedAddLabels(123, [PROOF_SUPPLIED_LABEL])]);

742760

});

743761744762

it.each(["edited", "synchronize"])(

@@ -762,9 +780,7 @@ describe("barnacle-auto-response", () => {

762780

},

763781

});

764782765-

expect(calls.removeLabel).toContainEqual(

766-

expect.objectContaining({ name: PROOF_SUFFICIENT_LABEL }),

767-

);

783+

expect(calls.removeLabel).toContainEqual(expectedRemoveLabel(123, PROOF_SUFFICIENT_LABEL));

768784

},

769785

);

770786

@@ -791,9 +807,7 @@ describe("barnacle-auto-response", () => {

791807

},

792808

});

793809794-

expect(calls.removeLabel).not.toContainEqual(

795-

expect.objectContaining({ name: PROOF_SUFFICIENT_LABEL }),

796-

);

810+

expect(calls.removeLabel).not.toContainEqual(expectedRemoveLabel(123, PROOF_SUFFICIENT_LABEL));

797811

});

798812799813

it("actions manually applied candidate labels", async () => {

@@ -811,12 +825,10 @@ describe("barnacle-auto-response", () => {

811825

},

812826

});

813827814-

expect(calls.createComment).toContainEqual(

815-

expect.objectContaining({

816-

body: expect.stringContaining("ClawHub"),

817-

}),

818-

);

819-

expect(calls.update).toContainEqual(expect.objectContaining({ state: "closed" }));

828+

expect(calls.createComment).toHaveLength(1);

829+

expect(calls.createComment[0]?.issue_number).toBe(123);

830+

expect(calls.createComment[0]?.body).toContain("ClawHub");

831+

expect(calls.update).toStrictEqual([expectedIssueUpdate(123, "closed")]);

820832

});

821833822834

it("closes manually labeled BlueBubbles requests with imsg migration guidance", async () => {

@@ -834,12 +846,10 @@ describe("barnacle-auto-response", () => {

834846

},

835847

});

836848837-

expect(calls.createComment).toContainEqual(

838-

expect.objectContaining({

839-

body: expect.stringContaining("/channels/imessage"),

840-

}),

841-

);

842-

expect(calls.update).toContainEqual(expect.objectContaining({ state: "closed" }));

849+

expect(calls.createComment).toHaveLength(1);

850+

expect(calls.createComment[0]?.issue_number).toBe(456);

851+

expect(calls.createComment[0]?.body).toContain("/channels/imessage");

852+

expect(calls.update).toStrictEqual([expectedIssueUpdate(456, "closed")]);

843853

});

844854845855

it("keeps bot-applied candidate labels passive", async () => {

@@ -876,12 +886,10 @@ describe("barnacle-auto-response", () => {

876886

},

877887

});

878888879-

expect(calls.removeLabel).toContainEqual(expect.objectContaining({ name: "trigger-response" }));

880-

expect(calls.createComment).toContainEqual(

881-

expect.objectContaining({

882-

body: expect.stringContaining("does not include real behavior proof"),

883-

}),

884-

);

885-

expect(calls.update).toContainEqual(expect.objectContaining({ state: "closed" }));

889+

expect(calls.removeLabel).toStrictEqual([expectedRemoveLabel(123, "trigger-response")]);

890+

expect(calls.createComment).toHaveLength(1);

891+

expect(calls.createComment[0]?.issue_number).toBe(123);

892+

expect(calls.createComment[0]?.body).toContain("does not include real behavior proof");

893+

expect(calls.update).toStrictEqual([expectedIssueUpdate(123, "closed")]);

886894

});

887895

});