ResultFAILURE
Tests 0 failed / 0 succeeded
Started2025-04-04 07:48 UTC
Elapsed5m7s
Revision80d99e428d2d10179fa5c5d56e34d6fed4ba1f47
Refs 988

No Test Failures!


Error lines from build-log.txt

... skipping 2164 lines ...
git version 2.43.0
============================
==== RUNNING UNIT TESTS ====
============================
/home/prow/go/src/github.com/tektoncd/results /home/prow/go/src/github.com/tektoncd/results
Using overridden unit_tests
2025/04/04 07:52:20 maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined
=== RUN   Test_determineAuth
=== RUN   Test_determineAuth/missing_token
=== RUN   Test_determineAuth/invalid_token
=== RUN   Test_determineAuth/valid_token
--- PASS: Test_determineAuth (0.00s)
    --- PASS: Test_determineAuth/missing_token (0.00s)
... skipping 32 lines ...
=== RUN   TestParseFilter/success/#00
=== RUN   TestParseFilter/success/result
=== RUN   TestParseFilter/success/result.id
=== RUN   TestParseFilter/success/result.id_==_"1"
=== RUN   TestParseFilter/success/result.id_==_"1"_||_result.name_==_"2"
=== RUN   TestParseFilter/success/result.id.startsWith("tacocat")
=== RUN   TestParseFilter/error
=== RUN   TestParseFilter/error/asdf
=== RUN   TestParseFilter/error/result.id_==_1
=== RUN   TestParseFilter/error/result.ID
--- PASS: TestParseFilter (0.04s)
    --- PASS: TestParseFilter/success (0.02s)
        --- PASS: TestParseFilter/success/#00 (0.00s)
        --- PASS: TestParseFilter/success/result (0.01s)
        --- PASS: TestParseFilter/success/result.id (0.00s)
        --- PASS: TestParseFilter/success/result.id_==_"1" (0.00s)
        --- PASS: TestParseFilter/success/result.id_==_"1"_||_result.name_==_"2" (0.00s)
        --- PASS: TestParseFilter/success/result.id.startsWith("tacocat") (0.00s)
    --- PASS: TestParseFilter/error (0.00s)
        --- PASS: TestParseFilter/error/asdf (0.00s)
        --- PASS: TestParseFilter/error/result.id_==_1 (0.00s)
        --- PASS: TestParseFilter/error/result.ID (0.00s)
PASS
ok  	github.com/tektoncd/results/pkg/api/server/cel	1.125s
=== RUN   TestConvertRecordExpressions
=== RUN   TestConvertRecordExpressions/simple_expression
    convert_test.go:170: want: (name = 'foo')
    convert_test.go:171: got:  (name = 'foo')
... skipping 338 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352
        [0.911ms] [rows:3] SELECT * FROM `records` WHERE type = "results.tekton.dev/v1alpha3.Log" AND id > "" AND parent = "foo" AND result_name = "bar" ORDER BY created_time LIMIT 51
=== RUN   TestListLogs/unknown_type
=== RUN   TestListLogs/unknown_any_field
=== RUN   TestListLogs/invalid_page_size
=== RUN   TestListLogs/malformed_parent
{"level":"error","ts":1743753201.4467998,"caller":"v1alpha2/logs.go:268","msg":"rpc error: code = InvalidArgument desc = name must match (^[a-z0-9_-]{1,63})/results/([a-z0-9_-]{1,63}$)","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2.(*Server).ListLogs\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:268\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestListLogs.func1\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:569\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1690"}
=== RUN   TestListLogs/invalid_order_by_clause
=== RUN   TestListLogs/invalid_sort_direction
--- PASS: TestListLogs (0.86s)
    --- PASS: TestListLogs/all (0.07s)
    --- PASS: TestListLogs/list_all_records_without_knowing_the_result_name (0.07s)
    --- PASS: TestListLogs/list_all_records_without_knowing_the_parent_and_the_result_name (0.07s)
