Skip to content

fix(qa): restore automatic smoke coverage across channels - #101186

Merged
vincentkoc merged 4 commits into
mainfrom
codex/fix-qa-smoke-channel-shards
Jul 7, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
codex/fix-qa-smoke-channel-shards

Conversation

@steipete

@steipete steipete commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Related: #101164
Related: #101184
Supersedes: #101187

What Problem This Solves

Fixes an issue where automatic QA Smoke CI selected one shared multi-channel profile, causing the suite resolver to reject the run before any channel scenario could execute.

Why This Change Was Made

The workflow now plans three deterministic channel-compatible shards from the current smoke profile: one Matrix shard and two execution-cost-balanced Telegram shards. All 89 eligible flow, script, and Playwright scenarios run exactly once. Each shard runs independently while one aggregate required status stays fail-closed. Slack and WhatsApp restart/resume scenarios require their live channel drivers because Crabline does not satisfy those inbound/auth contracts; the silence-sensitive Telegram baseline is isolated from concurrent transport traffic.

User Impact

Maintainers regain reliable automatic Matrix and Telegram smoke coverage without weakening the shared profile's cross-channel taxonomy. Slack and WhatsApp restart/resume coverage remains in the live-driver lanes instead of failing the simulated automatic lane.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts extensions: qa-lab size: M maintainer Maintainer-authored PR labels Jul 6, 2026
@clawsweeper

clawsweeper Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 8:08 PM ET / 00:08 UTC.

Summary
The branch adds a QA Smoke CI shard planner, restores three channel-compatible QA Smoke shard jobs plus a hosted aggregate, and updates QA scenario contracts, tests, and docs.

Reproducibility: yes. The linked failed Actions run and current suite-planning source show a monolithic smoke-ci run can select multiple channels and fail before scenarios execute; current main mitigates by disabling automatic QA Smoke CI rather than restoring coverage.

Review metrics: 3 noteworthy metrics.

  • QA Smoke CI fanout: 3 Blacksmith shard rows added, 1 hosted aggregate added. This changes runner-registration pressure and the required QA Smoke CI status shape before merge.
  • Scenario contract split: 2 live-only restarts, 1 isolated baseline. The scenario changes keep deterministic Crabline smoke from selecting live-driver-only restart paths or a silence-sensitive shared-channel baseline.
  • Effective merge surface: 12 QA/workflow/docs/test files after merge-ref comparison. The raw PR file list is stale-base noise, so maintainers should review the actual merge-ref surface.

Stored data model
Persistent data-model change detected: migration/backfill/repair: .github/workflows/android-release.yml, persistent cache schema: ui/src/i18n/.i18n/ru.tm.jsonl, persistent cache schema: ui/src/i18n/.i18n/th.tm.jsonl, persistent cache schema: ui/src/i18n/.i18n/tr.tm.jsonl, persistent cache schema: ui/src/i18n/.i18n/uk.tm.jsonl, persistent cache schema: ui/src/i18n/.i18n/vi.tm.jsonl, and 14 more. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: canonical
Canonical: #101186
Summary: This PR is the broad candidate restoration for the QA Smoke CI regression cluster; the earlier sharding attempt is closed, the temporary-disable PR is merged, and the scenario-only PR overlaps but does not restore automatic CI.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🐚 platinum hermit ✨ media proof bonus
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Rebase or verify the merge ref against current main so stale-base duplicate file noise is not part of maintainer review.
  • [P2] Wait for QA Smoke CI (telegram 2/2), the aggregate job, and the remaining required exact-head checks to finish green.

Risk before merge

  • [P1] Merging changes the required QA Smoke CI automation shape by adding three Blacksmith shard rows plus a hosted aggregate, so runner registration load and required-check behavior need maintainer acceptance.
  • [P1] Exact-head validation was not fully complete at inspection time: QA Smoke CI (telegram 2/2) and checks-node-compact-small-whole-2 were still in progress.
  • [P1] The branch is behind current main and has stale-base duplicate file noise; maintainers should review the merge ref or rebase before landing, not the raw 124-file PR list.

