ResultFAILURE
Tests 0 failed / 0 succeeded
Started2024-11-20 08:55
Elapsed21m17s
Revision6ff5a846e8a170ef86544b241592f6fb75693f50
Refs 887

No Test Failures!


Error lines from build-log.txt

... skipping 64 lines ...
============================
==== RUNNING UNIT TESTS ====
============================
/home/prow/go/src/github.com/tektoncd/results /home/prow/go/src/github.com/tektoncd/results
Using overridden unit_tests
?   	github.com/tektoncd/results/cmd/cli-docs	[no test files]
2024/11/20 08:58:26 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.01s)
    --- PASS: Test_determineAuth/missing_token (0.00s)
... skipping 11 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.05s)
    --- PASS: TestParseFilter/success (0.03s)
        --- 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.01s)
        --- 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.104s
=== RUN   TestConvertRecordExpressions
=== RUN   TestConvertRecordExpressions/simple_expression
    convert_test.go:170: want: (name = 'foo')
    convert_test.go:171: got:  (name = 'foo')
... skipping 194 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.116ms] [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
        [406.145ms] [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
        [609.876ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732093871.96046,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestGetLog\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:89\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [572.524ms] [rows:1] 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","1","bar","null","","",NULL,NULL,0,"null","1-1732093870243305939","2024-11-20 09:11:10.243","2024-11-20 09:11:10.243") RETURNING `created_time`,`updated_time`
    logs_test.go:113: test log file:  /tmp/test-log-taskrun-4134853707.log
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [3.199ms] [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
... skipping 14 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.124ms] [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
        [280.267ms] [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
        [610.456ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732093874.420515,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestGetLogV2\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:167\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [198.653ms] [rows:1] 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","3","bar","null","","",NULL,NULL,0,"null","3-1732093870243305939","2024-11-20 09:11:10.243","2024-11-20 09:11:10.243") RETURNING `created_time`,`updated_time`
    logs_test.go:191: test log file:  /tmp/test-log-taskrun-974219040.log
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [1.640ms] [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
... skipping 14 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.171ms] [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
        [540.999ms] [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
        [303.262ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732093877.2883058,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestUpdateLog\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:254\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [442.823ms] [rows:1] 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","5","bar","null","","",NULL,NULL,0,"null","5-1732093870243305939","2024-11-20 09:11:10.243","2024-11-20 09:11:10.243") RETURNING `created_time`,`updated_time`
    logs_test.go:268: test storage directory: /tmp/test-logs-351200364
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [2.256ms] [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
... skipping 19 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.155ms] [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
        [281.762ms] [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
        [519.222ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732093880.4811535,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestListLogs\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:329\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [870.270ms] [rows:1] 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","7","bar","null","","",NULL,NULL,0,"null","7-1732093870243305939","2024-11-20 09:11:10.243","2024-11-20 09:11:10.243") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [1.778ms] [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
        [649.076ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","7","bar","8","0","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""0"",""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":"""",""name"":""""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","8-1732093871243305939","2024-11-20 09:11:11.243","2024-11-20 09:11:11.243") RETURNING `created_time`,`updated_time`
... skipping 61 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352
        [0.890ms] [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":1732093884.891115,"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:1689"}
=== RUN   TestListLogs/invalid_order_by_clause
=== RUN   TestListLogs/invalid_sort_direction
--- PASS: TestListLogs (6.48s)
    --- PASS: TestListLogs/all (0.11s)
    --- PASS: TestListLogs/list_all_records_without_knowing_the_result_name (0.06s)
    --- PASS: TestListLogs/list_all_records_without_knowing_the_parent_and_the_result_name (0.06s)
... skipping 26 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.138ms] [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
        [586.827ms] [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
        [530.077ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732093887.7583108,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestListLogs_multiresult\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:587\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [837.254ms] [rows:1] 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 ("0","11","0","null","","",NULL,NULL,0,"null","11-1732093873243305939","2024-11-20 09:11:13.243","2024-11-20 09:11:13.243") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [10.859ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "0" AND `results`.`name` = "0" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [512.999ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("0","11","0","12","0","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""0"",""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":"""",""name"":""""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","12-1732093873243305939","2024-11-20 09:11:13.243","2024-11-20 09:11:13.243") RETURNING `created_time`,`updated_time`
... skipping 47 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.128ms] [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
        [654.882ms] [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
        [328.454ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732093898.2893813,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestDeleteLog\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:648\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [529.159ms] [rows:1] 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","23","bar","null","","",NULL,NULL,0,"null","23-1732093873243305939","2024-11-20 09:11:13.243","2024-11-20 09:11:13.243") RETURNING `created_time`,`updated_time`
    logs_test.go:672: test log file:  /tmp/test-log-taskrun-55259427.log
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [1.913ms] [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
... skipping 52 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.122ms] [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
        [458.109ms] [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
        [506.643ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732093902.1600375,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestCreateRecord\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records_test.go:48\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [187.381ms] [rows:1] 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","25","bar","null","","",NULL,NULL,0,"null","25-1732093873243305939","2024-11-20 09:11:13.243","2024-11-20 09:11:13.243") RETURNING `created_time`,`updated_time`
=== RUN   TestCreateRecord/success
=== NAME  TestCreateRecord
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [2.226ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
... skipping 7 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.346ms] [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.643ms] [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-1732093873243305939","2024-11-20 09:11:13.243","2024-11-20 09:11:13.243") RETURNING `created_time`,`updated_time`
--- PASS: TestCreateRecord (3.13s)
    --- PASS: TestCreateRecord/success (0.71s)
    --- PASS: TestCreateRecord/mismatched_parent (0.00s)
    --- PASS: TestCreateRecord/parent_does_not_exist (0.00s)
    --- PASS: TestCreateRecord/missing_name (0.00s)
... skipping 12 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.173ms] [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
        [582.221ms] [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
        [1099.050ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732093905.3653986,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestCreateRecord_ConcurrentDelete\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records_test.go:159\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 FOREIGN KEY constraint failed
        [1.489ms] [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-1732093873243305939","2024-11-20 09:11:13.243","2024-11-20 09:11:13.243") RETURNING `created_time`,`updated_time`
--- PASS: TestCreateRecord_ConcurrentDelete (2.28s)
=== RUN   TestGetRecord
    records_test.go:185: test database:  /tmp/testdb3617065465
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59
        [0.051ms] [rows:0] PRAGMA foreign_keys = ON;
... skipping 6 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.192ms] [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
        [813.066ms] [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
        [294.563ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732093907.6522186,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestGetRecord\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records_test.go:185\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [646.386ms] [rows:1] 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","29","bar","null","","",NULL,NULL,0,"null","29-1732093873243305939","2024-11-20 09:11:13.243","2024-11-20 09:11:13.243") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [49.453ms] [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
        [407.535ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","29","bar","30","baz","","","30-1732093873243305939","2024-11-20 09:11:13.243","2024-11-20 09:11:13.243") RETURNING `created_time`,`updated_time`
... skipping 25 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.132ms] [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
        [2866.042ms] [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
        [2059.237ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732093916.1671774,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestListRecords\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records_test.go:253\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [2908.808ms] [rows:1] 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","1","bar","null","","",NULL,NULL,0,"null","1-1732093873243305939","2024-11-20 09:11:13.243","2024-11-20 09:11:13.243") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [2.223ms] [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
        [1106.998ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","2","0","TaskRun","{""metadata"":{""name"":""0"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","2-1732093874243305939","2024-11-20 09:11:14.243","2024-11-20 09:11:14.243") RETURNING `created_time`,`updated_time`
... skipping 219 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.128ms] [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
        [6505.861ms] [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
        [8309.394ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094107.6769502,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestUpdateRecord\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records_test.go:542\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [11293.487ms] [rows:1] 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","22","bar","null","","",NULL,NULL,0,"null","22-1732093893243305939","2024-11-20 09:11:33.243","2024-11-20 09:11:33.243") RETURNING `created_time`,`updated_time`
=== RUN   TestUpdateRecord/success
=== NAME  TestUpdateRecord
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [1.432ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
... skipping 41 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.123ms] [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
        [3032.746ms] [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
        [4685.025ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094146.1883194,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestDeleteRecord\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records_test.go:684\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [903.101ms] [rows:1] 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","25","bar","null","","",NULL,NULL,0,"null","25-1732093898243305939","2024-11-20 09:11:38.243","2024-11-20 09:11:38.243") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [1.584ms] [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
        [1064.122ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","25","bar","26","baz","","","26-1732093898243305939","2024-11-20 09:11:38.243","2024-11-20 09:11:38.243") RETURNING `created_time`,`updated_time`
... skipping 25 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.132ms] [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
        [391.005ms] [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
        [1713.515ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094155.7395382,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestListRecords_multiresult\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records_test.go:731\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [949.080ms] [rows:1] 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 ("0","27","0","null","","",NULL,NULL,0,"null","27-1732093898243305939","2024-11-20 09:11:38.243","2024-11-20 09:11:38.243") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [3.672ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "0" AND `results`.`name` = "0" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [1148.661ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("0","27","0","28","0","","","28-1732093898243305939","2024-11-20 09:11:38.243","2024-11-20 09:11:38.243") RETURNING `created_time`,`updated_time`
... skipping 47 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.126ms] [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
        [1427.388ms] [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
        [399.782ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094172.8885834,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestCreateResult\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results_test.go:43\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
=== RUN   TestCreateResult/success
=== NAME  TestCreateResult
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [438.180ms] [rows:1] 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","39","bar","{""foo"":""bar""}","","",NULL,NULL,0,"null","39-1732093898243305939","2024-11-20 09:11:38.243","2024-11-20 09:11:38.243") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [1.067ms] [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.742ms] [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-1732093898243305939","2024-11-20 09:11:38.243","2024-11-20 09:11:38.243") RETURNING `created_time`,`updated_time`
=== RUN   TestCreateResult/large_name
=== RUN   TestCreateResult/large_result_summary_type
--- PASS: TestCreateResult (3.26s)
    --- PASS: TestCreateResult/success (0.44s)
    --- PASS: TestCreateResult/mismatched_parent (0.00s)
... skipping 14 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.142ms] [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
        [602.122ms] [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
        [336.876ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094175.6883888,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestUpdateResult\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results_test.go:139\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
=== RUN   TestUpdateResult/success
=== NAME  TestUpdateResult
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [529.448ms] [rows:1] 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","42","bar-0","null","","",NULL,NULL,0,"null","42-1732093898243305939","2024-11-20 09:11:38.243","2024-11-20 09:11:38.243") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.692ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar-0" ORDER BY `results`.`id` LIMIT 1
... skipping 53 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.109ms] [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
        [465.878ms] [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
        [2671.392ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094185.1755733,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestGetResult\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results_test.go:246\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [1775.516ms] [rows:1] 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","48","bar","null","","",NULL,NULL,0,"null","48-1732093904243305939","2024-11-20 09:11:44.243","2024-11-20 09:11:44.243") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.828ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
=== RUN   TestGetResult/no_name
=== RUN   TestGetResult/not_found
... skipping 16 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.117ms] [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
        [639.496ms] [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
        [610.157ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094189.478147,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestDeleteResult\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results_test.go:296\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [525.913ms] [rows:1] 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","49","bar","null","","",NULL,NULL,0,"null","49-1732093904243305939","2024-11-20 09:11:44.243","2024-11-20 09:11:44.243") RETURNING `created_time`,`updated_time`
=== RUN   TestDeleteResult/success
=== NAME  TestDeleteResult
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168
        [0.998ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
... skipping 21 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.128ms] [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
        [366.333ms] [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
        [620.173ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094192.6001124,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestCascadeDelete\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results_test.go:332\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [684.756ms] [rows:1] 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","50","bar","null","","",NULL,NULL,0,"null","50-1732093904243305939","2024-11-20 09:11:44.243","2024-11-20 09:11:44.243") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [1.896ms] [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
        [1719.913ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","50","bar","51","baz","","","51-1732093904243305939","2024-11-20 09:11:44.243","2024-11-20 09:11:44.243") RETURNING `created_time`,`updated_time`
... skipping 17 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.215ms] [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
        [908.615ms] [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
        [1048.148ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094199.5696783,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestListResults\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results_test.go:366\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [404.237ms] [rows:1] 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","1","1c35af32-d7d4-4162-85ae-582091784291","{""foo"":""bar-1""}","foo/results/1c35af32-d7d4-4162-85ae-582091784291/records/a85b73bc-155f-4dd4-9feb-6c2032c1432b","resource_type","2024-11-20 09:11:45.243","2024-11-20 09:12:45.243",0,"null","1-1732093905243305939","2024-11-20 09:11:45.243","2024-11-20 09:11:45.243") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [1426.290ms] [rows:1] 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","2","d6454a3c-0a32-4e33-86da-bbe14d8a9d9b","{""foo"":""bar-2""}","foo/results/d6454a3c-0a32-4e33-86da-bbe14d8a9d9b/records/ad0f2038-c3bd-4326-92cc-f409f610a147","resource_type","2024-11-20 09:11:46.243","2024-11-20 09:12:46.243",0,"null","2-1732093906243305939","2024-11-20 09:11:46.243","2024-11-20 09:11:46.243") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [303.336ms] [rows:1] 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","3","838e793f-663d-4c8a-99fc-4f1a89124034","{""foo"":""bar-3""}","foo/results/838e793f-663d-4c8a-99fc-4f1a89124034/records/7993e9e5-7a6d-4f64-b772-1bb419192ccc","resource_type","2024-11-20 09:11:47.243","2024-11-20 09:12:47.243",0,"null","3-1732093907243305939","2024-11-20 09:11:47.243","2024-11-20 09:11:47.243") RETURNING `created_time`,`updated_time`
... skipping 206 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.121ms] [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
        [441.554ms] [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
        [198.663ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732093877.9307256,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/auth_test.TestRBAC\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/auth/rbac_test.go:93\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
=== RUN   TestRBAC/authorized_user
=== NAME  TestRBAC
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [384.649ms] [rows:1] 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","ec8472f5-6a63-47d5-b977-ffb55412da56","bar","null","","",NULL,NULL,0,"null","ec8472f5-6a63-47d5-b977-ffb55412da56-1732093877939224635","2024-11-20 09:11:17.939","2024-11-20 09:11:17.939") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.796ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
... skipping 496 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
2024/11/20 09:11:50 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.02s)
    --- PASS: TestMatch/non-matching_condition (0.00s)
    --- PASS: TestMatch/nil_result (0.00s)
    --- PASS: TestMatch/non-bool_output (0.00s)
... skipping 183 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.568ms] [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
        [10479.509ms] [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
        [8308.843ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094107.6766536,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/reconciler_test.TestController\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/reconciler/reconciler_test.go:54\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    logger.go:146: 2024-11-20T09:15:07.690Z	INFO	TestController	logs/client.go:52	Unable to fetch Logs Client from context, either disabled from config or disabled from server side
    logger.go:146: 2024-11-20T09:15:07.691Z	INFO	TestController	logs/client.go:52	Unable to fetch Logs Client from context, either disabled from config or disabled from server side
=== RUN   TestController/taskrun
=== NAME  TestController
    logger.go:146: 2024-11-20T09:15:07.703Z	INFO	TestController	controller/controller.go:486	Starting controller and workers	{"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun"}
    logger.go:146: 2024-11-20T09:15:07.701Z	INFO	TestController	controller/controller.go:486	Starting controller and workers	{"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun"}
... skipping 3 lines ...
=== NAME  TestController
    logger.go:146: 2024-11-20T09:15:07.704Z	INFO	TestController	controller/controller.go:496	Started workers	{"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun"}
    logger.go:146: 2024-11-20T09:15:07.704Z	INFO	TestController	controller/controller.go:498	Shutting down workers	{"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun"}
    logger.go:146: 2024-11-20T09:15:07.705Z	INFO	TestController	controller/controller.go:498	Shutting down workers	{"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun"}
=== RUN   TestController/pipelinerun
    reconciler_test.go:148: timed out. Last seen object: <nil>
--- FAIL: TestController (40.65s)
    --- FAIL: TestController/taskrun (0.00s)
    --- FAIL: TestController/pipelinerun (0.00s)
FAIL
FAIL	github.com/tektoncd/results/pkg/watcher/reconciler	41.917s
=== RUN   TestPatch
=== RUN   TestPatch/create_a_patch_containing_only_the_result_and_record_identifiers_since_the_object_is_a_PipelineRun
=== RUN   TestPatch/create_a_patch_containing_only_the_result_and_record_identifiers_since_the_TaskRun_isn't_owned_by_a_PipelineRun
=== RUN   TestPatch/create_a_patch_containing_only_the_result_and_record_identifiers_since_the_TaskRun_isn't_done_yet
=== RUN   TestPatch/mark_the_TaskRun_as_ready_for_deletion_since_it's_owned_by_a_PipelineRun_and_is_done
--- PASS: TestPatch (0.00s)
... skipping 29 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.149ms] [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
        [10023.350ms] [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
        [10510.774ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094107.676029,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/reconciler/dynamic.TestReconcile_TaskRun\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/reconciler/dynamic/dynamic_test.go:129\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [0.428ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-20T09:15:07.692Z	DEBUG	TestReconcile_TaskRun	results/results.go:188	Result doesn't exist yet - creating	{"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/results.go:72
        [1648.150ms] [rows:1] 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 ("ns","4fc5e72b-d366-407e-8079-b47e493bbe54","12345","{""object.metadata.name"":""taskrun""}","ns/results/12345/records/12345","tekton.dev/v1.TaskRun",NULL,"0000-00-00 00:00:00",1,"null","4fc5e72b-d366-407e-8079-b47e493bbe54-1732094107697266162","2024-11-20 09:15:07.697","2024-11-20 09:15:07.697") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found
... skipping 16 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [0.561ms] [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
        [2803.143ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","4fc5e72b-d366-407e-8079-b47e493bbe54","12345","6ec95e6e-25c2-42b6-8c61-a5178da5ea68","9c21d2c1-5c81-309c-96a0-a2c5b96a3e87","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""ns"",""uid"":""9c21d2c1-5c81-309c-96a0-a2c5b96a3e87"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""ns"",""name"":""taskrun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","6ec95e6e-25c2-42b6-8c61-a5178da5ea68-1732094124760142503","2024-11-20 09:15:24.76","2024-11-20 09:15:24.76") RETURNING `created_time`,`updated_time`
    logger.go:146: 2024-11-20T09:15:27.564Z	DEBUG	TestReconcile_TaskRun	dynamic/dynamic.go:289	Skipping CRD annotation patch: annotation update is disabled
    logger.go:146: 2024-11-20T09:15:27.565Z	DEBUG	TestReconcile_TaskRun	dynamic/dynamic.go:472	Streaming log started	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun"}
    logger.go:146: 2024-11-20T09:15:27.566Z	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: 2024-11-20T09:15:27.566Z	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.811ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-20T09:15:27.570Z	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.475ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "27783fe4-a7db-339b-a062-94aa0acfba16" 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.700ms] [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: 2024-11-20T09:15:35.441Z	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.517ms] [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.721ms] [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"":""2024-11-20T09:15:33Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-11-20T09:15:33Z"",""completionTime"":""2024-11-20T09:15:09Z""}}",`created_time`="2024-11-20 09:15:09.374",`updated_time`="2024-11-20 09:15:35.444",`etag`="91b96c0b-cd43-43e7-a29f-857b104e0f86-1732094135444085881" WHERE `parent` = "ns" AND `result_id` = "4fc5e72b-d366-407e-8079-b47e493bbe54" AND `id` = "91b96c0b-cd43-43e7-a29f-857b104e0f86"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [57.219ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-20T09:15:36.135Z	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.664ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "9c21d2c1-5c81-309c-96a0-a2c5b96a3e87" 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.490ms] [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: 2024-11-20T09:15:36.198Z	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.581ms] [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.633ms] [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"":""2024-11-20T09:15:33Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-11-20T09:15:33Z"",""completionTime"":""2024-11-20T09:15:09Z""}}",`created_time`="2024-11-20 09:15:09.374",`updated_time`="2024-11-20 09:15:36.2",`etag`="91b96c0b-cd43-43e7-a29f-857b104e0f86-1732094136200878127" WHERE `parent` = "ns" AND `result_id` = "4fc5e72b-d366-407e-8079-b47e493bbe54" AND `id` = "91b96c0b-cd43-43e7-a29f-857b104e0f86"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [1.113ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-20T09:15:40.282Z	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.959ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "9c21d2c1-5c81-309c-96a0-a2c5b96a3e87" 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.449ms] [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: 2024-11-20T09:15:40.414Z	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.461ms] [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
        [43.257ms] [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"":""2024-11-20T09:15:33Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-11-20T09:15:33Z"",""completionTime"":""2024-11-20T09:15:09Z""}}",`created_time`="2024-11-20 09:15:09.374",`updated_time`="2024-11-20 09:15:40.416",`etag`="91b96c0b-cd43-43e7-a29f-857b104e0f86-1732094140416883873" WHERE `parent` = "ns" AND `result_id` = "4fc5e72b-d366-407e-8079-b47e493bbe54" AND `id` = "91b96c0b-cd43-43e7-a29f-857b104e0f86"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.928ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-20T09:15:45.953Z	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.434ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "9c21d2c1-5c81-309c-96a0-a2c5b96a3e87" 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.807ms] [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: 2024-11-20T09:15:45.995Z	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.561ms] [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
        [190.326ms] [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"":""2024-11-20T09:15:33Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-11-20T09:15:33Z"",""completionTime"":""2024-11-20T09:15:09Z""}}",`created_time`="2024-11-20 09:15:09.374",`updated_time`="2024-11-20 09:15:45.998",`etag`="91b96c0b-cd43-43e7-a29f-857b104e0f86-1732094145998492941" WHERE `parent` = "ns" AND `result_id` = "4fc5e72b-d366-407e-8079-b47e493bbe54" AND `id` = "91b96c0b-cd43-43e7-a29f-857b104e0f86"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.671ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-20T09:15:47.095Z	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.692ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "9c21d2c1-5c81-309c-96a0-a2c5b96a3e87" 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.809ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "e28dd244-e006-492b-80d9-eed545bd5394" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2024-11-20T09:15:48.164Z	DEBUG	TestReconcile_TaskRun	results/results.go:334	Record doesn't exist yet - creating	{"results.tekton.dev/record": "ns/results/e28dd244-e006-492b-80d9-eed545bd5394/records/12345"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [0.587ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "e28dd244-e006-492b-80d9-eed545bd5394" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [1724.049ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","12ec3f4d-9bff-40f9-9e47-99553899a1a2","e28dd244-e006-492b-80d9-eed545bd5394","36af77b4-5bb5-462d-a46c-c0fffea7b911","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"":""e28dd244-e006-492b-80d9-eed545bd5394""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2024-11-20T09:15:33Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-11-20T09:15:33Z"",""completionTime"":""2024-11-20T09:15:09Z""}}","36af77b4-5bb5-462d-a46c-c0fffea7b911-1732094148167431488","2024-11-20 09:15:48.167","2024-11-20 09:15:48.167") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.622ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "e28dd244-e006-492b-80d9-eed545bd5394" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-20T09:15:49.897Z	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/e28dd244-e006-492b-80d9-eed545bd5394", "results.tekton.dev/record": "ns/results/e28dd244-e006-492b-80d9-eed545bd5394/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.673ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "e28dd244-e006-492b-80d9-eed545bd5394" AND `records`.`name` = "9b7878e8-4815-30b3-a164-26d4ac909f21" 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.452ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "e28dd244-e006-492b-80d9-eed545bd5394" AND `records`.`name` = "9b7878e8-4815-30b3-a164-26d4ac909f21" 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.538ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "e28dd244-e006-492b-80d9-eed545bd5394" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [2412.468ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","12ec3f4d-9bff-40f9-9e47-99553899a1a2","e28dd244-e006-492b-80d9-eed545bd5394","af19d527-3482-4003-bd21-58464036e0cc","9b7878e8-4815-30b3-a164-26d4ac909f21","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""ns"",""uid"":""9b7878e8-4815-30b3-a164-26d4ac909f21"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""ns"",""name"":""taskrun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","af19d527-3482-4003-bd21-58464036e0cc-1732094149910458559","2024-11-20 09:15:49.91","2024-11-20 09:15:49.91") RETURNING `created_time`,`updated_time`
    logger.go:146: 2024-11-20T09:15:52.326Z	DEBUG	TestReconcile_TaskRun	dynamic/dynamic.go:472	Streaming log started	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun"}
    logger.go:146: 2024-11-20T09:15:52.326Z	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: 2024-11-20T09:15:52.327Z	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.522ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "e28dd244-e006-492b-80d9-eed545bd5394" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-20T09:15:52.329Z	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/e28dd244-e006-492b-80d9-eed545bd5394", "results.tekton.dev/record": "ns/results/e28dd244-e006-492b-80d9-eed545bd5394/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.431ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "e28dd244-e006-492b-80d9-eed545bd5394" AND `records`.`name` = "adb7b8b5-3751-3e67-9053-8ceed427df8e" 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.418ms] [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: 2024-11-20T09:15:53.666Z	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.481ms] [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
        [118.307ms] [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"":""01d282e6-b0f0-4404-85ee-819681f982a5""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2024-11-20T09:15:33Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-11-20T09:15:33Z"",""completionTime"":""2024-11-20T09:15:09Z""}}",`created_time`="2024-11-20 09:15:09.374",`updated_time`="2024-11-20 09:15:53.668",`etag`="91b96c0b-cd43-43e7-a29f-857b104e0f86-1732094153668582638" WHERE `parent` = "ns" AND `result_id` = "4fc5e72b-d366-407e-8079-b47e493bbe54" AND `id` = "91b96c0b-cd43-43e7-a29f-857b104e0f86"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.694ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-20T09:15:54.029Z	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.454ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "9c21d2c1-5c81-309c-96a0-a2c5b96a3e87" 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 29 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.100ms] [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
        [1151.105ms] [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
        [1636.589ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094159.4784584,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/reconciler/dynamic.TestReconcile_PipelineRun\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/reconciler/dynamic/dynamic_test.go:438\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [0.414ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-20T09:15:59.484Z	DEBUG	TestReconcile_PipelineRun	results/results.go:188	Result doesn't exist yet - creating	{"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/results.go:72
        [1797.061ms] [rows:1] 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 ("ns","576aded3-de9f-45e5-8e4d-55ad19249b59","12345","{""object.metadata.name"":""pipelinerun""}","ns/results/12345/records/12345","tekton.dev/v1.PipelineRun",NULL,"0000-00-00 00:00:00",1,"null","576aded3-de9f-45e5-8e4d-55ad19249b59-1732094159485962966","2024-11-20 09:15:59.485","2024-11-20 09:15:59.485") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found
... skipping 15 lines ...
        [0.429ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "6867059f-7d20-3901-aefd-abbabbaaca2a" 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.520ms] [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
        [841.765ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","576aded3-de9f-45e5-8e4d-55ad19249b59","12345","94b6c54e-a06a-4cb2-83ff-926d3ccf8be0","6867059f-7d20-3901-aefd-abbabbaaca2a","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""pipelinerun-log"",""namespace"":""ns"",""uid"":""6867059f-7d20-3901-aefd-abbabbaaca2a"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""PipelineRun"",""namespace"":""ns"",""name"":""pipelinerun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","94b6c54e-a06a-4cb2-83ff-926d3ccf8be0-1732094161825326452","2024-11-20 09:16:01.825","2024-11-20 09:16:01.825") RETURNING `created_time`,`updated_time`
    logger.go:146: 2024-11-20T09:16:02.675Z	DEBUG	TestReconcile_PipelineRun	dynamic/dynamic.go:472	Streaming log started	{"namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun"}
    logger.go:146: 2024-11-20T09:16:02.677Z	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: 2024-11-20T09:16:02.678Z	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.765ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-20T09:16:02.683Z	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.434ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "63776ef0-59b9-3018-a06c-09ae7c192ac9" ORDER BY `records`.`id` LIMIT 1
... skipping 58 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.196ms] [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
        [8308.531ms] [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
        [10479.127ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094107.6761742,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/results.client\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:627\ngithub.com/tektoncd/results/pkg/watcher/results.TestClient_PutLog\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/logs_test.go:15\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
=== RUN   TestClient_PutLog/taskrun
=== RUN   TestClient_PutLog/taskrun/create
=== NAME  TestClient_PutLog
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [0.708ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
... skipping 87 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.130ms] [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
        [705.200ms] [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
        [4139.381ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094140.2735631,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/results.client\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:627\ngithub.com/tektoncd/results/pkg/watcher/results.TestEnsureResult\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:236\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [0.430ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1
=== RUN   TestEnsureResult/foo
=== NAME  TestEnsureResult
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [0.256ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1
... skipping 31 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.169ms] [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
        [1093.465ms] [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
        [768.794ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094153.8347633,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/results.client\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:627\ngithub.com/tektoncd/results/pkg/watcher/results.TestEnsureResult_RecordSummaryUpdate\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:305\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [55.223ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "default" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-20T09:15:53.895Z	DEBUG	results/results.go:188	Result doesn't exist yet - creating	{"results.tekton.dev/result": "default/results/1", "results.tekton.dev/record": "default/results/1/records/2", "results.tekton.dev/top-level-record": false}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [1843.338ms] [rows:1] 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 ("default","0411883e-1819-401a-8f68-4f8c9ac6b970","1","null","","",NULL,NULL,0,"null","0411883e-1819-401a-8f68-4f8c9ac6b970-1732094153897111007","2024-11-20 09:15:53.897","2024-11-20 09:15:53.897") RETURNING `created_time`,`updated_time`
    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/server.go:96
        [0.116ms] [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
        [1738.591ms] [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
        [512.452ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094161.8098543,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/results.client\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:627\ngithub.com/tektoncd/results/pkg/watcher/results.TestAnnotations\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:353\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [0.388ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "default" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-20T09:16:01.815Z	DEBUG	results/results.go:188	Result doesn't exist yet - creating	{"results.tekton.dev/result": "default/results/1", "results.tekton.dev/record": "default/results/1/records/1", "results.tekton.dev/top-level-record": true}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [850.223ms] [rows:1] 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 ("default","50754277-ffd8-4cfd-9f72-76b7e97688f0","1","{""i"":""7"",""object.metadata.name"":""foo"",""x"":""y""}","default/results/1/records/1","tekton.dev/v1.PipelineRun",NULL,NULL,0,"{""foo"":""bar"",""test"":""1""}","50754277-ffd8-4cfd-9f72-76b7e97688f0-1732094161817278862","2024-11-20 09:16:01.817","2024-11-20 09:16:01.817") RETURNING `created_time`,`updated_time`
--- PASS: TestAnnotations (6.02s)
... skipping 10 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.122ms] [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
        [3520.759ms] [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
        [687.516ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094169.190492,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/results.client\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:627\ngithub.com/tektoncd/results/pkg/watcher/results.TestUpsertRecord\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:387\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
=== RUN   TestUpsertRecord/taskrun
=== NAME  TestUpsertRecord
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [0.389ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [863.150ms] [rows:1] 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 ("test","324998cb-36a0-405c-b5bd-139508f381f9","taskrun-id","{""object.metadata.name"":""taskrun""}","test/results/taskrun-id/records/taskrun-id","tekton.dev/v1.TaskRun",NULL,NULL,0,"null","324998cb-36a0-405c-b5bd-139508f381f9-1732094169196216889","2024-11-20 09:16:09.196","2024-11-20 09:16:09.196") RETURNING `created_time`,`updated_time`
... skipping 73 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.114ms] [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
        [529.938ms] [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
        [369.313ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1732094176.4776356,"caller":"plugin/plugin_logs.go:394","msg":"unsupported type of logs given for plugin","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.(*LogServer).setLogPlugin\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:394\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/plugin.NewLogServer\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/server.go:61\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/results.client\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:627\ngithub.com/tektoncd/results/pkg/watcher/results.TestPut\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:557\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
=== RUN   TestPut/taskrun
=== RUN   TestPut/taskrun/create
=== NAME  TestPut
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [158.906ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
... skipping 46 lines ...
        --- PASS: TestPut/pipelinerun/update (0.01s)
PASS
ok  	github.com/tektoncd/results/pkg/watcher/results	111.746s
testing: warning: no tests to run
PASS
ok  	github.com/tektoncd/results/tools/postgres-migrate	1.073s [no tests to run]
FAIL
unit_tests returning 
===========================
==== UNIT TESTS FAILED ====
===========================
+ EXIT_VALUE=1
+ set +o xtrace