ResultFAILURE
Tests 0 failed / 0 succeeded
Started2024-11-12 00:19
Elapsed3m6s
Revision1ea49b380dabd65edb6010515de2c164b8912386
Refs 879

No Test Failures!


Error lines from build-log.txt

... skipping 337 lines ...
vendor/github.com/aws/aws-sdk-go-v2/service/sts/types/errors.go
vendor/github.com/aws/aws-sdk-go-v2/service/sts/types/types.go
vendor/github.com/aws/aws-sdk-go/LICENSE.txt
vendor/github.com/aws/aws-sdk-go/NOTICE.txt
vendor/github.com/aws/aws-sdk-go/aws/arn/arn.go
vendor/github.com/aws/aws-sdk-go/aws/auth/bearer/token.go
vendor/github.com/aws/aws-sdk-go/aws/awserr/error.go
vendor/github.com/aws/aws-sdk-go/aws/awserr/types.go
vendor/github.com/aws/aws-sdk-go/aws/awsutil/copy.go
vendor/github.com/aws/aws-sdk-go/aws/awsutil/equal.go
vendor/github.com/aws/aws-sdk-go/aws/awsutil/path_value.go
vendor/github.com/aws/aws-sdk-go/aws/awsutil/prettify.go
vendor/github.com/aws/aws-sdk-go/aws/awsutil/string_value.go
... skipping 118 lines ...
vendor/github.com/aws/aws-sdk-go/internal/s3shared/arn/accesspoint_arn.go
vendor/github.com/aws/aws-sdk-go/internal/s3shared/arn/arn.go
vendor/github.com/aws/aws-sdk-go/internal/s3shared/arn/outpost_arn.go
vendor/github.com/aws/aws-sdk-go/internal/s3shared/arn/s3_object_lambda_arn.go
vendor/github.com/aws/aws-sdk-go/internal/s3shared/endpoint_errors.go
vendor/github.com/aws/aws-sdk-go/internal/s3shared/resource_request.go
vendor/github.com/aws/aws-sdk-go/internal/s3shared/s3err/error.go
vendor/github.com/aws/aws-sdk-go/internal/sdkio/byte.go
vendor/github.com/aws/aws-sdk-go/internal/sdkio/io_go1.6.go
vendor/github.com/aws/aws-sdk-go/internal/sdkio/io_go1.7.go
vendor/github.com/aws/aws-sdk-go/internal/sdkmath/floor.go
vendor/github.com/aws/aws-sdk-go/internal/sdkmath/floor_go1.9.go
vendor/github.com/aws/aws-sdk-go/internal/sdkrand/locked_source.go
... skipping 8 lines ...
vendor/github.com/aws/aws-sdk-go/internal/sync/singleflight/LICENSE
vendor/github.com/aws/aws-sdk-go/internal/sync/singleflight/singleflight.go
vendor/github.com/aws/aws-sdk-go/private/checksum/content_md5.go
vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/debug.go
vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/decode.go
vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/encode.go
vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/error.go
vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/error.go
vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/reader.go
vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/shared.go
vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/signer.go
vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/stream_writer.go
vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/transport.go
vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/transport_go1.17.go
... skipping 359 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/12 00:21:56 maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined
=== RUN   Test_determineAuth
=== RUN   Test_determineAuth/missing_token
=== RUN   Test_determineAuth/invalid_token
=== RUN   Test_determineAuth/valid_token
--- PASS: Test_determineAuth (0.00s)
    --- PASS: Test_determineAuth/missing_token (0.00s)
... skipping 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.03s)
    --- PASS: TestParseFilter/success (0.02s)
        --- PASS: TestParseFilter/success/#00 (0.00s)
        --- PASS: TestParseFilter/success/result (0.01s)
        --- PASS: TestParseFilter/success/result.id (0.00s)
        --- PASS: TestParseFilter/success/result.id_==_"1" (0.00s)
        --- PASS: TestParseFilter/success/result.id_==_"1"_||_result.name_==_"2" (0.00s)
        --- PASS: TestParseFilter/success/result.id.startsWith("tacocat") (0.00s)
    --- PASS: TestParseFilter/error (0.00s)
        --- PASS: TestParseFilter/error/asdf (0.00s)
        --- PASS: TestParseFilter/error/result.id_==_1 (0.00s)
        --- PASS: TestParseFilter/error/result.ID (0.00s)
PASS
ok  	github.com/tektoncd/results/pkg/api/server/cel	1.066s
=== RUN   TestConvertRecordExpressions
=== RUN   TestConvertRecordExpressions/simple_expression
    convert_test.go:170: want: (name = 'foo')
    convert_test.go:171: got:  (name = 'foo')