... skipping 171 lines ...
=== RUN   TestCreateRecord/missing_name
=== RUN   TestCreateRecord/result_used_as_name
=== RUN   TestCreateRecord/already_exists
=== NAME  TestCreateRecord
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [0.379ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 UNIQUE constraint failed: records.parent, records.result_name, records.name
        [0.817ms] [rows:0] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","25","bar","27","baz","TaskRun","{""metadata"":{""name"":""tacocat"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","27-1743753203207076652","2025-04-04 07:53:23.207","2025-04-04 07:53:23.207") RETURNING `created_time`,`updated_time`
--- PASS: TestCreateRecord (0.14s)
    --- PASS: TestCreateRecord/success (0.02s)
    --- PASS: TestCreateRecord/mismatched_parent (0.00s)
    --- PASS: TestCreateRecord/parent_does_not_exist (0.00s)
    --- PASS: TestCreateRecord/missing_name (0.00s)
... skipping 13 lines ...
        [0.154ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [31.677ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [12.374ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"warn","ts":1743753202.0881653,"caller":"plugin/plugin_logs.go:429","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 FOREIGN KEY constraint failed
        [1.147ms] [rows:0] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","deleted","deleted","28","baz","","","28-1743753203207076652","2025-04-04 07:53:23.207","2025-04-04 07:53:23.207") RETURNING `created_time`,`updated_time`
--- PASS: TestCreateRecord_ConcurrentDelete (0.12s)
=== RUN   TestGetRecord
    records_test.go:185: test database:  /tmp/testdb2275152821
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59
        [0.044ms] [rows:0] PRAGMA foreign_keys = ON;
... skipping 439 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.537ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
=== RUN   TestCreateResult/mismatched_parent
=== RUN   TestCreateResult/missing_name
=== RUN   TestCreateResult/already_exists
=== NAME  TestCreateResult
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 UNIQUE constraint failed: results.parent, results.name
        [0.764ms] [rows:0] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","40","bar","{""foo"":""bar""}","","",NULL,NULL,0,"null","40-1743753228207076652","2025-04-04 07:53:48.207","2025-04-04 07:53:48.207") RETURNING `created_time`,`updated_time`
=== RUN   TestCreateResult/large_name
=== RUN   TestCreateResult/large_result_summary_type
--- PASS: TestCreateResult (0.05s)
    --- PASS: TestCreateResult/success (0.01s)
    --- PASS: TestCreateResult/mismatched_parent (0.00s)
... skipping 903 lines ...
=== RUN   TestMatch/no_filter
=== RUN   TestMatch/matching_condition
=== RUN   TestMatch/non-matching_condition
=== RUN   TestMatch/nil_result
=== RUN   TestMatch/non-bool_output
=== RUN   TestMatch/wrong_resource_type
2025/04/04 07:53:28 failed to evaluate the expression: no such attribute(s): record
--- PASS: TestMatch (0.03s)
    --- PASS: TestMatch/no_filter (0.00s)
    --- PASS: TestMatch/matching_condition (0.01s)
    --- PASS: TestMatch/non-matching_condition (0.00s)
    --- PASS: TestMatch/nil_result (0.00s)
    --- PASS: TestMatch/non-bool_output (0.00s)
... skipping 93 lines ...
    --- PASS: TestViewCommand/valid_params (0.00s)
    --- PASS: TestViewCommand/nil_params (0.00s)
PASS
ok  	github.com/tektoncd/results/pkg/cli/cmd/config	1.128s
=== RUN   TestNewConfig
=== RUN   TestNewConfig/valid_params
    config_test.go:40: Expected no error, got stat /root/.kube/config: no such file or directory
--- FAIL: TestNewConfig (0.00s)
    --- FAIL: TestNewConfig/valid_params (0.00s)
=== RUN   TestSet
    config_test.go:67: Expected no error, got stat /root/.kube/config: no such file or directory
--- FAIL: TestSet (0.00s)
=== RUN   TestReset
    config_test.go:88: Expected no error, got stat /root/.kube/config: no such file or directory
--- FAIL: TestReset (0.00s)
=== RUN   TestLoadClientConfig
    config_test.go:109: Expected no error, got stat /root/.kube/config: no such file or directory
--- FAIL: TestLoadClientConfig (0.00s)
=== RUN   TestNewConfigError
--- PASS: TestNewConfigError (0.00s)
=== RUN   TestSetWithPrompt
    config_test.go:153: Expected no error, got stat /root/.kube/config: no such file or directory
--- FAIL: TestSetWithPrompt (0.00s)
=== RUN   TestPersist
    config_test.go:184: Expected no error, got stat /root/.kube/config: no such file or directory
--- FAIL: TestPersist (0.00s)
=== RUN   TestSetVersion
    config_test.go:199: Expected no error, got stat /root/.kube/config: no such file or directory
--- FAIL: TestSetVersion (0.00s)
=== RUN   TestHost
    config_test.go:217: Expected no error, got stat /root/.kube/config: no such file or directory
--- FAIL: TestHost (0.00s)
=== RUN   TestToken
    config_test.go:232: Expected no error, got stat /root/.kube/config: no such file or directory
--- FAIL: TestToken (0.00s)
=== RUN   TestExtensionBasic
=== RUN   TestExtensionBasic/valid_extension
=== RUN   TestExtensionBasic/empty_extension
--- PASS: TestExtensionBasic (0.00s)
    --- PASS: TestExtensionBasic/valid_extension (0.00s)
    --- PASS: TestExtensionBasic/empty_extension (0.00s)
... skipping 8 lines ...
--- PASS: TestGetRoutes (0.12s)
    --- PASS: TestGetRoutes/no_services_found (0.05s)
    --- PASS: TestGetRoutes/invalid_config (0.00s)
    --- PASS: TestGetRoutes/invalid_host (0.06s)
=== RUN   TestGetRoutesWithNilConfig
--- PASS: TestGetRoutesWithNilConfig (0.00s)
FAIL
FAIL	github.com/tektoncd/results/pkg/cli/config	0.227s
=== RUN   TestToken
=== RUN   TestToken/default
=== RUN   TestToken/token
=== RUN   TestToken/serviceaccount
=== RUN   TestToken/token#01
=== RUN   TestToken/token_over_serviceaccount
... skipping 368 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [0.378ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [52.688ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","89250217-7ce8-4a22-a461-46ff9d51c6e3","12345","eb46a87a-66de-4a20-8690-3a79364c6f5d","44431680-5a87-3d7f-b4de-58115e96bdee","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""ns"",""uid"":""44431680-5a87-3d7f-b4de-58115e96bdee"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""ns"",""name"":""taskrun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","eb46a87a-66de-4a20-8690-3a79364c6f5d-1743753236902749252","2025-04-04 07:53:56.902","2025-04-04 07:53:56.902") RETURNING `created_time`,`updated_time`
    logger.go:146: 2025-04-04T07:53:56.957Z	DEBUG	TestReconcile_TaskRun	dynamic/dynamic.go:289	Skipping CRD annotation patch: annotation update is disabled
    logger.go:146: 2025-04-04T07:53:56.957Z	DEBUG	TestReconcile_TaskRun	dynamic/dynamic.go:472	Streaming log started	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun"}
    logger.go:146: 2025-04-04T07:53:56.958Z	ERROR	TestReconcile_TaskRun	dynamic/dynamic.go:480	Error streaming log	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun", "error": "failed to create tkn reader: Parsing kubeconfig failed: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable"}
    logger.go:146: 2025-04-04T07:53:56.958Z	INFO	TestReconcile_TaskRun	dynamic/dynamic.go:488	Streaming log completed	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.666ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2025-04-04T07:53:56.962Z	DEBUG	TestReconcile_TaskRun	results/results.go:210	No further actions to be done on the Result: no differences found	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found
        [0.500ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "0539eb98-fa35-303b-a110-d77363c9c5f5" ORDER BY `records`.`id` LIMIT 1
... skipping 110 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.631ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2025-04-04T07:53:57.166Z	DEBUG	TestReconcile_TaskRun	results/results.go:326	Updating Record	{"results.tekton.dev/record": "ns/results/12345/records/12345"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.511ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217
        [22.069ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""annotations"":{""demo"":""demo""}},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-04-04T07:53:57Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-04-04T07:53:57Z"",""completionTime"":""2025-04-04T07:53:58Z""}}",`created_time`="2025-04-04 07:53:56.879",`updated_time`="2025-04-04 07:53:57.168",`etag`="241c6568-1fb5-46ee-a4e2-2ddc9330800e-1743753237168764742" WHERE `parent` = "ns" AND `result_id` = "89250217-7ce8-4a22-a461-46ff9d51c6e3" AND `id` = "241c6568-1fb5-46ee-a4e2-2ddc9330800e"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.683ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2025-04-04T07:53:57.262Z	DEBUG	TestReconcile_TaskRun	results/results.go:210	No further actions to be done on the Result: no differences found	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.637ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "44431680-5a87-3d7f-b4de-58115e96bdee" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 34 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.550ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2025-04-04T07:53:57.330Z	DEBUG	TestReconcile_TaskRun	results/results.go:326	Updating Record	{"results.tekton.dev/record": "ns/results/12345/records/12345"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.524ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217
        [0.547ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""labels"":{""x"":""foo""},""annotations"":{""demo"":""demo""}},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-04-04T07:53:57Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-04-04T07:53:57Z"",""completionTime"":""2025-04-04T07:53:58Z""}}",`created_time`="2025-04-04 07:53:56.879",`updated_time`="2025-04-04 07:53:57.332",`etag`="241c6568-1fb5-46ee-a4e2-2ddc9330800e-1743753237332990635" WHERE `parent` = "ns" AND `result_id` = "89250217-7ce8-4a22-a461-46ff9d51c6e3" AND `id` = "241c6568-1fb5-46ee-a4e2-2ddc9330800e"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.522ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2025-04-04T07:53:57.343Z	DEBUG	TestReconcile_TaskRun	results/results.go:210	No further actions to be done on the Result: no differences found	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.508ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "44431680-5a87-3d7f-b4de-58115e96bdee" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 52 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.505ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2025-04-04T07:53:57.448Z	DEBUG	TestReconcile_TaskRun	results/results.go:326	Updating Record	{"results.tekton.dev/record": "ns/results/12345/records/12345"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.471ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217
        [0.460ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""labels"":{""x"":""foo""},""annotations"":{""x"":""foo""}},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-04-04T07:53:57Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-04-04T07:53:57Z"",""completionTime"":""2025-04-04T07:53:58Z""}}",`created_time`="2025-04-04 07:53:56.879",`updated_time`="2025-04-04 07:53:57.45",`etag`="241c6568-1fb5-46ee-a4e2-2ddc9330800e-1743753237450620526" WHERE `parent` = "ns" AND `result_id` = "89250217-7ce8-4a22-a461-46ff9d51c6e3" AND `id` = "241c6568-1fb5-46ee-a4e2-2ddc9330800e"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.525ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2025-04-04T07:53:57.501Z	DEBUG	TestReconcile_TaskRun	results/results.go:210	No further actions to be done on the Result: no differences found	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.603ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "44431680-5a87-3d7f-b4de-58115e96bdee" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 14 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.485ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2025-04-04T07:53:57.535Z	DEBUG	TestReconcile_TaskRun	results/results.go:326	Updating Record	{"results.tekton.dev/record": "ns/results/12345/records/12345"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.702ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217
        [0.540ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""labels"":{""x"":""foo""},""annotations"":{""x"":""foo""},""ownerReferences"":[{""apiVersion"":""v1"",""kind"":""test"",""name"":""test-owner"",""uid"":""""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-04-04T07:53:57Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-04-04T07:53:57Z"",""completionTime"":""2025-04-04T07:53:58Z""}}",`created_time`="2025-04-04 07:53:56.879",`updated_time`="2025-04-04 07:53:57.538",`etag`="241c6568-1fb5-46ee-a4e2-2ddc9330800e-1743753237538336141" WHERE `parent` = "ns" AND `result_id` = "89250217-7ce8-4a22-a461-46ff9d51c6e3" AND `id` = "241c6568-1fb5-46ee-a4e2-2ddc9330800e"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.702ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2025-04-04T07:53:57.547Z	DEBUG	TestReconcile_TaskRun	results/results.go:202	No further actions to be done on the Result: the object is not a top level record	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": false}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.572ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "44431680-5a87-3d7f-b4de-58115e96bdee" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 16 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found
        [0.406ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "f2a20f6d-a173-4710-af55-8335f5cfce43" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2025-04-04T07:53:57.616Z	DEBUG	TestReconcile_TaskRun	results/results.go:334	Record doesn't exist yet - creating	{"results.tekton.dev/record": "ns/results/f2a20f6d-a173-4710-af55-8335f5cfce43/records/12345"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [0.488ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "f2a20f6d-a173-4710-af55-8335f5cfce43" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [46.974ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","e8772a60-b82b-4114-90e1-e228f66abd8a","f2a20f6d-a173-4710-af55-8335f5cfce43","5443a78c-45b9-478c-9b8d-0f069cb4c61f","12345","tekton.dev/v1.TaskRun","{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""labels"":{""x"":""foo""},""annotations"":{""x"":""foo""},""ownerReferences"":[{""apiVersion"":""tekton.dev/v1"",""kind"":""PipelineRun"",""name"":""test-pipelinerun"",""uid"":""f2a20f6d-a173-4710-af55-8335f5cfce43""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-04-04T07:53:57Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-04-04T07:53:57Z"",""completionTime"":""2025-04-04T07:53:58Z""}}","5443a78c-45b9-478c-9b8d-0f069cb4c61f-1743753237618128268","2025-04-04 07:53:57.618","2025-04-04 07:53:57.618") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.611ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "f2a20f6d-a173-4710-af55-8335f5cfce43" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2025-04-04T07:53:57.668Z	DEBUG	TestReconcile_TaskRun	results/results.go:202	No further actions to be done on the Result: the object is not a top level record	{"results.tekton.dev/result": "ns/results/f2a20f6d-a173-4710-af55-8335f5cfce43", "results.tekton.dev/record": "ns/results/f2a20f6d-a173-4710-af55-8335f5cfce43/records/12345", "results.tekton.dev/top-level-record": false}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found
        [0.421ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "f2a20f6d-a173-4710-af55-8335f5cfce43" AND `records`.`name` = "7c74c9c8-0798-313e-ac59-ea47237e400a" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 3 lines ...
        [0.441ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "f2a20f6d-a173-4710-af55-8335f5cfce43" AND `records`.`name` = "7c74c9c8-0798-313e-ac59-ea47237e400a" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [0.463ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "f2a20f6d-a173-4710-af55-8335f5cfce43" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [5.449ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","e8772a60-b82b-4114-90e1-e228f66abd8a","f2a20f6d-a173-4710-af55-8335f5cfce43","39200ee7-95fb-40d8-bd9b-116b9cdc33cc","7c74c9c8-0798-313e-ac59-ea47237e400a","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""ns"",""uid"":""7c74c9c8-0798-313e-ac59-ea47237e400a"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""ns"",""name"":""taskrun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","39200ee7-95fb-40d8-bd9b-116b9cdc33cc-1743753237676202466","2025-04-04 07:53:57.676","2025-04-04 07:53:57.676") RETURNING `created_time`,`updated_time`
    logger.go:146: 2025-04-04T07:53:57.684Z	DEBUG	TestReconcile_TaskRun	dynamic/dynamic.go:472	Streaming log started	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun"}
    logger.go:146: 2025-04-04T07:53:57.685Z	ERROR	TestReconcile_TaskRun	dynamic/dynamic.go:480	Error streaming log	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun", "error": "failed to create tkn reader: Parsing kubeconfig failed: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable"}
    logger.go:146: 2025-04-04T07:53:57.685Z	INFO	TestReconcile_TaskRun	dynamic/dynamic.go:488	Streaming log completed	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.627ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "f2a20f6d-a173-4710-af55-8335f5cfce43" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2025-04-04T07:53:57.687Z	DEBUG	TestReconcile_TaskRun	results/results.go:202	No further actions to be done on the Result: the object is not a top level record	{"results.tekton.dev/result": "ns/results/f2a20f6d-a173-4710-af55-8335f5cfce43", "results.tekton.dev/record": "ns/results/f2a20f6d-a173-4710-af55-8335f5cfce43/records/12345", "results.tekton.dev/top-level-record": false}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found
        [0.421ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "f2a20f6d-a173-4710-af55-8335f5cfce43" AND `records`.`name` = "4670892a-f436-3880-8a06-69dfcbcd4148" ORDER BY `records`.`id` LIMIT 1
... skipping 18 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.478ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2025-04-04T07:53:57.727Z	DEBUG	TestReconcile_TaskRun	results/results.go:326	Updating Record	{"results.tekton.dev/record": "ns/results/12345/records/12345"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.649ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217
        [0.662ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""labels"":{""x"":""foo""},""annotations"":{""x"":""foo""},""ownerReferences"":[{""apiVersion"":""v1"",""kind"":""test"",""name"":""test-owner"",""uid"":""c1f44fb8-a236-440b-82f5-129966f95dfc""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-04-04T07:53:57Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-04-04T07:53:57Z"",""completionTime"":""2025-04-04T07:53:58Z""}}",`created_time`="2025-04-04 07:53:56.879",`updated_time`="2025-04-04 07:53:57.729",`etag`="241c6568-1fb5-46ee-a4e2-2ddc9330800e-1743753237729513890" WHERE `parent` = "ns" AND `result_id` = "89250217-7ce8-4a22-a461-46ff9d51c6e3" AND `id` = "241c6568-1fb5-46ee-a4e2-2ddc9330800e"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.488ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2025-04-04T07:53:57.738Z	DEBUG	TestReconcile_TaskRun	results/results.go:202	No further actions to be done on the Result: the object is not a top level record	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": false}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.542ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "44431680-5a87-3d7f-b4de-58115e96bdee" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 57 lines ...
        [0.312ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "adbddec2-0ab5-3a03-8f0d-afb8bc54667f" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [0.408ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [7.246ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","57af7ef0-8798-48fd-8cb8-08cb4877ada1","12345","160e9856-aa5f-490d-a0ac-281cf535d7ad","adbddec2-0ab5-3a03-8f0d-afb8bc54667f","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""pipelinerun-log"",""namespace"":""ns"",""uid"":""adbddec2-0ab5-3a03-8f0d-afb8bc54667f"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""PipelineRun"",""namespace"":""ns"",""name"":""pipelinerun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","160e9856-aa5f-490d-a0ac-281cf535d7ad-1743753237877345774","2025-04-04 07:53:57.877","2025-04-04 07:53:57.877") RETURNING `created_time`,`updated_time`
    logger.go:146: 2025-04-04T07:53:57.890Z	DEBUG	TestReconcile_PipelineRun	dynamic/dynamic.go:472	Streaming log started	{"namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun"}
    logger.go:146: 2025-04-04T07:53:57.891Z	ERROR	TestReconcile_PipelineRun	dynamic/dynamic.go:480	Error streaming log	{"namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun", "error": "failed to create tkn reader: Parsing kubeconfig failed: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable"}
    logger.go:146: 2025-04-04T07:53:57.891Z	INFO	TestReconcile_PipelineRun	dynamic/dynamic.go:488	Streaming log completed	{"namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.642ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2025-04-04T07:53:57.894Z	DEBUG	TestReconcile_PipelineRun	results/results.go:210	No further actions to be done on the Result: no differences found	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found
        [0.413ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "c80c1d4f-2ca9-3687-8bc7-c4596e112f73" ORDER BY `records`.`id` LIMIT 1
... skipping 399 lines ...
        --- PASS: TestPut/pipelinerun/update (0.01s)
PASS
ok  	github.com/tektoncd/results/pkg/watcher/results	2.138s
testing: warning: no tests to run
PASS
ok  	github.com/tektoncd/results/tools/postgres-migrate	1.078s [no tests to run]
FAIL
unit_tests returning 
===========================
==== UNIT TESTS FAILED ====
===========================
+ EXIT_VALUE=1
+ set +o xtrace