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

推荐订阅源

博客园 - Franky
有赞技术团队
有赞技术团队
宝玉的分享
宝玉的分享
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog
V
V2EX
大猫的无限游戏
大猫的无限游戏
博客园 - 司徒正美
D
Docker
T
The Blog of Author Tim Ferriss
罗磊的独立博客
博客园 - 叶小钗
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
J
Java Code Geeks
Jina AI
Jina AI
博客园 - 【当耐特】
C
Check Point Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
腾讯CDC
Last Week in AI
Last Week in AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Visual Studio 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
fix(release): require exact candidate workflow runs · ope...
vincentkoc · 2026-06-20 · via Recent Commits to openclaw:main

@@ -329,18 +329,6 @@ function gitRevParse(ref) {

329329

return run("git", ["rev-parse", ref], { capture: true }).trim();

330330

}

331331332-

async function workflowRuns(repo, workflowFile) {

333-

const data = await githubApi(

334-

`repos/${repo}/actions/workflows/${workflowFile}/runs?event=workflow_dispatch&per_page=100`,

335-

);

336-

return (data.workflow_runs ?? []).map((runEntry) => ({

337-

databaseId: runEntry.id,

338-

workflowName: runEntry.name,

339-

event: runEntry.event,

340-

createdAt: runEntry.created_at,

341-

}));

342-

}

343-344332

async function runArtifacts(repo, runId) {

345333

const data = await githubApi(`repos/${repo}/actions/runs/${runId}/artifacts?per_page=100`);

346334

return (data.artifacts ?? []).map((artifact) => ({

@@ -375,12 +363,6 @@ async function resolveRunArtifactName(repo, runId, preferredName, prefix) {

375363

return resolveArtifactName(await runArtifacts(repo, runId), preferredName, prefix);

376364

}

377365378-

async function beforeRunIds(repo, workflowFile) {

379-

return new Set(

380-

(await workflowRuns(repo, workflowFile)).map((runResult) => String(runResult.databaseId)),

381-

);

382-

}

383-384366

function runAndEcho(command, args) {

385367

const result = spawnSync(command, args, {

386368

encoding: "utf8",

@@ -417,36 +399,28 @@ export function parseRunIdFromDispatchOutput(output) {

417399

return output.match(/actions\/runs\/([0-9]+)/u)?.[1] ?? "";

418400

}

419401402+

export function requireRunIdFromDispatchOutput(output, workflowFile) {

403+

const runId = parseRunIdFromDispatchOutput(output);

404+

if (!runId) {

405+

throw new Error(

406+

`gh workflow run ${workflowFile} did not return an Actions run URL; refusing to guess from recent workflow_dispatch runs`,

407+

);

408+

}

409+

return runId;

410+

}

411+420412

async function wait(ms) {

421413

await new Promise((resolve) => {

422414

setTimeout(resolve, ms);

423415

});

424416

}

425417426-

async function findNewRunId(repo, workflowFile, workflowName, beforeIds) {

427-

for (let attempt = 0; attempt < 60; attempt += 1) {

428-

const match = (await workflowRuns(repo, workflowFile))

429-

.filter(

430-

(runValue) =>

431-

runValue.workflowName === workflowName &&

432-

runValue.event === "workflow_dispatch" &&

433-

!beforeIds.has(String(runValue.databaseId)),

434-

)

435-

.toSorted((a, b) => String(b.createdAt ?? "").localeCompare(String(a.createdAt ?? "")))[0];

436-

if (match?.databaseId) {

437-

return String(match.databaseId);

438-

}

439-

await wait(5_000);

440-

}

441-

throw new Error(`could not find dispatched ${workflowName} run`);

442-

}

443-444418

function dispatchWorkflow(repo, workflowFile, workflowRef, fields) {

445419

const args = ["workflow", "run", workflowFile, "--repo", repo, "--ref", workflowRef];

446420

for (const [key, value] of Object.entries(fields)) {

447421

args.push("-f", `${key}=${String(value)}`);

448422

}

449-

return parseRunIdFromDispatchOutput(runAndEcho("gh", args));

423+

return requireRunIdFromDispatchOutput(runAndEcho("gh", args), workflowFile);

450424

}

451425452426

async function runInfo(repo, runId) {

@@ -727,18 +701,14 @@ async function runTelegramIfNeeded(options, artifactName) {

727701

return { status: "skipped" };

728702

}

729703

const workflowFile = "npm-telegram-beta-e2e.yml";

730-

const before = await beforeRunIds(options.repo, workflowFile);

731-

const dispatchedRunId = dispatchWorkflow(options.repo, workflowFile, options.workflowRef, {

704+

const runId = dispatchWorkflow(options.repo, workflowFile, options.workflowRef, {

732705

package_spec: `openclaw@${options.tag.replace(/^v/u, "")}`,

733706

package_label: options.tag,

734707

package_artifact_name: artifactName,

735708

package_artifact_run_id: options.npmPreflightRunId,

736709

harness_ref: options.workflowRef,

737710

provider_mode: options.telegramProviderMode,

738711

});

739-

const runId =

740-

dispatchedRunId ||

741-

(await findNewRunId(options.repo, workflowFile, "NPM Telegram Beta E2E", before));

742712

const runLocal = await waitForSuccessfulRun(options.repo, runId, {

743713

workflowName: "NPM Telegram Beta E2E",

744714

workflowRef: options.workflowRef,

@@ -771,8 +741,7 @@ async function main() {

771741772742

if (!options.fullReleaseRunId && !options.skipDispatch) {

773743

const workflowFile = "full-release-validation.yml";

774-

const before = await beforeRunIds(options.repo, workflowFile);

775-

const dispatchedRunId = dispatchWorkflow(options.repo, workflowFile, options.workflowRef, {

744+

options.fullReleaseRunId = dispatchWorkflow(options.repo, workflowFile, options.workflowRef, {

776745

ref: options.tag,

777746

provider: options.provider,

778747

mode: options.mode,

@@ -781,22 +750,15 @@ async function main() {

781750

options.releaseProfile === "stable" || options.releaseProfile === "full" ? "true" : "false",

782751

rerun_group: "all",

783752

});

784-

options.fullReleaseRunId =

785-

dispatchedRunId ||

786-

(await findNewRunId(options.repo, workflowFile, "Full Release Validation", before));

787753

}

788754789755

if (!options.npmPreflightRunId && !options.skipDispatch) {

790756

const workflowFile = "openclaw-npm-release.yml";

791-

const before = await beforeRunIds(options.repo, workflowFile);

792-

const dispatchedRunId = dispatchWorkflow(options.repo, workflowFile, options.workflowRef, {

757+

options.npmPreflightRunId = dispatchWorkflow(options.repo, workflowFile, options.workflowRef, {

793758

tag: options.tag,

794759

preflight_only: "true",

795760

npm_dist_tag: options.npmDistTag,

796761

});

797-

options.npmPreflightRunId =

798-

dispatchedRunId ||

799-

(await findNewRunId(options.repo, workflowFile, "OpenClaw NPM Release", before));

800762

}

801763802764

const fullRun = await waitForSuccessfulRun(options.repo, options.fullReleaseRunId, {