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

推荐订阅源

Google DeepMind News
Google DeepMind News
I
InfoQ
Engineering at Meta
Engineering at Meta
D
DataBreaches.Net
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Recent Announcements
Recent Announcements
GbyAI
GbyAI
爱范儿
爱范儿
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
美团技术团队
罗磊的独立博客
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
M
MIT News - Artificial intelligence
D
Docker
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs
博客园 - 叶小钗

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
fix(update): avoid lint-blocked dev installs (#77181) · o...
vincentkoc · 2026-05-06 · via Recent Commits to openclaw:main

@@ -614,11 +614,107 @@ describe("runGatewayUpdate", () => {

614614

expect(calls.some((call) => call.startsWith("npm install --prefix "))).toBe(true);

615615

expect(calls).toContain("pnpm install");

616616

expect(calls).toContain("pnpm build");

617-

expect(calls).toContain("pnpm lint");

617+

expect(calls).not.toContain("pnpm lint");

618618

expect(calls).toContain("pnpm ui:build");

619619

expect(pnpmEnvPaths.some((value) => value.includes("openclaw-update-pnpm-"))).toBe(true);

620620

});

621621622+

it("runs dev preflight lint in constrained mode when explicitly enabled", async () => {

623+

await setupGitPackageManagerFixture();

624+

const calls: string[] = [];

625+

const lintEnv: NodeJS.ProcessEnv[] = [];

626+

const upstreamSha = "upstream123";

627+

const doctorNodePath = await resolveStableNodePath(process.execPath);

628+

const doctorCommand = `${doctorNodePath} ${path.join(tempDir, "openclaw.mjs")} doctor --non-interactive --fix`;

629+630+

const runCommand = async (

631+

argv: string[],

632+

options?: { env?: NodeJS.ProcessEnv; cwd?: string; timeoutMs?: number },

633+

) => {

634+

const key = argv.join(" ");

635+

calls.push(key);

636+637+

if (key === `git -C ${tempDir} rev-parse --show-toplevel`) {

638+

return { stdout: tempDir, stderr: "", code: 0 };

639+

}

640+

if (key === `git -C ${tempDir} rev-parse HEAD`) {

641+

return { stdout: "abc123", stderr: "", code: 0 };

642+

}

643+

if (key === `git -C ${tempDir} rev-parse --abbrev-ref HEAD`) {

644+

return { stdout: "main", stderr: "", code: 0 };

645+

}

646+

if (key === `git -C ${tempDir} status --porcelain -- :!dist/control-ui/`) {

647+

return { stdout: "", stderr: "", code: 0 };

648+

}

649+

if (key === `git -C ${tempDir} rev-parse --abbrev-ref --symbolic-full-name @{upstream}`) {

650+

return { stdout: "origin/main", stderr: "", code: 0 };

651+

}

652+

if (key === `git -C ${tempDir} fetch --all --prune --tags`) {

653+

return { stdout: "", stderr: "", code: 0 };

654+

}

655+

if (key === `git -C ${tempDir} rev-parse @{upstream}`) {

656+

return { stdout: upstreamSha, stderr: "", code: 0 };

657+

}

658+

if (key === `git -C ${tempDir} rev-list --max-count=10 ${upstreamSha}`) {

659+

return { stdout: `${upstreamSha}\n`, stderr: "", code: 0 };

660+

}

661+

if (key === "pnpm --version") {

662+

return { stdout: "10.0.0", stderr: "", code: 0 };

663+

}

664+

if (

665+

key.startsWith(`git -C ${tempDir} worktree add --detach /tmp/`) &&

666+

key.endsWith(` ${upstreamSha}`) &&

667+

preflightPrefixPattern.test(key)

668+

) {

669+

return { stdout: `HEAD is now at ${upstreamSha}`, stderr: "", code: 0 };

670+

}

671+

if (

672+

key.startsWith("git -C /tmp/") &&

673+

preflightPrefixPattern.test(key) &&

674+

key.includes(" checkout --detach ") &&

675+

key.endsWith(upstreamSha)

676+

) {

677+

return { stdout: "", stderr: "", code: 0 };

678+

}

679+

if (key === "pnpm install" || key === "pnpm build" || key === "pnpm ui:build") {

680+

return { stdout: "", stderr: "", code: 0 };

681+

}

682+

if (key === "pnpm lint") {

683+

lintEnv.push(options?.env ?? {});

684+

return { stdout: "", stderr: "", code: 0 };

685+

}

686+

if (

687+

key.startsWith(`git -C ${tempDir} worktree remove --force /tmp/`) &&

688+

preflightPrefixPattern.test(key)

689+

) {

690+

return { stdout: "", stderr: "", code: 0 };

691+

}

692+

if (key === `git -C ${tempDir} worktree prune`) {

693+

return { stdout: "", stderr: "", code: 0 };

694+

}

695+

if (key === `git -C ${tempDir} rebase ${upstreamSha}`) {

696+

return { stdout: "", stderr: "", code: 0 };

697+

}

698+

if (key === doctorCommand) {

699+

return { stdout: "", stderr: "", code: 0 };

700+

}

701+

return { stdout: "", stderr: "", code: 0 };

702+

};

703+704+

const result = await withEnvAsync({ OPENCLAW_UPDATE_PREFLIGHT_LINT: "1" }, async () =>

705+

runWithCommand(runCommand, { channel: "dev" }),

706+

);

707+708+

expect(result.status).toBe("ok");

709+

expect(calls).toContain("pnpm lint");

710+

expect(lintEnv).toHaveLength(1);

711+

expect(lintEnv[0]).toMatchObject({

712+

OPENCLAW_LOCAL_CHECK: "1",

713+

OPENCLAW_LOCAL_CHECK_MODE: "throttled",

714+

OPENCLAW_OXLINT_SHARDS_SERIAL: "1",

715+

});

716+

});

717+622718

it("retries windows pnpm git installs with --ignore-scripts for dev updates", async () => {

623719

await setupGitPackageManagerFixture();

624720

const calls: string[] = [];