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

推荐订阅源

云风的 BLOG
云风的 BLOG
有赞技术团队
有赞技术团队
Simon Willison's Weblog
Simon Willison's Weblog
人人都是产品经理
人人都是产品经理
L
LINUX DO - 最新话题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
A
Arctic Wolf
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
小众软件
小众软件
Jina AI
Jina AI
The Cloudflare Blog
P
Palo Alto Networks Blog
AWS News Blog
AWS News Blog
阮一峰的网络日志
阮一峰的网络日志
C
Cybersecurity and Infrastructure Security Agency CISA
Know Your Adversary
Know Your Adversary
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
NISL@THU
NISL@THU
G
GRAHAM CLULEY
Project Zero
Project Zero
博客园_首页
博客园 - 三生石上(FineUI控件)
罗磊的独立博客
Spread Privacy
Spread Privacy
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
Latest news
Latest news
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cisco Blogs
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tor Project blog
S
Securelist
V
Vulnerabilities – Threatpost
T
The Exploit Database - CXSecurity.com
C
CERT Recently Published Vulnerability Notes
IT之家
IT之家
Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Last Watchdog
The Last Watchdog
T
Tenable Blog
宝玉的分享
宝玉的分享
S
Secure Thoughts
P
Privacy & Cybersecurity Law Blog
量子位
大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Security Archives - TechRepublic
Security Archives - TechRepublic

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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
test: speed up test project routing · openclaw/openclaw@140892c
steipete · 2026-05-27 · via Recent Commits to openclaw:main

@@ -351,6 +351,7 @@ const PRECISE_SOURCE_TEST_TARGETS = new Map([

351351

],

352352

],

353353

]);

354+

const BROAD_ONLY_TEST_HELPERS = new Set(["test/helpers/poll.ts"]);

354355

