Skip to content

test: fix current main CI baselines - #120080

Merged
Patrick-Erichsen merged 2 commits into
mainfrom
pe/fix-current-main-ci-baselines
Aug 7, 2026
Merged

Patrick-Erichsen merged 2 commits into
mainfrom
pe/fix-current-main-ci-baselines

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Current main leaves every new PR's required openclaw/ci-gate red on four inherited test-only failures:

  • Knip treats ui/src/pages/chat/chat-host.test-fixture.ts as unused because the filename does not match the repository's test-support convention.
  • Three compaction-target tests still expect synthesized fallback sessionKey values after the runtime moved to authoritative stored-key resolution.
  • One usage-reporting test inherits ambient global config while asserting an empty config.
  • One QA Lab table widens its provider-mode literals to string, failing check:test-types against the QaProviderMode contract.

These failures are byte-identical across current main and the unrelated PRs they blocked.

Implementation

  • rename the chat helper to chat-host.test-support.ts and update its importer;
  • assert that compaction targets preserve session IDs without inventing session keys;
  • pass config: {} explicitly in the usage-reporting test;
  • preserve QA Lab provider-mode literals with as const.

No production behavior changes.

Evidence

  • Testbox 31133732180: 344 focused tests plus all Knip dependency, unused-file, and unused-export scans passed.
  • Testbox 31134709606: QA Lab 7/7, exact check:test-types, and git diff --check passed.
  • Exact-head CI 31135188626: all required jobs green. One unchanged native-nav focus timeout passed on the single exact-head rerun and was concurrently green on current main run 31135186690.
  • Fresh autoreview: clean, no actionable findings.
  • Exact-head ClawSweeper review: no findings; best fix affirmed.

ClawSweeper Before-Merge Resolution

ClawSweeper reviewed this exact head against current main 265f43eded8c, 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

  • focused embedded-agent shared integration tests
  • compaction target normalization tests
  • chat send tests
  • QA Lab timeout tests and test typecheck
  • Knip dependency, unused-file, and unused-export scans
  • exact-head CI
  • autoreview

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui agents Agent runtime and tooling size: XS maintainer Maintainer-authored PR labels Aug 7, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. labels Aug 7, 2026
@clawsweeper

clawsweeper Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 8:40 PM ET / August 7, 2026, 00:40 UTC.

ClawSweeper review

What this changes

This 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 provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep 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
Reviewed head: d76f0cf68a5ab1216595cefd714b6ebdf1ee62dd

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused test-only patch matches the current owner contracts and has strong stated targeted validation, pending exact-head CI completion.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-labeled, test-only PR has CI-focused validation and no user-visible behavior requiring external real-setup proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-labeled, test-only PR has CI-focused validation and no user-visible behavior requiring external real-setup proof.
Evidence reviewed 6 items Current session-key contract: The target builder emits sessionKey only from a stored or supplied key and omits it otherwise; the PR brings the stale assertions into line with that owner boundary.
Stale expectation provenance: Blame ties the fabricated fallback-key expectations to the recent test baseline commit, while the current contract makes sessionKey optional.
Authoritative-key runtime change: This commit established stored-key resolution for delegated compaction, making synthesized test keys obsolete.
Findings None None.
Security None None.

How this fits together

Agent 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]
Loading

Before merge

  • Resolve merge risk (P1) - The branch is behind main and the supplied exact-head check snapshot is incomplete; refresh the three-way review and let required CI finish before merging.
  • Complete next step (P2) - No repair lane is needed: the patch is coherent, has no actionable finding, and awaits normal exact-head CI completion.
Agent review details

Security

None.

PR surface

Source +1, Tests -3. Total -2 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 2 1 0 +1
Tests 3 8 11 -3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 9 11 -2

Review metrics

Metric Value Why it matters
Production vs test LOC production +0/-0; tests +9/-11 All changed lines are test or test-support maintenance, so the PR does not alter runtime behavior.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the narrow test-baseline repair after current-head CI completes; do not reintroduce a production fallback session key to satisfy obsolete assertions.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P2: Inherited CI-baseline failures affect normal pull-request validation but do not establish an operator-facing runtime outage.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-labeled, test-only PR has CI-focused validation and no user-visible behavior requiring external real-setup proof.

Label justifications:

  • P2: Inherited CI-baseline failures affect normal pull-request validation but do not establish an operator-facing runtime outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-labeled, test-only PR has CI-focused validation and no user-visible behavior requiring external real-setup proof.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the authoritative stored-session-key compaction change and recent UI/QA test work relevant to this repair. (role: runtime-contract author and recent area contributor; confidence: high; commits: a73910dfba85, 65d2222a6e84, c663c39763bf; files: src/agents/embedded-agent-runner/run/session-bootstrap.ts, ui/src/pages/chat/chat-host.test-support.ts, extensions/qa-lab/src/live-timeout.test.ts)
  • vincentkoc: Blame identifies this commit as the source of the stale compaction expectations, and it recently touched the QA timeout test. (role: recent test-baseline contributor; confidence: high; commits: 4d9c249d4006; files: src/agents/embedded-agent-runner/run/attempt-normalization.test.ts, extensions/qa-lab/src/live-timeout.test.ts)
  • shakkernerd: Recent chat helper and importer history connects this person to the UI test-support surface affected by the rename. (role: recent UI chat contributor; confidence: medium; commits: db90dff1, fa06a000; files: ui/src/pages/chat/chat-send.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let the required exact-head checks complete before landing.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc vincentkoc self-assigned this Aug 7, 2026
@Patrick-Erichsen
Patrick-Erichsen merged commit c245cfc into main Aug 7, 2026
208 of 210 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the pe/fix-current-main-ci-baselines branch August 7, 2026 00:52
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

1 similar comment
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui extensions: qa-lab maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants