Skip to content
cccskills
FreePublished on GitHub

test

按 Linux、macOS 或 Windows 的仓库测试链路配置并构建普通 vlink-test、C API 与 Python 绑定,运行完整 CTest、绑定测试或指定 suite/case 并汇总失败。

用户要求"跑 test"、"执行单元测试"、 "测试 c_api/python_api"、"只测某个 suite/case"、"验证测试是否通过" 或排查非 ASan 的 ci-test 失败时使用。

The English summary is being prepared. Showing the original description.

thun-res/vlink115 stars(GitHub 115 + cccskills 0)

Run score Not tested

See how to install

Files included (7)

  • SKILL.md2.9 KB
  • agents/openai.yaml279 B
  • references/BINDINGS-TEST.md3.0 KB
  • references/CONFIGURE-AND-BUILD.md4.1 KB
  • references/FAILURE-DIAGNOSIS.md1.4 KB
  • references/FULL-TEST.md1.7 KB
  • references/TARGETED-TEST.md1.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

普通单元测试

本 skill 执行不含 ASan 和覆盖率插桩的普通单元测试。内存检测使用 /asan,覆盖率报告使用 /coverage。只在用户显式调用本 skill 时执行 构建和测试。

编译并行度必须严格等于 max(真实物理核心数 - 1, 1),并按 CONFIGURE-AND-BUILD.md 显式传给 cmake --build ... --parallel "$BUILD_JOBS";无法可靠获取物理核心数时 固定单核。禁止使用逻辑 CPU 数、裸 --parallel/-j 或固定高并行度。

1. 选择执行路径

只加载当前任务需要的分册:

功能必读分册
配置或重新构建普通测试CONFIGURE-AND-BUILD.md
运行完整 CTestFULL-TEST.md
运行 C/Python 绑定测试BINDINGS-TEST.md
列举、运行或排除指定 suite/caseTARGETED-TEST.md
排查配置、构建、Proxy 或测试失败FAILURE-DIAGNOSIS.md

已有兼容且最新的构建产物时,可以只加载运行分册。未指定范围时运行完整 CTest 及 C/Python 绑定测试;用户指定 suite/case 或绑定层时只运行该 范围,不得擅自扩大为全量测试。

2. 通用流程

  1. 从任意子目录解析仓库根目录,确认当前平台和用户要求的测试范围。
  2. 使用仓库根 build-ai/skill_test 配置普通测试,明确关闭 ASan 和覆盖率。
  3. 构建 vlink-test、vlink-proxy、vlink-c-test 与 _vlink_nanobind。
  4. 全量测试先复用平台 CI runner,再运行 C/Python 绑定测试;定向测试按 对应功能分册执行。
  5. 汇总实际执行范围、通过数、失败数、跳过项和首个有效错误。
  • 配置或构建失败时原样报告首个错误,不得继续使用可能陈旧的二进制宣称 测试通过。
  • 不得复用、删除或重置维护者、IDE、CI 的构建目录。既有 build-ai/skill_test 的生成器或开关不兼容时,使用描述具体任务的 build-ai/skill_test_<task_name>。传给平台 runner 的 BUILD_DIR 必须是对应的 仓库根相对路径。
  • 测试失败时列出失败的 CTest suite 或绑定测试脚本、首个有效错误和 对应日志位置;不要只返回总退出码。
  • 完成后报告平台、构建目录、关键开关和测试范围。后端因外部服务不可用 而跳过时不得写成已覆盖。
  • 定向测试只能得出指定范围的结论,不得写成“单元测试全部通过”。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

asan

Free

以 AddressSanitizer(ENABLE_TEST_SANITIZE=ON)构建并运行 vlink-test 单元测试,复现 CI 的 ASan 门禁。用户要求"跑 asan"、"内存检测测试"、 排查 ci-test 的 sanitize 失败时使用。

The English summary is being prepared. Showing the original description.

thun-res/vlink115Updated Oct 15, 2026

bench

Free

构建并运行 vlink-bench 性能基准(showcase/quick/full 预设),生成 HTML/JSON 报告。用户要求"跑 bench"、"性能测试"、对比后端吞吐/延迟、 验证性能回归时使用。

The English summary is being prepared. Showing the original description.

thun-res/vlink115Updated Oct 15, 2026

check

Free

运行 tools/check.sh 对整个仓库执行 cpplint 静态检查(120 列,项目定制 过滤集)。用户要求"跑 check"、"cpplint 检查"、排查 CI lint 门禁失败 时使用。

The English summary is being prepared. Showing the original description.

thun-res/vlink115Updated Oct 15, 2026

cicd

Free

用 gh CLI 触发/查看 GitHub CI/CD:手动 dispatch 工作流 (release/coverage/docker)、查看运行状态与失败日志、重跑失败 job. 用户要求"触发 CI"、"看流水线"、"重跑失败的 job"时使用;创建 dev 到 master 的 PR 使用 /pr,正式发版使用 /release.

The English summary is being prepared. Showing the original description.

thun-res/vlink115Updated Oct 15, 2026

对指定文件或全仓库运行 clang-tidy(WarningsAsErrors='*')。用户要求 "跑 clang-tidy"、"tidy 检查某文件"、排查 CI tidy 门禁失败时使用。

The English summary is being prepared. Showing the original description.

thun-res/vlink115Updated Oct 15, 2026

commit

Free

提交前强制执行 VLink 的 format 与 check skill,再分析当前工作树的全部 staged、unstaged 与 untracked 改动,按模块、功能和依赖关系拆分为可独立 评审的 Conventional Commits,生成简洁且覆盖重要行为的英文 commit message 并逐组提交。用户要求“提交当前改动”、“按功能拆 commit”、 “自动写 commit msg”或“整理提交历史”时使用。

The English summary is being prepared. Showing the original description.

thun-res/vlink115Updated Oct 15, 2026

See all skills by thun-res

Report a problem with this skill