[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACMD8QGRT0Z5BPV11SKQK2":3,"skill-same:01M6ACMD8QGRT0Z5BPV11SKQK2":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":52,"ownerDescription":17,"updatedAt":53,"install":54,"resources":66},"01M6ACMD8QGRT0Z5BPV11SKQK2","plugin-test","SkyWalking Python 插件测试","Build Docker test images and run SkyWalking Python plugin\u002Funit\u002Fe2e tests locally, mirroring the CI pipeline","构建 Docker 测试镜像，并在本地运行 SkyWalking Python 插件测试、单元测试和端到端（e2e）测试，复现 CI 流水线。","apache\u002Fskywalking-python","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6ACM8JFAMZWSSASQPBT71H6",220,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fskywalking-python\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fplugin-test\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38],"test","plugin","plugin test","python","docker","e2e tests","run","skywalking","2026-11-10 10:12:30",false,"---\nname: plugin-test\ndescription: Build Docker test images and run SkyWalking Python plugin\u002Funit\u002Fe2e tests locally, mirroring the CI pipeline\nuser-invocable: true\n---\n\n# Run Plugin Tests Locally\n\nThis skill runs the same tests that CI runs, but locally. Ask the user what they want to test, or infer from recent changes.\n\n## Options\n\nThe user can specify:\n- **Scope**: `all`, `unit`, a plugin name (e.g., `flask`, `redis`), a category (`data`, `http`, `web`), or `e2e`\n- **Python version**: e.g., `3.11` (default: `3.11-slim` for Docker image)\n- **Rebuild image**: whether to rebuild the Docker image (default: only if not already built)\n\nIf the user just says `\u002Fplugin-test` with no args, ask what to test.\n\n## Prerequisites Check\n\nBefore running tests, verify:\n```bash\n# Check Docker is running\ndocker info > \u002Fdev\u002Fnull 2>&1 || echo \"ERROR: Docker is not running\"\n\n# Check Poetry is available\npoetry --version || echo \"ERROR: Poetry not found, run 'make poetry'\"\n\n# Check if environment is set up\npoetry env info > \u002Fdev\u002Fnull 2>&1 || echo \"WARNING: Poetry env not set up, will run 'make env'\"\n```\n\nIf prerequisites fail, help the user fix them before proceeding.\n\n## Step 1: Setup Environment (if needed)\n\n```bash\nmake env\n```\n\nThis installs Poetry and all dependencies including dev and plugin groups.\n\n## Step 2: Build Plugin Test Docker Image\n\nThe plugin test image must be built before running any plugin integration tests (not needed for unit tests).\n\n```bash\n# Default Python version\ndocker build --build-arg BASE_PYTHON_IMAGE=3.11-slim \\\n  -t apache\u002Fskywalking-python-agent:latest-plugin --no-cache \\\n  . -f tests\u002Fplugin\u002FDockerfile.plugin\n```\n\nTo test with a specific Python version:\n```bash\ndocker build --build-arg BASE_PYTHON_IMAGE=3.12-slim \\\n  -t apache\u002Fskywalking-python-agent:latest-plugin --no-cache \\\n  . -f tests\u002Fplugin\u002FDockerfile.plugin\n```\n\n**Important**: The image tag is always `apache\u002Fskywalking-python-agent:latest-plugin` — this is what docker-compose files reference. Rebuilding with a different Python version replaces it.\n\n### Testing Multiple Python Versions\n\nThe Python version **inside the Docker container** (not the host) determines what Python the plugin runs under. To test multiple versions, rebuild the image for each:\n\n```bash\n# Test with Python 3.11\ndocker build --build-arg BASE_PYTHON_IMAGE=3.11-slim \\\n  -t apache\u002Fskywalking-python-agent:latest-plugin --no-cache . \\\n  -f tests\u002Fplugin\u002FDockerfile.plugin\npoetry run pytest -v tests\u002Fplugin\u002Fweb\u002Fsw_flask\u002F\n\n# Then test with Python 3.13\ndocker build --build-arg BASE_PYTHON_IMAGE=3.13-slim \\\n  -t apache\u002Fskywalking-python-agent:latest-plugin --no-cache . \\\n  -f tests\u002Fplugin\u002FDockerfile.plugin\npoetry run pytest -v tests\u002Fplugin\u002Fweb\u002Fsw_flask\u002F\n```\n\nCI does this as a matrix (builds images for each Python version in parallel, then runs all tests against each). Locally, you rebuild and re-run sequentially.\n\n**Available Python base images**: `3.9-slim`, `3.10-slim`, `3.11-slim`, `3.12-slim`, `3.13-slim`, `3.14-slim`\n\nCheck if image already exists:\n```bash\ndocker images apache\u002Fskywalking-python-agent:latest-plugin --format \"{{.ID}} {{.CreatedAt}}\"\n```\n\nIf it exists and is recent, ask the user if they want to rebuild or which Python version to use (rebuilding takes ~1-2 minutes).\n\n## Step 3: Run Tests\n\n### Unit Tests (no Docker needed)\n```bash\npoetry run pytest -v tests\u002Funit\u002F\n```\n\n### Single Plugin Test\nMap the plugin name to its test path:\n- Web frameworks: `tests\u002Fplugin\u002Fweb\u002Fsw_\u003Cname>\u002F`\n- HTTP clients: `tests\u002Fplugin\u002Fhttp\u002Fsw_\u003Cname>\u002F`\n- Data stores: `tests\u002Fplugin\u002Fdata\u002Fsw_\u003Cname>\u002F`\n\n```bash\npoetry run pytest -v tests\u002Fplugin\u002Fweb\u002Fsw_flask\u002F\npoetry run pytest -v tests\u002Fplugin\u002Fdata\u002Fsw_redis\u002F\npoetry run pytest -v tests\u002Fplugin\u002Fhttp\u002Fsw_requests\u002F\n```\n\n### Plugin Category\n```bash\npoetry run pytest -v tests\u002Fplugin\u002Fdata\u002F    # All data plugins\npoetry run pytest -v tests\u002Fplugin\u002Fhttp\u002F    # All HTTP plugins\npoetry run pytest -v tests\u002Fplugin\u002Fweb\u002F     # All web plugins\n```\n\n### All Tests\n```bash\npoetry run pytest -v tests\u002Funit\u002F tests\u002Fplugin\u002Fdata\u002F tests\u002Fplugin\u002Fhttp\u002F tests\u002Fplugin\u002Fweb\u002F\n```\n\n### E2E Tests\nE2E tests need a separate Docker image and use SkyWalking infra-e2e:\n```bash\n# Build E2E image\ndocker build --build-arg BASE_PYTHON_IMAGE=3.11-slim \\\n  -t apache\u002Fskywalking-python-agent:latest-e2e --no-cache \\\n  . -f tests\u002Fe2e\u002Fbase\u002FDockerfile.e2e\n\n# E2E tests use infra-e2e framework, not pytest directly\n# They are defined in tests\u002Fe2e\u002Fcase\u002F*\u002Fe2e.yaml\n```\n\nNote: E2E tests require the `e2e` CLI tool from SkyWalking infra-e2e. They are typically only run in CI. Inform the user if they ask for E2E.\n\n## Version Format in support_matrix\n\nUse `.*` wildcard to always test the **latest patch** of each minor version:\n```python\nsupport_matrix = {\n    'falcon': {\n        '>=3.13': ['4.*'],         # latest falcon 4.x\n        '>=3.10': ['3.1.*', '4.*'],\n    }\n}\n```\n\n- `'4.*'` → pip installs `falcon==4.*` → latest 4.x (e.g., 4.2.0 today, 4.3.0 when released)\n- `'4.2.*'` → pip installs `falcon==4.2.*` → latest 4.2.x patch\n- `'4.2'` → pip installs `falcon==4.2` → always 4.2.0 (misses patches)\n\n**Convention**: use `major.*` (e.g., `'4.*'`) when the plugin supports the whole major version, or `minor.*` (e.g., `'3.11.*'`) when only specific minors are tested. This keeps CI testing fresh and the Plugins.md doc meaningful.\n\n## Step 4: Interpret Results\n\n### Success\nAll tests pass with green output. Report the summary.\n\n### Failure - Docker Compose Timeout\n```\nWait time exceeded 150 secs\n```\nThis means services didn't start. Check:\n1. Is Docker running with enough resources?\n2. Is port 9090\u002F9091\u002F12800\u002F19876 already in use? (`lsof -i :9090`)\n3. Check Docker logs: `docker compose -f tests\u002Fplugin\u002F\u003Ccategory>\u002Fsw_\u003Cname>\u002Fdocker-compose.yml logs`\n\n### Failure - Validation Mismatch\nThe test prints a diff between expected and actual span data. Common causes:\n- Wrong `componentId` in expected.data.yml\n- Missing or extra spans\n- Tag values don't match\n- Operation name mismatch\n\n### Failure - Import\u002FInstall Error\nPlugin library failed to install in Docker. Check:\n- Library version compatibility with Python version\n- requirements.txt content in the test directory\n- Docker compose command for the service\n\n### Failure - Permanent 502 \u002F Empty Segments\n**IMPORTANT: Check your HTTP proxy first!** If `http_proxy` or `https_proxy` environment variables are set, ALL test HTTP requests (prepare, validate) go through the proxy instead of reaching Docker containers directly. This causes 502 responses and empty segment data.\n\n```bash\n# Check for proxy\necho $http_proxy $https_proxy\n\n# Run tests without proxy\nexport http_proxy=\"\" https_proxy=\"\" no_proxy=\"*\" NO_PROXY=\"*\"\npoetry run pytest -v tests\u002Fplugin\u002Fweb\u002Fsw_flask\u002F\n```\n\nIf still failing after clearing proxy:\n- Check container logs: `docker logs sw_\u003Cname>-consumer-1`\n- Look for whether the service actually started\n- Debug in foreground: `docker compose -f \u003Cpath>\u002Fdocker-compose.yml up`\n- Check ports: `lsof -i :9090 -i :9091 -i :12800`\n\n## Plugin Name to Test Path Mapping\n\n| Plugin | Test Path |\n|--------|-----------|\n| flask | tests\u002Fplugin\u002Fweb\u002Fsw_flask\u002F |\n| django | tests\u002Fplugin\u002Fweb\u002Fsw_django\u002F |\n| fastapi | tests\u002Fplugin\u002Fweb\u002Fsw_fastapi\u002F |\n| sanic | tests\u002Fplugin\u002Fweb\u002Fsw_sanic\u002F |\n| tornado | tests\u002Fplugin\u002Fweb\u002Fsw_tornado\u002F |\n| bottle | tests\u002Fplugin\u002Fweb\u002Fsw_bottle\u002F |\n| pyramid | tests\u002Fplugin\u002Fweb\u002Fsw_pyramid\u002F |\n| falcon | tests\u002Fplugin\u002Fweb\u002Fsw_falcon\u002F |\n| grpc | tests\u002Fplugin\u002Fweb\u002Fsw_grpc\u002F |\n| requests | tests\u002Fplugin\u002Fhttp\u002Fsw_requests\u002F |\n| urllib3 | tests\u002Fplugin\u002Fhttp\u002Fsw_urllib3\u002F |\n| aiohttp | tests\u002Fplugin\u002Fhttp\u002Fsw_aiohttp\u002F |\n| httpx | tests\u002Fplugin\u002Fhttp\u002Fsw_httpx\u002F |\n| http | tests\u002Fplugin\u002Fhttp\u002Fsw_http\u002F |\n| http_wsgi | tests\u002Fplugin\u002Fhttp\u002Fsw_http_wsgi\u002F |\n| websockets | tests\u002Fplugin\u002Fhttp\u002Fsw_websockets\u002F |\n| redis | tests\u002Fplugin\u002Fdata\u002Fsw_redis\u002F |\n| pymongo | tests\u002Fplugin\u002Fdata\u002Fsw_pymongo\u002F |\n| pymysql | tests\u002Fplugin\u002Fdata\u002Fsw_pymysql\u002F |\n| mysqlclient | tests\u002Fplugin\u002Fdata\u002Fsw_mysqlclient\u002F |\n| psycopg | tests\u002Fplugin\u002Fdata\u002Fsw_psycopg\u002F |\n| psycopg2 | tests\u002Fplugin\u002Fdata\u002Fsw_psycopg2\u002F |\n| elasticsearch | tests\u002Fplugin\u002Fdata\u002Fsw_elasticsearch\u002F |\n| kafka | tests\u002Fplugin\u002Fdata\u002Fsw_kafka\u002F |\n| rabbitmq | tests\u002Fplugin\u002Fdata\u002Fsw_rabbitmq\u002F |\n| pulsar | tests\u002Fplugin\u002Fdata\u002Fsw_pulsar\u002F |\n| neo4j | tests\u002Fplugin\u002Fdata\u002Fsw_neo4j\u002F |\n| happybase | tests\u002Fplugin\u002Fdata\u002Fsw_happybase\u002F |\n| loguru | tests\u002Fplugin\u002Fdata\u002Fsw_loguru\u002F |\n\n## Useful Debug Commands\n\n```bash\n# Check what containers are running during a test\ndocker ps\n\n# Check container logs for a stuck test\ndocker compose -f tests\u002Fplugin\u002F\u003Ccategory>\u002Fsw_\u003Cname>\u002Fdocker-compose.yml logs\n\n# Clean up orphaned containers from failed tests\ndocker compose -f tests\u002Fplugin\u002F\u003Ccategory>\u002Fsw_\u003Cname>\u002Fdocker-compose.yml down --remove-orphans\n\n# Check what the mock collector received (while containers are running)\ncurl http:\u002F\u002Flocalhost:12800\u002FreceiveData\n\n# Validate expected data manually\ncurl -X POST http:\u002F\u002Flocalhost:12800\u002FdataValidate -d @tests\u002Fplugin\u002F\u003Ccategory>\u002Fsw_\u003Cname>\u002Fexpected.data.yml\n\n# Check if ports are in use\nlsof -i :9090 -i :9091 -i :12800 -i :19876\n\n# Run with verbose output\npoetry run pytest -v -s tests\u002Fplugin\u002Fweb\u002Fsw_flask\u002F\n```\n","# Run Plugin Tests Locally\n\nThis skill runs the same tests that CI runs, but locally. Ask the user what they want to test, or infer from recent changes.\n\n## Options\n\nThe user can specify:\n- **Scope**: `all`, `unit`, a plugin name (e.g., `flask`, `redis`), a category (`data`, `http`, `web`), or `e2e`\n- **Python version**: e.g., `3.11` (default: `3.11-slim` for Docker image)\n- **Rebuild image**: whether to rebuild the Docker image (default: only if not already built)\n\nIf the user just says `\u002Fplugin-test` with no args, ask what to test.\n\n## Prerequisites Check\n\nBefore running tests, verify:\n```bash\n# Check Docker is running\ndocker info > \u002Fdev\u002Fnull 2>&1 || echo \"ERROR: Docker is not running\"\n\n# Check Poetry is available\npoetry --version || echo \"ERROR: Poetry not found, run 'make poetry'\"\n\n# Check if environment is set up\npoetry env info > \u002Fdev\u002Fnull 2>&1 || echo \"WARNING: Poetry env not set up, will run 'make env'\"\n```\n\nIf prerequisites fail, help the user fix them before proceeding.\n\n## Step 1: Setup Environment (if needed)\n\n```bash\nmake env\n```\n\nThis installs Poetry and all dependencies including dev and plugin groups.\n\n## Step 2: Build Plugin Test Docker Image\n\nThe plugin test image must be built before running any plugin integration tests (not needed for unit tests).\n\n```bash\n# Default Python version\ndocker build --build-arg BASE_PYTHON_IMAGE=3.11-slim \\\n  -t apache\u002Fskywalking-python-agent:latest-plugin --no-cache \\\n  . -f tests\u002Fplugin\u002FDockerfile.plugin\n```\n\nTo test with a specific Python version:\n```bash\ndocker build --build-arg BASE_PYTHON_IMAGE=3.12-slim \\\n  -t apache\u002Fskywalking-python-agent:latest-plugin --no-cache \\\n  . -f tests\u002Fplugin\u002FDockerfile.plugin\n```\n\n**Important**: The image tag is always `apache\u002Fskywalking-python-agent:latest-plugin` — this is what docker-compose files reference. Rebuilding with a different Python version replaces it.\n\n### Testing Multiple Python Versions\n\nThe Python version **inside the Docker container** (not the host) determines what Python the plugin runs under. To test multiple versions, rebuild the image for each:\n\n```bash\n# Test with Python 3.11\ndocker build --build-arg BASE_PYTHON_IMAGE=3.11-slim \\\n  -t apache\u002Fskywalking-python-agent:latest-plugin --no-cache . \\\n  -f tests\u002Fplugin\u002FDockerfile.plugin\npoetry run pytest -v tests\u002Fplugin\u002Fweb\u002Fsw_flask\u002F\n\n# Then test with Python 3.13\ndocker build --build-arg BASE_PYTHON_IMAGE=3.13-slim \\\n  -t apache\u002Fskywalking-python-agent:latest-plugin --no-cache . \\\n  -f tests\u002Fplugin\u002FDockerfile.plugin\npoetry run pytest -v tests\u002Fplugin\u002Fweb\u002Fsw_flask\u002F\n```\n\nCI does this as a matrix (builds images for each Python version in parallel, then runs all tests against each). Locally, you rebuild and re-run sequentially.\n\n**Available Python base images**: `3.9-slim`, `3.10-slim`, `3.11-slim`, `3.12-slim`, `3.13-slim`, `3.14-slim`\n\nCheck if image already exists:\n```bash\ndocker images apache\u002Fskywalking-python-agent:latest-plugin --format \"{{.ID}} {{.CreatedAt}}\"\n```\n\nIf it exists and is recent, ask the user if they want to rebuild or which Python version to use (rebuilding takes ~1-2 minutes).\n\n## Step 3: Run Tests\n\n### Unit Tests (no Docker needed)\n```bash\npoetry run pytest -v tests\u002Funit\u002F\n```\n\n### Single Plugin Test\nMap the plugin name to its test path:\n- Web frameworks: `tests\u002Fplugin\u002Fweb\u002Fsw_\u003Cname>\u002F`\n- HTTP clients: `tests\u002Fplugin\u002Fhttp\u002Fsw_\u003Cname>\u002F`\n- Data stores: `tests\u002Fplugin\u002Fdata\u002Fsw_\u003Cname>\u002F`\n\n```bash\npoetry run pytest -v tests\u002Fplugin\u002Fweb\u002Fsw_flask\u002F\npoetry run pytest -v tests\u002Fplugin\u002Fdata\u002Fsw_redis\u002F\npoetry run pytest -v tests\u002Fplugin\u002Fhttp\u002Fsw_requests\u002F\n```\n\n### Plugin Category\n```bash\npoetry run pytest -v tests\u002Fplugin\u002Fdata\u002F    # All data plugins\npoetry run pytest -v tests\u002Fplugin\u002Fhttp\u002F    # All HTTP plugins\npoetry run pytest -v tests\u002Fplugin\u002Fweb\u002F     # All web plugins\n```\n\n### All Tests\n```bash\npoetry run pytest -v tests\u002Funit\u002F tests\u002Fplugin\u002Fdata\u002F tests\u002Fplugin\u002Fhttp\u002F tests\u002Fplugin\u002Fweb\u002F\n```\n\n### E2E Tests\nE2E tests need a separate Docker image and use SkyWalking infra-e2e:\n```bash\n# Build E2E image\ndocker build --build-arg BASE_PYTHON_IMAGE=3.11-slim \\\n  -t apache\u002Fskywalking-python-agent:latest-e2e --no-cache \\\n  . -f tests\u002Fe2e\u002Fbase\u002FDockerfile.e2e\n\n# E2E tests use infra-e2e framework, not pytest directly\n# They are defined in tests\u002Fe2e\u002Fcase\u002F*\u002Fe2e.yaml\n```\n\nNote: E2E tests require the `e2e` CLI tool from SkyWalking infra-e2e. They are typically only run in CI. Inform the user if they ask for E2E.\n\n## Version Format in support_matrix\n\nUse `.*` wildcard to always test the **latest patch** of each minor version:\n```python\nsupport_matrix = {\n    'falcon': {\n        '>=3.13': ['4.*'],         # latest falcon 4.x\n        '>=3.10': ['3.1.*', '4.*'],\n    }\n}\n```\n\n- `'4.*'` → pip installs `falcon==4.*` → latest 4.x (e.g., 4.2.0 today, 4.3.0 when released)\n- `'4.2.*'` → pip installs `falcon==4.2.*` → latest 4.2.x patch\n- `'4.2'` → pip installs `falcon==4.2` → always 4.2.0 (misses patches)\n\n**Convention**: use `major.*` (e.g., `'4.*'`) when the plugin supports the whole major version, or `minor.*` (e.g., `'3.11.*'`) when only specific minors are tested. This keeps CI testing fresh and the Plugins.md doc meaningful.\n\n## Step 4: Interpret Results\n\n### Success\nAll tests pass with green output. Report the summary.\n\n### Failure - Docker Compose Timeout\n```\nWait time exceeded 150 secs\n```\nThis means services didn't start. Check:\n1. Is Docker running with enough resources?\n2. Is port 9090\u002F9091\u002F12800\u002F19876 already in use? (`lsof -i :9090`)\n3. Check Docker logs: `docker compose -f tests\u002Fplugin\u002F\u003Ccategory>\u002Fsw_\u003Cname>\u002Fdocker-compose.yml logs`\n\n### Failure - Validation Mismatch\nThe test prints a diff between expected and actual span data. Common causes:\n- Wrong `componentId` in expected.data.yml\n- Missing or extra spans\n- Tag values don't match\n- Operation name mismatch\n\n### Failure - Import\u002FInstall Error\nPlugin library failed to install in Docker. Check:\n- Library version compatibility with Python version\n- requirements.txt content in the test directory\n- Docker compose command for the service\n\n### Failure - Permanent 502 \u002F Empty Segments\n**IMPORTANT: Check your HTTP proxy first!** If `http_proxy` or `https_proxy` environment variables are set, ALL test HTTP requests (prepare, validate) go through the proxy instead of reaching Docker containers directly. This causes 502 responses and empty segment data.\n\n```bash\n# Check for proxy\necho $http_proxy $https_proxy\n\n# Run tests without proxy\nexport http_proxy=\"\" https_proxy=\"\" no_proxy=\"*\" NO_PROXY=\"*\"\npoetry run pytest -v tests\u002Fplugin\u002Fweb\u002Fsw_flask\u002F\n```\n\nIf still failing after clearing proxy:\n- Check container logs: `docker logs sw_\u003Cname>-consumer-1`\n- Look for whether the service actually started\n- Debug in foreground: `docker compose -f \u003Cpath>\u002Fdocker-compose.yml up`\n- Check ports: `lsof -i :9090 -i :9091 -i :12800`\n\n## Plugin Name to Test Path Mapping\n\n| Plugin | Test Path |\n|--------|-----------|\n| flask | tests\u002Fplugin\u002Fweb\u002Fsw_flask\u002F |\n| django | tests\u002Fplugin\u002Fweb\u002Fsw_django\u002F |\n| fastapi | tests\u002Fplugin\u002Fweb\u002Fsw_fastapi\u002F |\n| sanic | tests\u002Fplugin\u002Fweb\u002Fsw_sanic\u002F |\n| tornado | tests\u002Fplugin\u002Fweb\u002Fsw_tornado\u002F |\n| bottle | tests\u002Fplugin\u002Fweb\u002Fsw_bottle\u002F |\n| pyramid | tests\u002Fplugin\u002Fweb\u002Fsw_pyramid\u002F |\n| falcon | tests\u002Fplugin\u002Fweb\u002Fsw_falcon\u002F |\n| grpc | tests\u002Fplugin\u002Fweb\u002Fsw_grpc\u002F |\n| requests | tests\u002Fplugin\u002Fhttp\u002Fsw_requests\u002F |\n| urllib3 | tests\u002Fplugin\u002Fhttp\u002Fsw_urllib3\u002F |\n| aiohttp | tests\u002Fplugin\u002Fhttp\u002Fsw_aiohttp\u002F |\n| httpx | tests\u002Fplugin\u002Fhttp\u002Fsw_httpx\u002F |\n| http | tests\u002Fplugin\u002Fhttp\u002Fsw_http\u002F |\n| http_wsgi | tests\u002Fplugin\u002Fhttp\u002Fsw_http_wsgi\u002F |\n| websockets | tests\u002Fplugin\u002Fhttp\u002Fsw_websockets\u002F |\n| redis | tests\u002Fplugin\u002Fdata\u002Fsw_redis\u002F |\n| pymongo | tests\u002Fplugin\u002Fdata\u002Fsw_pymongo\u002F |\n| pymysql | tests\u002Fplugin\u002Fdata\u002Fsw_pymysql\u002F |\n| mysqlclient | tests\u002Fplugin\u002Fdata\u002Fsw_mysqlclient\u002F |\n| psycopg | tests\u002Fplugin\u002Fdata\u002Fsw_psycopg\u002F |\n| psycopg2 | tests\u002Fplugin\u002Fdata\u002Fsw_psycopg2\u002F |\n| elasticsearch | tests\u002Fplugin\u002Fdata\u002Fsw_elasticsearch\u002F |\n| kafka | tests\u002Fplugin\u002Fdata\u002Fsw_kafka\u002F |\n| rabbitmq | tests\u002Fplugin\u002Fdata\u002Fsw_rabbitmq\u002F |\n| pulsar | tests\u002Fplugin\u002Fdata\u002Fsw_pulsar\u002F |\n| neo4j | tests\u002Fplugin\u002Fdata\u002Fsw_neo4j\u002F |\n| happybase | tests\u002Fplugin\u002Fdata\u002Fsw_happybase\u002F |\n| loguru | tests\u002Fplugin\u002Fdata\u002Fsw_loguru\u002F |\n\n## Useful Debug Commands\n\n```bash\n# Check what containers are running during a test\ndocker ps\n\n# Check container logs for a stuck test\ndocker compose -f tests\u002Fplugin\u002F\u003Ccategory>\u002Fsw_\u003Cname>\u002Fdocker-compose.yml logs\n\n# Clean up orphaned containers from failed tests\ndocker compose -f tests\u002Fplugin\u002F\u003Ccategory>\u002Fsw_\u003Cname>\u002Fdocker-compose.yml down --remove-orphans\n\n# Check what the mock collector received (while containers are running)\ncurl http:\u002F\u002Flocalhost:12800\u002FreceiveData\n\n# Validate expected data manually\ncurl -X POST http:\u002F\u002Flocalhost:12800\u002FdataValidate -d @tests\u002Fplugin\u002F\u003Ccategory>\u002Fsw_\u003Cname>\u002Fexpected.data.yml\n\n# Check if ports are in use\nlsof -i :9090 -i :9091 -i :12800 -i :19876\n\n# Run with verbose output\npoetry run pytest -v -s tests\u002Fplugin\u002Fweb\u002Fsw_flask\u002F\n```\n",{"name":5,"description":7,"user-invocable":44},true,"master","822db0379fa23bb5a1b2ac1077c68ba7bdbdc406",".claude\u002Fskills\u002Fplugin-test",114,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fskywalking-python","https:\u002F\u002Fskywalking.apache.org\u002F","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-03 14:54:11",{"source":9,"skillName":5,"commands":55,"prompt":65,"zipAvailable":44},[56,59,62],{"tool":57,"command":58},"npx","npx skills add apache\u002Fskywalking-python --skill plugin-test",{"tool":60,"command":61},"bunx","bunx skills add apache\u002Fskywalking-python --skill plugin-test",{"tool":63,"command":64},"pnpm","pnpm dlx skills add apache\u002Fskywalking-python --skill plugin-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Fskywalking-python\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fplugin-test\u002FSKILL.md",[67],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fapi-migrations.md","REFERENCE","参考文档",11171,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Freact19-source-patterns\u002Freferences\u002Fapi-migrations.md",[74],{"skillNo":75,"name":76,"nameZh":77,"description":78,"descriptionZh":79,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":80,"categories":81,"keywords":88,"publishedAt":39},"01M6ACMAE92HSCR7VG9RXM4VTA","new-plugin","SkyWalking Python 探针插件脚手架生成","Scaffold a new SkyWalking Python instrumentation plugin with all required files (plugin code, tests, docker-compose, expected data, services)","为新的 SkyWalking Python 探针插件生成脚手架，包含全部必需文件（插件代码、测试、docker-compose、预期数据、服务）。","https:\u002F\u002Fgithub.com\u002Fapache\u002Fskywalking-python\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fnew-plugin\u002FSKILL.md",[82,85],{"categoryNo":83,"categoryName":84,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":86,"categoryName":87,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",[32,89,34,35,90,91,38],"new plugin","scaffold","code"]