This job view page is being replaced by Spyglass soon. Check out the new job view.
PRbrianpursley: Add unit tests to cover existing behavior of three way merge and strategic merge patch
ResultFAILURE
Tests 0 failed / 0 succeeded
Started2021-07-29 14:24
Elapsed4m11s
Revision760cddaed13f1ddd12905a93b75536f64fc37eb4
Refs 4094

No Test Failures!


Error lines from build-log.txt

... skipping 1040 lines ...
?   	sigs.k8s.io/kustomize/kyaml/yaml/internal/k8sgen/pkg/selection	[no test files]
?   	sigs.k8s.io/kustomize/kyaml/yaml/internal/k8sgen/pkg/util/errors	[no test files]
?   	sigs.k8s.io/kustomize/kyaml/yaml/internal/k8sgen/pkg/util/sets	[no test files]
?   	sigs.k8s.io/kustomize/kyaml/yaml/internal/k8sgen/pkg/util/validation	[no test files]
?   	sigs.k8s.io/kustomize/kyaml/yaml/internal/k8sgen/pkg/util/validation/field	[no test files]
ok  	sigs.k8s.io/kustomize/kyaml/yaml/merge2	2.010s	coverage: 82.6% of statements
--- FAIL: TestMerge (1.97s)
    --- FAIL: TestMerge/A-C-B-D_Scenario_(THIS_ONE_FAILS) (0.00s)
        merge3_test.go:26: 
            	Error Trace:	merge3_test.go:26
            	Error:      	Not equal: 
            	            	expected: "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: test-deployment\nspec:\n  template:\n    spec:\n      containers:\n      - image: test-image\n        name: test-deployment\n        ports:\n        - containerPort: 8001\n          name: A\n          protocol: TCP\n        - containerPort: 8003\n          name: C\n          protocol: TCP\n        - containerPort: 8002\n          name: B\n          protocol: TCP\n        - containerPort: 8004\n          name: D\n          protocol: TCP"
            	            	actual  : "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: test-deployment\nspec:\n  template:\n    spec:\n      containers:\n      - image: test-image\n        name: test-deployment\n        ports:\n        - containerPort: 8003\n          name: C\n          protocol: TCP\n        - containerPort: 8004\n          name: D\n          protocol: TCP"
            	            	
            	            	Diff:
            	            	--- Expected
            	            	+++ Actual
... skipping 7 lines ...
            	            	-          protocol: TCP
            	            	-        - containerPort: 8002
            	            	-          name: B
            	            	           protocol: TCP
            	Test:       	TestMerge/A-C-B-D_Scenario_(THIS_ONE_FAILS)
            	Messages:   	A-C-B-D Scenario (THIS ONE FAILS)
FAIL
coverage: 87.8% of statements
FAIL	sigs.k8s.io/kustomize/kyaml/yaml/merge3	1.992s
ok  	sigs.k8s.io/kustomize/kyaml/yaml/schema	0.007s	coverage: 52.9% of statements
?   	sigs.k8s.io/kustomize/kyaml/yaml/walk	[no test files]
FAIL
make[1]: *** [Makefile:46: test] Error 1
make[1]: Leaving directory '/home/prow/go/src/sigs.k8s.io/kustomize/kyaml'
make: *** [Makefile:246: test-unit-cmd-all] Error 2