debug --test fixes are rarely held to the test suite
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with internal/engine/debug.go and internal/agent/fixcheck.go, then inspect internal/engine/debug_test.go for baseline and --test behavior. The issue identifies two implementation options, so first determine how test results are currently collected and whether per-test comparison or excluding the target test fits the existing runner. Run go test ./internal/engine ./internal/agent; done means the failing-target-plus-broken-test case is rejected and the verification message identifies the compared tests.
由索引模型根据 Issue 内容生成。
描述
Summary
Since #30, a debug fix is held to the project's test suite only when the suite passed on the unmodified code. In spackle debug --test <name> mode, the named test is failing by definition and is usually part of the suite, so the baseline fails and the suite is not used. In practice most --test fixes are verified only against the named test, and the verification sentence says "the test suite was not used because it does not pass on the unmodified code".
Where
internal/engine/debug.go(debugRun.baselineTests,debugRun.check)internal/agent/fixcheck.go(FixCheck, suite policy)
Impact
A debug fix that makes the target test pass but breaks other tests is accepted as verified, as long as the named test was failing in the baseline. The baseline rule is meant to avoid blaming a patch for an already broken suite, but here the suite is "broken" only by the failure the fix is meant to repair.
Suggested fix
One of:
- Compare failing tests before and after: reject a patch when a test that passed in the baseline fails after the patch. This needs per-test results (for example
go test -json, or JUnit output where the runner supports it). - Run the baseline suite with the named test excluded, where the runner allows it (
go test -skip,pytest --deselect, and so on), and hold the patch to that.
The first is more general. It may need a per-language parser of test results, so a decision on scope is needed.
Acceptance criteria
- In
--testmode, a patch that breaks a test that passed before is rejected. - The verification sentence says which tests were compared.
- Tests cover a patch that fixes the named test but breaks another.
Getting started
- Relevant files:
internal/engine/debug.go,internal/agent/fixcheck.go,internal/engine/debug_test.go - How to run tests:
go test ./internal/engine ./internal/agent
Related: #30
Filed by repo-audit/fix-issues at b041273. Severity: medium. Effort: M. audit-key: bug|internal/engine/debug.go|baselineTests
- 主要语言
- Go
- 星标
- 0
- 派生
- 1
- 平均合并
- 8 小时 14 分钟
- 30 天内合并 PR
- 3
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TMHSDigital/Spackle 的其他 Issue
-
ci good first issue severity: low
难度 2/5 1-3 小时 新手友好度 77/100
TMHSDigital/Spackle#206 ·
维护者通常 1 天内回复
-
ci severity: low
难度 2/5 1-3 小时 新手友好度 78/100
TMHSDigital/Spackle#205 ·
维护者通常 1 天内回复
-
bug good first issue severity: low
难度 2/5 1-3 小时 新手友好度 82/100
TMHSDigital/Spackle#199 ·
维护者通常 1 天内回复
-
bug good first issue severity: low
难度 2/5 1-3 小时 新手友好度 87/100
TMHSDigital/Spackle#195 ·
维护者通常 1 天内回复
-
documentation good first issue severity: medium
难度 1/5 1 小时以内 新手友好度 90/100
TMHSDigital/Spackle#188 ·
维护者通常 1 天内回复
查看 TMHSDigital/Spackle 的全部 Issue
相似的 Issue
-
bug effort:s impact:med raised-by:worker risk:low to:worker
难度 2/5 1-3 小时 新手友好度 78/100
medici-finance/assay#8120 · 1 条评论 ·
维护者通常 1 天内回复
-
factory:subtask
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
agent-substrate/substrate#4308 ·
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
celestiaorg/celestia-app#8877 ·
维护者通常 1 天内回复
-
sweep
难度 1/5 1 小时以内 新手友好度 84/100
bketelsen/truenas-mcp#112 ·
维护者通常 1 天内回复