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

Run a Fail-Then-Pass Replay Before an OSS Fix

说明与用途

创建可重现的 fail‑then‑pass 门,以确保补丁真正修复原始错误,并且仅在通过测试后才通过。

问题

Maintainers cannot verify that a patch fixes a bug if the failure is not reproducible locally, leading to speculative diffs and unreliable reviews.

结果

The workflow creates a reproducible gate that ties a patch to a concrete failing command and a passing outcome, improving review reliability and reducing speculative changes.

工作流

  • 1. Isolate a worktree at the issue tag and record the SHA.
  • 2. Write a regression test that reproduces the failure and captures the fail needle.
  • 3. Run the test to prove the failure and capture the fail log.
  • 4. Apply the minimal patch to the production code.
  • 5. Re-run the test to produce a pass log and verify the pass needle while ensuring the fail needle is absent.
  • 6. Automate the gate with a script that checks both logs for the required needles.

证据

This workflow pins one issue to one command.

来源

The artifact is a fail-then-pass replay gate.

来源

  • 记录日期: 2026-09-22T19:30:41.512Z