← 返回列表
全部 Skill›DevOps›smoke-test

smoke-test

作者 @bytedance · 语言 en
End-to-end smoke test skill for DeerFlow. Guides through: 1) Pulling latest code, 2) Docker OR Local installation and deployment (user preference, default to Local if Docker network issues), 3) Service availability verification, 4) Health check, 5) Final test report. Use when the user says "run smoke test", "smoke test deployment", "verify installation", "test service availability", "end-to-end test", or similar.
DevOpsGit 工作流需海外环境执行命令访问网络敏感路径待翻译
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
85,760
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

DeerFlow Smoke Test Skill

This skill guides the Agent through DeerFlow's full end-to-end smoke test workflow, including code updates, deployment (supporting both Docker and local installation modes), service availability verification, and health checks.

Deployment Mode Selection

This skill supports two deployment modes:

  • Local installation mode (recommended, especially when network issues occur) - Run all services directly on the local machine
  • Docker mode - Run all services inside Docker containers

Selection strategy:

  • If the user explicitly asks for Docker mode, use Docker
  • If network issues occur (such as slow image pulls), automatically switch to local mode
  • Default to local mode whenever possible

Structure

smoke-test/
├── SKILL.md                          ← You are here - core workflow and logic
├── scripts/
│   ├── check_docker.sh               ← Check the Docker environment
│   ├── check_local_env.sh            ← Check local environment dependencies
│   ├── frontend_check.sh             ← Frontend page smoke check
│   ├── pull_code.sh                  ← Pull the latest code
│   ├── deploy_docker.sh              ← Docker deployment
│   ├── deploy_local.sh               ← Local deployment
│   └── health_check.sh               ← Service health check
├── references/
│   ├── SOP.md                        ← Standard operating procedure
│   └── troubleshooting.md            ← Troubleshooting guide
└── templates/
    ├── report.local.template.md      ← Local mode smoke test report template
    └── report.docker.template.md     ← Docker mode smoke test report template

Standard Operating Procedure (SOP)

Phase 1: Code Update Check

  1. Confirm current directory - Verify that the current working directory is the DeerFlow project root
  2. Check Git status - See whether there are uncommitted changes
  3. Pull the latest code - Use git pull origin main to get the latest updates
  4. Confirm code update - Verify that the latest code was pulled successfully

Phase 2: Deployment Mode Selection and Environment Check

Choose deployment mode:

  • Ask for user preference, or choose automatically based on network conditions
  • Default to local installation mode

Local mode environment check:

  1. Check Node.js version - Requires 22+
  2. Check pnpm - Package manager
  3. Check uv - Python package manager
  4. Check nginx - Reverse proxy
  5. Check required ports - Confirm that ports 2026, 3000, and 8001 are not occupied

Docker mode environment check (if Docker is selected):

  1. Check whether Docker is installed - Run docker --version
  2. Check Docker daemon status - Run docker info
  3. Check Docker Compose availability - Run docker compose version
  4. Check required ports - Confirm that port 2026 is not occupied

Phase 3: Configuration Preparation

  1. Check whether config.yaml exists
  • If it does not exist, run make config to generate it
  • If it already exists, check whether it needs an upgrade with make config-upgrade
  1. Check the .env file
  • Verify that required environment variables are configured
  • Especially model API keys such as OPENAI_API_KEY

Phase 4: Deployment Execution

Local mode deployment:

  1. Check dependencies - Run make check
  2. Install dependencies - Run make install
  3. (Optional) Pre-pull the sandbox image - If needed, run make setup-sandbox
  4. Start services - Run make start (production mode)
  5. Wait for startup - Give all services enough time to start completely (90-120 seconds recommended)

Docker mode deployment (if Docker is selected):

  1. Initialize Docker environment - Run make docker-init
  2. Start Docker services - Run make up (production mode)
  3. Wait for startup - Give all containers enough time to start completely (60 seconds recommended)

Phase 5: Service Health Check

Local mode health check:

  1. Check process status - Confirm that Gateway, Frontend, and Nginx processes are all running
  2. Check frontend service - Visit http://localhost:2026 and verify that the page loads
  3. Check API Gateway - Verify the http://localhost:2026/health endpoint
  4. Check LangGraph-compatible API - Verify the /api/langgraph/* route exposed by Gateway
  5. Frontend route smoke check - Run bash .agent/skills/smoke-test/scripts/frontend_check.sh to verify key routes under /workspace. When authentication is enabled, first finish setup and supply credentials for an existing test account as described below.

Docker mode health check (when using Docker):

  1. Check container status - Run docker ps and confirm that all containers are running
  2. Check frontend service - Visit http://localhost:2026 and verify that the page loads
  3. Check API Gateway - Verify the http://localhost:2026/health endpoint
  4. Check LangGraph-compatible API - Verify the /api/langgraph/* route exposed by Gateway
  5. Frontend route smoke check - Run bash .agent/skills/smoke-test/scripts/frontend_check.sh to verify key routes under /workspace. When authentication is enabled, first finish setup and supply credentials for an existing test account as described below.

Optional Functional Verification

  1. List available models - Verify that model configuration loads correctly
  2. List available skills - Verify that the skill directory is mounted correctly
  3. Simple chat test - Send a simple message to verify the end-to-end
评论
Bbytedance
bytedance
bytedance/deer-flow
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@bytedance
所属大类DevOps / Git 工作流
国内可用性需海外环境
最近源活动—
风险提示执行命令、访问网络、敏感路径
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。