... skipping 184 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.118ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [501.076ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [599.596ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370959.6049666,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestGetLog\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:89\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [571.513ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","null","","",NULL,NULL,0,"null","1-1731370958058401151","2024-11-12 00:22:38.058","2024-11-12 00:22:38.058") RETURNING `created_time`,`updated_time`
    logs_test.go:113: test log file:  /tmp/test-log-taskrun-3435908570.log
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [2.738ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
... skipping 14 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.112ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [24.329ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [18.832ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370960.3114998,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestGetLogV2\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:167\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [22.384ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","3","bar","null","","",NULL,NULL,0,"null","3-1731370958058401151","2024-11-12 00:22:38.058","2024-11-12 00:22:38.058") RETURNING `created_time`,`updated_time`
    logs_test.go:191: test log file:  /tmp/test-log-taskrun-2383994970.log
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [1.719ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
... skipping 14 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.094ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [15.763ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [19.908ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370960.445232,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestUpdateLog\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:254\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [14.026ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","5","bar","null","","",NULL,NULL,0,"null","5-1731370958058401151","2024-11-12 00:22:38.058","2024-11-12 00:22:38.058") RETURNING `created_time`,`updated_time`
    logs_test.go:268: test storage directory: /tmp/test-logs-3064018918
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [2.077ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
... skipping 19 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.120ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [20.281ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [16.490ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370960.573356,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestListLogs\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:329\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [20.824ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","7","bar","null","","",NULL,NULL,0,"null","7-1731370958058401151","2024-11-12 00:22:38.058","2024-11-12 00:22:38.058") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [1.406ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [13.359ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","7","bar","8","0","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""0"",""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":"""",""name"":""""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","8-1731370959058401151","2024-11-12 00:22:39.058","2024-11-12 00:22:39.058") RETURNING `created_time`,`updated_time`
... skipping 61 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352
        [0.771ms] [rows:3] SELECT * FROM `records` WHERE type = "results.tekton.dev/v1alpha3.Log" AND id > "" AND parent = "foo" AND result_name = "bar" ORDER BY created_time LIMIT 51
=== RUN   TestListLogs/unknown_type
=== RUN   TestListLogs/unknown_any_field
=== RUN   TestListLogs/invalid_page_size
=== RUN   TestListLogs/malformed_parent
{"level":"error","ts":1731370961.1816971,"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 (0.69s)
    --- PASS: TestListLogs/all (0.06s)
    --- PASS: TestListLogs/list_all_records_without_knowing_the_result_name (0.05s)
    --- PASS: TestListLogs/list_all_records_without_knowing_the_parent_and_the_result_name (0.04s)
... skipping 26 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.101ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [129.096ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [427.496ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370961.8798845,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestListLogs_multiresult\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:587\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [155.386ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("0","11","0","null","","",NULL,NULL,0,"null","11-1731370961058401151","2024-11-12 00:22:41.058","2024-11-12 00:22:41.058") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [2.374ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "0" AND `results`.`name` = "0" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [158.468ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("0","11","0","12","0","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""0"",""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":"""",""name"":""""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","12-1731370961058401151","2024-11-12 00:22:41.058","2024-11-12 00:22:41.058") RETURNING `created_time`,`updated_time`
... skipping 47 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.111ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [58.476ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [46.893ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370963.456633,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestDeleteLog\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:648\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [55.693ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","23","bar","null","","",NULL,NULL,0,"null","23-1731370961058401151","2024-11-12 00:22:41.058","2024-11-12 00:22:41.058") RETURNING `created_time`,`updated_time`
    logs_test.go:672: test log file:  /tmp/test-log-taskrun-3186704620.log
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [1.448ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
... skipping 52 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.161ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [35.574ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [16.809ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370963.7258902,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestCreateRecord\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records_test.go:48\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [22.055ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","25","bar","null","","",NULL,NULL,0,"null","25-1731370961058401151","2024-11-12 00:22:41.058","2024-11-12 00:22:41.058") RETURNING `created_time`,`updated_time`
=== RUN   TestCreateRecord/success
=== NAME  TestCreateRecord
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [1.452ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
... skipping 7 lines ...
=== RUN   TestCreateRecord/missing_name
=== RUN   TestCreateRecord/result_used_as_name
=== RUN   TestCreateRecord/already_exists
=== NAME  TestCreateRecord
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [0.186ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 UNIQUE constraint failed: records.parent, records.result_name, records.name
        [0.509ms] [rows:0] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","25","bar","27","baz","TaskRun","{""metadata"":{""name"":""tacocat"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","27-1731370961058401151","2024-11-12 00:22:41.058","2024-11-12 00:22:41.058") RETURNING `created_time`,`updated_time`
--- PASS: TestCreateRecord (0.23s)
    --- PASS: TestCreateRecord/success (0.03s)
    --- PASS: TestCreateRecord/mismatched_parent (0.00s)
    --- PASS: TestCreateRecord/parent_does_not_exist (0.00s)
    --- PASS: TestCreateRecord/missing_name (0.00s)
... skipping 12 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.119ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [19.796ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [12.073ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370964.0174372,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestCreateRecord_ConcurrentDelete\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records_test.go:159\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 FOREIGN KEY constraint failed
        [0.939ms] [rows:0] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","deleted","deleted","28","baz","","","28-1731370961058401151","2024-11-12 00:22:41.058","2024-11-12 00:22:41.058") RETURNING `created_time`,`updated_time`
--- PASS: TestCreateRecord_ConcurrentDelete (0.22s)
=== RUN   TestGetRecord
    records_test.go:185: test database:  /tmp/testdb1857664974
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59
        [0.087ms] [rows:0] PRAGMA foreign_keys = ON;
... skipping 6 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.126ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [53.298ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [37.827ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370964.239165,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestGetRecord\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records_test.go:185\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [23.025ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","29","bar","null","","",NULL,NULL,0,"null","29-1731370961058401151","2024-11-12 00:22:41.058","2024-11-12 00:22:41.058") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [1.536ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [14.853ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","29","bar","30","baz","","","30-1731370961058401151","2024-11-12 00:22:41.058","2024-11-12 00:22:41.058") RETURNING `created_time`,`updated_time`
... skipping 25 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.102ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [15.887ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [14.740ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370964.5006914,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestListRecords\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records_test.go:253\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [14.684ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","null","","",NULL,NULL,0,"null","1-1731370961058401151","2024-11-12 00:22:41.058","2024-11-12 00:22:41.058") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [1.498ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [33.583ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","2","0","TaskRun","{""metadata"":{""name"":""0"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","2-1731370962058401151","2024-11-12 00:22:42.058","2024-11-12 00:22:42.058") RETURNING `created_time`,`updated_time`
... skipping 219 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.116ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [9.443ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [6.913ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370967.2074275,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestUpdateRecord\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records_test.go:542\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [8.900ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","22","bar","null","","",NULL,NULL,0,"null","22-1731370981058401151","2024-11-12 00:23:01.058","2024-11-12 00:23:01.058") RETURNING `created_time`,`updated_time`
=== RUN   TestUpdateRecord/success
=== NAME  TestUpdateRecord
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [1.856ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
... skipping 41 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.120ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [9.819ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [38.078ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370967.419016,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestDeleteRecord\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records_test.go:684\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [23.020ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","25","bar","null","","",NULL,NULL,0,"null","25-1731370986058401151","2024-11-12 00:23:06.058","2024-11-12 00:23:06.058") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [1.454ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [19.710ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","25","bar","26","baz","","","26-1731370986058401151","2024-11-12 00:23:06.058","2024-11-12 00:23:06.058") RETURNING `created_time`,`updated_time`
... skipping 25 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.113ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [8.305ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [18.992ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370967.5556085,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestListRecords_multiresult\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records_test.go:731\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [16.294ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("0","27","0","null","","",NULL,NULL,0,"null","27-1731370986058401151","2024-11-12 00:23:06.058","2024-11-12 00:23:06.058") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [12.001ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "0" AND `results`.`name` = "0" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [18.386ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("0","27","0","28","0","","","28-1731370986058401151","2024-11-12 00:23:06.058","2024-11-12 00:23:06.058") RETURNING `created_time`,`updated_time`
... skipping 47 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.124ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [7.932ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [11.576ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370967.8337443,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestCreateResult\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results_test.go:43\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
=== RUN   TestCreateResult/success
=== NAME  TestCreateResult
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [16.228ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","39","bar","{""foo"":""bar""}","","",NULL,NULL,0,"null","39-1731370986058401151","2024-11-12 00:23:06.058","2024-11-12 00:23:06.058") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.807ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
=== RUN   TestCreateResult/mismatched_parent
=== RUN   TestCreateResult/missing_name
=== RUN   TestCreateResult/already_exists
=== NAME  TestCreateResult
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 UNIQUE constraint failed: results.parent, results.name
        [0.731ms] [rows:0] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","40","bar","{""foo"":""bar""}","","",NULL,NULL,0,"null","40-1731370986058401151","2024-11-12 00:23:06.058","2024-11-12 00:23:06.058") RETURNING `created_time`,`updated_time`
=== RUN   TestCreateResult/large_name
=== RUN   TestCreateResult/large_result_summary_type
--- PASS: TestCreateResult (0.09s)
    --- PASS: TestCreateResult/success (0.02s)
    --- PASS: TestCreateResult/mismatched_parent (0.00s)
... skipping 14 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.106ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [5.738ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [9.853ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370967.9273612,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestUpdateResult\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results_test.go:139\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
=== RUN   TestUpdateResult/success
=== NAME  TestUpdateResult
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [30.677ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","42","bar-0","null","","",NULL,NULL,0,"null","42-1731370986058401151","2024-11-12 00:23:06.058","2024-11-12 00:23:06.058") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.655ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar-0" ORDER BY `results`.`id` LIMIT 1
... skipping 53 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.112ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [13.749ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [16.945ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370968.2286787,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestGetResult\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results_test.go:246\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [12.469ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","48","bar","null","","",NULL,NULL,0,"null","48-1731370992058401151","2024-11-12 00:23:12.058","2024-11-12 00:23:12.058") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.517ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
=== RUN   TestGetResult/no_name
=== RUN   TestGetResult/not_found
... skipping 16 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.125ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [11.810ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [9.614ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370968.3160481,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestDeleteResult\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results_test.go:296\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [11.860ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","49","bar","null","","",NULL,NULL,0,"null","49-1731370992058401151","2024-11-12 00:23:12.058","2024-11-12 00:23:12.058") RETURNING `created_time`,`updated_time`
=== RUN   TestDeleteResult/success
=== NAME  TestDeleteResult
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168
        [0.581ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
... skipping 21 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.098ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [11.521ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [9.537ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370968.531965,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestCascadeDelete\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results_test.go:332\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [12.617ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","50","bar","null","","",NULL,NULL,0,"null","50-1731370992058401151","2024-11-12 00:23:12.058","2024-11-12 00:23:12.058") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [1.383ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [6.825ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","50","bar","51","baz","","","51-1731370992058401151","2024-11-12 00:23:12.058","2024-11-12 00:23:12.058") RETURNING `created_time`,`updated_time`
... skipping 17 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.109ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [10.835ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [15.920ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370968.673561,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestListResults\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results_test.go:366\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [28.655ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","cab98791-b9cd-4abb-9475-e82b23eca5c5","{""foo"":""bar-1""}","foo/results/cab98791-b9cd-4abb-9475-e82b23eca5c5/records/b7217cbd-a5ae-4a6d-94ea-b185cc2a33a6","resource_type","2024-11-12 00:23:13.058","2024-11-12 00:24:13.058",0,"null","1-1731370993058401151","2024-11-12 00:23:13.058","2024-11-12 00:23:13.058") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [10.858ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","2","570395c0-8ed7-43ec-a30e-6d18cff62ca8","{""foo"":""bar-2""}","foo/results/570395c0-8ed7-43ec-a30e-6d18cff62ca8/records/62afa024-1ca6-4126-ab2b-0cf386299cf6","resource_type","2024-11-12 00:23:14.058","2024-11-12 00:24:14.058",0,"null","2-1731370994058401151","2024-11-12 00:23:14.058","2024-11-12 00:23:14.058") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [7.049ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","3","7c6b3849-c508-41cc-82a1-229ec716fe90","{""foo"":""bar-3""}","foo/results/7c6b3849-c508-41cc-82a1-229ec716fe90/records/9f0bd97d-adf1-4731-961f-110f059abc11","resource_type","2024-11-12 00:23:15.058","2024-11-12 00:24:15.058",0,"null","3-1731370995058401151","2024-11-12 00:23:15.058","2024-11-12 00:23:15.058") RETURNING `created_time`,`updated_time`
... skipping 206 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.108ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [596.939ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [227.584ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370959.8317552,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2/auth_test.TestRBAC\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/auth/rbac_test.go:93\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
=== RUN   TestRBAC/authorized_user
=== NAME  TestRBAC
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [356.606ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","39a9723e-5918-49fa-b854-49fb8622864c","bar","null","","",NULL,NULL,0,"null","39a9723e-5918-49fa-b854-49fb8622864c-1731370959840922639","2024-11-12 00:22:39.84","2024-11-12 00:22:39.84") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.685ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1
... skipping 333 lines ...
=== RUN   TestGCSWriteTo
    gcs_test.go:77: Replaying GCS API responses from replay file testdata/TestGCSWriteTo.replay
--- PASS: TestGCSWriteTo (0.02s)
=== RUN   TestGCSDelete
    gcs_test.go:77: Replaying GCS API responses from replay file testdata/TestGCSDelete.replay
    gcs_test.go:80: testdata/TestGCSDelete.replay: invalid character '}' looking for beginning of object key string
--- FAIL: TestGCSDelete (0.00s)
=== RUN   TestFilePath
--- PASS: TestFilePath (0.00s)
=== RUN   TestFormatName
--- PASS: TestFormatName (0.00s)
=== RUN   TestParseName
=== RUN   TestParseName/simple
... skipping 30 lines ...
=== RUN   TestS3Stream_WriteTo
--- PASS: TestS3Stream_WriteTo (0.00s)
=== RUN   TestS3Stream_ReadFrom
--- PASS: TestS3Stream_ReadFrom (0.00s)
=== RUN   TestS3Stream_Delete
--- PASS: TestS3Stream_Delete (0.00s)
FAIL
FAIL	github.com/tektoncd/results/pkg/api/server/v1alpha2/log	1.050s
=== RUN   TestLogPluginServer_GetLog
    plugin_logs_test.go:92: test database:  /tmp/testdb1341185071
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59
        [0.043ms] [rows:0] PRAGMA foreign_keys = ON;
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.118ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results"
... skipping 107 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/12 00:22:38 failed to evaluate the expression: no such attribute(s): record
--- PASS: TestMatch (0.02s)
    --- PASS: TestMatch/no_filter (0.00s)
    --- PASS: TestMatch/matching_condition (0.01s)
    --- PASS: TestMatch/non-matching_condition (0.00s)
    --- PASS: TestMatch/nil_result (0.00s)
    --- PASS: TestMatch/non-bool_output (0.00s)
... skipping 193 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.064ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [9.211ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [6.849ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370974.270903,"caller":"plugin/plugin_logs.go:385","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:385\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:62\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-12T00:22:54.275Z	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-12T00:22:54.276Z	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-12T00:22:54.278Z	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-12T00:22:54.278Z	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 143 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.091ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [9.391ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [14.030ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370977.7836156,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/reconciler/dynamic.TestReconcile_TaskRun\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/reconciler/dynamic/dynamic_test.go:129\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [0.363ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:57.791Z	DEBUG	TestReconcile_TaskRun	results/results.go:188	Result doesn't exist yet - creating	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [38.886ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("ns","f90bf105-0a16-4f2e-bf62-3c96f8251203","12345","{""object.metadata.name"":""taskrun""}","ns/results/12345/records/12345","tekton.dev/v1.TaskRun",NULL,"0000-00-00 00:00:00",1,"null","f90bf105-0a16-4f2e-bf62-3c96f8251203-1731370977795611101","2024-11-12 00:22:57.795","2024-11-12 00:22:57.795") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found
... skipping 16 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [0.389ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [32.084ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","f90bf105-0a16-4f2e-bf62-3c96f8251203","12345","01513d0f-e18b-4791-8d91-7aba1f6e7e4f","d2178381-5ee9-3698-b7e4-8e102bcdcd6b","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""ns"",""uid"":""d2178381-5ee9-3698-b7e4-8e102bcdcd6b"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""ns"",""name"":""taskrun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","01513d0f-e18b-4791-8d91-7aba1f6e7e4f-1731370977887864313","2024-11-12 00:22:57.887","2024-11-12 00:22:57.887") RETURNING `created_time`,`updated_time`
    logger.go:146: 2024-11-12T00:22:57.921Z	DEBUG	TestReconcile_TaskRun	dynamic/dynamic.go:289	Skipping CRD annotation patch: annotation update is disabled
    logger.go:146: 2024-11-12T00:22:57.921Z	DEBUG	TestReconcile_TaskRun	dynamic/dynamic.go:472	Streaming log started	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun"}
    logger.go:146: 2024-11-12T00:22:57.922Z	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-12T00:22:57.923Z	INFO	TestReconcile_TaskRun	dynamic/dynamic.go:488	Streaming log completed	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.616ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:57.926Z	DEBUG	TestReconcile_TaskRun	results/results.go:210	No further actions to be done on the Result: no differences found	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found
        [0.425ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "d001c4a6-241b-3029-b923-e37a9e62f96a" ORDER BY `records`.`id` LIMIT 1
... skipping 110 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.334ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:58.123Z	DEBUG	TestReconcile_TaskRun	results/results.go:326	Updating Record	{"results.tekton.dev/record": "ns/results/12345/records/12345"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.322ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217
        [0.385ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""annotations"":{""demo"":""demo""}},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2024-11-12T00:22:58Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-11-12T00:22:58Z"",""completionTime"":""2024-11-12T00:22:59Z""}}",`created_time`="2024-11-12 00:22:57.862",`updated_time`="2024-11-12 00:22:58.125",`etag`="3825247b-2b0b-4a8f-a4f0-85307fd6ae28-1731370978125007433" WHERE `parent` = "ns" AND `result_id` = "f90bf105-0a16-4f2e-bf62-3c96f8251203" AND `id` = "3825247b-2b0b-4a8f-a4f0-85307fd6ae28"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.667ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:58.135Z	DEBUG	TestReconcile_TaskRun	results/results.go:210	No further actions to be done on the Result: no differences found	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.385ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "d2178381-5ee9-3698-b7e4-8e102bcdcd6b" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 34 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.261ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:58.181Z	DEBUG	TestReconcile_TaskRun	results/results.go:326	Updating Record	{"results.tekton.dev/record": "ns/results/12345/records/12345"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.315ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217
        [0.454ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""labels"":{""x"":""foo""},""annotations"":{""demo"":""demo""}},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2024-11-12T00:22:58Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-11-12T00:22:58Z"",""completionTime"":""2024-11-12T00:22:59Z""}}",`created_time`="2024-11-12 00:22:57.862",`updated_time`="2024-11-12 00:22:58.183",`etag`="3825247b-2b0b-4a8f-a4f0-85307fd6ae28-1731370978183182048" WHERE `parent` = "ns" AND `result_id` = "f90bf105-0a16-4f2e-bf62-3c96f8251203" AND `id` = "3825247b-2b0b-4a8f-a4f0-85307fd6ae28"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.479ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:58.229Z	DEBUG	TestReconcile_TaskRun	results/results.go:210	No further actions to be done on the Result: no differences found	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.584ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "d2178381-5ee9-3698-b7e4-8e102bcdcd6b" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 52 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.289ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:58.308Z	DEBUG	TestReconcile_TaskRun	results/results.go:326	Updating Record	{"results.tekton.dev/record": "ns/results/12345/records/12345"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.270ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217
        [0.377ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""labels"":{""x"":""foo""},""annotations"":{""x"":""foo""}},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2024-11-12T00:22:58Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-11-12T00:22:58Z"",""completionTime"":""2024-11-12T00:22:59Z""}}",`created_time`="2024-11-12 00:22:57.862",`updated_time`="2024-11-12 00:22:58.31",`etag`="3825247b-2b0b-4a8f-a4f0-85307fd6ae28-1731370978310235708" WHERE `parent` = "ns" AND `result_id` = "f90bf105-0a16-4f2e-bf62-3c96f8251203" AND `id` = "3825247b-2b0b-4a8f-a4f0-85307fd6ae28"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.597ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:58.367Z	DEBUG	TestReconcile_TaskRun	results/results.go:210	No further actions to be done on the Result: no differences found	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.491ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "d2178381-5ee9-3698-b7e4-8e102bcdcd6b" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 14 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.308ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:58.392Z	DEBUG	TestReconcile_TaskRun	results/results.go:326	Updating Record	{"results.tekton.dev/record": "ns/results/12345/records/12345"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.528ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217
        [0.451ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""labels"":{""x"":""foo""},""annotations"":{""x"":""foo""},""ownerReferences"":[{""apiVersion"":""v1"",""kind"":""test"",""name"":""test-owner"",""uid"":""""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2024-11-12T00:22:58Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-11-12T00:22:58Z"",""completionTime"":""2024-11-12T00:22:59Z""}}",`created_time`="2024-11-12 00:22:57.862",`updated_time`="2024-11-12 00:22:58.395",`etag`="3825247b-2b0b-4a8f-a4f0-85307fd6ae28-1731370978395655360" WHERE `parent` = "ns" AND `result_id` = "f90bf105-0a16-4f2e-bf62-3c96f8251203" AND `id` = "3825247b-2b0b-4a8f-a4f0-85307fd6ae28"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [2.023ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:58.437Z	DEBUG	TestReconcile_TaskRun	results/results.go:202	No further actions to be done on the Result: the object is not a top level record	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": false}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.307ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "d2178381-5ee9-3698-b7e4-8e102bcdcd6b" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 16 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found
        [5.755ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "57092396-1074-4479-a7cf-556e22a26d42" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:58.474Z	DEBUG	TestReconcile_TaskRun	results/results.go:334	Record doesn't exist yet - creating	{"results.tekton.dev/record": "ns/results/57092396-1074-4479-a7cf-556e22a26d42/records/12345"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [0.322ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "57092396-1074-4479-a7cf-556e22a26d42" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [22.278ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","1cd4cc7a-da6f-4ed6-a891-41eeb07c27aa","57092396-1074-4479-a7cf-556e22a26d42","b79e1e55-2cd7-4fff-a6f5-cfe3f7c3a04e","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"":""57092396-1074-4479-a7cf-556e22a26d42""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2024-11-12T00:22:58Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-11-12T00:22:58Z"",""completionTime"":""2024-11-12T00:22:59Z""}}","b79e1e55-2cd7-4fff-a6f5-cfe3f7c3a04e-1731370978476284853","2024-11-12 00:22:58.476","2024-11-12 00:22:58.476") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [8.458ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "57092396-1074-4479-a7cf-556e22a26d42" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:58.509Z	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/57092396-1074-4479-a7cf-556e22a26d42", "results.tekton.dev/record": "ns/results/57092396-1074-4479-a7cf-556e22a26d42/records/12345", "results.tekton.dev/top-level-record": false}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found
        [0.321ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "57092396-1074-4479-a7cf-556e22a26d42" AND `records`.`name` = "d85c4f89-d25b-30fb-a5a7-1f989e986657" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 3 lines ...
        [0.226ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "57092396-1074-4479-a7cf-556e22a26d42" AND `records`.`name` = "d85c4f89-d25b-30fb-a5a7-1f989e986657" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [0.214ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "57092396-1074-4479-a7cf-556e22a26d42" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [118.657ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","1cd4cc7a-da6f-4ed6-a891-41eeb07c27aa","57092396-1074-4479-a7cf-556e22a26d42","511984b0-3fdd-4f80-af23-bcd72a1937c2","d85c4f89-d25b-30fb-a5a7-1f989e986657","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""ns"",""uid"":""d85c4f89-d25b-30fb-a5a7-1f989e986657"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""ns"",""name"":""taskrun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","511984b0-3fdd-4f80-af23-bcd72a1937c2-1731370978514862710","2024-11-12 00:22:58.514","2024-11-12 00:22:58.514") RETURNING `created_time`,`updated_time`
    logger.go:146: 2024-11-12T00:22:58.640Z	DEBUG	TestReconcile_TaskRun	dynamic/dynamic.go:472	Streaming log started	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun"}
    logger.go:146: 2024-11-12T00:22:58.640Z	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-12T00:22:58.640Z	INFO	TestReconcile_TaskRun	dynamic/dynamic.go:488	Streaming log completed	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [9.232ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "57092396-1074-4479-a7cf-556e22a26d42" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:58.651Z	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/57092396-1074-4479-a7cf-556e22a26d42", "results.tekton.dev/record": "ns/results/57092396-1074-4479-a7cf-556e22a26d42/records/12345", "results.tekton.dev/top-level-record": false}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found
        [0.383ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "57092396-1074-4479-a7cf-556e22a26d42" AND `records`.`name` = "850b67ce-191d-30ab-85b3-262bcb6fde5f" ORDER BY `records`.`id` LIMIT 1
... skipping 18 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.300ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:58.728Z	DEBUG	TestReconcile_TaskRun	results/results.go:326	Updating Record	{"results.tekton.dev/record": "ns/results/12345/records/12345"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.369ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217
        [25.540ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""labels"":{""x"":""foo""},""annotations"":{""x"":""foo""},""ownerReferences"":[{""apiVersion"":""v1"",""kind"":""test"",""name"":""test-owner"",""uid"":""b8f12a84-61d4-4e12-a82a-73453ac85c99""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2024-11-12T00:22:58Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-11-12T00:22:58Z"",""completionTime"":""2024-11-12T00:22:59Z""}}",`created_time`="2024-11-12 00:22:57.862",`updated_time`="2024-11-12 00:22:58.73",`etag`="3825247b-2b0b-4a8f-a4f0-85307fd6ae28-1731370978730212442" WHERE `parent` = "ns" AND `result_id` = "f90bf105-0a16-4f2e-bf62-3c96f8251203" AND `id` = "3825247b-2b0b-4a8f-a4f0-85307fd6ae28"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.388ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:58.814Z	DEBUG	TestReconcile_TaskRun	results/results.go:202	No further actions to be done on the Result: the object is not a top level record	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": false}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.442ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "d2178381-5ee9-3698-b7e4-8e102bcdcd6b" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 29 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.088ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [11.539ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [15.659ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370978.9402554,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/reconciler/dynamic.TestReconcile_PipelineRun\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/reconciler/dynamic/dynamic_test.go:438\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [1.458ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:58.945Z	DEBUG	TestReconcile_PipelineRun	results/results.go:188	Result doesn't exist yet - creating	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [19.053ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("ns","b72c7b06-2786-4d14-bdd7-8c3cf61cb628","12345","{""object.metadata.name"":""pipelinerun""}","ns/results/12345/records/12345","tekton.dev/v1.PipelineRun",NULL,"0000-00-00 00:00:00",1,"null","b72c7b06-2786-4d14-bdd7-8c3cf61cb628-1731370978945894183","2024-11-12 00:22:58.945","2024-11-12 00:22:58.945") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found
... skipping 15 lines ...
        [0.240ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "cdc86d8f-6c2d-3607-b76c-fc54fcfa8730" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [0.439ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [12.585ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","b72c7b06-2786-4d14-bdd7-8c3cf61cb628","12345","74b7c6ab-5f44-43db-8e1d-24b04d6421c2","cdc86d8f-6c2d-3607-b76c-fc54fcfa8730","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""pipelinerun-log"",""namespace"":""ns"",""uid"":""cdc86d8f-6c2d-3607-b76c-fc54fcfa8730"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""PipelineRun"",""namespace"":""ns"",""name"":""pipelinerun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","74b7c6ab-5f44-43db-8e1d-24b04d6421c2-1731370978999625879","2024-11-12 00:22:58.999","2024-11-12 00:22:58.999") RETURNING `created_time`,`updated_time`
    logger.go:146: 2024-11-12T00:22:59.015Z	DEBUG	TestReconcile_PipelineRun	dynamic/dynamic.go:472	Streaming log started	{"namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun"}
    logger.go:146: 2024-11-12T00:22:59.015Z	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-12T00:22:59.016Z	INFO	TestReconcile_PipelineRun	dynamic/dynamic.go:488	Streaming log completed	{"namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.527ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:59.018Z	DEBUG	TestReconcile_PipelineRun	results/results.go:210	No further actions to be done on the Result: no differences found	{"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found
        [0.305ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "72f17a5e-927a-3273-9da4-aae8250bd1be" ORDER BY `records`.`id` LIMIT 1
... skipping 58 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.104ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [8.074ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [6.428ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370977.4820786,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/results.client\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:627\ngithub.com/tektoncd/results/pkg/watcher/results.TestClient_PutLog\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/logs_test.go:15\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
=== RUN   TestClient_PutLog/taskrun
=== RUN   TestClient_PutLog/taskrun/create
=== NAME  TestClient_PutLog
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [0.449ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
... skipping 87 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.107ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [7.999ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [24.614ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370977.7581022,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/results.client\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:627\ngithub.com/tektoncd/results/pkg/watcher/results.TestEnsureResult\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:236\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [0.338ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1
=== RUN   TestEnsureResult/foo
=== NAME  TestEnsureResult
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [0.140ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1
... skipping 31 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.108ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [12.170ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [23.223ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370977.9095602,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/results.client\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:627\ngithub.com/tektoncd/results/pkg/watcher/results.TestEnsureResult_RecordSummaryUpdate\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:305\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [0.243ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "default" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:57.913Z	DEBUG	results/results.go:188	Result doesn't exist yet - creating	{"results.tekton.dev/result": "default/results/1", "results.tekton.dev/record": "default/results/1/records/2", "results.tekton.dev/top-level-record": false}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [14.284ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("default","bdbb2d66-9de3-4164-982b-983728f1bc2f","1","null","","",NULL,NULL,0,"null","bdbb2d66-9de3-4164-982b-983728f1bc2f-1731370977914928771","2024-11-12 00:22:57.914","2024-11-12 00:22:57.914") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 16 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.100ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [6.868ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [38.002ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370978.0617454,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/results.client\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:627\ngithub.com/tektoncd/results/pkg/watcher/results.TestAnnotations\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:353\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [0.243ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "default" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-11-12T00:22:58.065Z	DEBUG	results/results.go:188	Result doesn't exist yet - creating	{"results.tekton.dev/result": "default/results/1", "results.tekton.dev/record": "default/results/1/records/1", "results.tekton.dev/top-level-record": true}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [8.592ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("default","4a7b927b-0bc4-4a8e-a5ca-043c9bee273b","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""}","4a7b927b-0bc4-4a8e-a5ca-043c9bee273b-1731370978066283208","2024-11-12 00:22:58.066","2024-11-12 00:22:58.066") RETURNING `created_time`,`updated_time`
--- PASS: TestAnnotations (0.09s)
... skipping 10 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.043ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [6.715ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [8.300ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370978.1199071,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/results.client\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:627\ngithub.com/tektoncd/results/pkg/watcher/results.TestUpsertRecord\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:387\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
=== RUN   TestUpsertRecord/taskrun
=== NAME  TestUpsertRecord
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [0.327ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
        [8.130ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("test","af3252b3-94d7-4738-94d9-24d118c3fa8e","taskrun-id","{""object.metadata.name"":""taskrun""}","test/results/taskrun-id/records/taskrun-id","tekton.dev/v1.TaskRun",NULL,NULL,0,"null","af3252b3-94d7-4738-94d9-24d118c3fa8e-1731370978124562863","2024-11-12 00:22:58.124","2024-11-12 00:22:58.124") RETURNING `created_time`,`updated_time`
... skipping 73 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [0.088ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [19.182ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96
        [15.998ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
{"level":"error","ts":1731370978.483185,"caller":"plugin/plugin_logs.go:385","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:385\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:62\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.New\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:101\ngithub.com/tektoncd/results/pkg/internal/test.NewResultsClient\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/internal/test/clients.go:44\ngithub.com/tektoncd/results/pkg/watcher/results.client\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:627\ngithub.com/tektoncd/results/pkg/watcher/results.TestPut\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/watcher/results/results_test.go:557\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
=== RUN   TestPut/taskrun
=== RUN   TestPut/taskrun/create
=== NAME  TestPut
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found
        [6.141ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
... skipping 46 lines ...
        --- PASS: TestPut/pipelinerun/update (0.03s)
PASS
ok  	github.com/tektoncd/results/pkg/watcher/results	2.649s
testing: warning: no tests to run
PASS
ok  	github.com/tektoncd/results/tools/postgres-migrate	1.063s [no tests to run]
FAIL
unit_tests returning 
===========================
==== UNIT TESTS FAILED ====
===========================
+ EXIT_VALUE=1
+ set +o xtrace