Repository navigation
fix(qa): restore automatic smoke coverage across channels - #101186
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 8:08 PM ET / 00:08 UTC. Summary 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.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest 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 changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
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
Review history (3 earlier review cycles)
|
There was a problem hiding this comment.
💡 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", |
There was a problem hiding this comment.
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 👍 / 👎.
Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Dallin Romney <[email protected]>
b36e6bf to
95377ee
Compare
There was a problem hiding this comment.
💡 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".
| const result = await sessions.list({ | ||
| activeMinutes: 0, | ||
| limit: GROUP_MEMBER_PAGE_LIMIT, | ||
| ...(offset > 0 ? { offset } : {}), | ||
| ...(showArchived ? { showArchived: true } : {}), |
There was a problem hiding this comment.
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 👍 / 👎.
| matrix: | ||
| include: | ||
| - name: matrix | ||
| slug: matrix | ||
| - name: telegram 1/2 |
There was a problem hiding this comment.
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 👍 / 👎.
|
Land-ready proof:
Known proof gaps: none. |
|
Merged via squash.
|
|
Landed as Final proof at exact head
The landed planner runs all 89 eligible flow, script, and Playwright scenarios exactly once across the three bounded channel shards. Known proof gaps: none. |
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
actionlint .github/workflows/ci.yml,node scripts/check-workflows.mjs, targetedoxfmt --check, andgit diff --check: passed.mainafter Revert "fix(qa): keep smoke profile on one channel" #101184 reverted the temporary single-channel workaround.