Repository navigation
fix(ci): await Slack provider reply delivery - #128234
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 23, 2026, 11:01 AM ET / 15:01 UTC. ClawSweeper reviewWhat this changesThe PR adds a shared Slack test helper that waits through durable ingress and updates five provider-auth tests to assert the prepared context and final send without timing-based polling. Merge readiness✅ Ready for maintainer review Keep open for normal maintainer review. No blocking correctness or security findings: the test-only patch reuses the established Slack ingress lifecycle and makes the five assertions wait for dispatch and final mocked delivery. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherSlack event handlers pass inbound messages through durable ingress, the message dispatcher, and the Slack send adapter. The changed tests now wait for that existing completion chain before inspecting the reply and send mocks. flowchart LR
A[Slack event fixture] --> B[Bolt message handler]
B --> C[Durable ingress lifecycle]
C --> D[Message dispatcher]
D --> E[Reply delivery]
E --> F[Slack send mock]
F --> G[Test assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +10, Tests +38. Total +48 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain the single durable-ingress test seam and land this focused harness repair after exact-head CI completes successfully. Do we have a high-confidence way to reproduce the issue? Yes—source reproducible: direct Bolt handlers previously returned after queue admission while the affected tests then polled a send mock; the lifecycle path makes the handler await dispatch completion. The mandated read-only review did not execute the focused suite. Is this the best way to solve the issue? Yes—the PR reuses the canonical durable-ingress lifecycle already used by sibling Slack tests, rather than introducing a synthetic dispatcher or a new timing wait. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cd91a8996f06. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* test(slack): await provider reply delivery * fix(ci): exercise real Slack dispatch lifecycle * test(slack): await recovered identity delivery
Related: #128192
Related: #128226
What Problem This Solves
Fixes an issue where five Slack provider-auth tests could finish their Bolt handler before asynchronous reply delivery completed, then poll
sendMockas an indirect completion signal. Beta release validation exposed this as nondeterministic harness evidence.Why This Change Was Made
Adds one shared Slack test seam that attaches the existing durable-ingress lifecycle to a Bolt handler invocation. The affected Enterprise Grid startup, stalled-presence, user-mention, user-DM, and recovered Enterprise identity cases now await the real dispatcher and delivery boundary, then assert the dispatched context and final send.
No dispatcher behavior is replaced or reproduced. There are no runtime, auth, product, release, or publication code changes.
User Impact
No user-visible behavior changes. Slack provider CI now records deterministic reply-delivery completion instead of relying on mock polling timing.
Evidence
node scripts/run-vitest.mjs extensions/slack/src/monitor/provider.auth-test-token.test.tspnpm format extensions/slack/src/monitor.test-helpers.ts extensions/slack/src/monitor/provider.auth-test-token.test.tsgit diff --checknode scripts/check-changed.mjs -- extensions/slack/src/monitor.test-helpers.ts extensions/slack/src/monitor/provider.auth-test-token.test.tsProduction LOC: +0/-0
Tests: +60/-12
Provenance: beta repair PRs #128192 and #128226 exposed and mitigated the race while qualifying the frozen release candidate. This PR carries only the reusable test-harness repair onto current
main.Review follow-up: the first exact-head ClawSweeper review correctly rejected a synthetic dispatcher override. The replacement waits through the existing durable-ingress lifecycle instead. Exact review then identified the remaining recovered-identity polling sibling; this head migrates that fifth case to the same seam.
AI-assisted: yes.