Maintainer options:

  1. Require green exact-head smoke restoration (recommended)
    Merge only after the merge ref or rebased head shows all three QA Smoke shards, the aggregate job, and required CI passing.
  2. Accept the CI fanout deliberately
    Maintainers may accept the three additional Blacksmith shard rows because restored channel coverage is worth the runner-registration cost.
  3. Pause and keep the temporary disablement
    If the fanout or incomplete proof is not acceptable, leave this PR open or close it in favor of the smaller scenario-only repair plus later workflow restoration.

Next step before merge

  • [P2] This maintainer-labeled automation PR has no narrow automated repair finding, but it needs assigned-maintainer handling for rebase or merge-ref review, exact-head CI proof, and acceptance of the QA Smoke CI fanout.

Maintainer decision needed

  • Question: Should OpenClaw restore automatic QA Smoke CI now as three channel-compatible shards plus a hosted aggregate once exact-head CI is fully green?
  • Rationale: The patch looks like the right technical repair, but it changes CI runner fanout and required-status behavior, and the PR carries a protected maintainer label.
  • Likely owner: vincentkoc — They are assigned and authored the current QA smoke restoration commits that maintainers would need to refresh or land.
  • Options:
    • Land after exact-head proof (recommended): Rebase or review the merge ref, wait for Matrix, both Telegram shards, the aggregate, and required checks to pass, then merge this as the canonical restoration.
    • Keep QA Smoke disabled: Leave the temporary disablement in place if the runner registration cost or required-check shape is not worth restoring yet.
    • Split scenario repair first: Land only the scenario contract repair from fix(qa): repair smoke scenario lane selection #101187 first, then restore automatic CI in a smaller follow-up.

Security
Cleared: No concrete security or supply-chain regression was found in the effective QA CI merge diff; the added upload-artifact action is pinned and the new jobs use read-only contents permissions.

Review details

Best possible solution:

Rebase on current main, keep the effective QA-only merge surface, require all QA Smoke shards, the aggregate check, and required CI to pass on the exact head, then land this as the canonical replacement for the temporary QA Smoke disablement if maintainers accept the fanout.

Do we have a high-confidence way to reproduce the issue?

Yes. The linked failed Actions run and current suite-planning source show a monolithic smoke-ci run can select multiple channels and fail before scenarios execute; current main mitigates by disabling automatic QA Smoke CI rather than restoring coverage.

Is this the best way to solve the issue?

Yes, conditionally. Splitting the smoke profile into deterministic channel-compatible shards is the narrowest maintainable restoration path I saw; the safer alternative is to keep the temporary disablement until exact-head shard proof is fully green.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 2b3a985b116e.

Label changes

Label justifications:

  • P1: Automatic QA Smoke coverage for channel workflows is currently disabled or broken, which is an urgent maintainer CI regression for channel and agent workflow protection.
  • merge-risk: 🚨 automation: The PR changes GitHub Actions QA Smoke scheduling, runner fanout, artifact upload, and required aggregate-check behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): Sufficient linked-artifact proof: the PR body links hosted CI evidence for the sharded behavior, and the exact-head run shows the new QA Smoke shard workflow executing with Matrix and Telegram 1/2 already successful; final merge should still wait for the remaining exact-head checks.
  • proof: sufficient: Contributor real behavior proof is sufficient. Sufficient linked-artifact proof: the PR body links hosted CI evidence for the sharded behavior, and the exact-head run shows the new QA Smoke shard workflow executing with Matrix and Telegram 1/2 already successful; final merge should still wait for the remaining exact-head checks.
Evidence reviewed

