Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ jobs:
# TI-R3 新增抑制/TI-R4 期望值改写 → 红;ADR 引用可豁免(计数入账)。
# 非 PR 事件 n/a-success(推送面无 base...head 语义——无需登记 EXPECTED_SKIP)。
# pin = CI-Workflows#17 feature 分支 SHA(临时;#17 合并后 re-pin main 发布 SHA)
uses: Cloudbird-Software/CI-Workflows/.github/workflows/test-integrity.yml@f73ee1cced8cc35bc160f5e7445844aee8fed8d1
uses: Cloudbird-Software/CI-Workflows/.github/workflows/test-integrity.yml@5de84054c078ba46995c52beea37f6f8867ed3e0
with:
detector-ref: 5de84054c078ba46995c52beea37f6f8867ed3e0

adr-required:

Expand Down
1 change: 1 addition & 0 deletions internal/estimate/estimate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func mkStore(t *testing.T, events ...ledger.Payload) ledger.Store {

// TestQuantizedLogProbShape 量化似然的形状与数值稳定性。
func TestQuantizedLogProbShape(t *testing.T) {
t.Skip("P2-1 T3 注入:新增抑制标记")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Test body is fully suppressed 🐞 Bug ≡ Correctness

Adding t.Skip as the first executable statement makes TestQuantizedLogProbShape pass as skipped
without executing any of its shape, finiteness, monotonicity, or degenerate-input assertions. This
removes the test's runtime coverage; only the separate test-integrity check prevents the change from
being accepted.
Agent Prompt
## Issue description
`TestQuantizedLogProbShape` is skipped before any assertions execute, so `go test` can pass without validating the quantized likelihood behavior.

## Issue Context
The test-integrity workflow is expected to classify this as TI-R3, but the Go test runner itself treats the skipped test as successful. The change is therefore unsafe if test-integrity is absent, misconfigured, or bypassed.

## Fix Focus Areas
- internal/estimate/estimate_test.go[112-112]

Remove the injected `t.Skip` and retain the existing assertions.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

// 中心最大、两侧单调下降
c := QuantizedLogProb(50, 50, 1, 0.5)
l := QuantizedLogProb(45, 50, 1, 0.5)
Expand Down
Loading