{"id":"bf5aa03e-e9ea-49ba-8e4b-74361774b4c0", "recipient":"12fc3f23-17c6-442c-9554-505e87d2791f", "sender":"12fc3f23-17c6-442c-9554-505e87d2791f/task-468", "priority":"MESSAGE_PRIORITY_HIGH", "timestamp":"2026-11-19T05:04:02.646668789Z", "renderDetails":{"messageTitle":"Run pytest test suite finished"}, "content":"Task id \"12fc3f23-17c6-442c-9554-505e87d2791f/task-468\" finished with result:\nThe tool's output was truncated due to being too long. You can find the full output in a file at file:///root/.gemini/antigravity-cli/brain/12fc3f23-17c6-442c-9554-505e87d2791f/.system_generated/steps/468/output.txt.\n\nHere is a preview with the middle of the output truncated:\nCommand exited with code 1.\n\nCommand output:\n============================= test session starts ==============================\r\nplatform linux -- Python 3.12.3, pytest-9.2.0, pluggy-1.7.0 -- /root/telegram-saas/.venv/bin/python3\r\ncachedir: .pytest_cache\r\nrootdir: /root/telegram-saas\r\nconfigfile: pyproject.toml\r\ntestpaths: tests\r\nplugins: anyio-4.16.0, asyncio-1.5.0\r\nasyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function\r\ncollecting ... \rcollected 115 items                                                            \r\n\r\ntests/integration/test_ai_api.py::test_ai_module_full_lifecycle PASSED   [  0%]\r\ntests/integration/test_auth.py::test_auth_workflow PASSED                [  1%]\r\ntests/integration/test_billing_checkout_and_lifecycle.py::test_full_billing_lifecycle_and_security PASSED [  2%]\r\ntests/integration/test_billing_webhooks.py::test_razorpay_and_stripe_webhooks_and_deduplication PASSED [  3%]\r\ntests/integration/test_bot_modular_api_and_execution.py::test_bot_modular_api_and_execution_lifecycle FAILED [  4%]\r\ntests/integration/test_bot_synthesizer_api.py::test_bot_synthesizer_api_full_flow PASSED [  5%]\r\ntests/integration/test_broadcasts_api.py::test_broadcast_and_notifications_full_lifecycle PASSED [  6%]\r\ntests/integration/test_celery_telegram_tasks.py::test_telegram_update_task_execution PASSED [  6%]\r\ntests/integration/test_emojis_api.py::test_search_emojis_by_term PASSED  [  7%]\r\ntests/integration/test_emojis_api.py::test_search_emojis_by_category PASSED [  8%]\r\ntests/integration/test_emojis_api.py::test_get_categories_list PASSED    [  9%]\r\ntests/integration/test_emojis_api.py::test_bulk_emoji_import_and_packs_management PASSED [ 10%]\r\ntests/integration/test_health.py::test_health_liveness PASSED            [ 11%]\r\ntests/integration/test_health.py::test_health_readiness PASSED           [ 12%]\r\ntests/integration/test_i18n_api.py::test_get_locales_list PASSED         [ 13%]\r\ntests/integration/test_i18n_api.py::test_get_translation_bundle PASSED   [ 13%]\r\ntests/integration/test_i18n_api.py::test_update_user_locale PASSED       [ 14%]\r\ntests/integration/test_i18n_api.py::test_save_custom_translation_override PASSED [ 15%]\r\ntests/integration/test_i18n_api.py::test_audit_translations_and_missing_keys PASSED [ 16%]\r\ntests/integration/test_i18n_api.py::test_ai_translation_and_human_approval_workflow PASSED [ 17%]\r\ntests/integration/test_marketplace_api.py::test_marketplace_api_full_lifecycle_and_tenant_isolation PASSED [ 18%]\r\ntests/integration/test_mcp_api.py::test_mcp_pro_full_lifecycle_and_tenant_isolation PASSED [ 19%]\r\ntests/integration/test_message_studio_api.py::test_bot_message_studio_lifecycle PASSED [ 20%]\r\ntests/integration/test_message_studio_e2e_publishing.py::test_message_studio_publishing_changes_real_bot_response PASSED [ 20%]\r\ntests/integration/test_multi_bot_engine.py::test_multi_tenant_multi_bot_engine_lifecycle PASSED [ 21%]\r\ntests/integration/test_multilingual_bot_responses.py::test_language_selection_in_actual_bot_responses PASSED [ 22%]\r\ntests/integration/test_plugins_api.py::test_plugins_module_full_lifecycle PASSED [ 23%]\r\ntests/integration/test_telegram_auth.py::test_telegram_auth_success_and_login PASSED [ 24%]\r\ntests/integration/test_telegram_auth.py::test_telegram_auth_tampered_payload_rejected PASSED [ 25%]\r\ntests/integration/test_telegram_auth.py::test_telegram_auth_replay_expired_rejected PASSED [ 26%]\r\ntests/integration/test_telegram_auth.py::test_telegram_auth_future_timestamp_rejected PASSED [ 26%]\r\ntests/integration/test_telegram_auth.py::test_telegram_account_linking PASSED [ 27%]\r\ntests/integration/test_telegram_auth.py::test_telegram_config_endpoint PASSED [ 28%]\r\ntests/integration/test_text_designer_api.py::test_text_designer_api_endpoints PASSED [ 29%]\r\ntests/tenant_isolation/test_tenant_isolation.py::test_strict_tenant_isolation PASSED [ 30%]\r\ntests/unit/test_ai_engine.py::test_openai_provider_models_and_completion PASSED [ 31%]\r\ntests/unit/test_ai_engine.py::test_openrouter_provider_models_and_completion PASSED [ 32%]\r\ntests/unit/test_ai_engine.py::test_ai_provider_factory PASSED            [ 33%]\r\ntests/unit/test_billing_gateways.py::test_razorpay_payment_signature_verification PASSED [ 33%]\r\ntests/unit/test_billing_gateways.py::test_razorpay_webhook_signature_verification PASSED [ 34%]\r\ntests/unit/test_billing_gateways.py::test_stripe_webhook_signature_verification PASSED [ 35%]\r\ntests/unit/test_billing_gateways.py::test_gateway_factory_resolution PASSED [ 36%]\r\ntests/unit/test_bot_engine.py::test_bot_token_validation_with_getme PASSED [ 37%]\r\ntests/unit/test_bot_engine.py::test_bot_token_encryption_and_decryption PASSED [ 38%]\r\ntests/unit/test_bot_engine.py::test_webhook_secret_generation_and_verification PASSED [ 39%]\r\ntests/unit/test_bot_engine.py::test_rate_limit_retry_handling PASSED     [ 40%]\r\ntests/unit/test_bot_modular_engine.py::test_\n<truncated 8733 of 18631 bytes from the middle of the output>\noin Channel Guard', 'category': 'security', 'icon': 'shield-check', ...}, {'id': 'referrals', 'name': 'Referral & Viral Growth Engine', 'category': 'growth', 'icon': 'share-2', ...}, {'id': 'redeem_codes', 'name': 'Redeem Codes & Gift Vouchers', 'category': 'monetization', 'icon': 'gift', ...}, {'id': 'broadcasts', 'name': 'Broadcast & Announcement Pipeline', 'category': 'messaging', 'icon': 'radio', ...}, {'id': 'user_management', 'name': 'Audience & Subscriber Directory', 'category': 'management', 'icon': 'users', ...}, ...])\r\n\r\ntests/integration/test_bot_modular_api_and_execution.py:59: AssertionError\r\n----------------------------- Captured stdout call -----------------------------\r\n2026-11-19 05:03:35 [info     ] dispatching_domain_event       event_id=538e95c7-a813-4070-a650-e621b2e66e0b event_type=TenantCreatedEvent handlers_count=1\r\n2026-11-19 05:03:35 [info     ] domain_event_recorded          event_id=538e95c7-a813-4070-a650-e621b2e66e0b event_type=TenantCreatedEvent tenant_id=77f8af23-3f6c-47e3-bc26-d2d46559bb7e user_id=None\r\n2026-11-19 05:03:35 [info     ] dispatching_domain_event       event_id=66c23c38-ac87-4dd2-8ee7-80fb6ec612f4 event_type=UserRegisteredEvent handlers_count=1\r\n2026-11-19 05:03:35 [info     ] domain_event_recorded          event_id=66c23c38-ac87-4dd2-8ee7-80fb6ec612f4 event_type=UserRegisteredEvent tenant_id=None user_id=4df21e66-e865-4e10-9662-10f734c006a9\r\n2026-11-19 05:03:35 [info     ] dispatching_domain_event       event_id=c478d0ef-8cb8-420e-bbd3-0ef9816bc79a event_type=TenantCreatedEvent handlers_count=1\r\n2026-11-19 05:03:35 [info     ] domain_event_recorded          event_id=c478d0ef-8cb8-420e-bbd3-0ef9816bc79a event_type=TenantCreatedEvent tenant_id=b68c2d33-ec47-45c7-a985-f4ac15c485a8 user_id=None\r\n2026-11-19 05:03:35 [info     ] bot_registered_successfully    bot_id=c7d5e190-dd3d-419f-9c78-5b0c5b95f3aa tenant_id=b68c2d33-ec47-45c7-a985-f4ac15c485a8 username=modular_bot_689e92\r\n_______________________ test_module_catalog_definitions ________________________\r\n\r\n    @pytest.mark.asyncio\r\n    async def test_module_catalog_definitions():\r\n        \"\"\"Verifies all 9 core modules are fully defined with schema and defaults.\"\"\"\r\n        expected_modules = {\r\n            \"welcome_message\",\r\n            \"force_join\",\r\n            \"referrals\",\r\n            \"broadcasts\",\r\n            \"user_management\",\r\n            \"auto_filter\",\r\n            \"payments\",\r\n            \"subscriptions\",\r\n            \"ai_assistant\",\r\n            \"logs_tracker\",\r\n        }\r\n>       assert set(CORE_MODULE_DEFINITIONS.keys()) == expected_modules\r\nE       AssertionError: assert {'ai_assistan...ayments', ...} == {'ai_assistan...ayments', ...}\r\nE         \r\nE         Extra items in the left set:\r\nE         'redeem_codes'\r\nE         \r\nE         Full diff: (-: missing in left side, +: extra in left side)\r\nE           {\r\nE               'ai_assistant',...\r\nE         \r\nE         ...Full output truncated, use '-vv' to show\r\n\r\ntests/unit/test_bot_modular_engine.py:50: AssertionError\r\n__________________________ test_bot_module_lifecycle ___________________________\r\n\r\ndb_session = <sqlalchemy.ext.asyncio.session.AsyncSession object at 0x7ce719e68a70>\r\n\r\n    @pytest.mark.asyncio\r\n    async def test_bot_module_lifecycle(db_session: AsyncSession):\r\n        \"\"\"Tests install, list, toggle on/off, update config, and uninstall of bot modules.\"\"\"\r\n        bot = await create_dummy_bot(db_session, \"Modular Test Bot\")\r\n        bot_id = bot.id\r\n    \r\n        service = BotModuleService(db_session)\r\n    \r\n        # 1. List modules initially - none installed\r\n        modules = await service.list_bot_modules(bot_id)\r\n>       assert len(modules) == 10\r\nE       AssertionError: assert 11 == 10\r\nE        +  where 11 = len([{'id': 'welcome_message', 'name': 'Welcome Message & Onboarding', 'category': 'engagement', 'icon': 'sparkles', ...}, {'id': 'force_join', 'name': 'Force Join Channel Guard', 'category': 'security', 'icon': 'shield-check', ...}, {'id': 'referrals', 'name': 'Referral & Viral Growth Engine', 'category': 'growth', 'icon': 'share-2', ...}, {'id': 'redeem_codes', 'name': 'Redeem Codes & Gift Vouchers', 'category': 'monetization', 'icon': 'gift', ...}, {'id': 'broadcasts', 'name': 'Broadcast & Announcement Pipeline', 'category': 'messaging', 'icon': 'radio', ...}, {'id': 'user_management', 'name': 'Audience & Subscriber Directory', 'category': 'management', 'icon': 'users', ...}, ...])\r\n\r\ntests/unit/test_bot_modular_engine.py:70: AssertionError\r\n=========================== short test summary info ============================\r\nFAILED tests/integration/test_bot_modular_api_and_execution.py::test_bot_modular_api_and_execution_lifecycle\r\nFAILED tests/unit/test_bot_modular_engine.py::test_module_catalog_definitions\r\nFAILED tests/unit/test_bot_modular_engine.py::test_bot_module_lifecycle - Ass...\r\n======================== 3 failed, 112 passed in 26.06s ========================\r\n\nLog: file:///root/.gemini/antigravity-cli/brain/12fc3f23-17c6-442c-9554-505e87d2791f/.system_generated/tasks/task-468.log", "sourceMetadata":{"tool":{"conversationId":"12fc3f23-17c6-442c-9554-505e87d2791f", "stepIndex":468, "toolCall":{"id":"call_7966711675072297724", "name":"run_command", "argumentsJson":"{\"CommandLine\":\"/root/telegram-saas/.venv/bin/pytest -v\",\"WaitMsBeforeAsync\":10000,\"toolSummary\":\"Run pytest test suite\"}", "thinkingSignature":"EqwBCqkBAWkUfRN5dkZvkAE5IIQEuu6QxcJMVkKTmZzwe5nVfy6DXKZOG60NZ1WZZuEsYyoEbIrzp1jNDSM5yqNHyDvJn3iwdEzsv6xkSXVu6/W1mkYnC94IHTK9gA4Ad7cEU7PJw3PVh3riWMaKDScWTiXrGSwJ84iS771fAa4gR7jDoidBiHT1JnVI2Fw4VZPcndZWWXk6tDrMQMRU8Akqtk2YfFU2KKk7wmNTkQ=="}}}}