返回 Skill 列表
extension
分类: 开发与工程无需 API Key

oe-integration-mode-smoke

安全地对“集成模式”进行冒烟测试(Supabase + 可选的实时OpenAI集成测试)。在调试仅生产环境差异、验证Supabase连接性或运行后端/集成测试而不将每次本地运行都变成部署时使用。

person作者: jakexiaohubgithub

oe-integration-mode-smoke

Supabase connectivity (fastest signal)

  1. Export required env vars:

    • export OE_INTEGRATION_MODE=supabase
    • export OE_SUPABASE_URL=...
    • export OE_SUPABASE_KEY=...
    • export OE_TEAM_ID=...
    • export OE_SYSTEM_USER_ID=...
    • (optional) export OE_EMAIL_ACCOUNT_ID=...
  2. Run the built-in connection validator:

    • python -m backend.workflows.io.integration.test_connection

Live OpenAI integration lane (only when explicitly needed)

  1. Export integration test env vars:

    • export AGENT_MODE=openai
    • export OPENAI_TEST_MODE=1
    • export OPENAI_API_KEY=...
  2. Run the integration tests:

    • pytest backend/tests_integration/ -v

If a test fails

  • Prefer fixing the contract in the integration adapter layer first:
    • backend/workflows/io/integration/adapter.py
    • backend/workflows/io/integration/field_mapping.py
    • backend/workflows/io/integration/status_utils.py