This job view page is being replaced by Spyglass soon. Check out the new job view.
PRmengqiy: kyaml/fn/framework ensures the annotation output format matches the input
ResultFAILURE
Tests 0 failed / 0 succeeded
Started2021-11-19 10:03
Elapsed5m18s
Revisionfb99a285f475c5357fbd2005f22a290e1c8c95b7
Refs 4297

No Test Failures!


Error lines from build-log.txt

... skipping 577 lines ...
cd krusty; OPENAPI_TEST=true go test -run TestCustomOpenAPIFieldFromComponentWithOverlays
?   	sigs.k8s.io/kustomize/api	[no test files]
?   	sigs.k8s.io/kustomize/api/builtins	[no test files]
?   	sigs.k8s.io/kustomize/api/filesys	[no test files]
?   	sigs.k8s.io/kustomize/api/filters	[no test files]
ok  	sigs.k8s.io/kustomize/api/filters/annotations	0.038s
--- FAIL: TestFilter_Filter (0.01s)
    --- FAIL: TestFilter_Filter/empty_path (0.00s)
        fieldspec_test.go:549: 
            	Error Trace:	fieldspec_test.go:549
            	Error:      	Error message not equal:
            	            	expected: "considering field '' of object\napiVersion: foo/v1\nkind: Bar\nxxx:\n: cannot set or create an empty field name"
            	            	actual  : "considering field '' of object\napiVersion: foo/v1\nkind: Bar\nxxx:\nmetadata:\n  annotations:\n    internal.config.k8s.io/resource-id: '0'\n: cannot set or create an empty field name"
            	Test:       	TestFilter_Filter/empty_path
    --- FAIL: TestFilter_Filter/miss-match-type (0.00s)
        fieldspec_test.go:549: 
            	Error Trace:	fieldspec_test.go:549
            	Error:      	Error message not equal:
            	            	expected: "considering field 'a/b/c' of object\nkind: Bar\na:\n  b: a\n: expected sequence or mapping node"
            	            	actual  : "considering field 'a/b/c' of object\nkind: Bar\na:\n  b: a\nmetadata:\n  annotations:\n    internal.config.k8s.io/resource-id: '0'\n: expected sequence or mapping node"
            	Test:       	TestFilter_Filter/miss-match-type
FAIL
FAIL	sigs.k8s.io/kustomize/api/filters/fieldspec	0.028s
?   	sigs.k8s.io/kustomize/api/filters/filtersutil	[no test files]
ok  	sigs.k8s.io/kustomize/api/filters/fsslice	0.027s
ok  	sigs.k8s.io/kustomize/api/filters/iampolicygenerator	0.019s
ok  	sigs.k8s.io/kustomize/api/filters/imagetag	0.034s
ok  	sigs.k8s.io/kustomize/api/filters/labels	0.031s
ok  	sigs.k8s.io/kustomize/api/filters/nameref	1.894s
ok  	sigs.k8s.io/kustomize/api/filters/namespace	2.024s
ok  	sigs.k8s.io/kustomize/api/filters/patchjson6902	0.016s
ok  	sigs.k8s.io/kustomize/api/filters/patchstrategicmerge	1.869s
ok  	sigs.k8s.io/kustomize/api/filters/prefixsuffix	0.025s
2021/11/19 10:05:00 MakePrimitiveReplacer: bad replacement type=map[string]int val=map[crazy:200]
--- FAIL: TestFilterUnhappy (0.00s)
    --- FAIL: TestFilterUnhappy/non-string_in_sequence (0.00s)
        refvar_test.go:296: 
            	Error Trace:	refvar_test.go:296
            	Error:      	Error message not equal:
            	            	expected: "considering field 'data/slice' of object\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: dep\n  annotations:\n    config.kubernetes.io/index: '0'\n    internal.config.kubernetes.io/index: '0'\ndata:\n  slice:\n  - false\n: invalid value type expect a string"
            	            	actual  : "considering field 'data/slice' of object\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: dep\n  annotations:\n    config.kubernetes.io/index: '0'\n    internal.config.kubernetes.io/index: '0'\n    internal.config.k8s.io/resource-id: '0'\ndata:\n  slice:\n  - false\n: invalid value type expect a string"
            	Test:       	TestFilterUnhappy/non-string_in_sequence
    --- FAIL: TestFilterUnhappy/invalid_key_in_map (0.00s)
        refvar_test.go:296: 
            	Error Trace:	refvar_test.go:296
            	Error:      	Error message not equal:
            	            	expected: "considering field 'data' of object\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: dep\n  annotations:\n    config.kubernetes.io/index: '0'\n    internal.config.kubernetes.io/index: '0'\ndata:\n  1: str\n: invalid map key: value='1', tag='!!int'"
            	            	actual  : "considering field 'data' of object\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: dep\n  annotations:\n    config.kubernetes.io/index: '0'\n    internal.config.kubernetes.io/index: '0'\n    internal.config.k8s.io/resource-id: '0'\ndata:\n  1: str\n: invalid map key: value='1', tag='!!int'"
            	Test:       	TestFilterUnhappy/invalid_key_in_map
