Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Make the Failing Test the OSS Merge Token

说明与用途

该工作流描述了创建可重现测试的过程,该测试在主分支上失败,在修复分支上通过,从而确保补丁在合并前得到验证。

问题

Open‑source patches stall because reviewers cannot reproduce the bug; patches often start as failing tests rather than diffs, leading to uncertainty about whether the issue still exists.

结果

The workflow ensures that every patch is accompanied by a reproducible test that fails on the current main and passes on the fix branch, reducing uncertainty and improving patch quality.

工作流

  • Freeze the observable claim in repro.json
  • Add a hermetic failing test that reproduces the claim
  • Run the reproduction command on main and capture output
  • Create a branch for the issue and implement the minimal change
  • Run the reproduction command on the fix branch and verify success
  • Run the full test suite to ensure no regressions
  • Automate fail‑on‑main and pass‑on‑branch checks with tools/check_repro.sh

证据

A recorded reproduction command closes that exact gap.

来源

The reproduction test must fail on current main. The same test must pass on the fix branch.

来源

  • 记录日期: 2026-09-15T12:50:56.924Z