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

推荐订阅源

U
Unit 42
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
The GitHub Blog
The GitHub Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
Recent Announcements
Recent Announcements
量子位
aimingoo的专栏
aimingoo的专栏
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Microsoft Azure Blog
Microsoft Azure Blog
Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
T
Tailwind CSS Blog
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
G
Google Developers Blog
M
MIT News - Artificial intelligence

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
ci: post Mantis screenshots inline · openclaw/openclaw@07...
steipete · 2026-05-04 · via Recent Commits to openclaw:main

@@ -13,10 +13,15 @@ on:

1313

required: true

1414

default: main

1515

type: string

16+

pr_number:

17+

description: Optional PR number to receive the QA evidence comment

18+

required: false

19+

type: string

16201721

permissions:

18-

contents: read

19-

pull-requests: read

22+

contents: write

23+

issues: write

24+

pull-requests: write

20252126

concurrency:

2227

group: mantis-discord-status-reactions-${{ inputs.baseline_ref }}-${{ inputs.candidate_ref }}-${{ github.run_attempt }}

@@ -252,10 +257,109 @@ jobs:

252257

fi

253258254259

- name: Upload Mantis status reaction artifacts

260+

id: upload_artifact

255261

if: always()

256262

uses: actions/upload-artifact@v4

257263

with:

258264

name: mantis-discord-status-reactions-${{ github.run_id }}-${{ github.run_attempt }}

259265

path: ${{ steps.run_mantis.outputs.output_dir }}

260266

retention-days: 14

261267

if-no-files-found: warn

268+269+

- name: Comment PR with inline QA screenshots

270+

if: ${{ always() && inputs.pr_number != '' && steps.run_mantis.outputs.output_dir != '' }}

271+

env:

272+

GH_TOKEN: ${{ github.token }}

273+

TARGET_PR: ${{ inputs.pr_number }}

274+

ARTIFACT_URL: ${{ steps.upload_artifact.outputs.artifact-url }}

275+

BASELINE_SHA: ${{ needs.validate_refs.outputs.baseline_revision }}

276+

CANDIDATE_SHA: ${{ needs.validate_refs.outputs.candidate_revision }}

277+

shell: bash

278+

run: |

279+

set -euo pipefail

280+281+

if [[ ! "$TARGET_PR" =~ ^[0-9]+$ ]]; then

282+

echo "pr_number must be numeric, got '${TARGET_PR}'." >&2

283+

exit 1

284+

fi

285+286+

root=".artifacts/qa-e2e/mantis/discord-status-reactions"

287+

for required in \

288+

"$root/comparison.json" \

289+

"$root/baseline/discord-status-reactions-tool-only-timeline.png" \

290+

"$root/candidate/discord-status-reactions-tool-only-timeline.png"

291+

do

292+

if [[ ! -f "$required" ]]; then

293+

echo "Missing required QA evidence file: $required" >&2

294+

exit 1

295+

fi

296+

done

297+298+

gh api "repos/${GITHUB_REPOSITORY}/pulls/${TARGET_PR}" --jq '.number' >/dev/null

299+300+

artifact_root="mantis/discord-status-reactions/pr-${TARGET_PR}/run-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"

301+

artifacts_worktree="$(mktemp -d)"

302+

git init --quiet "$artifacts_worktree"

303+

git -C "$artifacts_worktree" config user.name "github-actions[bot]"

304+

git -C "$artifacts_worktree" config user.email "41898282+github-actions[bot]@users.noreply.github.com"

305+

git -C "$artifacts_worktree" remote add origin "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"

306+307+

if git -C "$artifacts_worktree" fetch --quiet origin qa-artifacts; then

308+

git -C "$artifacts_worktree" checkout --quiet -B qa-artifacts FETCH_HEAD

309+

else

310+

git -C "$artifacts_worktree" checkout --quiet --orphan qa-artifacts

311+

fi

312+313+

mkdir -p "$artifacts_worktree/$artifact_root"

314+

cp "$root/baseline/discord-status-reactions-tool-only-timeline.png" "$artifacts_worktree/$artifact_root/baseline.png"

315+

cp "$root/candidate/discord-status-reactions-tool-only-timeline.png" "$artifacts_worktree/$artifact_root/candidate.png"

316+

cp "$root/comparison.json" "$artifacts_worktree/$artifact_root/comparison.json"

317+

cp "$root/mantis-report.md" "$artifacts_worktree/$artifact_root/mantis-report.md"

318+319+

git -C "$artifacts_worktree" add "$artifact_root"

320+

if git -C "$artifacts_worktree" diff --cached --quiet; then

321+

echo "No QA screenshot artifact changes to publish."

322+

else

323+

git -C "$artifacts_worktree" commit --quiet -m "qa: publish Mantis Discord screenshots for PR ${TARGET_PR}"

324+

git -C "$artifacts_worktree" push --quiet origin HEAD:qa-artifacts

325+

fi

326+327+

encoded_artifact_root="${artifact_root// /%20}"

328+

raw_base="https://raw.githubusercontent.com/${GITHUB_REPOSITORY}/qa-artifacts/${encoded_artifact_root}"

329+

baseline_status="$(jq -r '.baseline.status' "$root/comparison.json")"

330+

candidate_status="$(jq -r '.candidate.status' "$root/comparison.json")"

331+

pass="$(jq -r '.pass' "$root/comparison.json")"

332+

comment_file="$(mktemp)"

333+

cat > "$comment_file" <<EOF

334+

<!-- mantis-discord-status-reactions -->

335+

## Mantis Discord Status Reactions QA

336+337+

- Scenario: \`discord-status-reactions-tool-only\`

338+

- Run: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}

339+

- Artifact: ${ARTIFACT_URL}

340+

- Baseline: \`${baseline_status}\` at \`${BASELINE_SHA}\`

341+

- Candidate: \`${candidate_status}\` at \`${CANDIDATE_SHA}\`

342+

- Overall: \`${pass}\`

343+344+

| Baseline queued-only | Candidate queued -> thinking -> done |

345+

| --- | --- |

346+

| <img src="${raw_base}/baseline.png" width="420" alt="Baseline Discord status reaction timeline"> | <img src="${raw_base}/candidate.png" width="420" alt="Candidate Discord status reaction timeline"> |

347+348+

Raw QA files: https://github.com/${GITHUB_REPOSITORY}/tree/qa-artifacts/${artifact_root}

349+

EOF

350+351+

comment_id="$(

352+

gh api --paginate "repos/${GITHUB_REPOSITORY}/issues/${TARGET_PR}/comments" \

353+

--jq '.[] | select(.body | contains("<!-- mantis-discord-status-reactions -->")) | .id' \

354+

| tail -n 1

355+

)"

356+357+

if [[ -n "$comment_id" ]]; then

358+

comment_payload="$(mktemp)"

359+

jq -n --rawfile body "$comment_file" '{ body: $body }' > "$comment_payload"

360+

gh api --method PATCH "repos/${GITHUB_REPOSITORY}/issues/comments/${comment_id}" --input "$comment_payload" >/dev/null

361+

echo "Updated Mantis QA screenshot comment on PR #${TARGET_PR}."

362+

else

363+

gh pr comment "$TARGET_PR" --body-file "$comment_file"

364+

echo "Created Mantis QA screenshot comment on PR #${TARGET_PR}."

365+

fi