From d0bd3b7a1928e35efdf1a4c11d2c3b224ef1da48 Mon Sep 17 00:00:00 2001 From: Sebastian Spaink Date: Mon, 6 Jul 2026 18:15:50 -0500 Subject: [PATCH] topdown: fix partial-eval test rejected by new conflict check The 'partial set, general ref head' shallow-inlining test paired a set rule (p.q contains x) with an object-of-sets rule (p.q[r].s contains t) sharing the name p.q. That is exactly the set-vs-object conflict this change now rejects at compile time, and it panics at eval time on main, so the fixture is itself an invalid policy. Replace it with a single general-ref partial-set rule that keeps the shallow-inlining full-extent path under test, and update the expected support module. Signed-off-by: Sebastian Spaink --- v1/topdown/topdown_partial_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/v1/topdown/topdown_partial_test.go b/v1/topdown/topdown_partial_test.go index 56000d77c9..276877378b 100644 --- a/v1/topdown/topdown_partial_test.go +++ b/v1/topdown/topdown_partial_test.go @@ -1507,14 +1507,12 @@ func TestTopDownPartialEval(t *testing.T) { modules: []string{ `package test import future.keywords.contains - p.q contains x if { input.x = x } p.q[r].s contains t if { input.r = r; input.t = t }`, }, wantQueries: []string{`data.partial.test.p.q = x`}, wantSupport: []string{` package partial.test.p import future.keywords.contains - q contains x2 if { input.x = x2 } q[r1].s contains t1 if { input.r = r1; input.t = t1 } `}, },