Repository navigation
test(ci): trim duplicate SQLite lifecycle tours - #122308
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 6:57 PM ET / 22:57 UTC. ClawSweeper reviewWhat this changesThis PR changes the SQLite session/transcript proof to run its source gateway without rebuilding unrelated artifacts, while removing duplicate lifecycle test tours covered by focused suites. Merge readinessKeep open for maintainer handling: current main already routes this lifecycle proof through a dedicated built-runtime job, while this branch conflicts with that newer ownership and needs an intentional reconciliation. Priority: P3 Review scores
Verification
How this fits togetherThe SQLite lifecycle proof seeds legacy session data, starts an isolated Gateway, invokes Doctor and session operations, then checks SQLite and archive state. CI selects the proof job and supplies either source or built-runtime entrypoints. flowchart LR
A[Changed session code] --> B[CI scope selection]
B --> C[Built runtime artifact]
C --> D[SQLite lifecycle proof]
D --> E[Gateway and Doctor operations]
E --> F[SQLite and archive assertions]
Decision needed
Why: Current main changed the same CI ownership immediately before this branch and the supplied GitHub state reports a merge conflict, so the intended proof boundary needs maintainer direction. Before merge
Agent review detailsSecurityNone. PR surfaceTests -336, Config 0. Total -336 across 9 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain main’s exact built-runtime lifecycle proof and keep a source-only lane only if it proves a distinct invariant with an exact-head timing comparison. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes internal CI and test execution rather than reporting a user-facing defect; its timing result is reported in the PR body. Is this the best way to solve the issue? No: the source-run approach was plausible for the old workflow, but current main now owns this proof through a dedicated built-runtime job. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3851849eead6. LabelsLabel changes:
Label 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
|
46e9828 to
6f3b6c8
Compare
|
Exact-head hosted proof is green and clears the requested 30% bar:
The removed case was the remaining duplicate built-gateway archive tour. Focused owners retain archive worker invocation, archived-byte preservation, SQLite row deletion, publication ordering, and Gateway RPC lifecycle semantics. The exact-artifact lane retains the unique migration, restart, downgrade/re-upgrade, contention, scale, destructive lifecycle, and full-agent-turn spine. Baseline: https://github.com/openclaw/openclaw/actions/runs/31544877889/job/93957841566 |
|
Merged via squash.
|
* test(ci): accelerate SQLite flip proof * test(sessions): replace duplicate archive stress tour * test(sessions): preserve SQLite lifecycle contracts * test(sessions): drop duplicate archive assertions --------- Co-authored-by: Amp <[email protected]>
What Problem This Solves
The scoped SQLite session lifecycle lane still ran several expensive feature tours whose observable contracts already have focused owners. It also wrote and archived a 128 MiB transcript to prove that the packaged archive worker remains responsive, duplicating the worker's focused stress suite.
Why This Change Was Made
main's scoped exact-run artifact job and worker count unchangedUser Impact
No product/runtime behavior changes. CI retains the SQLite migration and lifecycle contracts while spending less runner time on duplicate coverage.
Test-value audit
Removed tours have stronger focused owners:
src/gateway/server.sessions.compaction.test.tssrc/plugin-sdk/session-transcript-runtime.test.tssrc/config/sessions/session-accessor.conformance.test.ts,src/config/sessions/session-registry-maintenance.test.ts, andsrc/config/sessions/session-accessor.sqlite-cleanup-race.test.tssrc/config/sessions/session-accessor.sqlite-archive.worker.test.tsandsrc/gateway/server.sessions.delete-lifecycle.test.tsThe retained exact-artifact lifecycle spine covers startup legacy import, doctor inspect/validate/import idempotence, rollback/restore, gateway restart, downgrade/re-upgrade, reset/restart/append ordering, destructive delete/archive, shared references, SQLite writer contention, concurrent clients, scale migration, and a full agent turn.
Evidence
mainintegration; targeted workflow guard passed after integrationoxfmtandgit diff --checkpassed