FAIL
FAIL	sigs.k8s.io/kustomize/api/filters/refvar	0.020s
ok  	sigs.k8s.io/kustomize/api/filters/replacement	0.070s
ok  	sigs.k8s.io/kustomize/api/filters/replicacount	0.032s
ok  	sigs.k8s.io/kustomize/api/filters/valueadd	0.025s
ok  	sigs.k8s.io/kustomize/api/hasher	0.007s
?   	sigs.k8s.io/kustomize/api/ifc	[no test files]
ok  	sigs.k8s.io/kustomize/api/image	0.005s
... skipping 23 lines ...
ok  	sigs.k8s.io/kustomize/api/resource	1.669s
?   	sigs.k8s.io/kustomize/api/testutils/filtertest	[no test files]
?   	sigs.k8s.io/kustomize/api/testutils/kusttest	[no test files]
?   	sigs.k8s.io/kustomize/api/testutils/resmaptest	[no test files]
?   	sigs.k8s.io/kustomize/api/testutils/valtest	[no test files]
ok  	sigs.k8s.io/kustomize/api/types	0.039s
FAIL
PASS
ok  	sigs.k8s.io/kustomize/api/krusty	1.056s
cd kustomize; go test ./...
?   	sigs.k8s.io/kustomize/kustomize/v4	[no test files]
?   	sigs.k8s.io/kustomize/kustomize/v4/commands	[no test files]
ok  	sigs.k8s.io/kustomize/kustomize/v4/commands/build	0.069s
... skipping 521 lines ...
=== RUN   TestCmd_wrap
Command "wrap" is deprecated, this will no longer be available in kustomize v5.
See discussion in https://github.com/kubernetes-sigs/kustomize/issues/3953.
Command "xargs" is deprecated, this will no longer be available in kustomize v5.
See discussion in https://github.com/kubernetes-sigs/kustomize/issues/3953.
    cmdwrap_test.go:314: 
        	Error Trace:	cmdwrap_test.go:314
        	Error:      	Received unexpected error:
        	            	the annotation formatting in the input resources is not consistent
        	Test:       	TestCmd_wrap
--- FAIL: TestCmd_wrap (1.52s)
=== RUN   TestCmd_wrapNoMerge
Command "wrap" is deprecated, this will no longer be available in kustomize v5.
See discussion in https://github.com/kubernetes-sigs/kustomize/issues/3953.
Command "xargs" is deprecated, this will no longer be available in kustomize v5.
See discussion in https://github.com/kubernetes-sigs/kustomize/issues/3953.
--- PASS: TestCmd_wrapNoMerge (0.00s)
=== RUN   TestCmd_wrapOverride
Command "wrap" is deprecated, this will no longer be available in kustomize v5.
See discussion in https://github.com/kubernetes-sigs/kustomize/issues/3953.
Command "xargs" is deprecated, this will no longer be available in kustomize v5.
See discussion in https://github.com/kubernetes-sigs/kustomize/issues/3953.
    cmdwrap_test.go:372: 
        	Error Trace:	cmdwrap_test.go:372
        	Error:      	Received unexpected error:
        	            	the annotation formatting in the input resources is not consistent
        	Test:       	TestCmd_wrapOverride
