test(e2e): migrate WhatsApp QR compact guard - #5187
Conversation
|
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 (7)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughMigrates WhatsApp compact QR e2e verification from bash script to Vitest with hermetic OpenClaw dependency pinning. Updates CI workflow to run the new TypeScript test, removes legacy script references, and adds workflow contract assertions. ChangesWhatsApp QR E2E Migration to Vitest
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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: Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
Vitest E2E Scenario RecommendationRequired Vitest E2E scenarios: Dispatch required Vitest E2E scenarios:
Full Vitest E2E advisor summaryVitest E2E Scenario AdvisorBase: Required Vitest E2E scenarios
Optional Vitest E2E scenarios
Relevant changed files
|
PR Review AdvisorFindings: 0 needs attention, 1 worth checking, 1 nice ideas Review findings🛠️ Needs attention
🔎 Worth checking
🌱 Nice ideas
Consider writing more tests for
This is an automated advisory review. A human maintainer must make the final merge decision. |
Summary
Migrate
test/e2e/test-whatsapp-qr-compact-e2e.shto a focused Vitest renderer proof and retire the shell script.Refs #5098
Refs #4522
Supersedes the simplified subset of #5146.
Contract mapping
@openclaw/whatsappversion is resolved fromDockerfile.base.test/e2e-scenario/live/whatsapp-qr-compact.test.tsreadsARG OPENCLAW_VERSIONand installsopenclaw@<version>plus@openclaw/whatsapp@<version>.renderQrTerminal.@openclaw/whatsapp/distforrenderQrTerminalbefore measuring output.renderQrTerminal(qr)probe withoutNODE_OPTIONSand requires rows >=WHATSAPP_QR_OVERSIZE_MIN_ROWS(default 50).NODE_OPTIONS=--require nemoclaw-blueprint/scripts/whatsapp-qr-compact.js, requires rows <=WHATSAPP_QR_COMPACT_MAX_ROWS(default 40), and requires shrinkage versus baseline.Simplicity check
NVIDIA_API_KEYrequired; the renderer proof preserves the legacy contract.whatsapp-qr-compact-e2eregression lane now invokes the Vitest test instead of the deleted shell script.Verification
NEMOCLAW_RUN_E2E_SCENARIOS=1 npx vitest run --project e2e-scenarios-live test/e2e-scenario/live/whatsapp-qr-compact.test.ts --silent=false --reporter=defaultnpx vitest run --project cli test/whatsapp-qr-compact.test.ts test/regression-e2e-workflow.test.ts test/e2e-script-workflow.test.ts --silent=false --reporter=defaultgit diff --checkNote: full pre-push CLI test started but was killed by signal 9 on this host; the narrow required checks above passed.
Summary by CodeRabbit
Tests
Chores