Repository navigation
test: fix current main CI baselines - #120080
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 8:40 PM ET / August 7, 2026, 00:40 UTC. ClawSweeper reviewWhat this changesThis PR corrects stale embedded-agent test expectations, stabilizes a usage-reporting test, renames a UI test helper to the repository convention, and preserves QA timeout literals for type checking. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open. The test-only corrections match current runtime and CI conventions, and none of the five corrections is present on current main; required exact-head checks are still running. Priority: P2 Review scores
Verification
How this fits togetherAgent compaction derives a target from stored session identity and passes it into context management; tests must not claim a session key exists when the store has none. UI and QA-lab test support feed the same CI gate that protects pull requests. flowchart LR
A[Stored session mapping] --> B[Compaction target]
B --> C[Optional session key]
C --> D[Agent regression tests]
E[UI and QA test support] --> D
D --> F[CI gate]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +1, Tests -3. Total -2 across 5 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the narrow test-baseline repair after current-head CI completes; do not reintroduce a production fallback session key to satisfy obsolete assertions. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main omits unmapped session keys while the existing tests demand synthesized values, and the usage test omits the explicit empty configuration it asserts. Is this the best way to solve the issue? Yes. Correcting the tests and test-support naming is the narrowest maintainable fix; adding a production fallback would contradict the authoritative stored-key contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 265f43eded8c. 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
|
|
Merged via squash.
|
1 similar comment
|
Merged via squash.
|
* test: fix current main CI baselines * test(qa-lab): preserve provider mode literals
What Problem This Solves
Current
mainleaves every new PR's requiredopenclaw/ci-gatered on four inherited test-only failures:ui/src/pages/chat/chat-host.test-fixture.tsas unused because the filename does not match the repository's test-support convention.sessionKeyvalues after the runtime moved to authoritative stored-key resolution.string, failingcheck:test-typesagainst theQaProviderModecontract.These failures are byte-identical across current
mainand the unrelated PRs they blocked.Implementation
chat-host.test-support.tsand update its importer;config: {}explicitly in the usage-reporting test;as const.No production behavior changes.
Evidence
check:test-types, andgit diff --checkpassed.mainrun 31135186690.ClawSweeper Before-Merge Resolution
ClawSweeper reviewed this exact head against current
main265f43eded8c, and GitHub reports the branch mergeable. Behind-main drift is advisory in the repo-native landing workflow, so no code-changing refresh is needed. The remaining rank-up move—complete required exact-head checks—is satisfied by CI run 31135188626.Test Plan