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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.116ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[406.145ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[609.876ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[572.524ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[3.199ms] [34;1m[rows:1][0m SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
... skipping 14 lines ...
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.124ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[280.267ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[610.456ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[198.653ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[1.640ms] [34;1m[rows:1][0m SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
... skipping 14 lines ...
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.171ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[540.999ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[303.262ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[442.823ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[2.256ms] [34;1m[rows:1][0m SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
... skipping 19 lines ...
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.155ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[281.762ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[519.222ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[870.270ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[1.778ms] [34;1m[rows:1][0m SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
[0m[33m[649.076ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352
[0m[33m[0.890ms] [34;1m[rows:3][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.138ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[586.827ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[530.077ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[837.254ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[10.859ms] [34;1m[rows:1][0m SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "0" AND `results`.`name` = "0" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
[0m[33m[512.999ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.128ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[654.882ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[328.454ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[529.159ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[1.913ms] [34;1m[rows:1][0m SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
... skipping 52 lines ...
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.122ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[458.109ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[506.643ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[187.381ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[2.226ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[0.346ms] [34;1m[rows:1][0m SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
db.go:69: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [35;1mUNIQUE constraint failed: records.parent, records.result_name, records.name
[0m[33m[0.643ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.173ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[582.221ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[1099.050ms] [34;1m[rows:0][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [35;1mFOREIGN KEY constraint failed
[0m[33m[1.489ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59
[0m[33m[0.051ms] [34;1m[rows:0][0m PRAGMA foreign_keys = ON;
... skipping 6 lines ...
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.192ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[813.066ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[294.563ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[646.386ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[49.453ms] [34;1m[rows:1][0m SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
[0m[33m[407.535ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.132ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[2866.042ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[2059.237ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[2908.808ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[2.223ms] [34;1m[rows:1][0m SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
[0m[33m[1106.998ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.128ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[6505.861ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[8309.394ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[11293.487ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[1.432ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.123ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[3032.746ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[4685.025ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[903.101ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[1.584ms] [34;1m[rows:1][0m SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
[0m[33m[1064.122ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.132ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[391.005ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[1713.515ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[949.080ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[3.672ms] [34;1m[rows:1][0m SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "0" AND `results`.`name` = "0" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
[0m[33m[1148.661ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.126ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[1427.388ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[399.782ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[438.180ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
[0m[33m[1.067ms] [34;1m[rows:1][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [35;1mUNIQUE constraint failed: results.parent, results.name
[0m[33m[0.742ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.142ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[602.122ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[336.876ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[529.448ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
[0m[33m[0.692ms] [34;1m[rows:1][0m SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar-0" ORDER BY `results`.`id` LIMIT 1
... skipping 53 lines ...
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.109ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[465.878ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[2671.392ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[1775.516ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
[0m[33m[0.828ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.117ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[639.496ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[610.157ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[525.913ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168
[0m[33m[0.998ms] [34;1m[rows:1][0m SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
... skipping 21 lines ...
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.128ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[366.333ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[620.173ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[684.756ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[1.896ms] [34;1m[rows:1][0m SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
[0m[33m[1719.913ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.215ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[908.615ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[1048.148ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[404.237ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[1426.290ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[303.336ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.121ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[441.554ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[198.663ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[384.649ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
[0m[33m[0.796ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.568ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[10479.509ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[8308.843ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.149ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[10023.350ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[10510.774ms] [34;1m[rows:0][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [35;1mrecord not found
[0m[33m[0.428ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[1648.150ms] [34;1m[rows:1][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [35;1mrecord not found
... skipping 16 lines ...
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[0.561ms] [34;1m[rows:1][0m SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
[0m[33m[2803.143ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
[0m[33m[0.811ms] [34;1m[rows:1][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [35;1mrecord not found
[0m[33m[0.475ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
[0m[33m[0.700ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
[0m[33m[0.517ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217
[0m[33m[0.721ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
[0m[33m[57.219ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
[0m[33m[0.664ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 34 lines ...
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
[0m[33m[0.490ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
[0m[33m[0.581ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217
[0m[33m[0.633ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
[0m[33m[1.113ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
[0m[33m[0.959ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 52 lines ...
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
[0m[33m[0.449ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
[0m[33m[0.461ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217
[0m[33m[43.257ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
[0m[33m[0.928ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
[0m[33m[0.434ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 14 lines ...
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
[0m[33m[0.807ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
[0m[33m[0.561ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217
[0m[33m[190.326ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
[0m[33m[0.671ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
[0m[33m[0.692ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 16 lines ...
db.go:69: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [35;1mrecord not found
[0m[33m[0.809ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[0.587ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
[0m[33m[1724.049ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
[0m[33m[0.622ms] [34;1m[rows:1][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [35;1mrecord not found
[0m[33m[0.673ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 3 lines ...
[0m[33m[0.452ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[0.538ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
[0m[33m[2412.468ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
[0m[33m[0.522ms] [34;1m[rows:1][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [35;1mrecord not found
[0m[33m[0.431ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
[0m[33m[0.418ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
[0m[33m[0.481ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217
[0m[33m[118.307ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
[0m[33m[0.694ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
[0m[33m[0.454ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 29 lines ...
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.100ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[1151.105ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[1636.589ms] [34;1m[rows:0][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [35;1mrecord not found
[0m[33m[0.414ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[1797.061ms] [34;1m[rows:1][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [35;1mrecord not found
... skipping 15 lines ...
[0m[33m[0.429ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
[0m[33m[0.520ms] [34;1m[rows:1][0m SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
[0m[33m[841.765ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
[0m[33m[0.765ms] [34;1m[rows:1][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [35;1mrecord not found
[0m[33m[0.434ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.196ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[8308.531ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[10479.127ms] [34;1m[rows:0][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [35;1mrecord not found
[0m[33m[0.708ms] [34;1m[rows:0][0m SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
... skipping 87 lines ...
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.130ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[705.200ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[4139.381ms] [34;1m[rows:0][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [35;1mrecord not found
[0m[33m[0.430ms] [34;1m[rows:0][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [35;1mrecord not found
[0m[33m[0.256ms] [34;1m[rows:0][0m SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1
... skipping 31 lines ...
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.169ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[1093.465ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[768.794ms] [34;1m[rows:0][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [35;1mrecord not found
[0m[33m[55.223ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[1843.338ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 16 lines ...
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.116ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[1738.591ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[512.452ms] [34;1m[rows:0][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [35;1mrecord not found
[0m[33m[0.388ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[850.223ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.122ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[3520.759ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[687.516ms] [34;1m[rows:0][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [35;1mrecord not found
[0m[33m[0.389ms] [34;1m[rows:0][0m SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[863.150ms] [34;1m[rows:1][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[0.114ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[529.938ms] [34;1m[rows:0][0m 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
[0m[33m[369.313ms] [34;1m[rows:0][0m 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: [31;1m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [35;1mrecord not found
[0m[33m[158.906ms] [34;1m[rows:0][0m SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1
db.go:69: [32m/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