What I checked:

  • Effective merge diff is QA-only: Comparing current main to the GitHub merge ref showed the surviving merge surface is 12 QA/workflow/docs/test files, despite the stale PR file list including current-main duplicates. (4b4ddb497c9c)
  • Workflow restoration: The merge ref adds the qa-smoke-ci-shard matrix with Matrix and two Telegram shards, then a QA Smoke CI aggregate job that fails if the shard matrix result is not success. (.github/workflows/ci.yml:919, 4b4ddb497c9c)
  • Planner behavior: createQaSmokeCiMatrix resolves the smoke-ci taxonomy profile, filters scenarios by mock OpenAI and the Crabline channel-driver lane, groups them by effective channel, and splits the default Telegram group into two balanced shards. (extensions/qa-lab/src/ci-smoke-plan.ts:63, 4b4ddb497c9c)
  • Regression test coverage: The new planner test asserts deterministic Matrix/Telegram shards, 89 unique selected scenarios, exclusion of Slack and WhatsApp restart scenarios, and balanced Telegram weights. (extensions/qa-lab/src/ci-smoke-plan.test.ts:7, 4b4ddb497c9c)
  • Current failure boundary: Current main's suite planner still rejects selected scenarios that require multiple channels, which matches the reported monolithic smoke-ci failure mode. (extensions/qa-lab/src/suite-planning.ts:154, 2b3a985b116e)
  • Temporary mitigation provenance: The current main mitigation is the merged temporary disablement of automatic QA Smoke CI, so restoring channel-compatible coverage remains useful work. (.github/workflows/ci.yml:872, 6bffda416614)

Likely related people:

  • RomneyDa: Authored the merged revert and temporary QA Smoke disablement that define the current main state, and owns the related scenario-only repair PR. (role: recent area contributor; confidence: high; commits: 19491fe34c55, 6bffda416614; files: .github/workflows/ci.yml, docs/ci.md, test/scripts/ci-workflow-guards.test.ts)
  • vincentkoc: Assigned to this PR and authored the first current-head QA smoke restoration commits that add the shard workflow and planner. (role: likely follow-up owner; confidence: high; commits: 95377eef1feb, 549e2e5745d5; files: .github/workflows/ci.yml, extensions/qa-lab/src/ci-smoke-plan.ts, extensions/qa-lab/src/ci-smoke-plan.test.ts)
  • steipete: Authored the latest PR head commit and is CODEOWNER for ownership rules; also appears in recent CI-capacity history. (role: recent adjacent contributor; confidence: medium; commits: fd55d0e7fa2b, 2424fdf8e5d6; files: .github/workflows/ci.yml, docs/ci.md)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.
Review history (3 earlier review cycles)
  • reviewed 2026-07-06T22:08:54.696Z sha df4fa780e09a294245ed3646271c7b3e54e6dd77 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-06T23:06:25.638Z sha 511cf34b6a74a137c421323627c215b5f87d01a0 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-06T23:51:49.944Z sha 2e8dfb2 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 6, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jul 6, 2026
@steipete
steipete requested a review from a team as a code owner July 6, 2026 22:33
@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: tlon Channel integration: tlon channel: voice-call Channel integration: voice-call app: android App: android app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling extensions: device-pair extensions: openai extensions: huggingface extensions: google size: XL and removed size: M labels Jul 6, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 40421eb15a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

