ln-514-regression-checker

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Paths: File paths (
shared/
,
references/
,
../ln-*
) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.
路径说明: 文件路径(
shared/
references/
../ln-*
)是相对于技能仓库根目录的。如果在当前工作目录(CWD)中未找到,请定位到本SKILL.md所在目录,然后向上一级即可到达仓库根目录。

Regression Checker

回归检查器

Runs the existing test suite to ensure no regressions after implementation changes.
运行现有测试套件,确保代码实现变更后不会出现回归问题。

Purpose & Scope

目标与适用范围

  • Detect test framework (pytest/jest/vitest/go test/etc.) and test dirs.
  • Execute full suite; capture results for Story quality gate.
  • Return PASS/FAIL with counts/log excerpts; never modifies Linear or kanban.
  • 自动检测测试框架(pytest/jest/vitest/go test等)及测试目录。
  • 执行完整测试套件;捕获测试结果以用于Story质量门禁检查。
  • 返回包含测试通过/失败数量及日志片段的结果;绝不会修改Linear或看板任务。

When to Use

使用场景

  • Invoked by ln-510-quality-coordinator Pass 1 (after ln-511 and ln-513)
  • Code quality check passed
  • 由ln-510-quality-coordinator调用 第一阶段(在ln-511和ln-513之后执行)
  • 代码质量检查已通过

Workflow (concise)

工作流程(精简版)

  1. Auto-discover test framework per
    shared/references/ci_tool_detection.md
    Command Registry (Test Frameworks section).
  2. Read
    docs/project/runbook.md
    — get exact test commands, Docker setup, environment variables. Runbook commands take priority over auto-detection (per ci_tool_detection.md Discovery Hierarchy).
  3. Build appropriate test command; run with timeout (5min per ci_tool_detection.md); capture stdout/stderr.
  4. Parse results: passed/failed counts; key failing tests.
  5. Output verdict JSON (PASS or FAIL + failures list) and add Linear comment.
  1. 根据
    shared/references/ci_tool_detection.md
    命令注册表(测试框架章节)自动发现测试框架。
  2. 读取
    docs/project/runbook.md
    — 获取准确的测试命令、Docker配置及环境变量。Runbook中定义的命令优先级高于自动检测结果(遵循ci_tool_detection.md中的发现层级规则)。
  3. 构建合适的测试命令;设置超时时间执行(根据ci_tool_detection.md为5分钟);捕获标准输出和错误输出。
  4. 解析测试结果:统计通过/失败数量;提取关键失败测试信息。
  5. 输出包含判定结果的JSON(PASS或FAIL + 失败测试列表),并在Linear中添加评论。

Critical Rules

核心规则

  • No selective test runs; run full suite.
  • Do not fix tests or change status; only report.
  • Language preservation in comment (EN/RU).
  • 不得选择性执行测试;必须运行完整测试套件。
  • 不得修复测试或更改任务状态;仅进行结果报告。
  • 评论内容保留原语言(英文/俄文)。

Definition of Done

完成标准

  • Framework detected; command executed.
  • Results parsed; verdict produced with failing tests (if any).
  • Linear comment posted with summary.
  • 已检测到测试框架;已执行测试命令。
  • 已解析测试结果;已生成包含失败测试(如有)的判定结果。
  • 已在Linear中发布包含测试摘要的评论。

Reference Files

参考文件

  • Risk-based limits used downstream:
    ../shared/references/risk_based_testing_guide.md
  • CI tool detection:
    shared/references/ci_tool_detection.md

Version: 3.1.0 Last Updated: 2026-01-09
  • 下游使用的基于风险的测试限制:
    ../shared/references/risk_based_testing_guide.md
  • CI工具检测:
    shared/references/ci_tool_detection.md

版本: 3.1.0 最后更新时间: 2026-01-09