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

推荐订阅源

美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
Y
Y Combinator Blog
博客园_首页
有赞技术团队
有赞技术团队
博客园 - Franky
腾讯CDC
G
Google Developers Blog
Recent Announcements
Recent Announcements
博客园 - 【当耐特】
D
Docker
The GitHub Blog
The GitHub Blog
MyScale Blog
MyScale Blog
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
A
About on SuperTechFans
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
V
V2EX
U
Unit 42
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学

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(ci): handle missing SwiftLint in Testbox changed chec...
vincentkoc · 2026-05-17 · via Recent Commits to openclaw:main

@@ -1,4 +1,6 @@

11

import { performance } from "node:perf_hooks";

2+

import { accessSync, constants } from "node:fs";

3+

import path from "node:path";

24

import {

35

detectChangedLanesForPaths,

46

listChangedPathsFromGit,

@@ -41,6 +43,38 @@ function isTruthyEnvFlag(value) {

4143

return normalized !== "" && normalized !== "0" && normalized !== "false" && normalized !== "no";

4244

}

434546+

function executableExistsOnPath(command, env = process.env) {

47+

const pathValue = env.PATH ?? env.Path ?? "";

48+

const pathExts =

49+

process.platform === "win32" ? (env.PATHEXT ?? ".EXE;.CMD;.BAT;.COM").split(";") : [""];

50+

for (const searchPath of pathValue.split(path.delimiter)) {

51+

if (!searchPath) {

52+

continue;

53+

}

54+

for (const ext of pathExts) {

55+

try {

56+

accessSync(path.join(searchPath, `${command}${ext}`), constants.X_OK);

57+

return true;

58+

} catch {

59+

continue;

60+

}

61+

}

62+

}

63+

return false;

64+

}

65+66+

export function shouldSkipAppLintForMissingSwiftlint(options = {}) {

67+

const env = options.env ?? process.env;

68+

const platform = options.platform ?? process.platform;

69+

const swiftlintAvailable =

70+

options.swiftlintAvailable ?? executableExistsOnPath("swiftlint", env);

71+

return (

72+

isTruthyEnvFlag(env.OPENCLAW_TESTBOX_REMOTE_RUN) &&

73+

platform !== "darwin" &&

74+

!swiftlintAvailable

75+

);

76+

}

77+4478

export function shouldDelegateChangedCheckToCrabbox(argv = [], env = process.env) {

4579

if (!isTruthyEnvFlag(env.OPENCLAW_TESTBOX)) {

4680

return false;

@@ -198,7 +232,17 @@ export function createChangedCheckPlan(result, options = {}) {

198232

if (lanes.tooling || lanes.liveDockerTooling) {

199233

addLint("lint scripts", ["lint:scripts"]);

200234

}

201-

if (lanes.apps) {

235+

if (lanes.apps && shouldSkipAppLintForMissingSwiftlint({ ...options, env: baseEnv })) {

236+

addCommand(

237+

"lint apps (swiftlint unavailable in Testbox)",

238+

"node",

239+

[

240+

"-e",

241+

"console.error('[check:changed] Swift app lint skipped: swiftlint is unavailable in this Linux Testbox; macOS CI owns SwiftLint coverage.')",

242+

],

243+

baseEnv,

244+

);

245+

} else if (lanes.apps) {

202246

addLint("lint apps", ["lint:apps"]);

203247

}

204248