beginHistoryLoad(
key = normalizeRequestedSessionKey(_sessionKey.value),
key = "main",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the selected session during same-gateway reconnects

When a normal disconnect/reconnect path calls onGatewayScopeChanging(retireRunState = false) (for example from NodeRuntime.prepareDisconnect or a fresh beginConnect for the same saved gateway), this now always starts loading main instead of the current _sessionKey. That means users viewing any non-main chat are bounced back to the main session and lose the selected conversation context on routine reconnects, even though the gateway/auth scope was not retired.

Useful? React with 👍 / 👎.

@vincentkoc vincentkoc self-assigned this Jul 6, 2026
@clawsweeper clawsweeper Bot removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 6, 2026
Co-authored-by: Peter Steinberger <[email protected]>

Co-authored-by: Dallin Romney <[email protected]>
@vincentkoc
vincentkoc force-pushed the codex/fix-qa-smoke-channel-shards branch from b36e6bf to 95377ee Compare July 6, 2026 23:27
@openclaw-barnacle openclaw-barnacle Bot added size: M and removed gateway Gateway runtime cli CLI command changes commands Command implementations size: XL labels Jul 6, 2026
@vincentkoc
vincentkoc requested a review from a team as a code owner July 6, 2026 23:41
@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: ios App: ios app: macos App: macos gateway Gateway runtime size: XL and removed size: M labels Jul 6, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jul 6, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fd55d0e7fa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +53 to +57
const result = await sessions.list({
activeMinutes: 0,
limit: GROUP_MEMBER_PAGE_LIMIT,
...(offset > 0 ? { offset } : {}),
...(showArchived ? { showArchived: true } : {}),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include unconfigured agents when renaming groups

These bulk group mutations claim to enumerate every member, but this sessions.list call inherits the UI capability default configuredAgentsOnly: true from buildSessionListParams (ui/src/lib/sessions/index.ts:217-252). The gateway contract/test shows that flag hides disk-only or currently unconfigured agent stores (src/gateway/server.sessions.store-rpc.test.ts:633-654), so if a user renames or dissolves a custom group while one of its agents is removed/disabled, those hidden sessions keep the old category and the group reappears when that agent is added back. Pass configuredAgentsOnly: false (or otherwise use the broad list) for this all-members mutation path.

Useful? React with 👍 / 👎.

Comment thread .github/workflows/ci.yml
Comment on lines +930 to +934
matrix:
include:
- name: matrix
slug: matrix
- name: telegram 1/2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Generate QA smoke shards from the planner

The workflow matrix is hard-coded here, while the job later only uses createQaSmokeCiMatrix() to look up IDs for slugs that already exist in this list. When the smoke-ci profile gains another channel shard or a changed shard split (the planner groups by execution.channel and allows up to 8 shards), the new slug is never scheduled, so those scenarios silently get no CI coverage despite being present in the generated planner output. Generate this matrix from the planner via a preflight output, or add a guard that fails when the workflow matrix differs from createQaSmokeCiMatrix().

Useful? React with 👍 / 👎.

@vincentkoc

Copy link
Copy Markdown
Member

Land-ready proof:

  • Effective current-main diff: 12 QA workflow/runtime/test/docs files, +363/-31.
  • Smoke coverage: all 89 flow, script, and Playwright scenarios retained; Slack and WhatsApp live-driver restarts excluded from deterministic Crabline smoke; the silence-sensitive channel baseline is isolated.
  • Focused validation: 6 Vitest suites, 206 tests passed.
  • Workflow validation: node scripts/check-workflows.mjs passed, including zizmor.
  • Formatting: oxfmt --check passed on all 12 changed files.
  • Fresh autoreview: no actionable findings.
  • Patch-identical Testbox: tbx_01kwwtjfqxn1k8tekh5rg561wv passed broad check:changed.
  • Exact-head GitHub CI: run 28831595268 passed the full workflow plus Matrix, Telegram 1/2, Telegram 2/2, and aggregate QA Smoke CI on fd55d0e7fa2.

Known proof gaps: none.

@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

@steipete

steipete commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

Landed as aed24822923.

Final proof at exact head fd55d0e7fa2b99d0f3c0f465552e56b94a35f2e2:

The landed planner runs all 89 eligible flow, script, and Playwright scenarios exactly once across the three bounded channel shards. Known proof gaps: none.

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

Labels

app: android App: android app: ios App: ios app: macos App: macos app: web-ui App: web-ui docs Improvements or additions to documentation extensions: memory-core Extension: memory-core extensions: qa-lab gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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