Repository navigation
test: cover packaged Kysely scripts and update phase reporting - #162464
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 October 1, 2026, 5:47 AM ET / 09:47 UTC (Revision 7). ClawSweeper reviewWhat this changesAdds tests for packaged database-type generation, lint preparation failures, and ordered update progress when ledger reads finish late. Merge readiness✅ Ready for maintainer review Keep open: useful, distinct regression coverage remains after the production fixes landed on main. No actionable introduced defect was found, and MEMBER-authored work is protected from automatic closure. Priority: P2 Review scores
Verification
How this fits togetherBuild tooling generates database types from SQLite schemas and prepares them before typed lint. The updater reads its durable phase history to show progress and publish a final result; these tests exercise both boundaries. flowchart TD
A[SQLite schemas] --> B[Type generation]
B --> C[Typed lint]
D[Published package files] --> E[Packaged script execution]
F[Update phase history] --> G[Progress presentation]
G --> H[Final update report]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +116. Total +116 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain focused regression coverage around the canonical packaging, lint preparation, and progress-publication owners without restoring discarded APIs. Do we have a high-confidence way to reproduce the issue? Not applicable to a remaining production defect: this head changes tests only, and the original production repairs are already on main. The reported focused runs were inspected as evidence; this review executed no tests. Is this the best way to solve the issue? Yes. The retained tests exercise distinct failure boundaries through existing owners, strengthen observable ordering, and preserve cleanup without adding production seams. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3f263ba918c5. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
|
Addressed the test-cost request in the Evidence section. With one Vitest worker, the lint prerequisite file passed 3 tests in 5.159 seconds end-to-end, and the generator file passed 4 tests in 3.110 seconds. Their Vitest durations were 3.61 and 1.53 seconds. The first hosted run exposed copied-fixture inventories that omitted the newly imported generator. Both omissions reproduced locally; the two complete fixture files now pass all 56 tests after the two-line correction. That correction is committed locally and awaits the separate UI prerequisite in #162468 before publication. The independent delta review found no actionable issue. Hosted CI remains failed on the published head; no checks are waived. |
Restore the shared scope-error reader import omitted by 4293f49. The existing outside-workspace denial E2E failed with the modal stuck checking before this repair and passes afterward. UI, ui-app, and ui-e2e typechecks plus targeted lint and formatting pass. Co-authored-by: steipete <[email protected]> (cherry picked from commit c0a5a64)
(cherry picked from commit 33976fd167ac6e2d8d7d4ed06fbce16fe0d6402a)
|
Heads-up: the dropped final updater phase ( |
|
Merged via squash.
|
…law#162464) * fix: prepare generated Kysely types for lint and package installs * test: include Kysely generator in copied lint fixtures * fix(ui): recover group defaults after scope denials Restore the shared scope-error reader import omitted by ec63715. The existing outside-workspace denial E2E failed with the modal stuck checking before this repair and passes afterward. UI, ui-app, and ui-e2e typechecks plus targeted lint and formatting pass. Co-authored-by: steipete <[email protected]> (cherry picked from commit c0a5a64) * fix(update): retain progress through terminal publication (cherry picked from commit 33976fd167ac6e2d8d7d4ed06fbce16fe0d6402a) * test: observe CI group owners across fork workers --------- Co-authored-by: steipete <[email protected]>
Related: #162403, #162429, #162288, #162485, #162495
What Problem This Solves
Adds regression coverage for packaged Kysely entrypoints and updater phase reporting. The final diff changes four test files only.
User Impact
The tests catch missing runtime dependencies in published prepare scripts and dropped or reordered updater phases when a progress read finishes late.
Why This Change Was Made
Canonical main independently landed the production repairs while this PR was being validated. The reporter lifetime fix is
82fe5e962f72a54bc80c43cb9b2a116228bafb3b. The lint preparation owner and informational/focused bypass are4f34af88e6dc91217568e8cf233b9ad75e135d84in #162489. Package entries, copied fixture inventories, prepare hooks, and the CI planner fixture are also canonical.This PR accepts those implementations and keeps four distinct test improvements:
The proposed public progress pause API and its test additions have been removed. Existing canonical stop, suspend, dispose, and final-flush coverage remains.
Evidence
On canonical
40d9ed0924dafa3ef1bf8cf604679e79aa33a3e4with only the final three test postimages applied:All 41 tests passed: 11 admission, 26 progress, and 4 generator cases. The native wrapper took 57.29 seconds on Node 24.20.0/macOS. The held-reader regression took 7.227 seconds. A separate run of that same regression also passed against unchanged canonical production. Service boundaries are simulated; this does not claim an installed Gateway upgrade.
After the canonical storage landing at
f59b75644636e93de17dee9a4e096790b76e5ffbchanged shared-state worker inputs, the same three-file command passed all 41 tests again on composition8be9ec1c34572e667c67c0ef1208970d847cc528. The native wrapper took 75.83 seconds, including worker preparation; the held-reader case took 6.597 seconds.The complete canonical lint prerequisite file, including both added malformed-SQL cases, passed all 5 tests on the composition against
de7997edc3441e9ff9a89067c2a1d4db508a97b5in 7.09 seconds. Independent API review of the complete four-file delta found no actionable P0-P2 defect, confidence 0.96. Formatting and scoped typed lint passed for all four files using the documented core and scripts tsconfigs. An earlier invocation without a scoped tsconfig stopped before analysis at extension declaration containment; no guard or dependency layout was changed. Every touched test file was audited in full, including helpers, imports, fixtures, setup, teardown, assertions, and skips. Private state, archive/cache paths, reader cancellation, and pending promises retain their cleanup. The one-value parameter wrapper was simplified without removing a case. Only test additions for the discarded pause API were removed. No valid assertions, retries, or timeout budgets were weakened.The earlier package/updater acceptance lane was cancelled before its payload after production scope moved to canonical main. It does not provide updater acceptance. A new packaged build is unnecessary for this tests-only delta. Historical source-blind and red/green evidence below documents the original repairs, not a full installed update of this final head.
CI diagnosis
On published
6c6f3235a7f597db4f164e77c1b0370e7358ed78, job110284924484failed atupdate-cli.windows-lifecycle.test.ts:523in run 36836322992. The aggregate run concluded cancelled on attempt 1. The interrupted-update fixture expecteddist/index.jsto be restored but received ENOENT. The original six-file group reproduced the same failure with 113 tests passing and one failing. The unchanged Windows test also fails alone against clean canonical2ad1dd0254e7ec308f972ad0579f291ebe0c33ec, with no overlays, after the intervening Windows path-normalization fix. That run took 55.43 seconds including worker preparation. A bounded observer on canonical726d2cb81ff1ef11f8e5dd0aa8b755bf6e9eab92isolates the transition.BEGIN EXCLUSIVEleaves the physical generation unchanged; closing the Windows removal probe checkpoints the WAL, changes the main-file fingerprint, and causes the generation check to refuse rollback. Raw fingerprint reads ran in isolated children, and the original assertion still failed. The observer was removed afterward. The repair remains separate from this four-test change; no Windows fix or required-check waiver is claimed here.Earlier
1ecad8365cd2e5ebeeec9d4407ad1f6ef3a22f62failed run 36831046737, job110267846887, on a table-header hit test. The unchanged 30-file, 146-case shard and one diagnostic replay passed on AWS. Host scheduling differed, so the hosted cause remains unresolved. Shard replay, diagnostic. No speculative UI patch or CI rerun was used.The earlier lint fixture, progress lifetime, and planner ownership failures led to repairs that are now on canonical main. Fail-fast cancellations and passing diagnostic replays are not counted as passing hosted coverage. Final published head
7d203d1cc5db22e2aea108e358e87b7625b4d651passed hosted run 36841348489, attempt 1. Both observed requiredopenclaw/ci-gatecontexts report success. The earlier failures above remain historical evidence; no CI rerun or required-check waiver was used. Native review and preparation are being rebound to this tested head before landing.Historical repair recordings
The following artifacts preserve the original failing behavior and supplier proof. Their SHAs identify earlier repairs that main now supplies. They are not recordings of the final tests-only head.
Raw terminal recordings for the generated-type prerequisite:
Base, exit 1
kysely-base.mp4
Head at
32fe2be4b29894a0751f7c670e8b1628d24da3b1, exit 0kysely-head.mp4
Generated-type artifact manifest
{ "repository": "openclaw/openclaw", "base": "fb0971bd84dc3936087b2d0a63b53c82fa906eeb", "head": "32fe2be4b29894a0751f7c670e8b1628d24da3b1", "provider": "local macOS", "node": "24.20.0", "pnpm": "12.5.1", "artifacts": [ { "label": "base", "url": "https://github.com/user-attachments/assets/c7d91521-dcae-469d-adfa-9d555727dfa3", "bytes": 37931, "sha256": "f3046f232468adaee2b627b8aeee98a1b954f2f991ff0de6a87026386b3926fe", "exit": 1, "raw_cast_sha256": "66a0bd3a2d0849d4b108adbd0a813370c9ec7f4f923fd995f760f86f1fb06c5b" }, { "label": "head", "url": "https://github.com/user-attachments/assets/2e13f81f-e5de-43b6-933f-fc1542dbeee9", "bytes": 19793, "sha256": "af742b09435a28f65f0cf0746fb3a4ed43bf0bbd75aa55905598bd46a3901aec", "exit": 0, "raw_cast_sha256": "e9c85ddec9d0bd475b73712ba8606a3cf71643ef3e5eac5d41bc83ca7d761e7f" } ] }MP4 rendering adds an empty post-roll to show the final captured exit line. Raw casts preserve the original output and timestamps.
Raw terminal recordings for the updater progress repair, with declared path redaction and no reenactment:
Canonical base
8d99007436d65522a45c3b24d5782790fb9dbc67, exit 1https://91b59577e757131d68d55a471fe32aca.r2.cloudflarestorage.com/openclaw-crabbox-artifacts/crabbox-artifacts/v2/org/b3BlbmNsYXc/owner/Z2l0aHViOjI2MzA2MDIwMg/publish/public/20261001-070327-327147000/base.mp4?X-Amz-Expires=604800&X-Amz-Date=20261001T070328Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=a677a1e59413a4e54bcc2da5fec6164a%2F20261001%2Fauto%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=96ac6c494a1f762de835a56ca8aab4a63dc2a2d9f6bac995fbeaa5170eb7ceba
Committed supplier
33976fd167ac6e2d8d7d4ed06fbce16fe0d6402a, exit 0https://91b59577e757131d68d55a471fe32aca.r2.cloudflarestorage.com/openclaw-crabbox-artifacts/crabbox-artifacts/v2/org/b3BlbmNsYXc/owner/Z2l0aHViOjI2MzA2MDIwMg/publish/public/20261001-070327-327147000/head.mp4?X-Amz-Expires=604800&X-Amz-Date=20261001T070328Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=a677a1e59413a4e54bcc2da5fec6164a%2F20261001%2Fauto%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=57b46d0e9a539993456775bd6041dc770d36d1dc885a7b70345f256888fc2b14
Artifact manifest, proof and test audit, source-blind observations, and behavior contract.
The manifest records all seven artifact hashes and sizes, including the sanitized raw casts. Independent downloads matched every byte/hash and the remote manifest. Broker links expire on 2026-10-08 at 07:03 UTC. The same-fixture red/preliminary green and the final strengthened committed-head test are distinguished in the proof record. The recordings show actual native regression invocations/results; detailed operator output and durable ledger facts are in the source-blind observations.