test(e2e): tighten WeChat channel assertions - #4340
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThis PR hardens WeChat E2E test assertions by adding M-W7 to validate plugin install metadata and converting M-W8, M-W9, and M-W10 to fail (instead of skip) when WeChat plugin/account configuration or credential files are missing. ChangesWeChat E2E Test Validation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
E2E Advisor RecommendationRequired E2E: None Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
E2E Scenario Advisor RecommendationRequired scenario E2E: None Full scenario advisor summaryE2E Scenario AdvisorBase: Required scenario E2E
Optional scenario E2E
Relevant changed files
|
PR Review AdvisorFindings: 0 needs attention, 2 worth checking, 0 nice ideas Review findings🛠️ Needs attention
🔎 Worth checking
🌱 Nice ideas
Since last review detailsCurrent findings:
This is an automated advisory review. A human maintainer must make the final merge decision. |
Selective E2E Results — ✅ All requested jobs passedRun: 26527016252
|
Selective E2E Results — ✅ All requested jobs passedRun: 26527044069
|
|
Actionable comments posted: 0 |
Tighten M-W7 in response to PR review advisor feedback on #4340: - Reject floating install specs (e.g. "@latest") by matching the spec against a strict semver pattern. Source of truth is scripts/seed-wechat-accounts.py (WECHAT_PLUGIN_SPEC=@2.4.3) and Dockerfile.base, both of which install a concrete pinned version. - Also assert plugins.entries.openclaw-weixin.enabled is true, so M-W7 covers the full set of expected post-rewrite state listed in #4237. Test-only change; no runtime behavior touched. Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Selective E2E Results — ✅ All requested jobs passedRun: 26656015631
|
Summary
Tightens the WeChat messaging-provider E2E coverage so the non-interactive
WECHAT_BOT_TOKENpath fails when required OpenClaw state is missing. This covers the regression class wherechannels.openclaw-weixinor the plugin install registry is notrestored.
Related Issue
Related #4237: #4237 is not a bug, while this PR is to tighten the WeChat validation in non-interactive flow
Changes
plugins.installs.openclaw-weixininopenclaw.json.channels.openclaw-weixin.accounts[$WECHAT_ACCOUNT].enabledfrom skip to fail.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesnpm run docsbuilds without warnings (doc changes only)Additional checks run:
bash -n test/e2e/test-messaging-providers.shgit diff --checknpx vitest run test/e2e/scenario-framework-tests/e2e-convention-lint.test.ts test/e2e/scenario-framework-tests/e2e-coverage-report.test.tsSigned-off-by: San Dang sdang@nvidia.com
Summary by CodeRabbit