--- FAIL: TestCmd_wrapOverride (0.01s)
=== RUN   TestRunFnCommand_preRunE
=== RUN   TestRunFnCommand_preRunE/config_map
=== RUN   TestRunFnCommand_preRunE/config_map_stdin_/_stdout
=== RUN   TestRunFnCommand_preRunE/config_map_dry-run
=== RUN   TestRunFnCommand_preRunE/config_map_no_args
=== RUN   TestRunFnCommand_preRunE/network_enabled
... skipping 376 lines ...
=== RUN   TestTreeCommand_stdin
--- PASS: TestTreeCommand_stdin (0.00s)
=== RUN   TestTreeCommand_includeReconcilers
--- PASS: TestTreeCommand_includeReconcilers (0.00s)
=== RUN   TestTreeCommand_excludeNonReconcilers
--- PASS: TestTreeCommand_excludeNonReconcilers (0.00s)
FAIL
coverage: 80.4% of statements
FAIL	sigs.k8s.io/kustomize/cmd/config/internal/commands	58.085s
go: downloading sigs.k8s.io/kustomize/kyaml v0.1.10
go: downloading github.com/spf13/pflag v1.0.3
go: downloading github.com/go-openapi/spec v0.19.5
go: downloading gopkg.in/yaml.v3 v3.0.0-20191120175047-4206685974f2
go: downloading github.com/go-openapi/jsonreference v0.19.2
go: downloading github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e
... skipping 7 lines ...
=== RUN   TestRunE2e/exec_function_no_args_json
=== RUN   TestRunE2e/exec_function_args
=== RUN   TestRunE2e/exec_function_config
=== RUN   TestRunE2e/exec_function_config_data
=== RUN   TestRunE2e/exec_function_config_disabled
    e2e_test.go:741: 
        	Error Trace:	e2e_test.go:741
        	Error:      	Not equal: 
        	            	expected: "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: foo"
        	            	actual  : "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: foo\n  annotations:\n    internal.config.k8s.io/resource-id: '1'"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
... skipping 12 lines ...
=== RUN   TestRunE2e/container_function_config#01
    e2e_test.go:704: 
=== RUN   TestRunE2e/starlark_function_config
=== RUN   TestRunE2e/starlark_function_path
=== RUN   TestRunE2e/starlark_function_url
=== RUN   TestRunE2e/starlark_function_url_config
--- FAIL: TestRunE2e (10.44s)
    --- PASS: TestRunE2e/exec_function_no_args (1.07s)
    --- PASS: TestRunE2e/exec_function_no_args_json (1.11s)
    --- PASS: TestRunE2e/exec_function_args (1.11s)
    --- PASS: TestRunE2e/exec_function_config (1.09s)
    --- PASS: TestRunE2e/exec_function_config_data (1.10s)
    --- FAIL: TestRunE2e/exec_function_config_disabled (0.01s)
    --- PASS: TestRunE2e/exec_function_no_enable (0.01s)
    --- SKIP: TestRunE2e/container_function_no_args (0.00s)
    --- SKIP: TestRunE2e/container_function_args (0.00s)
    --- SKIP: TestRunE2e/container_function_config (0.00s)
    --- SKIP: TestRunE2e/container_function_config#01 (0.00s)
    --- PASS: TestRunE2e/starlark_function_config (1.23s)
... skipping 11 lines ...
--- PASS: TestListSetters (1.08s)
    --- PASS: TestListSetters/set (1.08s)
=== RUN   TestSet
=== RUN   TestSet/set
--- PASS: TestSet (1.08s)
    --- PASS: TestSet/set (1.08s)
FAIL
coverage: [no statements]
FAIL	sigs.k8s.io/kustomize/cmd/config/internal/commands/e2e	17.085s
?   	sigs.k8s.io/kustomize/cmd/config/internal/commands/internal/k8sgen	[no test files]
?   	sigs.k8s.io/kustomize/cmd/config/internal/commands/internal/k8sgen/pkg/api/resource	[no test files]
?   	sigs.k8s.io/kustomize/cmd/config/internal/generateddocs/api	[no test files]
?   	sigs.k8s.io/kustomize/cmd/config/internal/generateddocs/commands	[no test files]
?   	sigs.k8s.io/kustomize/cmd/config/internal/generateddocs/tutorials	[no test files]
?   	sigs.k8s.io/kustomize/cmd/config/internal/inpututil	[no test files]
... skipping 8 lines ...
    --- PASS: TestExecuteCmdOnPkgs/Krmfile_not_needed_no_err (0.00s)
    --- PASS: TestExecuteCmdOnPkgs/executeCmd_returns_error (0.00s)
    --- PASS: TestExecuteCmdOnPkgs/executeCmd_prints_pkgpaths (0.00s)
PASS
coverage: 39.2% of statements
ok  	sigs.k8s.io/kustomize/cmd/config/runner	0.011s	coverage: 39.2% of statements
FAIL
make[1]: *** [Makefile:48: test] Error 1
make[1]: Leaving directory '/home/prow/go/src/sigs.k8s.io/kustomize/cmd/config'
make: *** [Makefile:250: test-unit-cmd-all] Error 2