const TOOLING_SOURCE_TEST_TARGETS = new Map([

355356

["scripts/github/barnacle-auto-response.mjs", ["test/scripts/barnacle-auto-response.test.ts"]],

356357

["scripts/changed-lanes.mjs", ["test/scripts/changed-lanes.test.ts"]],

@@ -593,6 +594,9 @@ const SOURCE_ROOTS_FOR_IMPORT_GRAPH = [

593594

"test",

594595

];

595596

const IMPORTABLE_FILE_EXTENSIONS = [".ts", ".tsx", ".mts", ".cts"];

597+

const IMPORT_GRAPH_GREP_PATHS = SOURCE_ROOTS_FOR_IMPORT_GRAPH.flatMap((root) =>

598+

IMPORTABLE_FILE_EXTENSIONS.map((ext) => `:(glob)${root}/**/*${ext}`),

599+

);

596600

const IMPORT_SPECIFIER_PATTERN =

597601

/\b(?:import|export)\s+(?:type\s+)?(?:[^'"]*?\s+from\s+)?["']([^"']+)["']|\bimport\s*\(\s*["']([^"']+)["']\s*\)/gu;

598602

const BROAD_CHANGED_ENV_KEY = "OPENCLAW_TEST_CHANGED_BROAD";

@@ -768,7 +772,7 @@ function isPathLikeTargetArg(arg, cwd) {

768772

if (!arg || arg === "--" || arg.startsWith("-")) {

769773

return false;

770774

}

771-

return isExistingPathTarget(arg, cwd) || isGlobTarget(arg) || isFileLikeTarget(arg);

775+

return isGlobTarget(arg) || isFileLikeTarget(arg) || isExistingPathTarget(arg, cwd);

772776

}

773777774778

function toRepoRelativeTarget(arg, cwd) {

@@ -844,7 +848,11 @@ export function findUnmatchedExplicitTestTargets(args, cwd = process.cwd()) {

844848

return [];

845849

}

846850847-

const candidateFiles = listExplicitTestTargetFilesForCwd(cwd);

851+

let candidateFiles = null;

852+

const getCandidateFiles = () => {

853+

candidateFiles ??= listExplicitTestTargetFilesForCwd(cwd);

854+

return candidateFiles;

855+

};

848856

const unmatched = [];

849857

for (const targetArg of targetArgs) {

850858

const relative = toRepoRelativeTarget(targetArg, cwd);

@@ -856,7 +864,7 @@ export function findUnmatchedExplicitTestTargets(args, cwd = process.cwd()) {

856864

continue;

857865

}

858866

if (isGlobTarget(relative)) {

859-

if (!includePatternMatchesAnyFile(relative, candidateFiles)) {

867+

if (!includePatternMatchesAnyFile(relative, getCandidateFiles())) {

860868

unmatched.push({

861869

target: targetArg,

862870

reason: "glob-matched-no-files",

@@ -879,7 +887,7 @@ export function findUnmatchedExplicitTestTargets(args, cwd = process.cwd()) {

879887

}

880888881889

const includePattern = toScopedIncludePattern(targetArg, cwd);

882-

if (!includePatternMatchesAnyFile(includePattern, candidateFiles)) {

890+

if (!includePatternMatchesAnyFile(includePattern, getCandidateFiles())) {

883891

unmatched.push({

884892

target: targetArg,

885893

reason: "target-matched-no-test-files",

@@ -991,12 +999,22 @@ function stripImportableGraphExtension(relative) {

991999

return relative;

9921000

}

9931001994-

function resolveImportGraphSearchTerm(relative) {

1002+

function resolveImportGraphSearchTerms(relative) {

1003+

const withoutExtension = stripImportableGraphExtension(relative);

9951004

const basename = path.posix.basename(stripImportableGraphExtension(relative));

9961005

if (basename === "index" || basename.length < 3) {

997-

return null;

1006+

return [];

1007+

}

1008+

const terms = [];

1009+

const segments = withoutExtension.split("/");

1010+

if (segments.length > 1) {

1011+

terms.push(segments.slice(-2).join("/"), withoutExtension);

1012+

}

1013+

if (relative.startsWith("test/helpers/")) {

1014+

return [...new Set(terms)];

9981015

}

999-

return basename;

1016+

terms.push(basename);

1017+

return [...new Set(terms)];

10001018

}

1001101910021020

function listImportGraphGrepMatches(cwd, term) {

@@ -1007,7 +1025,7 @@ function listImportGraphGrepMatches(cwd, term) {

1007102510081026

const result = spawnSync(

10091027

"git",

1010-

["grep", "-l", "--fixed-strings", term, "--", ...SOURCE_ROOTS_FOR_IMPORT_GRAPH],

1028+

["grep", "-l", "--fixed-strings", term, "--", ...IMPORT_GRAPH_GREP_PATHS],

10111029

{

10121030

cwd,

10131031

encoding: "utf8",

@@ -1036,39 +1054,52 @@ function findDirectImportersWithGitGrep(cwd, importedFile, fileSet) {

10361054

return cachedDirectImporters.get(cacheKey);

10371055

}

103810561039-

const term = resolveImportGraphSearchTerm(importedFile);

1040-

if (!term) {

1041-

cachedDirectImporters.set(cacheKey, null);

1042-

return null;

1043-

}

1044-1045-

const candidates = listImportGraphGrepMatches(cwd, term);

1046-

if (!candidates || candidates.length > 800) {

1057+

const terms = resolveImportGraphSearchTerms(importedFile);

1058+

if (terms.length === 0) {

10471059

cachedDirectImporters.set(cacheKey, null);

10481060

return null;

10491061

}

105010621063+

let skippedBroadTerm = false;

10511064

const importers = [];

1052-

for (const file of candidates) {

1053-

if (file === importedFile || !fileSet.has(file)) {

1054-

continue;

1065+

for (const term of terms) {

1066+

const candidates = listImportGraphGrepMatches(cwd, term);

1067+

if (!candidates) {

1068+

cachedDirectImporters.set(cacheKey, null);

1069+

return null;

10551070

}

1056-

let source = "";

1057-

try {

1058-

source = fs.readFileSync(path.join(cwd, file), "utf8");

1059-

} catch {

1071+

if (candidates.length > 800) {

1072+

skippedBroadTerm = true;

10601073

continue;

10611074

}

1062-

for (const match of source.matchAll(IMPORT_SPECIFIER_PATTERN)) {

1063-

const imported = resolveImportSpecifier(file, match[1] ?? match[2] ?? "", fileSet);

1064-

if (imported === importedFile) {

1065-

importers.push(file);

1066-

break;

1075+

for (const file of candidates) {

1076+

if (file === importedFile || !fileSet.has(file) || importers.includes(file)) {

1077+

continue;

1078+

}

1079+

let source = "";

1080+

try {

1081+

source = fs.readFileSync(path.join(cwd, file), "utf8");

1082+

} catch {

1083+

continue;

1084+

}

1085+

for (const match of source.matchAll(IMPORT_SPECIFIER_PATTERN)) {

1086+

const imported = resolveImportSpecifier(file, match[1] ?? match[2] ?? "", fileSet);

1087+

if (imported === importedFile) {

1088+

importers.push(file);

1089+

break;

1090+

}

10671091

}

10681092

}

1093+

if (importedFile.startsWith("test/helpers/") && importers.length > 0 && term.includes("/")) {

1094+

break;

1095+

}

10691096

}

1070-

cachedDirectImporters.set(cacheKey, importers);

1071-

return importers;

1097+

const result =

1098+

skippedBroadTerm && importers.length === 0 && !importedFile.startsWith("test/helpers/")

1099+

? null

1100+

: importers;

1101+

cachedDirectImporters.set(cacheKey, result);

1102+

return result;

10721103

}

1073110410741105

function resolveAffectedTestsFromTargetedImportScan(changedPath, cwd) {

@@ -1099,6 +1130,7 @@ function resolveAffectedTestsFromTargetedImportScan(changedPath, cwd) {

10991130

seen.add(importer);

11001131

if (testFiles.has(importer)) {

11011132

targets.push(importer);

1133+

continue;

11021134

}

11031135

queue.push(importer);

11041136

}

@@ -1323,6 +1355,13 @@ function resolveSiblingTestTarget(changedPath, cwd) {

13231355

return fs.existsSync(path.join(cwd, sibling)) ? sibling : null;

13241356

}

132513571358+

function shouldRouteChangedTargetWithoutImportGraph(changedPath) {

1359+

return (

1360+

changedPath.endsWith(".live.test.ts") ||

1361+

(changedPath.startsWith("ui/src/") && !changedPath.startsWith("ui/src/ui/"))

1362+

);

1363+

}

1364+13261365

function resolvePreciseChangedTestTargets(changedPath, options) {

13271366

const cwd = options.cwd ?? process.cwd();

13281367

const mappedTargets =

@@ -1337,6 +1376,12 @@ function resolvePreciseChangedTestTargets(changedPath, options) {

13371376

if (siblingTest) {

13381377

return [siblingTest];

13391378

}

1379+

if (BROAD_ONLY_TEST_HELPERS.has(changedPath)) {

1380+

return null;

1381+

}

1382+

if (shouldRouteChangedTargetWithoutImportGraph(changedPath)) {

1383+

return changedPath.startsWith("ui/src/") ? [changedPath] : null;

1384+

}

13401385

if (/^(?:src|test\/helpers|extensions|packages|ui\/src|ui\/config)\//u.test(changedPath)) {

13411386

const affectedTests = resolveAffectedTestsFromImportGraph(changedPath, cwd);

13421387

if (affectedTests.length > 0) {

@@ -1415,12 +1460,15 @@ function classifyTarget(arg, cwd) {

14151460

if (configTargetKind) {

14161461

return configTargetKind;

14171462

}

1418-

if (resolveUnitFastTestIncludePattern(relative)) {

1419-

return "unitFast";

1420-

}

14211463

if (isControlUiE2eTarget(relative)) {

14221464

return "uiE2e";

14231465

}

1466+

if (relative.startsWith("ui/src/")) {

1467+

if (isUnitUiTestTarget(relative)) {

1468+

return "unitUi";

1469+

}

1470+

return "ui";

1471+

}

14241472

if (relative.startsWith("src/tui/tui-pty-")) {

14251473

return "tuiPty";

14261474

}

@@ -1434,6 +1482,16 @@ function classifyTarget(arg, cwd) {

14341482

) {

14351483

return "e2e";

14361484

}

1485+

const channelContractKind = resolveChannelContractTargetKind(relative);

1486+

if (channelContractKind) {

1487+

return channelContractKind;

1488+

}

1489+

if (relative.startsWith("src/plugins/contracts/")) {

1490+

return "contractsPlugin";

1491+

}

1492+

if (resolveUnitFastTestIncludePattern(relative)) {

1493+

return "unitFast";

1494+

}

14371495

if (relative === "extensions") {

14381496

return "extensionFull";

14391497

}

@@ -1508,13 +1566,6 @@ function classifyTarget(arg, cwd) {

15081566

}

15091567

return isProviderExtensionRoot(extensionRoot) ? "extensionProvider" : "extension";

15101568

}

1511-

const channelContractKind = resolveChannelContractTargetKind(relative);

1512-

if (channelContractKind) {

1513-

return channelContractKind;

1514-

}

1515-

if (relative.startsWith("src/plugins/contracts/")) {

1516-

return "contractsPlugin";

1517-

}

15181569

if (isChannelSurfaceTestFile(relative)) {

15191570

return "channel";

15201571

}

@@ -1599,15 +1650,6 @@ function classifyTarget(arg, cwd) {

15991650

if (relative.startsWith("src/plugins/")) {

16001651

return "plugin";

16011652

}

1602-

if (relative.startsWith("ui/src/")) {

1603-

if (isControlUiE2eTarget(relative)) {

1604-

return "uiE2e";

1605-

}

1606-

if (isUnitUiTestTarget(relative)) {

1607-

return "unitUi";

1608-

}

1609-

return "ui";

1610-

}

16111653

if (relative.startsWith("src/utils/")) {

16121654

return "utils";

16131655

}