AGENT SKILL

CI 端到端测试失败排查

ci-e2e-debug

下载并检查 GitHub Actions artifacts 中的 CI 端到端(e2e)测试日志。在调查 CI 中的 e2e 测试失败时使用。

适用职业测试工程师
License 许可
Apache-2.0
所属仓库
apache/skywalking
最近更新
2026-11-15
Stars
★ 2.5w
Forks
6.6k

01 前言 Front Matter

name
ci-e2e-debug
description
Download and inspect CI e2e test logs from GitHub Actions artifacts. Use when investigating e2e test failures in CI.
argument-hint
<RUN_ID or GitHub Actions URL>

03 SKILL.md 正文

CI E2E Debug Skill

Download test log artifacts from a GitHub Actions CI run and inspect them for errors.

Steps

  1. Find the artifact: Use gh api to list artifacts for the given CI run:

    gh api repos/apache/skywalking/actions/runs/<RUN_ID>/artifacts --jq '.artifacts[] | {id: .id, name: .name}'
    
  2. Download and extract: Download the artifact zip and extract it:

    cd /tmp && rm -rf e2e-debug-logs && mkdir e2e-debug-logs && cd e2e-debug-logs
    gh api repos/apache/skywalking/actions/artifacts/<ARTIFACT_ID>/zip > artifact.zip
    unzip -o artifact.zip
    
  3. Inspect OAP logs: Look for errors in the OAP server logs:

    # Find OAP log files
    find /tmp/e2e-debug-logs -name "skywalking-oap-*.log" -o -name "oap.log"
    # Check for errors
    grep -E "ERROR|Exception|FATAL|CannotCompileException" <log_file> | head -30
    
  4. Inspect other component logs: Check BanyanDB, UI, and other pod logs as needed.

  5. Report findings: Summarize the root cause error from the logs.

Notes

  • CI artifacts are automatically uploaded by the e2e test framework to $SW_INFRA_E2E_LOG_DIR
  • Log files are organized by namespace/pod name
  • OAP init pods may have different errors than the main OAP pod — check all of them
  • Common errors: MAL/LAL/OAL compilation failures, storage connection issues, module initialization errors
  • Profile exporter tests (e.g., Trace Profiling ES): the exporter runs as a separate process with MockCoreModuleProvider. If a new service is added to CoreModule.services() but not registered in the mock, the exporter fails at startup with requiredCheck() error — but the OAP logs will show no errors (OAP is fine, the exporter subprocess is what fails). Check the test step that runs profile_exporter.sh.
  • When OAP logs are clean but tests fail: look at which specific test step failed. Some e2e tests invoke standalone tools (profile exporter, data generator) that boot with mock providers and may fail independently of OAP.

04 同仓库更多 Skills

apache
apache/skywalking

tal

Write, compile, inspect and verify Trace Analysis Language (TAL) rules for the OTLP and SkyWalking native (sw-native) inputs — rule files, the compiler and runtime map, dumping and decompiling the generated classes, the v1-v2 checker, the branch gate and the benchmark. Use when changing TAL rules, the TAL grammar/compiler, or the native trace analysis.

★ 2.5w
apache
apache/skywalking

单元与集成测试运行

test

运行单元测试、集成测试或与 CI 一致的慢速集成测试。用于在提交 PR 前验证变更。

测试工程师测试与质量保障
★ 2.5w
apache
apache/skywalking

SkyWalking E2E 测试运行

run-e2e

在本地运行 SkyWalking E2E 测试。

测试工程师测试与质量保障
★ 2.5w
apache
apache/skywalking

SkyWalking 发行版与镜像重建

package

在源码变更后重新构建 SkyWalking 发行版和 OAP Docker 镜像。在运行 e2e 测试前使用,以确保镜像反映你的代码改动,避免“镜像看似已更新但运行时仍是旧 jar”的陷阱。

软件开发工程师开发环境与工具链管理
★ 2.5w
apache
apache/skywalking

SkyWalking 监控功能扩展开发

new-monitoring-feature

为 SkyWalking OAP 添加新的监控目标 / 层级。引导你了解 OAL / MAL / LAL / TAL / SpanListener 扩展点、UI 模板与子模块的接入点、必须同步变更的文档集合,以及不属于任何单一技能的跨领域陷阱。

软件开发工程师运维监控与告警
★ 2.5w
apache
apache/skywalking

Apache 许可证头与依赖合规检查

license

使用 skywalking-eyes 检查并修复 Apache 2.0 许可证头及依赖许可证。在提交 PR 前使用。

软件开发工程师开发环境与工具链管理
★ 2.5w