Repository navigation
fix(ci): skip SDK rendering for identical revisions - #147572
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 8:28 PM ET / September 14, 2026, 00:28 UTC (Revision 2). ClawSweeper reviewWhat this changesSkip dependency installation and SDK API rendering when comparison refs resolve to the same commit, while preserving reports, release evidence, and acknowledgement digests. Merge readiness✅ Ready for maintainer review The PR remains useful and has no blocking findings. Current main and v2026.9.4 still render identical revisions; this focused fix preserves comparison outputs and release checks. Maintainer-authored work also remains protected from automatic closure. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s SDK comparison tool checks plugin-facing APIs between Git revisions for CI and release validation. It produces readable reports and machine-readable evidence used to acknowledge API changes before publication. flowchart TD
A[Git comparison refs] --> B[Resolve and validate commits]
B --> C{Identical commits?}
C -->|Yes| D[Empty API diff]
C -->|No| E[Install and render unique revisions]
E --> F[Compare API surfaces]
D --> G[Reports and release evidence]
F --> G
G --> H[Acknowledge API changes]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +4, Tests +127, Other +14. Total +145 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one comparison pipeline that derives empty diffs from validated commit equality and renders only genuinely different revisions. Do we have a high-confidence way to reproduce the issue? Yes, from source: comparing HEAD with an alias of HEAD on current main still schedules installation and rendering, allowing either to fail an unchanged comparison. This review did not execute that path. Is this the best way to solve the issue? Yes. Validated commit equality provides a narrow shortcut, while the shared digest constructor and existing evidence validator preserve output compatibility. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1a48d3401a43. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
* commit 'e3d8d0078369b21223c70028c4502c89f1420897': (51 commits) fix: background requests delay opening chats (#147845) chore(i18n): refresh native locales (#147899) feat: start remote sessions without a repository (#147773) fix(slack): retire probe sockets after timeout (#147846) refactor(agents): share theme ANSI color encoding (#147838) improve(memory): bound vector recall decision counts (#147900) improve(browser): narrow dashboard lifetime rechecks (#147892) test(discord): compact lifecycle matrices (#147855) fix(agents): use exact model rows for harness support (#147849) test(agents): compact embedded lifecycle matrices (#147856) test(agents): compact embedded admission matrices (#147853) test(cli): compact node management matrices (#147854) feat(artifacts): select assistant-delivered files by run (#147682) improve: reduce event-loop work when recording prompts (#147876) fix: preserve readable generated image and video filenames (#147833) fix(ci): skip SDK rendering for identical revisions (#147572) fix: prevent false process failures and stalled background waits (#147871) fix(ui): restore live updates when retrying chat history (#147865) fix(ui): preserve text and image order in assistant replies (#147731) refactor(qa-lab): reuse approval result formatter (#147867) ...
|
Merged via squash.
|
What Problem This Solves
SDK API comparisons installed and rendered revisions even when different refs resolved to the same commit. That redundant work could fail an unchanged comparison.
User Impact
Identical revisions now produce the normal empty API diff without creating render worktrees or installing dependencies. Runtime and published plugin SDK behavior are unchanged.
Why This Change Was Made
Resolve and validate every ref first, then render only unequal comparisons. Both paths use the same ordered payload and digest constructor, preserving JSON, reports, release evidence, and acknowledgement handling.
Regression coverage checks aliases, dirty caller state, equal and mixed selectors, invalid inputs, and cancellation across distinct commits. Tooling and internal implementation: +18 net lines; tests: +127.
Evidence
f8de8e16ce8cd72b5e742c60e682b199e474f21b. CI run 34791219341, attempt 1 tested synthetic merge1146a072b049ed551ae27ce09b640bd849431810: SUCCESS, 135 jobs (118 succeeded, 17 skipped), includingopenclaw/ci-gate, owning production/test type checks, lint, guards, and build.test/scripts/plugin-sdk-api-diff.test.ts: 10 passed.src/plugin-sdk/api-baseline.test.ts: 22 passed.test/scripts/plugin-sdk-api-release-evidence.test.ts: 9 passed.git diff --check, and independent final-diff review. Exact-head ClawSweeper review: no findings; Before merge: None.The shortcut avoids the equal-revision renderer path. The separate renderer heap-exhaustion issue for mixed or distinct revisions remains outside this change.
Focused base-red / candidate-green proof
tbx_01m2f3eze3gdh1xr0hvw5g0dj7, run 34806929929, verified sourcef8de8e16ce8cd72b5e742c60e682b199e474f21band treec12eaa234581d9a68bace1ef400c06163ab802e0.d271a071a877d59f2f6377c3f3432e7fa0370472. The fakepnpmexited97and createdPNPM_MARKER; the outer CLI exited1, and stderr containedPlugin SDK revision install failed. The focused Vitest invocation failed exactly that one test with nine filtered. Output SHA-256: stdoutd75c5ff97ac32ec72d661ed624d282dc2116100b804ce3a8c9ba7eb12fff0c9c; stderr644741fc845ef40106e8774b09fe8f6a64376d00d8e69d6ec58b9ef7a2915436.f2d27f1f3c252c33aa77c07636811dcbc81694fd8b37aad4355baf8bcb13d9e0; stderr3587272319976adc514cfec76e1d4e69dd35c53904ff3f2ad6f211d811414a10.