Repository navigation
test(slack): consolidate outbound payload fixtures - #118246
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 2, 2026, 6:51 PM ET / 22:51 UTC. ClawSweeper reviewWhat this changesThe branch centralizes repeated Slack outbound-payload test setup, uses fresh payload builders for mutation-sensitive cases, and removes the obsolete max-lines baseline entry. Merge readinessKeep this scoped test-only refactor open for normal protected-label maintainer handling. Source review found no concrete regression in the fixture consolidation, and current main has not independently absorbed the branch; the Priority: P3 Review scores
Verification
How this fits togetherSlack’s outbound adapter converts reply payload presentation and interactive actions into ordered Slack message segments, then sends those segments through the Slack client. This test file verifies rendered blocks, portable fallbacks, delivery ordering, and invalid-block recovery around that adapter. flowchart LR
A[Reply payload] --> B[Slack outbound adapter]
B --> C[Rendered Slack segments]
C --> D[Delivery sequencing]
D --> E[Slack client]
F[Outbound payload tests] --> B
F --> C
F --> D
Decision needed
Why: The source review finds no actionable defect, but the protected Before merge
Agent review detailsSecurityNone. PR surfaceTests -191, Other -1. Total -192 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Merge the fixture consolidation only after the protected-label reviewer confirms the current Slack test arrangement remains the desired canonical test boundary; retain the production adapter and its existing behavioral assertions unchanged. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors test fixtures rather than reporting a user-facing failure; the relevant evidence is preservation of the outbound adapter test scenarios and focused Slack-suite validation. Is this the best way to solve the issue? Yes. The helpers centralize repeated setup while continuing to exercise the real render, send-payload, and Slack-client boundaries, which is safer than duplicating payload construction in each test. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against adedc323b689. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Summary
Repair scope
The duplication accumulated in the Slack outbound test owner as table, visualization, typed-action, fallback, and delivery repairs added independent setup. The architectural behavior owners remain the outbound adapter, reply-block resolution, and
sendMessageSlack; this change only gives their tests one canonical arrangement path. No production, product, API, config, schema, security, or compatibility behavior changes.Behavior parity
expect(sites plus 7expect.objectContaining(sites unchangedinvalid_blocksrecovery preserved@slack/web-api8.0.0 types and WebClient platform-error source checkedLOC
extensions/slack/src/outbound-payload.test.ts: +239/-430, net -191config/max-lines-baseline.txt: +0/-1, net -1Proof
Blacksmith Testbox lease
tbx_01kz25m3vs9116h5a6eskksyvr(coral-crab-f00c):check:changed: passed, including extension typecheck/lint, formatting, max-lines ratchet, script declarations, dead exports, and plugin boundariesgit diff --check: cleanBaseline focused run: https://github.com/openclaw/openclaw/actions/runs/30767683379
Collision disclosure
The selected Slack test path had zero active ownership collisions.
config/max-lines-baseline.txthas nine open shared-path overlaps (#81185, #97316, #107295, #108237, #112079, #116293, #116489, #116690, #117370); central inspected every matching patch and confirmed that all delete distinct, non-neighboring entries. This PRs one-line deletion is mandatory ratchet cleanup and mechanically disjoint.