Repository navigation
perf: reduce repeated CI setup and unnecessary provider discovery - #137612
Conversation
|
Codex review: blocked before merge. Reviewed September 4, 2026, 2:16 AM ET / 06:16 UTC. ClawSweeper reviewWhat this changesThe branch consolidates ordinary hybrid core-lint work into three hosted jobs, removes repeated test setup, and validates Talk ownership before provider discovery. Merge readiness⛔ Blocked before merge - 2 items remain Keep open. The branch remains necessary: current main still resolves the Talk owner later, and the CI workflow change has not yet completed native CI on the exact head. Priority: P3 Review scores
Verification
How this fits togetherCI preflight selects lint-job topology before GitHub Actions runs the repository checks. Gateway Talk serves provider catalogs to voice and transcription clients, and its catalog construction determines which configuration error is returned first. flowchart LR
A[Push or pull request] --> B[CI preflight]
B --> C[Core lint job planner]
C --> D[Five lint programs]
E[Talk catalog request] --> F[Talk ownership check]
F --> G[Provider discovery]
G --> H[Catalog response]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +1, Tests +83, Docs +3, Config +10. Total +97 across 8 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the five-program coverage and land after a complete green native CI run validates the exact current head. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a performance and CI-topology PR rather than an unresolved bug report; its affected paths have source and prior native-run evidence. Is this the best way to solve the issue? Yes. The implementation preserves the five lint programs while reducing ordinary hybrid setup, and moves an already-required Talk ownership check ahead of costly provider discovery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ddad3eccc539. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
|
@clawsweeper re-review The final head is 75d240f. It adds early Talk catalog owner validation and removes six duplicate workflow-test executions. The unchanged Linux real-Gateway case passed in 16.283s versus 76.905s with the same source fixture, assertions, Node version and hardware; the PR body records the limits and proof. Independent Codex P0–P2 review is clean, including the resolved main overlap, and all 132 selected merged owner tests passed. The prior rank-up request to finish Windows was satisfied on 3e11. Final-head CI is running at https://github.com/openclaw/openclaw/actions/runs/33821474677; the production audit has again hit its 60-second advisory timeout and test-job failures are being investigated. This is a review refresh, not a request to waive CI or start repair/automerge. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…enclaw#137612) * ci: reduce repeated CI and fixture setup * test: keep release candidate CLI fixtures valid * perf: avoid redundant provider discovery and workflow test work
What Problem This Solves
CI repeats setup across core-lint jobs and initializes unrelated provider/browser runtimes in test fixtures. A real-Gateway hovercard test also waits on provider discovery before receiving its missing-agent-owner error. This change removes repeated work while retaining the independent behavior checks.
Why This Change Was Made
The branch incorporates main's explicit advisory-service-unavailability warning policy and Chrome MCP preparation fixes. Release-note context for the user-visible Talk latency fix is recorded here; CHANGELOG.md is unchanged, addressing the latest review finding.
User Impact
Developers run the same core-lint coverage with two fewer jobs and avoid repeated fixture setup. Invalid Talk requests report the existing missing-owner error promptly; valid Talk behavior is preserved.
Evidence
Previous native run 33821474677, at head 75d240f, passed all 10 real-Gateway files / 20 unchanged cases. The hovercard case fell from 79.729s to 7.129s, and its Talk owner-error response from 74.656s to 3.125s. The whole real-Gateway job was 8m24s versus 10m15s; main changes and timing variation prevent attributing that complete difference solely to this patch.
A controlled Linux comparison also passed the unchanged hovercard with zero skips: 76.905s to 16.283s, and Talk RPC 61.000s to 2.790s. Both used Node 24.19.0, four actual CPUs, the same reported memory, canonical private builds and cleanup, and 17 verified source files differing only in Talk ordering. Both profiling runners stopped: baseline, candidate.
Prior focused proof includes 473 workflow/oxlint passes with two existing skips; matrix/failure/environment RED/GREEN; all 36 collector and four browser-owner cases; 137 Talk handler/provider/target passes; and a final error-precedence regression that failed before the owner-ordering fix. Full changed-code checks and independent Codex review passed on the prior candidate. After merging main and resolving the fixture conflict, 554 local tests passed: 400 workflow guards (plus two existing skips), 124 Talk/collector cases, and 30 release-candidate cases. Independent Codex review of the complete merged diff is clean for P0–P2. Subsequent formatter-only changes preserve every TypeScript syntax node and literal. Pinned Actionlint, offline Zizmor, Git-owner, composite-input, conflict-marker and formatting checks passed; the canonical workflow wrapper could not install its pre-commit 4.6.2 pin from the available package index. The latest main refresh to
0a1e564d34580935a955c434645103b3fa41a389preserves the task patch exactly after excluding Git object IDs and hunk offsets. A fresh six-part independent Codex review of the complete candidate is clean for P0–P2, with frozen source and context verified unchanged. The final native CI result is recorded below.Runtime production: +2/-1 (one moved statement and one comment; executable LOC neutral). Workflow: +19/-9. Tests/support: +169/-86. Docs: +15/-12. No new shards, production configuration, retries, or longer deadlines are introduced by this diff.
CI and Follow-up
Earlier run 33839691185, attempt 1, on head 8c3ae89, finished with 125 successful jobs, nine skips, two unassigned cancellations, and two failures (the npm audit and aggregate gate). The last completed non-Windows job finished 8m22s after workflow creation. Two Node rows never acquired runners and executed no steps, so this is not complete coverage or proof of the eight-minute target. The last job ran for 6m23s after starting 1m59s into the workflow; start delay includes workflow scheduling and must not all be attributed to runner capacity.
All three reduced lint jobs passed and completed by 4m59s from workflow creation. Browser bootstrap passed; the real-Gateway job passed in 6m43s and finished at 7m37s. Both Windows jobs passed (8m31s and 10m29s job duration). The production audit exhausted three 60-second requests; no advisory clearance was obtained. The local audit also failed after three attempts (333.57s overall). Main subsequently landed #137881: ordinary CI explicitly warns when the advisory service is unavailable; known vulnerabilities and malformed or permanent failures still block. This is not advisory clearance.
The one failed-job retry on that exact head completed both previously unassigned Node rows on the existing hosted fallback: 4m45s and 15m35s. The audit again exhausted its requests, so attempt 2 ended with 127 successful jobs, nine skips, and two failures (audit and aggregate gate). No rows remained cancelled. Those fallback durations prove execution, not normal-run latency.
Final normal pull-request run 33843155796, attempt 1, succeeded for head
e987726da57d7c2f54b97668334169493522ab7a: 137 jobs, 128 successful and nine unselected skips, with no failures, cancellations, or unassigned selected rows. The run checked synthetic merge544eb6d5d3cd226e2051c99270ce0bed68e7faddof that PR head into base788655a900868fdc9d23d7aec1e0e4efed907e95. Its real-Gateway command therefore includes the newer automation fixture: all 11 files / 21 cases passed.Non-Windows work completed in 10m09s, above the eight-minute objective. The final compact-large-9 job had a 1m01s dependency/release offset, then 3m12s awaiting assignment, then 5m56s execution. All three lint jobs passed in 4m06s, 3m44s and 1m54s of execution, completing by 5m10s from run creation. Real-Gateway passed in 8m22s; Windows passed in 9m01s and 10m10s. The complete workflow reached its terminal update at 11m21s. These figures separate queue delay from execution and do not establish a provider capacity cause.
The final audit again exhausted three 60-second requests and returned typed exit 2. Main's existing policy emitted an explicit incomplete-audit warning; no advisory clearance was obtained. This green run satisfies the required CI gate, not the eight-minute performance goal or a clean dependency audit.
The real-Gateway declaration build is retained: its private SDK compilation and emitted-output checks are not duplicated by the ordinary artifact job. A follow-up may move that proof to its canonical build owner before optimizing the browser job. Valid Talk transcription discovery still loads unrelated provider runtime code; this patch only avoids discovery for already-invalid requests. The duplicate Telegram Markdown case is handled separately in #137950, retaining its assertions in the stronger adjacent test. Codex test teardown also repeatedly launches production session reclamation; replacing it with owned temporary-state disposal needs proof that nested database handles are all drained and closed before removing that work.