为什么:CI 在 07a9caf 上 format 红(ds02_identity_test.go 未 gofmt),本地那次
make verify 跑在文件生成之前,不能算数;同时 /v1/encode 负控制只有断言、没有
落盘证据,复验时无法回看分类结果。
改了什么:gofmt 两个测试文件;负控制把实际出站条目与被判为 embedding 的差异
写进 raw(negative-control),正例仍只对发布段计数。
验证:make verify 16 项全绿;随后以新 SHA 重跑 DS02 隔离套件。
This commit is contained in:
@@ -75,4 +75,4 @@ func TestDS02ProcessIdentity(t *testing.T) {
|
||||
t.Fatalf("%s mismatch: process has %q, runner expected %q", item.name, item.linked, item.expected)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1249,7 +1249,9 @@ func TestDS02FullShapeOracleIsolated(t *testing.T) {
|
||||
}
|
||||
response.Body.Close()
|
||||
negative := recorder.entriesFor("negative-control")
|
||||
if len(ds02EgressDiffs(append(append([]ds02Egress{}, recorder.entriesFor("publish")...), negative...), inventory)) == 0 {
|
||||
negativeDiffs := ds02EgressDiffs(append(append([]ds02Egress{}, recorder.entriesFor("publish")...), negative...), inventory)
|
||||
r10Save(t, "negative-control", map[string]any{"entries": negative, "diffs_if_in_publish": negativeDiffs})
|
||||
if len(negativeDiffs) == 0 {
|
||||
t.Fatal("custom /v1/encode path was not classified as an embedding call")
|
||||
}
|
||||
if len(ds02EgressDiffs(recorder.entriesFor("publish"), inventory)) != 0 {
|
||||
|
||||
Reference in New Issue
Block a user