Cloning into '/home/prow/go/src/github.com/google/licenseclassifier'... Activated service account credentials for: [prow-account@tekton-releases.iam.gserviceaccount.com] == Running ./runner.sh backward compatibility test runner === + [[ 11 -ne 0 ]] + case $1 in + shift + [[ 10 -ne 0 ]] + case $1 in + shift + [[ 9 -ne 0 ]] + case $1 in + shift + [[ 8 -ne 0 ]] + case $1 in + shift + [[ 7 -ne 0 ]] + case $1 in + shift + [[ 6 -ne 0 ]] + case $1 in ++ cut -d = -f2 + gcloud auth activate-service-account --key-file=/etc/test-account/service-account.json Activated service account credentials for: [prow-account@tekton-releases.iam.gserviceaccount.com] + shift + [[ 5 -ne 0 ]] + case $1 in + shift + [[ 4 -ne 0 ]] + case $1 in + shift + [[ -- == \-\- ]] + shift + break + ./test/presubmit-tests.sh --unit-tests Changed files in commit 7bbc55a10979fcc322310469840fe9ac16ccedf4: pkg/cli/cmd/root.go Updated property [component_manager/disable_update_check]. ============================ ==== CURRENT TEST SETUP ==== ============================ >> gcloud SDK version Google Cloud SDK 506.0.0 alpha 2025.01.10 beta 2025.01.10 bq 2.1.11 bundled-python3-unix 3.11.9 core 2025.01.10 docker-credential-gcr 1.5.0 gcloud-crc32c 1.0.0 gke-gcloud-auth-plugin 0.5.9 gsutil 5.33 kubectl 1.30.5 >> kubectl version Client Version: v1.32.0-alpha.0 Kustomize Version: v5.4.2 >> go version go version go1.23.4 linux/amd64 >> git version git version 2.43.0 ============================ ==== RUNNING UNIT TESTS ==== ============================ /home/prow/go/src/github.com/tektoncd/results /home/prow/go/src/github.com/tektoncd/results Using overridden unit_tests ? github.com/tektoncd/results/cmd/cli-docs [no test files] 2025/06/23 12:02:59 maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined === RUN Test_determineAuth === RUN Test_determineAuth/missing_token === RUN Test_determineAuth/invalid_token === RUN Test_determineAuth/valid_token --- PASS: Test_determineAuth (0.01s) --- PASS: Test_determineAuth/missing_token (0.00s) --- PASS: Test_determineAuth/invalid_token (0.00s) --- PASS: Test_determineAuth/valid_token (0.00s) PASS ok github.com/tektoncd/results/cmd/api 1.608s ? github.com/tektoncd/results/cmd/retention-policy-agent [no test files] ? github.com/tektoncd/results/cmd/tkn-results [no test files] ? github.com/tektoncd/results/cmd/watcher [no test files] ? github.com/tektoncd/results/internal/fieldmask/test [no test files] ? github.com/tektoncd/results/pkg/api/server/config [no test files] ? github.com/tektoncd/results/pkg/api/server/db/errors [no test files] === RUN TestFieldMask_Build --- PASS: TestFieldMask_Build (0.00s) === RUN TestFieldMask_Paths fieldmask_test.go:82: Paths mismatch (-want +got):   []string{ -  "a.b",    "d.e",    "f", +  "a.b",   } --- FAIL: TestFieldMask_Paths (0.00s) === RUN TestFieldMask_Filter --- PASS: TestFieldMask_Filter (0.02s) === RUN TestFieldMask_FilterJSON --- PASS: TestFieldMask_FilterJSON (0.00s) === RUN TestFromMetadata --- PASS: TestFromMetadata (0.00s) === RUN TestMetadataAnnotator --- PASS: TestMetadataAnnotator (0.00s) FAIL FAIL github.com/tektoncd/results/internal/fieldmask 0.109s === RUN TestParseFilter === RUN TestParseFilter/success === 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.13s) --- PASS: TestParseFilter/success (0.10s) --- PASS: TestParseFilter/success/#00 (0.00s) --- PASS: TestParseFilter/success/result (0.03s) --- PASS: TestParseFilter/success/result.id (0.01s) --- PASS: TestParseFilter/success/result.id_==_"1" (0.01s) --- PASS: TestParseFilter/success/result.id_==_"1"_||_result.name_==_"2" (0.02s) --- PASS: TestParseFilter/success/result.id.startsWith("tacocat") (0.03s) --- PASS: TestParseFilter/error (0.01s) --- 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.359s === RUN TestConvertRecordExpressions === RUN TestConvertRecordExpressions/simple_expression convert_test.go:170: want: (name = 'foo') convert_test.go:171: got: (name = 'foo') === RUN TestConvertRecordExpressions/select_expression convert_test.go:170: want: ((data->'metadata'->>'namespace') = 'default') convert_test.go:171: got: ((data->'metadata'->>'namespace') = 'default') === RUN TestConvertRecordExpressions/type_coercion_with_a_dyn_expression_in_the_left_hand_side convert_test.go:170: want: ((data->'status'->>'completionTime')::TIMESTAMP WITH TIME ZONE > '2022/10/30T21:45:00.000Z'::TIMESTAMP WITH TIME ZONE) convert_test.go:171: got: ((data->'status'->>'completionTime')::TIMESTAMP WITH TIME ZONE > '2022/10/30T21:45:00.000Z'::TIMESTAMP WITH TIME ZONE) === RUN TestConvertRecordExpressions/type_coercion_with_a_dyn_expression_in_the_right_hand_side convert_test.go:170: want: ('2022/10/30T21:45:00.000Z'::TIMESTAMP WITH TIME ZONE < (data->'status'->>'completionTime')::TIMESTAMP WITH TIME ZONE) convert_test.go:171: got: ('2022/10/30T21:45:00.000Z'::TIMESTAMP WITH TIME ZONE < (data->'status'->>'completionTime')::TIMESTAMP WITH TIME ZONE) === RUN TestConvertRecordExpressions/in_operator convert_test.go:170: want: ((data->'metadata'->>'namespace') IN ('foo', 'bar')) convert_test.go:171: got: ((data->'metadata'->>'namespace') IN ('foo', 'bar')) === RUN TestConvertRecordExpressions/index_operator convert_test.go:170: want: ((data->'metadata'->'labels'->>'foo') = 'bar') convert_test.go:171: got: ((data->'metadata'->'labels'->>'foo') = 'bar') === RUN TestConvertRecordExpressions/concatenate_strings convert_test.go:170: want: (CONCAT(name, 'bar') = 'foobar') convert_test.go:171: got: (CONCAT(name, 'bar') = 'foobar') === RUN TestConvertRecordExpressions/multiple_concatenate_strings convert_test.go:170: want: (CONCAT(name, 'bar', 'baz') = 'foobarbaz') convert_test.go:171: got: (CONCAT(name, 'bar', 'baz') = 'foobarbaz') === RUN TestConvertRecordExpressions/contains_string_function convert_test.go:170: want: POSITION('foo' IN (data->'metadata'->>'name')) <> 0 convert_test.go:171: got: POSITION('foo' IN (data->'metadata'->>'name')) <> 0 === RUN TestConvertRecordExpressions/not_contains_string_function convert_test.go:170: want: NOT (POSITION('foo' IN (data->'metadata'->>'annotations')) <> 0) convert_test.go:171: got: NOT (POSITION('foo' IN (data->'metadata'->>'annotations')) <> 0) === RUN TestConvertRecordExpressions/complex_not_expressions convert_test.go:170: want: (NOT (POSITION('foo' IN (data->'metadata'->>'annotations')) <> 0) AND (data->'metadata'->>'name') LIKE '%' || 'bar') convert_test.go:171: got: (NOT (POSITION('foo' IN (data->'metadata'->>'annotations')) <> 0) AND (data->'metadata'->>'name') LIKE '%' || 'bar') === RUN TestConvertRecordExpressions/endsWith_string_function convert_test.go:170: want: (data->'metadata'->>'name') LIKE '%' || 'bar' convert_test.go:171: got: (data->'metadata'->>'name') LIKE '%' || 'bar' === RUN TestConvertRecordExpressions/getDate_function convert_test.go:170: want: (EXTRACT(DAY FROM (data->'status'->>'completionTime')::TIMESTAMP WITH TIME ZONE) = 2) convert_test.go:171: got: (EXTRACT(DAY FROM (data->'status'->>'completionTime')::TIMESTAMP WITH TIME ZONE) = 2) === RUN TestConvertRecordExpressions/getDayOfMonth_function convert_test.go:170: want: ((EXTRACT(DAY FROM (data->'status'->>'completionTime')::TIMESTAMP WITH TIME ZONE) - 1) = 2) convert_test.go:171: got: ((EXTRACT(DAY FROM (data->'status'->>'completionTime')::TIMESTAMP WITH TIME ZONE) - 1) = 2) === RUN TestConvertRecordExpressions/getDayOfWeek_function convert_test.go:170: want: (EXTRACT(DOW FROM (data->'status'->>'completionTime')::TIMESTAMP WITH TIME ZONE) > 0) convert_test.go:171: got: (EXTRACT(DOW FROM (data->'status'->>'completionTime')::TIMESTAMP WITH TIME ZONE) > 0) === RUN TestConvertRecordExpressions/getDayOfYear_function convert_test.go:170: want: ((EXTRACT(DOY FROM (data->'status'->>'completionTime')::TIMESTAMP WITH TIME ZONE) - 1) > 15) convert_test.go:171: got: ((EXTRACT(DOY FROM (data->'status'->>'completionTime')::TIMESTAMP WITH TIME ZONE) - 1) > 15) === RUN TestConvertRecordExpressions/getFullYear_function convert_test.go:170: want: (EXTRACT(YEAR FROM (data->'status'->>'completionTime')::TIMESTAMP WITH TIME ZONE) >= 2022) convert_test.go:171: got: (EXTRACT(YEAR FROM (data->'status'->>'completionTime')::TIMESTAMP WITH TIME ZONE) >= 2022) === RUN TestConvertRecordExpressions/matches_function convert_test.go:170: want: (data->'metadata'->>'name') ~ '^foo.*$' convert_test.go:171: got: (data->'metadata'->>'name') ~ '^foo.*$' === RUN TestConvertRecordExpressions/startsWith_string_function convert_test.go:170: want: (data->'metadata'->>'name') LIKE 'bar' || '%' convert_test.go:171: got: (data->'metadata'->>'name') LIKE 'bar' || '%' === RUN TestConvertRecordExpressions/data_type_field convert_test.go:170: want: (type = 'tekton.dev/v1.PipelineRun') convert_test.go:171: got: (type = 'tekton.dev/v1.PipelineRun') === RUN TestConvertRecordExpressions/index_operator_with_numeric_argument_in_JSON_arrays convert_test.go:170: want: ((type = 'tekton.dev/v1.TaskRun') AND ((data->'status'->'conditions'->0->>'status') = 'True')) convert_test.go:171: got: ((type = 'tekton.dev/v1.TaskRun') AND ((data->'status'->'conditions'->0->>'status') = 'True')) === RUN TestConvertRecordExpressions/index_operator_as_first_operation_in_JSON_object convert_test.go:170: want: ((type = 'tekton.dev/v1.TaskRun') AND ((data->'status'->'conditions'->0->>'status') = 'True')) convert_test.go:171: got: ((type = 'tekton.dev/v1.TaskRun') AND ((data->'status'->'conditions'->0->>'status') = 'True')) === RUN TestConvertRecordExpressions/index_operator_with_string_argument_in_JSON_object convert_test.go:170: want: ((type = 'tekton.dev/v1.TaskRun') AND ((data->'status'->'conditions'->0->>'status') = 'True')) convert_test.go:171: got: ((type = 'tekton.dev/v1.TaskRun') AND ((data->'status'->'conditions'->0->>'status') = 'True')) === RUN TestConvertRecordExpressions/complex_expression_with_subgroups convert_test.go:170: want: (((data->'metadata'->'annotations'->>'foo') = 'bar') AND NOT (((data->'metadata'->>'name') LIKE '%' || 'baz' OR (data->'metadata'->>'name') LIKE 'foo' || '%'))) convert_test.go:171: got: (((data->'metadata'->'annotations'->>'foo') = 'bar') AND NOT (((data->'metadata'->>'name') LIKE '%' || 'baz' OR (data->'metadata'->>'name') LIKE 'foo' || '%'))) === RUN TestConvertRecordExpressions/complex_expression_involving_multiple_subgroups_and_operators convert_test.go:170: want: ((((data->'metadata'->'annotations'->>'foo') = 'bar') AND NOT ((data->'metadata'->>'name') LIKE '%' || 'baz')) OR ((data->'metadata'->>'name') LIKE 'foo' || '%' AND POSITION('bar' IN (data->'metadata'->>'name')) <> 0)) convert_test.go:171: got: ((((data->'metadata'->'annotations'->>'foo') = 'bar') AND NOT ((data->'metadata'->>'name') LIKE '%' || 'baz')) OR ((data->'metadata'->>'name') LIKE 'foo' || '%' AND POSITION('bar' IN (data->'metadata'->>'name')) <> 0)) --- PASS: TestConvertRecordExpressions (0.20s) --- PASS: TestConvertRecordExpressions/simple_expression (0.02s) --- PASS: TestConvertRecordExpressions/select_expression (0.01s) --- PASS: TestConvertRecordExpressions/type_coercion_with_a_dyn_expression_in_the_left_hand_side (0.01s) --- PASS: TestConvertRecordExpressions/type_coercion_with_a_dyn_expression_in_the_right_hand_side (0.00s) --- PASS: TestConvertRecordExpressions/in_operator (0.01s) --- PASS: TestConvertRecordExpressions/index_operator (0.00s) --- PASS: TestConvertRecordExpressions/concatenate_strings (0.01s) --- PASS: TestConvertRecordExpressions/multiple_concatenate_strings (0.00s) --- PASS: TestConvertRecordExpressions/contains_string_function (0.01s) --- PASS: TestConvertRecordExpressions/not_contains_string_function (0.01s) --- PASS: TestConvertRecordExpressions/complex_not_expressions (0.01s) --- PASS: TestConvertRecordExpressions/endsWith_string_function (0.00s) --- PASS: TestConvertRecordExpressions/getDate_function (0.01s) --- PASS: TestConvertRecordExpressions/getDayOfMonth_function (0.00s) --- PASS: TestConvertRecordExpressions/getDayOfWeek_function (0.01s) --- PASS: TestConvertRecordExpressions/getDayOfYear_function (0.00s) --- PASS: TestConvertRecordExpressions/getFullYear_function (0.01s) --- PASS: TestConvertRecordExpressions/matches_function (0.00s) --- PASS: TestConvertRecordExpressions/startsWith_string_function (0.00s) --- PASS: TestConvertRecordExpressions/data_type_field (0.00s) --- PASS: TestConvertRecordExpressions/index_operator_with_numeric_argument_in_JSON_arrays (0.00s) --- PASS: TestConvertRecordExpressions/index_operator_as_first_operation_in_JSON_object (0.01s) --- PASS: TestConvertRecordExpressions/index_operator_with_string_argument_in_JSON_object (0.01s) --- PASS: TestConvertRecordExpressions/complex_expression_with_subgroups (0.02s) --- PASS: TestConvertRecordExpressions/complex_expression_involving_multiple_subgroups_and_operators (0.01s) === RUN TestConvertResultExpressions === RUN TestConvertResultExpressions/Result.Parent_field === RUN TestConvertResultExpressions/Result.Uid_field === RUN TestConvertResultExpressions/Result.Annotations_field === RUN TestConvertResultExpressions/Result.Annotations_field#01 === RUN TestConvertResultExpressions/other_operators_involving_the_Result.Annotations_field === RUN TestConvertResultExpressions/Result.CreateTime_field === RUN TestConvertResultExpressions/Result.UpdateTime_field === RUN TestConvertResultExpressions/Result.Summary.Record_field === RUN TestConvertResultExpressions/Result.Summary.StartTime_field === RUN TestConvertResultExpressions/comparison_with_the_PIPELINE_RUN_const_value === RUN TestConvertResultExpressions/comparison_with_the_TASK_RUN_const_value === RUN TestConvertResultExpressions/RecordSummary_Status_constants === RUN TestConvertResultExpressions/Result.Summary.Annotations === RUN TestConvertResultExpressions/not_Result.Summary.Annotations === RUN TestConvertResultExpressions/Result.Summary.Annotations#01 === RUN TestConvertResultExpressions/more_complex_expression --- PASS: TestConvertResultExpressions (0.03s) --- PASS: TestConvertResultExpressions/Result.Parent_field (0.00s) --- PASS: TestConvertResultExpressions/Result.Uid_field (0.00s) --- PASS: TestConvertResultExpressions/Result.Annotations_field (0.00s) --- PASS: TestConvertResultExpressions/Result.Annotations_field#01 (0.00s) --- PASS: TestConvertResultExpressions/other_operators_involving_the_Result.Annotations_field (0.00s) --- PASS: TestConvertResultExpressions/Result.CreateTime_field (0.00s) --- PASS: TestConvertResultExpressions/Result.UpdateTime_field (0.00s) --- PASS: TestConvertResultExpressions/Result.Summary.Record_field (0.00s) --- PASS: TestConvertResultExpressions/Result.Summary.StartTime_field (0.00s) --- PASS: TestConvertResultExpressions/comparison_with_the_PIPELINE_RUN_const_value (0.00s) --- PASS: TestConvertResultExpressions/comparison_with_the_TASK_RUN_const_value (0.00s) --- PASS: TestConvertResultExpressions/RecordSummary_Status_constants (0.00s) --- PASS: TestConvertResultExpressions/Result.Summary.Annotations (0.00s) --- PASS: TestConvertResultExpressions/not_Result.Summary.Annotations (0.00s) --- PASS: TestConvertResultExpressions/Result.Summary.Annotations#01 (0.00s) --- PASS: TestConvertResultExpressions/more_complex_expression (0.00s) === RUN TestConversionErrors === RUN TestConversionErrors/non-boolean_expression --- PASS: TestConversionErrors (0.00s) --- PASS: TestConversionErrors/non-boolean_expression (0.00s) PASS ok github.com/tektoncd/results/pkg/api/server/cel2sql 1.411s === RUN TestAnnotationsScan --- PASS: TestAnnotationsScan (0.00s) === RUN TestAnnotationsValue --- PASS: TestAnnotationsValue (0.00s) PASS ok github.com/tektoncd/results/pkg/api/server/db 1.171s ? github.com/tektoncd/results/pkg/api/server/db/errors/sqlite [no test files] ? github.com/tektoncd/results/pkg/api/server/db/pagination/proto [no test files] ? github.com/tektoncd/results/pkg/api/server/db/pagination/proto/internal_go_proto [no test files] ? github.com/tektoncd/results/pkg/api/server/logger [no test files] ? github.com/tektoncd/results/pkg/api/server/test [no test files] === RUN TestEncodeDecodeToken --- PASS: TestEncodeDecodeToken (0.00s) === RUN TestBatcher === RUN TestBatcher/100 === RUN TestBatcher/100#01 === RUN TestBatcher/1 --- PASS: TestBatcher (0.00s) --- PASS: TestBatcher/100 (0.00s) --- PASS: TestBatcher/100#01 (0.00s) --- PASS: TestBatcher/1 (0.00s) PASS ok github.com/tektoncd/results/pkg/api/server/db/pagination 1.051s === RUN TestNewFeatureGate --- PASS: TestNewFeatureGate (0.00s) === RUN TestFeatureGate_Get --- PASS: TestFeatureGate_Get (0.00s) === RUN TestFeatureGate_Set --- PASS: TestFeatureGate_Set (0.00s) === RUN TestFeatureGate_Enable --- PASS: TestFeatureGate_Enable (0.00s) === RUN TestFeatureGate_Disable --- PASS: TestFeatureGate_Disable (0.00s) PASS ok github.com/tektoncd/results/pkg/api/server/features 1.053s ? github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/proto [no test files] ? github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/proto/pagetoken_go_proto [no test files] ? github.com/tektoncd/results/pkg/apis/v1alpha3 [no test files] ? github.com/tektoncd/results/pkg/cli/client/logs [no test files] === RUN TestGetLog logs_test.go:93: test database: /tmp/testdb2346706844 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.137ms] [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.189ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [53.621ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [6.188ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.190ms] [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.332ms] [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 [5.294ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680330.431873,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [12.125ms] [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-1750680330302398336","2025-06-23 12:05:30.302","2025-06-23 12:05:30.302") RETURNING `created_time`,`updated_time` logs_test.go:113: test log file: /tmp/test-log-taskrun-2880081589.log db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [5.710ms] [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 [7.327ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","2","baz","results.tekton.dev/v1alpha2.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":""foo"",""name"":""baz""},""type"":""File""},""status"":{""path"":""/tmp/test-log-taskrun-2880081589.log"",""size"":1024,""isStored"":true,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","2-1750680330302398336","2025-06-23 12:05:30.302","2025-06-23 12:05:30.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.000ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 --- PASS: TestGetLog (0.17s) === RUN TestGetLogV2 logs_test.go:171: test database: /tmp/testdb2603318169 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.070ms] [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.261ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [13.411ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [7.681ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.296ms] [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.189ms] [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.017ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680330.5473511,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [8.107ms] [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-1750680330302398336","2025-06-23 12:05:30.302","2025-06-23 12:05:30.302") RETURNING `created_time`,`updated_time` logs_test.go:191: test log file: /tmp/test-log-taskrun-2054498551.log db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [3.813ms] [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 [7.460ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","3","bar","4","baz","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":""foo"",""name"":""baz""},""type"":""File""},""status"":{""path"":""/tmp/test-log-taskrun-2054498551.log"",""size"":1024,""isStored"":true,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","4-1750680330302398336","2025-06-23 12:05:30.302","2025-06-23 12:05:30.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.081ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 --- PASS: TestGetLogV2 (0.10s) === RUN TestUpdateLog logs_test.go:254: test database: /tmp/testdb3489750026 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.092ms] [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.256ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [46.991ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [8.292ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.164ms] [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.254ms] [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 [29.892ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680330.7158217,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [51.062ms] [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-1750680330302398336","2025-06-23 12:05:30.302","2025-06-23 12:05:30.302") RETURNING `created_time`,`updated_time` logs_test.go:268: test storage directory: /tmp/test-logs-24275924 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [3.499ms] [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 [9.791ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","5","bar","6","baz-log","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""test-name"",""uid"":""test-uid"",""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":""foo"",""name"":""baz""},""type"":""File""},""status"":{""path"":""/tmp/test-logs-24275924/test-uid/task-run.log"",""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","6-1750680330302398336","2025-06-23 12:05:30.302","2025-06-23 12:05:30.302") RETURNING `created_time`,`updated_time` logs_test.go:300: Record name: foo/results/bar/records/baz-log db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.513ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz-log" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.145ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz-log" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217 [1.967ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz-log",`type`="results.tekton.dev/v1alpha3.Log",`data`="{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""test-name"",""uid"":""test-uid"",""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":""foo"",""name"":""baz""},""type"":""File""},""status"":{""path"":""/tmp/test-logs-24275924/test-uid/task-run.log"",""size"":36,""isStored"":true,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}",`created_time`="2025-06-23 12:05:30.302",`updated_time`="2025-06-23 12:05:30.302",`etag`="6-1750680330302398336" WHERE `parent` = "foo" AND `result_id` = "5" AND `id` = "6" --- PASS: TestUpdateLog (0.24s) === RUN TestListLogs logs_test.go:333: test database: /tmp/testdb2943879937 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.102ms] [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.206ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [7.996ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [10.972ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.261ms] [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.154ms] [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.343ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680330.9008582,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [8.512ms] [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-1750680330302398336","2025-06-23 12:05:30.302","2025-06-23 12:05:30.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [4.771ms] [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 [10.860ms] [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-1750680331302398336","2025-06-23 12:05:31.302","2025-06-23 12:05:31.302") RETURNING `created_time`,`updated_time` logs_test.go:370: Created record: name:"foo/results/bar/records/0" id:"8" uid:"8" data:{type:"results.tekton.dev/v1alpha3.Log" value:"{\"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}}"} etag:"8-1750680331302398336" created_time:{seconds:1750680331 nanos:302398336} create_time:{seconds:1750680331 nanos:302398336} updated_time:{seconds:1750680331 nanos:302398336} update_time:{seconds:1750680331 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.372ms] [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 [10.868ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","7","bar","9","1","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""1"",""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":"""",""name"":""""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","9-1750680332302398336","2025-06-23 12:05:32.302","2025-06-23 12:05:32.302") RETURNING `created_time`,`updated_time` logs_test.go:370: Created record: name:"foo/results/bar/records/1" id:"9" uid:"9" data:{type:"results.tekton.dev/v1alpha3.Log" value:"{\"kind\":\"Log\",\"apiVersion\":\"results.tekton.dev/v1alpha3\",\"metadata\":{\"name\":\"1\",\"creationTimestamp\":null},\"spec\":{\"resource\":{\"namespace\":\"\",\"name\":\"\"},\"type\":\"File\"},\"status\":{\"size\":0,\"isStored\":false,\"errorOnStoreMsg\":\"\",\"isRetryableErr\":false}}"} etag:"9-1750680332302398336" created_time:{seconds:1750680332 nanos:302398336} create_time:{seconds:1750680332 nanos:302398336} updated_time:{seconds:1750680332 nanos:302398336} update_time:{seconds:1750680332 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.982ms] [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 [7.849ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","7","bar","10","2","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""2"",""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":"""",""name"":""""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","10-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` logs_test.go:370: Created record: name:"foo/results/bar/records/2" id:"10" uid:"10" data:{type:"results.tekton.dev/v1alpha3.Log" value:"{\"kind\":\"Log\",\"apiVersion\":\"results.tekton.dev/v1alpha3\",\"metadata\":{\"name\":\"2\",\"creationTimestamp\":null},\"spec\":{\"resource\":{\"namespace\":\"\",\"name\":\"\"},\"type\":\"File\"},\"status\":{\"size\":0,\"isStored\":false,\"errorOnStoreMsg\":\"\",\"isRetryableErr\":false}}"} etag:"10-1750680333302398336" created_time:{seconds:1750680333 nanos:302398336} create_time:{seconds:1750680333 nanos:302398336} updated_time:{seconds:1750680333 nanos:302398336} update_time:{seconds:1750680333 nanos:302398336} === RUN TestListLogs/all === NAME TestListLogs db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [1.424ms] [rows:3] SELECT * FROM `records` WHERE type = "results.tekton.dev/v1alpha3.Log" AND id > "" AND parent = "foo" AND result_name = "bar" LIMIT 51 === RUN TestListLogs/list_all_records_without_knowing_the_result_name === NAME TestListLogs db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [2.062ms] [rows:3] SELECT * FROM `records` WHERE type = "results.tekton.dev/v1alpha3.Log" AND id > "" AND parent = "foo" LIMIT 51 === RUN TestListLogs/list_all_records_without_knowing_the_parent_and_the_result_name === NAME TestListLogs db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [1.356ms] [rows:3] SELECT * FROM `records` WHERE type = "results.tekton.dev/v1alpha3.Log" AND id > "" LIMIT 51 === RUN TestListLogs/missing_parent === NAME TestListLogs db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [0.629ms] [rows:0] SELECT * FROM `records` WHERE type = "results.tekton.dev/v1alpha3.Log" AND id > "" AND parent = "foo" AND result_name = "baz" LIMIT 51 === RUN TestListLogs/filter_by_record_property === NAME TestListLogs db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [1.992ms] [rows:3] SELECT * FROM `records` WHERE type = "results.tekton.dev/v1alpha3.Log" AND id > "" AND parent = "foo" AND result_name = "bar" LIMIT 51 === RUN TestListLogs/filter_by_record_data === NAME TestListLogs db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [1.735ms] [rows:3] SELECT * FROM `records` WHERE type = "results.tekton.dev/v1alpha3.Log" AND id > "" AND parent = "foo" AND result_name = "bar" LIMIT 51 === RUN TestListLogs/filter_by_parent === NAME TestListLogs db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [1.981ms] [rows:3] SELECT * FROM `records` WHERE type = "results.tekton.dev/v1alpha3.Log" AND id > "" AND parent = "foo" AND result_name = "bar" LIMIT 51 === RUN TestListLogs/filter_and_page_size === NAME TestListLogs db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [1.547ms] [rows:2] SELECT * FROM `records` WHERE type = "results.tekton.dev/v1alpha3.Log" AND id > "" AND parent = "foo" AND result_name = "bar" LIMIT 2 === RUN TestListLogs/only_page_size === NAME TestListLogs db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [1.465ms] [rows:2] SELECT * FROM `records` WHERE type = "results.tekton.dev/v1alpha3.Log" AND id > "" AND parent = "foo" AND result_name = "bar" LIMIT 2 === RUN TestListLogs/with_order_asc === NAME TestListLogs db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [1.912ms] [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 ASC LIMIT 51 === RUN TestListLogs/with_order_desc === NAME TestListLogs db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [1.761ms] [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 DESC LIMIT 51 === RUN TestListLogs/with_missing_order === NAME TestListLogs db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [2.242ms] [rows:3] SELECT * FROM `records` WHERE type = "results.tekton.dev/v1alpha3.Log" AND id > "" AND parent = "foo" AND result_name = "bar" LIMIT 51 === RUN TestListLogs/with_default_order === NAME TestListLogs db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [25.125ms] [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":1750680333.2239306,"caller":"v1alpha2/logs.go:268","msg":"rpc error: code = InvalidArgument desc = name must match (^[a-z0-9_-]{1,63})/results/([a-z0-9_-]{1,63}$)","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2.(*Server).ListLogs\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:268\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestListLogs.func1\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:569\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1690"} === RUN TestListLogs/invalid_order_by_clause === RUN TestListLogs/invalid_sort_direction --- PASS: TestListLogs (2.42s) --- PASS: TestListLogs/all (0.15s) --- PASS: TestListLogs/list_all_records_without_knowing_the_result_name (0.16s) --- PASS: TestListLogs/list_all_records_without_knowing_the_parent_and_the_result_name (0.10s) --- PASS: TestListLogs/missing_parent (0.01s) --- PASS: TestListLogs/filter_by_record_property (0.10s) --- PASS: TestListLogs/filter_by_record_data (0.07s) --- PASS: TestListLogs/filter_by_parent (0.15s) --- PASS: TestListLogs/filter_and_page_size (0.06s) --- PASS: TestListLogs/only_page_size (0.06s) --- PASS: TestListLogs/with_order_asc (0.50s) --- PASS: TestListLogs/with_order_desc (0.27s) --- PASS: TestListLogs/with_missing_order (0.24s) --- PASS: TestListLogs/with_default_order (0.30s) --- PASS: TestListLogs/unknown_type (0.05s) --- PASS: TestListLogs/unknown_any_field (0.02s) --- PASS: TestListLogs/invalid_page_size (0.01s) --- PASS: TestListLogs/malformed_parent (0.00s) --- PASS: TestListLogs/invalid_order_by_clause (0.00s) --- PASS: TestListLogs/invalid_sort_direction (0.00s) === RUN TestListLogs_multiresult logs_test.go:591: test database: /tmp/testdb2648389605 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.123ms] [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.270ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [23.141ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [83.880ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.197ms] [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.993ms] [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 [10.908ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680333.4781399,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [22.183ms] [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-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [49.819ms] [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 [24.127ms] [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-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [3.998ms] [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 [30.911ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("0","11","0","13","1","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""1"",""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":"""",""name"":""""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","13-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [16.970ms] [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","14","1","null","","",NULL,NULL,0,"null","14-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.825ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "0" AND `results`.`name` = "1" 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.050ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("0","14","1","15","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}}","15-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [4.945ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "0" AND `results`.`name` = "1" 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.829ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("0","14","1","16","1","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""1"",""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":"""",""name"":""""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","16-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [16.261ms] [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 ("1","17","0","null","","",NULL,NULL,0,"null","17-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.936ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "1" 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 [17.703ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("1","17","0","18","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}}","18-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [4.202ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "1" 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 [15.001ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("1","17","0","19","1","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""1"",""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":"""",""name"":""""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","19-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [19.314ms] [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 ("1","20","1","null","","",NULL,NULL,0,"null","20-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.756ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "1" AND `results`.`name` = "1" 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.560ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("1","20","1","21","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}}","21-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.747ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "1" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [26.278ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("1","20","1","22","1","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""1"",""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":"""",""name"":""""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","22-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [1.965ms] [rows:4] SELECT * FROM `records` WHERE type = "results.tekton.dev/v1alpha3.Log" AND id > "" AND parent = "0" LIMIT 51 --- PASS: TestListLogs_multiresult (0.98s) === RUN TestDeleteLog logs_test.go:652: test database: /tmp/testdb3068243329 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [1.157ms] [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.738ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [24.516ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [17.950ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.247ms] [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.900ms] [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.634ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680334.3562021,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [23.816ms] [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-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` logs_test.go:672: test log file: /tmp/test-log-taskrun-1982213035.log db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [14.386ms] [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.853ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","23","bar","24","baz","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":""foo"",""name"":""baz""},""type"":""File""},""status"":{""path"":""/tmp/test-log-taskrun-1982213035.log"",""size"":1024,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","24-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` === RUN TestDeleteLog/success === NAME TestDeleteLog db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.060ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:425 [23.394ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "23" AND `records`.`result_name` = "bar" AND `records`.`id` = "24" AND `records`.`name` = "baz" AND `records`.`type` = "results.tekton.dev/v1alpha3.Log" AND `records`.`data` = "{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""creationTimestamp"":null},""spec"":{""resource"":{""namespace"":""foo"",""name"":""baz""},""type"":""File""},""status"":{""path"":""/tmp/test-log-taskrun-1982213035.log"",""size"":1024,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}" AND `records`.`created_time` = "2025-06-23 12:05:33.302" AND `records`.`updated_time` = "2025-06-23 12:05:33.302" AND `records`.`etag` = "24-1750680333302398336" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.664ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 === RUN TestDeleteLog/already_deleted === NAME TestDeleteLog db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.506ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 --- PASS: TestDeleteLog (0.24s) --- PASS: TestDeleteLog/success (0.03s) --- PASS: TestDeleteLog/already_deleted (0.01s) === RUN TestOrderBy --- PASS: TestOrderBy (0.00s) === RUN TestOrderByInvalidArguments --- PASS: TestOrderByInvalidArguments (0.00s) === RUN TestNormalizeOrderByField --- PASS: TestNormalizeOrderByField (0.00s) === RUN TestIsAllowedField --- PASS: TestIsAllowedField (0.00s) === RUN TestOrderByDirection --- PASS: TestOrderByDirection (0.00s) === RUN TestPageSize === RUN TestPageSize/1 === RUN TestPageSize/-1 === RUN TestPageSize/2147483647 --- PASS: TestPageSize (0.00s) --- PASS: TestPageSize/1 (0.00s) --- PASS: TestPageSize/-1 (0.00s) --- PASS: TestPageSize/2147483647 (0.00s) === RUN TestPageStart === RUN TestPageStart/success === RUN TestPageStart/wrong_filter === RUN TestPageStart/invalid_token --- PASS: TestPageStart (0.00s) --- PASS: TestPageStart/success (0.00s) --- PASS: TestPageStart/wrong_filter (0.00s) --- PASS: TestPageStart/invalid_token (0.00s) === RUN TestCreateRecord records_test.go:48: test database: /tmp/testdb86821361 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; db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.218ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [16.211ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [15.108ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.234ms] [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 [17.319ms] [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 [32.199ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680334.5996108,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [13.732ms] [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-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") 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 [4.085ms] [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.438ms] [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","TaskRun","{""metadata"":{""name"":""tacocat"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","26-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` === RUN TestCreateRecord/mismatched_parent === RUN TestCreateRecord/parent_does_not_exist === NAME TestCreateRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 record not found [0.704ms] [rows:0] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "doesnotexist" ORDER BY `results`.`id` LIMIT 1 === 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.812ms] [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 [1.855ms] [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-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` --- PASS: TestCreateRecord (0.24s) --- PASS: TestCreateRecord/success (0.04s) --- PASS: TestCreateRecord/mismatched_parent (0.00s) --- PASS: TestCreateRecord/parent_does_not_exist (0.00s) --- PASS: TestCreateRecord/missing_name (0.00s) --- PASS: TestCreateRecord/result_used_as_name (0.00s) --- PASS: TestCreateRecord/already_exists (0.00s) === RUN TestCreateRecord_ConcurrentDelete records_test.go:162: test database: /tmp/testdb913934516 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.107ms] [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.206ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [21.814ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [13.870ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.204ms] [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 [30.276ms] [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.159ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680334.8514435,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 FOREIGN KEY constraint failed [19.421ms] [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-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` --- PASS: TestCreateRecord_ConcurrentDelete (0.17s) === RUN TestGetRecord records_test.go:185: test database: /tmp/testdb1666809257 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.108ms] [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.318ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [21.722ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [12.732ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.251ms] [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.744ms] [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 [10.301ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680334.997156,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [14.874ms] [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-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [6.717ms] [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 [21.222ms] [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-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` === RUN TestGetRecord/success === NAME TestGetRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.216ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 === RUN TestGetRecord/no_name === RUN TestGetRecord/invalid_name === RUN TestGetRecord/not_found === NAME TestGetRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [2.228ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "doesnotexist" ORDER BY `records`.`id` LIMIT 1 --- PASS: TestGetRecord (0.19s) --- PASS: TestGetRecord/success (0.02s) --- PASS: TestGetRecord/no_name (0.00s) --- PASS: TestGetRecord/invalid_name (0.00s) --- PASS: TestGetRecord/not_found (0.00s) === RUN TestListRecords records_test.go:253: test database: /tmp/testdb1026758565 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.118ms] [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.207ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [12.797ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [16.611ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.224ms] [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.101ms] [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.490ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680335.1700935,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [16.922ms] [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-1750680333302398336","2025-06-23 12:05:33.302","2025-06-23 12:05:33.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [11.772ms] [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 [18.771ms] [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-1750680334302398336","2025-06-23 12:05:34.302","2025-06-23 12:05:34.302") RETURNING `created_time`,`updated_time` records_test.go:288: Created record: name:"foo/results/bar/records/0" id:"2" uid:"2" data:{type:"TaskRun" value:"{\"metadata\":{\"name\":\"0\",\"creationTimestamp\":null},\"spec\":{\"serviceAccountName\":\"\"},\"status\":{\"podName\":\"\"}}"} etag:"2-1750680334302398336" created_time:{seconds:1750680334 nanos:302398336} create_time:{seconds:1750680334 nanos:302398336} updated_time:{seconds:1750680334 nanos:302398336} update_time:{seconds:1750680334 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.909ms] [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 [30.400ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","3","1","TaskRun","{""metadata"":{""name"":""1"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","3-1750680335302398336","2025-06-23 12:05:35.302","2025-06-23 12:05:35.302") RETURNING `created_time`,`updated_time` records_test.go:288: Created record: name:"foo/results/bar/records/1" id:"3" uid:"3" data:{type:"TaskRun" value:"{\"metadata\":{\"name\":\"1\",\"creationTimestamp\":null},\"spec\":{\"serviceAccountName\":\"\"},\"status\":{\"podName\":\"\"}}"} etag:"3-1750680335302398336" created_time:{seconds:1750680335 nanos:302398336} create_time:{seconds:1750680335 nanos:302398336} updated_time:{seconds:1750680335 nanos:302398336} update_time:{seconds:1750680335 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.673ms] [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 [29.201ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","4","2","TaskRun","{""metadata"":{""name"":""2"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","4-1750680336302398336","2025-06-23 12:05:36.302","2025-06-23 12:05:36.302") RETURNING `created_time`,`updated_time` records_test.go:288: Created record: name:"foo/results/bar/records/2" id:"4" uid:"4" data:{type:"TaskRun" value:"{\"metadata\":{\"name\":\"2\",\"creationTimestamp\":null},\"spec\":{\"serviceAccountName\":\"\"},\"status\":{\"podName\":\"\"}}"} etag:"4-1750680336302398336" created_time:{seconds:1750680336 nanos:302398336} create_time:{seconds:1750680336 nanos:302398336} updated_time:{seconds:1750680336 nanos:302398336} update_time:{seconds:1750680336 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.704ms] [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 [39.545ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","5","3","TaskRun","{""metadata"":{""name"":""3"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","5-1750680337302398336","2025-06-23 12:05:37.302","2025-06-23 12:05:37.302") RETURNING `created_time`,`updated_time` records_test.go:288: Created record: name:"foo/results/bar/records/3" id:"5" uid:"5" data:{type:"TaskRun" value:"{\"metadata\":{\"name\":\"3\",\"creationTimestamp\":null},\"spec\":{\"serviceAccountName\":\"\"},\"status\":{\"podName\":\"\"}}"} etag:"5-1750680337302398336" created_time:{seconds:1750680337 nanos:302398336} create_time:{seconds:1750680337 nanos:302398336} updated_time:{seconds:1750680337 nanos:302398336} update_time:{seconds:1750680337 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.740ms] [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 [22.206ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","6","4","TaskRun","{""metadata"":{""name"":""4"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","6-1750680338302398336","2025-06-23 12:05:38.302","2025-06-23 12:05:38.302") RETURNING `created_time`,`updated_time` records_test.go:288: Created record: name:"foo/results/bar/records/4" id:"6" uid:"6" data:{type:"TaskRun" value:"{\"metadata\":{\"name\":\"4\",\"creationTimestamp\":null},\"spec\":{\"serviceAccountName\":\"\"},\"status\":{\"podName\":\"\"}}"} etag:"6-1750680338302398336" created_time:{seconds:1750680338 nanos:302398336} create_time:{seconds:1750680338 nanos:302398336} updated_time:{seconds:1750680338 nanos:302398336} update_time:{seconds:1750680338 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.806ms] [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 [22.834ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","7","5","TaskRun","{""metadata"":{""name"":""5"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","7-1750680339302398336","2025-06-23 12:05:39.302","2025-06-23 12:05:39.302") RETURNING `created_time`,`updated_time` records_test.go:288: Created record: name:"foo/results/bar/records/5" id:"7" uid:"7" data:{type:"TaskRun" value:"{\"metadata\":{\"name\":\"5\",\"creationTimestamp\":null},\"spec\":{\"serviceAccountName\":\"\"},\"status\":{\"podName\":\"\"}}"} etag:"7-1750680339302398336" created_time:{seconds:1750680339 nanos:302398336} create_time:{seconds:1750680339 nanos:302398336} updated_time:{seconds:1750680339 nanos:302398336} update_time:{seconds:1750680339 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [3.105ms] [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 [55.839ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","8","6","TaskRun","{""metadata"":{""name"":""6"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","8-1750680340302398336","2025-06-23 12:05:40.302","2025-06-23 12:05:40.302") RETURNING `created_time`,`updated_time` records_test.go:288: Created record: name:"foo/results/bar/records/6" id:"8" uid:"8" data:{type:"TaskRun" value:"{\"metadata\":{\"name\":\"6\",\"creationTimestamp\":null},\"spec\":{\"serviceAccountName\":\"\"},\"status\":{\"podName\":\"\"}}"} etag:"8-1750680340302398336" created_time:{seconds:1750680340 nanos:302398336} create_time:{seconds:1750680340 nanos:302398336} updated_time:{seconds:1750680340 nanos:302398336} update_time:{seconds:1750680340 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.726ms] [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 [25.272ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","9","7","TaskRun","{""metadata"":{""name"":""7"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","9-1750680341302398336","2025-06-23 12:05:41.302","2025-06-23 12:05:41.302") RETURNING `created_time`,`updated_time` records_test.go:288: Created record: name:"foo/results/bar/records/7" id:"9" uid:"9" data:{type:"TaskRun" value:"{\"metadata\":{\"name\":\"7\",\"creationTimestamp\":null},\"spec\":{\"serviceAccountName\":\"\"},\"status\":{\"podName\":\"\"}}"} etag:"9-1750680341302398336" created_time:{seconds:1750680341 nanos:302398336} create_time:{seconds:1750680341 nanos:302398336} updated_time:{seconds:1750680341 nanos:302398336} update_time:{seconds:1750680341 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.841ms] [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.092ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","10","8","TaskRun","{""metadata"":{""name"":""8"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","10-1750680342302398336","2025-06-23 12:05:42.302","2025-06-23 12:05:42.302") RETURNING `created_time`,`updated_time` records_test.go:288: Created record: name:"foo/results/bar/records/8" id:"10" uid:"10" data:{type:"TaskRun" value:"{\"metadata\":{\"name\":\"8\",\"creationTimestamp\":null},\"spec\":{\"serviceAccountName\":\"\"},\"status\":{\"podName\":\"\"}}"} etag:"10-1750680342302398336" created_time:{seconds:1750680342 nanos:302398336} create_time:{seconds:1750680342 nanos:302398336} updated_time:{seconds:1750680342 nanos:302398336} update_time:{seconds:1750680342 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.414ms] [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.972ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","11","9","TaskRun","{""metadata"":{""name"":""9"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","11-1750680343302398336","2025-06-23 12:05:43.302","2025-06-23 12:05:43.302") RETURNING `created_time`,`updated_time` records_test.go:288: Created record: name:"foo/results/bar/records/9" id:"11" uid:"11" data:{type:"TaskRun" value:"{\"metadata\":{\"name\":\"9\",\"creationTimestamp\":null},\"spec\":{\"serviceAccountName\":\"\"},\"status\":{\"podName\":\"\"}}"} etag:"11-1750680343302398336" created_time:{seconds:1750680343 nanos:302398336} create_time:{seconds:1750680343 nanos:302398336} updated_time:{seconds:1750680343 nanos:302398336} update_time:{seconds:1750680343 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.885ms] [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 [15.168ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","12","10","PipelineRun","{""metadata"":{""name"":""10"",""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{}}","12-1750680344302398336","2025-06-23 12:05:44.302","2025-06-23 12:05:44.302") RETURNING `created_time`,`updated_time` records_test.go:310: Created record: name:"foo/results/bar/records/10" id:"12" uid:"12" data:{type:"PipelineRun" value:"{\"metadata\":{\"name\":\"10\",\"creationTimestamp\":null},\"spec\":{\"taskRunTemplate\":{}},\"status\":{}}"} etag:"12-1750680344302398336" created_time:{seconds:1750680344 nanos:302398336} create_time:{seconds:1750680344 nanos:302398336} updated_time:{seconds:1750680344 nanos:302398336} update_time:{seconds:1750680344 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.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 [37.799ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","13","11","PipelineRun","{""metadata"":{""name"":""11"",""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{}}","13-1750680345302398336","2025-06-23 12:05:45.302","2025-06-23 12:05:45.302") RETURNING `created_time`,`updated_time` records_test.go:310: Created record: name:"foo/results/bar/records/11" id:"13" uid:"13" data:{type:"PipelineRun" value:"{\"metadata\":{\"name\":\"11\",\"creationTimestamp\":null},\"spec\":{\"taskRunTemplate\":{}},\"status\":{}}"} etag:"13-1750680345302398336" created_time:{seconds:1750680345 nanos:302398336} create_time:{seconds:1750680345 nanos:302398336} updated_time:{seconds:1750680345 nanos:302398336} update_time:{seconds:1750680345 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.829ms] [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 [16.568ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","14","12","PipelineRun","{""metadata"":{""name"":""12"",""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{}}","14-1750680346302398336","2025-06-23 12:05:46.302","2025-06-23 12:05:46.302") RETURNING `created_time`,`updated_time` records_test.go:310: Created record: name:"foo/results/bar/records/12" id:"14" uid:"14" data:{type:"PipelineRun" value:"{\"metadata\":{\"name\":\"12\",\"creationTimestamp\":null},\"spec\":{\"taskRunTemplate\":{}},\"status\":{}}"} etag:"14-1750680346302398336" created_time:{seconds:1750680346 nanos:302398336} create_time:{seconds:1750680346 nanos:302398336} updated_time:{seconds:1750680346 nanos:302398336} update_time:{seconds:1750680346 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.175ms] [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 [89.949ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","15","13","PipelineRun","{""metadata"":{""name"":""13"",""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{}}","15-1750680347302398336","2025-06-23 12:05:47.302","2025-06-23 12:05:47.302") RETURNING `created_time`,`updated_time` records_test.go:310: Created record: name:"foo/results/bar/records/13" id:"15" uid:"15" data:{type:"PipelineRun" value:"{\"metadata\":{\"name\":\"13\",\"creationTimestamp\":null},\"spec\":{\"taskRunTemplate\":{}},\"status\":{}}"} etag:"15-1750680347302398336" created_time:{seconds:1750680347 nanos:302398336} create_time:{seconds:1750680347 nanos:302398336} updated_time:{seconds:1750680347 nanos:302398336} update_time:{seconds:1750680347 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [18.912ms] [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 [113.500ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","16","14","PipelineRun","{""metadata"":{""name"":""14"",""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{}}","16-1750680348302398336","2025-06-23 12:05:48.302","2025-06-23 12:05:48.302") RETURNING `created_time`,`updated_time` records_test.go:310: Created record: name:"foo/results/bar/records/14" id:"16" uid:"16" data:{type:"PipelineRun" value:"{\"metadata\":{\"name\":\"14\",\"creationTimestamp\":null},\"spec\":{\"taskRunTemplate\":{}},\"status\":{}}"} etag:"16-1750680348302398336" created_time:{seconds:1750680348 nanos:302398336} create_time:{seconds:1750680348 nanos:302398336} updated_time:{seconds:1750680348 nanos:302398336} update_time:{seconds:1750680348 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.690ms] [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 [60.497ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","17","15","PipelineRun","{""metadata"":{""name"":""15"",""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{}}","17-1750680349302398336","2025-06-23 12:05:49.302","2025-06-23 12:05:49.302") RETURNING `created_time`,`updated_time` records_test.go:310: Created record: name:"foo/results/bar/records/15" id:"17" uid:"17" data:{type:"PipelineRun" value:"{\"metadata\":{\"name\":\"15\",\"creationTimestamp\":null},\"spec\":{\"taskRunTemplate\":{}},\"status\":{}}"} etag:"17-1750680349302398336" created_time:{seconds:1750680349 nanos:302398336} create_time:{seconds:1750680349 nanos:302398336} updated_time:{seconds:1750680349 nanos:302398336} update_time:{seconds:1750680349 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.717ms] [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 [38.281ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","18","16","PipelineRun","{""metadata"":{""name"":""16"",""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{}}","18-1750680350302398336","2025-06-23 12:05:50.302","2025-06-23 12:05:50.302") RETURNING `created_time`,`updated_time` records_test.go:310: Created record: name:"foo/results/bar/records/16" id:"18" uid:"18" data:{type:"PipelineRun" value:"{\"metadata\":{\"name\":\"16\",\"creationTimestamp\":null},\"spec\":{\"taskRunTemplate\":{}},\"status\":{}}"} etag:"18-1750680350302398336" created_time:{seconds:1750680350 nanos:302398336} create_time:{seconds:1750680350 nanos:302398336} updated_time:{seconds:1750680350 nanos:302398336} update_time:{seconds:1750680350 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.428ms] [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 [67.116ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","19","17","PipelineRun","{""metadata"":{""name"":""17"",""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{}}","19-1750680351302398336","2025-06-23 12:05:51.302","2025-06-23 12:05:51.302") RETURNING `created_time`,`updated_time` records_test.go:310: Created record: name:"foo/results/bar/records/17" id:"19" uid:"19" data:{type:"PipelineRun" value:"{\"metadata\":{\"name\":\"17\",\"creationTimestamp\":null},\"spec\":{\"taskRunTemplate\":{}},\"status\":{}}"} etag:"19-1750680351302398336" created_time:{seconds:1750680351 nanos:302398336} create_time:{seconds:1750680351 nanos:302398336} updated_time:{seconds:1750680351 nanos:302398336} update_time:{seconds:1750680351 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.924ms] [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 [102.241ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","20","18","PipelineRun","{""metadata"":{""name"":""18"",""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{}}","20-1750680352302398336","2025-06-23 12:05:52.302","2025-06-23 12:05:52.302") RETURNING `created_time`,`updated_time` records_test.go:310: Created record: name:"foo/results/bar/records/18" id:"20" uid:"20" data:{type:"PipelineRun" value:"{\"metadata\":{\"name\":\"18\",\"creationTimestamp\":null},\"spec\":{\"taskRunTemplate\":{}},\"status\":{}}"} etag:"20-1750680352302398336" created_time:{seconds:1750680352 nanos:302398336} create_time:{seconds:1750680352 nanos:302398336} updated_time:{seconds:1750680352 nanos:302398336} update_time:{seconds:1750680352 nanos:302398336} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.564ms] [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 [94.882ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","21","19","PipelineRun","{""metadata"":{""name"":""19"",""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{}}","21-1750680353302398336","2025-06-23 12:05:53.302","2025-06-23 12:05:53.302") RETURNING `created_time`,`updated_time` records_test.go:310: Created record: name:"foo/results/bar/records/19" id:"21" uid:"21" data:{type:"PipelineRun" value:"{\"metadata\":{\"name\":\"19\",\"creationTimestamp\":null},\"spec\":{\"taskRunTemplate\":{}},\"status\":{}}"} etag:"21-1750680353302398336" created_time:{seconds:1750680353 nanos:302398336} create_time:{seconds:1750680353 nanos:302398336} updated_time:{seconds:1750680353 nanos:302398336} update_time:{seconds:1750680353 nanos:302398336} === RUN TestListRecords/all records_test.go:475: Parent: "foo/results/bar" === NAME TestListRecords db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [15.026ms] [rows:20] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" ORDER BY id ASC LIMIT 51 === RUN TestListRecords/list_all_records_without_knowing_the_result_name records_test.go:475: Parent: "foo/results/-" === NAME TestListRecords db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [2.885ms] [rows:20] SELECT * FROM `records` WHERE parent = "foo" ORDER BY id ASC LIMIT 51 === RUN TestListRecords/list_all_records_without_knowing_the_parent_and_the_result_name records_test.go:475: Parent: "-/results/-" === NAME TestListRecords db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [13.457ms] [rows:20] SELECT * FROM `records` ORDER BY id ASC LIMIT 51 === RUN TestListRecords/filter_by_record_property records_test.go:475: Parent: "foo/results/bar" === NAME TestListRecords db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [0.608ms] [rows:1] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" AND (name = '0') ORDER BY id ASC LIMIT 51 === RUN TestListRecords/filter_by_record_data records_test.go:475: Parent: "foo/results/bar" === NAME TestListRecords db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [0.744ms] [rows:1] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" AND ((data->'metadata'->>'name') = '0') ORDER BY id ASC LIMIT 51 === RUN TestListRecords/filter_by_record_type records_test.go:475: Parent: "foo/results/bar" === NAME TestListRecords db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.734ms] [rows:10] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" AND (type = 'TaskRun') ORDER BY id ASC LIMIT 51 === RUN TestListRecords/filter_doesn't_match_any_records records_test.go:475: Parent: "foo/results/-" === NAME TestListRecords db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [0.520ms] [rows:0] SELECT * FROM `records` WHERE parent = "foo" AND ((data->'metadata'->>'name') = 'unknown') ORDER BY id ASC LIMIT 51 === RUN TestListRecords/unknown_type records_test.go:475: Parent: "foo/results/bar" === RUN TestListRecords/unknown_any_field records_test.go:475: Parent: "foo/results/bar" === RUN TestListRecords/malformed_parent records_test.go:475: Parent: "unknown" === RUN TestListRecords/invalid_order_by_clause records_test.go:475: Parent: "foo/results/bar" === RUN TestListRecords/invalid_sort_direction records_test.go:475: Parent: "foo/results/bar" === RUN TestListRecords/paginate_records_using_default_order === NAME TestListRecords db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.556ms] [rows:6] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" ORDER BY id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.470ms] [rows:6] SELECT * FROM `records` WHERE id > "14" AND parent = "foo" AND result_name = "bar" ORDER BY id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.290ms] [rows:6] SELECT * FROM `records` WHERE id > "19" AND parent = "foo" AND result_name = "bar" ORDER BY id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.192ms] [rows:5] SELECT * FROM `records` WHERE id > "4" AND parent = "foo" AND result_name = "bar" ORDER BY id ASC LIMIT 6 === RUN TestListRecords/paginate_records_sorting_by_create_time_asc === NAME TestListRecords db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.345ms] [rows:6] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" ORDER BY created_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.324ms] [rows:6] SELECT * FROM `records` WHERE (created_time, id) > ("2025-06-23 12:05:38.302", "6") AND parent = "foo" AND result_name = "bar" ORDER BY created_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.503ms] [rows:6] SELECT * FROM `records` WHERE (created_time, id) > ("2025-06-23 12:05:43.302", "11") AND parent = "foo" AND result_name = "bar" ORDER BY created_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.259ms] [rows:5] SELECT * FROM `records` WHERE (created_time, id) > ("2025-06-23 12:05:48.302", "16") AND parent = "foo" AND result_name = "bar" ORDER BY created_time ASC,id ASC LIMIT 6 === RUN TestListRecords/paginate_records_sorting_by_create_time_desc === NAME TestListRecords db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.250ms] [rows:6] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" ORDER BY created_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.392ms] [rows:6] SELECT * FROM `records` WHERE (created_time, id) < ("2025-06-23 12:05:49.302", "17") AND parent = "foo" AND result_name = "bar" ORDER BY created_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.247ms] [rows:6] SELECT * FROM `records` WHERE (created_time, id) < ("2025-06-23 12:05:44.302", "12") AND parent = "foo" AND result_name = "bar" ORDER BY created_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.363ms] [rows:5] SELECT * FROM `records` WHERE (created_time, id) < ("2025-06-23 12:05:39.302", "7") AND parent = "foo" AND result_name = "bar" ORDER BY created_time DESC,id DESC LIMIT 6 === RUN TestListRecords/paginate_records_sorting_by_update_time_asc === NAME TestListRecords db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.267ms] [rows:6] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" ORDER BY updated_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.730ms] [rows:6] SELECT * FROM `records` WHERE (updated_time, id) > ("2025-06-23 12:05:38.302", "6") AND parent = "foo" AND result_name = "bar" ORDER BY updated_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.310ms] [rows:6] SELECT * FROM `records` WHERE (updated_time, id) > ("2025-06-23 12:05:43.302", "11") AND parent = "foo" AND result_name = "bar" ORDER BY updated_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.214ms] [rows:5] SELECT * FROM `records` WHERE (updated_time, id) > ("2025-06-23 12:05:48.302", "16") AND parent = "foo" AND result_name = "bar" ORDER BY updated_time ASC,id ASC LIMIT 6 === RUN TestListRecords/paginate_records_sorting_by_update_time_desc === NAME TestListRecords db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.577ms] [rows:6] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" ORDER BY updated_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.227ms] [rows:6] SELECT * FROM `records` WHERE (updated_time, id) < ("2025-06-23 12:05:49.302", "17") AND parent = "foo" AND result_name = "bar" ORDER BY updated_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.210ms] [rows:6] SELECT * FROM `records` WHERE (updated_time, id) < ("2025-06-23 12:05:44.302", "12") AND parent = "foo" AND result_name = "bar" ORDER BY updated_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.161ms] [rows:5] SELECT * FROM `records` WHERE (updated_time, id) < ("2025-06-23 12:05:39.302", "7") AND parent = "foo" AND result_name = "bar" ORDER BY updated_time DESC,id DESC LIMIT 6 --- PASS: TestListRecords (3.91s) --- PASS: TestListRecords/all (0.53s) --- PASS: TestListRecords/list_all_records_without_knowing_the_result_name (0.37s) --- PASS: TestListRecords/list_all_records_without_knowing_the_parent_and_the_result_name (0.23s) --- PASS: TestListRecords/filter_by_record_property (0.03s) --- PASS: TestListRecords/filter_by_record_data (0.02s) --- PASS: TestListRecords/filter_by_record_type (0.15s) --- PASS: TestListRecords/filter_doesn't_match_any_records (0.00s) --- PASS: TestListRecords/unknown_type (0.00s) --- PASS: TestListRecords/unknown_any_field (0.00s) --- PASS: TestListRecords/malformed_parent (0.00s) --- PASS: TestListRecords/invalid_order_by_clause (0.00s) --- PASS: TestListRecords/invalid_sort_direction (0.00s) --- PASS: TestListRecords/paginate_records_using_default_order (0.28s) --- PASS: TestListRecords/paginate_records_sorting_by_create_time_asc (0.22s) --- PASS: TestListRecords/paginate_records_sorting_by_create_time_desc (0.22s) --- PASS: TestListRecords/paginate_records_sorting_by_update_time_asc (0.37s) --- PASS: TestListRecords/paginate_records_sorting_by_update_time_desc (0.24s) === RUN TestUpdateRecord records_test.go:542: test database: /tmp/testdb375742924 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.044ms] [rows:0] PRAGMA foreign_keys = ON; 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="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [10.372ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [7.646ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.146ms] [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.955ms] [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 [7.944ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680339.0379786,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [8.917ms] [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-1750680353302398336","2025-06-23 12:05:53.302","2025-06-23 12:05:53.302") 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 [2.095ms] [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.487ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","22","bar","23","a","","","23-1750680353302398336","2025-06-23 12:05:53.302","2025-06-23 12:05:53.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.623ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "a" 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.735ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="a",`type`="",`data`="{""metadata"":{""name"":""taskrun""}}",`created_time`="2025-06-23 12:05:53.302",`updated_time`="2025-06-23 12:05:54.302",`etag`="23-1750680354302398336" WHERE `parent` = "foo" AND `result_id` = "22" AND `id` = "23" === RUN TestUpdateRecord/ignored_fields === NAME TestUpdateRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.517ms] [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 [9.260ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","22","bar","24","b","","","24-1750680354302398336","2025-06-23 12:05:54.302","2025-06-23 12:05:54.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.575ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "b" 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.584ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="b",`type`="",`data`="",`created_time`="2025-06-23 12:05:54.302",`updated_time`="2025-06-23 12:05:55.302",`etag`="24-1750680355302398336" WHERE `parent` = "foo" AND `result_id` = "22" AND `id` = "24" === RUN TestUpdateRecord/rename === NAME TestUpdateRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.507ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "doesnotexist" ORDER BY `records`.`id` LIMIT 1 === RUN TestUpdateRecord/bad_name === RUN TestUpdateRecord/etag_mismatch === NAME TestUpdateRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.605ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "a" ORDER BY `records`.`id` LIMIT 1 --- PASS: TestUpdateRecord (0.15s) --- PASS: TestUpdateRecord/success (0.04s) --- PASS: TestUpdateRecord/ignored_fields (0.03s) --- PASS: TestUpdateRecord/rename (0.00s) --- PASS: TestUpdateRecord/bad_name (0.00s) --- PASS: TestUpdateRecord/etag_mismatch (0.00s) === RUN TestDeleteRecord records_test.go:684: test database: /tmp/testdb654754970 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.066ms] [rows:0] PRAGMA foreign_keys = ON; db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [2.776ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [8.600ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [8.698ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.143ms] [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 [27.916ms] [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.869ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680339.239859,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [31.802ms] [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-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [7.831ms] [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 [24.113ms] [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-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` === RUN TestDeleteRecord/success === NAME TestDeleteRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [3.560ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:246 [14.619ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "25" AND `records`.`result_name` = "bar" AND `records`.`id` = "26" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-23 12:05:58.302" AND `records`.`updated_time` = "2025-06-23 12:05:58.302" AND `records`.`etag` = "26-1750680358302398336" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.422ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 === RUN TestDeleteRecord/already_deleted === NAME TestDeleteRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.324ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 --- PASS: TestDeleteRecord (0.20s) --- PASS: TestDeleteRecord/success (0.02s) --- PASS: TestDeleteRecord/already_deleted (0.00s) === RUN TestListRecords_multiresult records_test.go:731: test database: /tmp/testdb1382127504 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.049ms] [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.150ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [14.544ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [7.402ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.141ms] [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.889ms] [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 [10.454ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680339.391958,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [10.066ms] [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-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [4.688ms] [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 [7.225ms] [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-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.383ms] [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 [15.092ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("0","27","0","29","1","","","29-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [10.713ms] [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","30","1","null","","",NULL,NULL,0,"null","30-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.477ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "0" AND `results`.`name` = "1" 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.650ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("0","30","1","31","0","","","31-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.445ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "0" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [9.832ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("0","30","1","32","1","","","32-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [11.607ms] [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 ("1","33","0","null","","",NULL,NULL,0,"null","33-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.442ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "1" 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.961ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("1","33","0","34","0","","","34-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.437ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "1" 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 [9.498ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("1","33","0","35","1","","","35-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [8.928ms] [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 ("1","36","1","null","","",NULL,NULL,0,"null","36-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.465ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "1" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [10.096ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("1","36","1","37","0","","","37-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.402ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "1" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [25.165ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("1","36","1","38","1","","","38-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.041ms] [rows:4] SELECT * FROM `records` WHERE parent = "0" ORDER BY id ASC LIMIT 51 --- PASS: TestListRecords_multiresult (0.25s) === RUN TestCreateResult results_test.go:43: test database: /tmp/testdb3720143748 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.052ms] [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.164ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [12.070ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [11.483ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.115ms] [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.038ms] [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 [29.459ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680339.6700697,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} === RUN TestCreateResult/success === NAME TestCreateResult db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [12.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 ("foo","39","bar","{""foo"":""bar""}","","",NULL,NULL,0,"null","39-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [1.059ms] [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 [3.156ms] [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-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` === RUN TestCreateResult/large_name === RUN TestCreateResult/large_result_summary_type --- PASS: TestCreateResult (0.13s) --- PASS: TestCreateResult/success (0.02s) --- PASS: TestCreateResult/mismatched_parent (0.00s) --- PASS: TestCreateResult/missing_name (0.00s) --- PASS: TestCreateResult/already_exists (0.00s) --- PASS: TestCreateResult/large_name (0.00s) --- PASS: TestCreateResult/large_result_summary_type (0.00s) === RUN TestUpdateResult results_test.go:139: test database: /tmp/testdb964231561 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.870ms] [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.139ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [25.679ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [21.340ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) 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 [29.711ms] [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 [62.542ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680339.9188647,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} === RUN TestUpdateResult/success === NAME TestUpdateResult db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [18.037ms] [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-1750680358302398336","2025-06-23 12:05:58.302","2025-06-23 12:05:58.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.758ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar-0" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:140 [0.793ms] [rows:1] UPDATE `results` SET `name`="bar-0",`annotations`="{""foo"":""bar""}",`created_time`="2025-06-23 12:05:58.302",`updated_time`="2025-06-23 12:05:59.302",`recordsummary_record`="foo/results/bar/records/baz",`recordsummary_type`="bar",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="42-1750680359302398336" WHERE `parent` = "foo" AND `id` = "42" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [4.840ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar-0" ORDER BY `results`.`id` LIMIT 1 === RUN TestUpdateResult/test_update_with_empty_result === NAME TestUpdateResult db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [8.711ms] [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","43","bar-1","null","","",NULL,NULL,0,"null","43-1750680359302398336","2025-06-23 12:05:59.302","2025-06-23 12:05:59.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.696ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar-1" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:140 [0.647ms] [rows:1] UPDATE `results` SET `name`="bar-1",`annotations`="null",`created_time`="2025-06-23 12:05:59.302",`updated_time`="2025-06-23 12:06:00.302",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="43-1750680360302398336" WHERE `parent` = "foo" AND `id` = "43" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.639ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar-1" ORDER BY `results`.`id` LIMIT 1 === RUN TestUpdateResult/test_update_with_invalid_name === NAME TestUpdateResult db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [23.744ms] [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","44","bar-2","null","","",NULL,NULL,0,"null","44-1750680360302398336","2025-06-23 12:06:00.302","2025-06-23 12:06:00.302") RETURNING `created_time`,`updated_time` === RUN TestUpdateResult/test_update_a_non-existent_result === NAME TestUpdateResult db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [10.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","45","bar-3","null","","",NULL,NULL,0,"null","45-1750680361302398336","2025-06-23 12:06:01.302","2025-06-23 12:06:01.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.484ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar-non-existent" ORDER BY `results`.`id` LIMIT 1 === RUN TestUpdateResult/test_update_with_invalid_etag === NAME TestUpdateResult db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [9.964ms] [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","46","bar-4","null","","",NULL,NULL,0,"null","46-1750680362302398336","2025-06-23 12:06:02.302","2025-06-23 12:06:02.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.673ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar-4" ORDER BY `results`.`id` LIMIT 1 === RUN TestUpdateResult/result_summary_with_no_record/type === NAME TestUpdateResult db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [7.071ms] [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","47","bar-5","null","","",NULL,NULL,0,"null","47-1750680363302398336","2025-06-23 12:06:03.302","2025-06-23 12:06:03.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.825ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar-5" ORDER BY `results`.`id` LIMIT 1 --- PASS: TestUpdateResult (0.37s) --- PASS: TestUpdateResult/success (0.05s) --- PASS: TestUpdateResult/test_update_with_empty_result (0.04s) --- PASS: TestUpdateResult/test_update_with_invalid_name (0.02s) --- PASS: TestUpdateResult/test_update_a_non-existent_result (0.01s) --- PASS: TestUpdateResult/test_update_with_invalid_etag (0.01s) --- PASS: TestUpdateResult/result_summary_with_no_record/type (0.01s) === RUN TestGetResult results_test.go:246: test database: /tmp/testdb3637215419 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.051ms] [rows:0] PRAGMA foreign_keys = ON; db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.145ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [10.643ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [13.413ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.151ms] [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 [16.399ms] [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.200ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680340.1578603,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [29.354ms] [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-1750680364302398336","2025-06-23 12:06:04.302","2025-06-23 12:06:04.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.933ms] [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 === NAME TestGetResult db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.425ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "a" AND `results`.`name` = "doesnotexist" ORDER BY `results`.`id` LIMIT 1 --- PASS: TestGetResult (0.13s) --- PASS: TestGetResult/no_name (0.00s) --- PASS: TestGetResult/not_found (0.00s) === RUN TestDeleteResult results_test.go:296: test database: /tmp/testdb654202769 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.056ms] [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.143ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [7.351ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [10.922ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.131ms] [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 [27.060ms] [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 [26.635ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680340.3019001,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [39.985ms] [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-1750680364302398336","2025-06-23 12:06:04.302","2025-06-23 12:06:04.302") 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.688ms] [rows:1] SELECT * 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/results.go:174 [12.734ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "49" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-23 12:06:04.302" AND `results`.`updated_time` = "2025-06-23 12:06:04.302" AND `results`.`etag` = "49-1750680364302398336" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.415ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 === RUN TestDeleteResult/already_deleted === NAME TestDeleteResult db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 record not found [0.291ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 --- PASS: TestDeleteResult (0.16s) --- PASS: TestDeleteResult/success (0.01s) --- PASS: TestDeleteResult/already_deleted (0.00s) === RUN TestCascadeDelete results_test.go:332: test database: /tmp/testdb2239610060 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [3.156ms] [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.152ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [12.688ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [11.562ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.136ms] [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.689ms] [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.390ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680340.4657965,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [13.335ms] [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-1750680364302398336","2025-06-23 12:06:04.302","2025-06-23 12:06:04.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.955ms] [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 [7.738ms] [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-1750680364302398336","2025-06-23 12:06:04.302","2025-06-23 12:06:04.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [0.645ms] [rows:1] SELECT * 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/results.go:174 [22.192ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "50" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-23 12:06:04.302" AND `results`.`updated_time` = "2025-06-23 12:06:04.302" AND `results`.`etag` = "50-1750680364302398336" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.363ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 --- PASS: TestCascadeDelete (0.16s) === RUN TestListResults results_test.go:366: test database: /tmp/testdb1337900833 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.062ms] [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.122ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [8.966ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [7.756ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) 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 [10.127ms] [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.677ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680340.5809114,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [19.060ms] [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","603140f0-81cf-4703-9760-8a09b8077e4e","{""foo"":""bar-1""}","foo/results/603140f0-81cf-4703-9760-8a09b8077e4e/records/7884d5d9-b11b-4c81-b054-28381114c4fd","resource_type","2025-06-23 12:06:05.302","2025-06-23 12:07:05.302",0,"null","1-1750680365302398336","2025-06-23 12:06:05.302","2025-06-23 12:06:05.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [9.285ms] [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","25ab8a73-adb9-48c5-89e5-23f51a05be9b","{""foo"":""bar-2""}","foo/results/25ab8a73-adb9-48c5-89e5-23f51a05be9b/records/dc1c42d5-28f3-4976-8383-8c4bcd287ec8","resource_type","2025-06-23 12:06:06.302","2025-06-23 12:07:06.302",0,"null","2-1750680366302398336","2025-06-23 12:06:06.302","2025-06-23 12:06:06.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [8.924ms] [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","22405f97-bf57-4c78-a26e-f6e646f3c21e","{""foo"":""bar-3""}","foo/results/22405f97-bf57-4c78-a26e-f6e646f3c21e/records/d6375e28-c522-4b18-b940-fe84008fc69d","resource_type","2025-06-23 12:06:07.302","2025-06-23 12:07:07.302",0,"null","3-1750680367302398336","2025-06-23 12:06:07.302","2025-06-23 12:06:07.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [17.914ms] [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","4","8eaf7022-939b-40ad-92c5-e418b5f3db05","{""foo"":""bar-4""}","foo/results/8eaf7022-939b-40ad-92c5-e418b5f3db05/records/1b1e9b41-3345-4620-8576-5396bf8bdb9f","resource_type","2025-06-23 12:06:08.302","2025-06-23 12:07:08.302",0,"null","4-1750680368302398336","2025-06-23 12:06:08.302","2025-06-23 12:06:08.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [12.500ms] [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","37173482-e1ca-4550-8b30-eeaa29967422","{""foo"":""bar-5""}","foo/results/37173482-e1ca-4550-8b30-eeaa29967422/records/424d986b-62fa-4fe2-8aec-77d79a2ea95c","resource_type","2025-06-23 12:06:09.302","2025-06-23 12:07:09.302",0,"null","5-1750680369302398336","2025-06-23 12:06:09.302","2025-06-23 12:06:09.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [7.890ms] [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","6","6233d390-1bb5-4549-92b9-e08e9c5f6c37","{""foo"":""bar-6""}","foo/results/6233d390-1bb5-4549-92b9-e08e9c5f6c37/records/f08fe146-559a-4f12-b091-c70eaeac07b5","resource_type","2025-06-23 12:06:10.302","2025-06-23 12:07:10.302",0,"null","6-1750680370302398336","2025-06-23 12:06:10.302","2025-06-23 12:06:10.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [14.586ms] [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","4014632b-556b-4ec4-a151-5625d9d270f4","{""foo"":""bar-7""}","foo/results/4014632b-556b-4ec4-a151-5625d9d270f4/records/f6af7b29-75b0-4f34-b58b-4820f538e934","resource_type","2025-06-23 12:06:11.302","2025-06-23 12:07:11.302",0,"null","7-1750680371302398336","2025-06-23 12:06:11.302","2025-06-23 12:06:11.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [12.406ms] [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","8","0c144a94-2cf1-4fde-8752-bb2979316065","{""foo"":""bar-8""}","foo/results/0c144a94-2cf1-4fde-8752-bb2979316065/records/48cbb541-ea6e-4f0c-ba64-c250a325183e","resource_type","2025-06-23 12:06:12.302","2025-06-23 12:07:12.302",0,"null","8-1750680372302398336","2025-06-23 12:06:12.302","2025-06-23 12:06:12.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [21.664ms] [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","9","327d084e-5859-462f-ad20-831bb93c7a85","{""foo"":""bar-9""}","foo/results/327d084e-5859-462f-ad20-831bb93c7a85/records/8031a8dd-f4d6-4d58-9846-ed8b29231746","resource_type","2025-06-23 12:06:13.302","2025-06-23 12:07:13.302",0,"null","9-1750680373302398336","2025-06-23 12:06:13.302","2025-06-23 12:06:13.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [11.416ms] [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","10","e7562308-7ba2-475b-a37a-01c2ec444b70","{""foo"":""bar-10""}","foo/results/e7562308-7ba2-475b-a37a-01c2ec444b70/records/dadc34b4-f089-4c08-a8d2-2f354af6dbfd","resource_type","2025-06-23 12:06:14.302","2025-06-23 12:07:14.302",0,"null","10-1750680374302398336","2025-06-23 12:06:14.302","2025-06-23 12:06:14.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [8.952ms] [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","11","46269fc6-2ee2-4527-a0ae-ebbc776c08de","{""foo"":""bar-11""}","foo/results/46269fc6-2ee2-4527-a0ae-ebbc776c08de/records/860cfeea-5d0d-4095-8957-223c9b47a5bf","resource_type","2025-06-23 12:06:15.302","2025-06-23 12:07:15.302",0,"null","11-1750680375302398336","2025-06-23 12:06:15.302","2025-06-23 12:06:15.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [27.431ms] [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","12","28182bd4-3512-4d59-bb1f-a4c32cd48898","{""foo"":""bar-12""}","foo/results/28182bd4-3512-4d59-bb1f-a4c32cd48898/records/4e41e139-f593-4da9-a6db-a8394575a1ca","resource_type","2025-06-23 12:06:16.302","2025-06-23 12:07:16.302",0,"null","12-1750680376302398336","2025-06-23 12:06:16.302","2025-06-23 12:06:16.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [10.225ms] [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","13","a67c2a47-6240-4394-a533-603b9814b982","{""foo"":""bar-13""}","foo/results/a67c2a47-6240-4394-a533-603b9814b982/records/e67d5f38-bc50-457e-ae75-45ce4cc40f7f","resource_type","2025-06-23 12:06:17.302","2025-06-23 12:07:17.302",0,"null","13-1750680377302398336","2025-06-23 12:06:17.302","2025-06-23 12:06:17.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [10.082ms] [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","14","509d1db1-427d-47f7-8065-a32a19e37455","{""foo"":""bar-14""}","foo/results/509d1db1-427d-47f7-8065-a32a19e37455/records/ecbfe8a6-0930-4c8a-a951-4597371aaff6","resource_type","2025-06-23 12:06:18.302","2025-06-23 12:07:18.302",0,"null","14-1750680378302398336","2025-06-23 12:06:18.302","2025-06-23 12:06:18.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [11.825ms] [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","15","19094079-5e72-4956-92ec-9b77fb7fcff6","{""foo"":""bar-15""}","foo/results/19094079-5e72-4956-92ec-9b77fb7fcff6/records/b3e5e7cd-9363-4440-9a22-d40ca29250da","resource_type","2025-06-23 12:06:19.302","2025-06-23 12:07:19.302",0,"null","15-1750680379302398336","2025-06-23 12:06:19.302","2025-06-23 12:06:19.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [21.378ms] [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","16","bbb08bff-4a79-478a-a381-5eedc7171e92","{""foo"":""bar-16""}","foo/results/bbb08bff-4a79-478a-a381-5eedc7171e92/records/269db6ed-c2db-4e61-8fa9-8b06fa8af818","resource_type","2025-06-23 12:06:20.302","2025-06-23 12:07:20.302",0,"null","16-1750680380302398336","2025-06-23 12:06:20.302","2025-06-23 12:06:20.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [20.196ms] [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","17","1c9eb6e6-9aea-485c-bb5b-a89b350b13e7","{""foo"":""bar-17""}","foo/results/1c9eb6e6-9aea-485c-bb5b-a89b350b13e7/records/51b90eed-d174-419f-a155-2b213d30908d","resource_type","2025-06-23 12:06:21.302","2025-06-23 12:07:21.302",0,"null","17-1750680381302398336","2025-06-23 12:06:21.302","2025-06-23 12:06:21.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [16.182ms] [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","18","543e7bd3-a396-42b0-b20d-0296fa4bda4e","{""foo"":""bar-18""}","foo/results/543e7bd3-a396-42b0-b20d-0296fa4bda4e/records/b3cc4661-d438-46c0-b0cd-533f27efb0d0","resource_type","2025-06-23 12:06:22.302","2025-06-23 12:07:22.302",0,"null","18-1750680382302398336","2025-06-23 12:06:22.302","2025-06-23 12:06:22.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [15.918ms] [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","19","d38960c2-6255-4f7f-8c26-bc920faea58a","{""foo"":""bar-19""}","foo/results/d38960c2-6255-4f7f-8c26-bc920faea58a/records/6425b92c-1548-48bf-9b51-31491123220e","resource_type","2025-06-23 12:06:23.302","2025-06-23 12:07:23.302",0,"null","19-1750680383302398336","2025-06-23 12:06:23.302","2025-06-23 12:06:23.302") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [13.313ms] [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","20","4463bf44-6152-4a8a-908c-229f8478fa6a","{""foo"":""bar-20""}","foo/results/4463bf44-6152-4a8a-908c-229f8478fa6a/records/cd28e70f-4357-4288-8a1a-4262a34a7d42","resource_type","2025-06-23 12:06:24.302","2025-06-23 12:07:24.302",0,"null","20-1750680384302398336","2025-06-23 12:06:24.302","2025-06-23 12:06:24.302") RETURNING `created_time`,`updated_time` === RUN TestListResults/list_all_results === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [6.855ms] [rows:20] SELECT * FROM `results` WHERE parent = "foo" ORDER BY id ASC LIMIT 51 === RUN TestListResults/list_all_results_without_knowing_the_parent_name === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [4.468ms] [rows:20] SELECT * FROM `results` ORDER BY id ASC LIMIT 51 === RUN TestListResults/no_results === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [0.456ms] [rows:0] SELECT * FROM `results` WHERE parent = "foo-doesnotexist" ORDER BY id ASC LIMIT 51 === RUN TestListResults/missing_parent === RUN TestListResults/simple_query === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [0.711ms] [rows:1] SELECT * FROM `results` WHERE parent = "foo" AND (id = '1') ORDER BY id ASC LIMIT 51 === RUN TestListResults/complex_query === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [0.992ms] [rows:2] SELECT * FROM `results` WHERE parent = "foo" AND (((id = '1') OR (id = '10'))) ORDER BY id ASC LIMIT 51 === RUN TestListResults/filter_all === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [0.371ms] [rows:0] SELECT * FROM `results` WHERE parent = "foo" AND (id = 'doesnotexist') ORDER BY id ASC LIMIT 51 === RUN TestListResults/filter_by_annotations === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [0.849ms] [rows:1] SELECT * FROM `results` WHERE parent = "foo" AND annotations->>'foo' LIKE '%' || '-1' ORDER BY id ASC LIMIT 51 === RUN TestListResults/non-boolean_expression === RUN TestListResults/non-existing_field === RUN TestListResults/invalid_page_size === RUN TestListResults/invalid_order_field_name === RUN TestListResults/invalid_order_clause === RUN TestListResults/invalid_order_direction === RUN TestListResults/paginate_results_using_default_order === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.755ms] [rows:6] SELECT * FROM `results` WHERE parent = "foo" ORDER BY id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.693ms] [rows:6] SELECT * FROM `results` WHERE id > "13" AND parent = "foo" ORDER BY id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.763ms] [rows:6] SELECT * FROM `results` WHERE id > "18" AND parent = "foo" ORDER BY id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.482ms] [rows:5] SELECT * FROM `results` WHERE id > "4" AND parent = "foo" ORDER BY id ASC LIMIT 6 === RUN TestListResults/paginate_results_sorting_by_create_time_asc === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.607ms] [rows:6] SELECT * FROM `results` WHERE parent = "foo" ORDER BY created_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.598ms] [rows:6] SELECT * FROM `results` WHERE (created_time, id) > ("2025-06-23 12:06:09.302", "5") AND parent = "foo" ORDER BY created_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [16.804ms] [rows:6] SELECT * FROM `results` WHERE (created_time, id) > ("2025-06-23 12:06:14.302", "10") AND parent = "foo" ORDER BY created_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.396ms] [rows:5] SELECT * FROM `results` WHERE (created_time, id) > ("2025-06-23 12:06:19.302", "15") AND parent = "foo" ORDER BY created_time ASC,id ASC LIMIT 6 === RUN TestListResults/paginate_results_sorting_by_create_time_desc === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.550ms] [rows:6] SELECT * FROM `results` WHERE parent = "foo" ORDER BY created_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [2.898ms] [rows:6] SELECT * FROM `results` WHERE (created_time, id) < ("2025-06-23 12:06:20.302", "16") AND parent = "foo" ORDER BY created_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.740ms] [rows:6] SELECT * FROM `results` WHERE (created_time, id) < ("2025-06-23 12:06:15.302", "11") AND parent = "foo" ORDER BY created_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.398ms] [rows:5] SELECT * FROM `results` WHERE (created_time, id) < ("2025-06-23 12:06:10.302", "6") AND parent = "foo" ORDER BY created_time DESC,id DESC LIMIT 6 === RUN TestListResults/paginate_results_sorting_by_update_time_asc === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.644ms] [rows:6] SELECT * FROM `results` WHERE parent = "foo" ORDER BY updated_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.492ms] [rows:6] SELECT * FROM `results` WHERE (updated_time, id) > ("2025-06-23 12:06:09.302", "5") AND parent = "foo" ORDER BY updated_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [4.749ms] [rows:6] SELECT * FROM `results` WHERE (updated_time, id) > ("2025-06-23 12:06:14.302", "10") AND parent = "foo" ORDER BY updated_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.687ms] [rows:5] SELECT * FROM `results` WHERE (updated_time, id) > ("2025-06-23 12:06:19.302", "15") AND parent = "foo" ORDER BY updated_time ASC,id ASC LIMIT 6 === RUN TestListResults/paginate_results_sorting_by_update_time_desc === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.563ms] [rows:6] SELECT * FROM `results` WHERE parent = "foo" ORDER BY updated_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.594ms] [rows:6] SELECT * FROM `results` WHERE (updated_time, id) < ("2025-06-23 12:06:20.302", "16") AND parent = "foo" ORDER BY updated_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.638ms] [rows:6] SELECT * FROM `results` WHERE (updated_time, id) < ("2025-06-23 12:06:15.302", "11") AND parent = "foo" ORDER BY updated_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.451ms] [rows:5] SELECT * FROM `results` WHERE (updated_time, id) < ("2025-06-23 12:06:10.302", "6") AND parent = "foo" ORDER BY updated_time DESC,id DESC LIMIT 6 === RUN TestListResults/paginate_results_sorting_by_summary.start_time_asc === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.561ms] [rows:6] SELECT * FROM `results` WHERE parent = "foo" ORDER BY recordsummary_start_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.583ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_start_time, id) > ("2025-06-23 12:06:09.302", "5") AND parent = "foo" ORDER BY recordsummary_start_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.650ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_start_time, id) > ("2025-06-23 12:06:14.302", "10") AND parent = "foo" ORDER BY recordsummary_start_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.483ms] [rows:5] SELECT * FROM `results` WHERE (recordsummary_start_time, id) > ("2025-06-23 12:06:19.302", "15") AND parent = "foo" ORDER BY recordsummary_start_time ASC,id ASC LIMIT 6 === RUN TestListResults/paginate_results_sorting_by_summary.start_time_desc === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [5.715ms] [rows:6] SELECT * FROM `results` WHERE parent = "foo" ORDER BY recordsummary_start_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.634ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_start_time, id) < ("2025-06-23 12:06:20.302", "16") AND parent = "foo" ORDER BY recordsummary_start_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.642ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_start_time, id) < ("2025-06-23 12:06:15.302", "11") AND parent = "foo" ORDER BY recordsummary_start_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.526ms] [rows:5] SELECT * FROM `results` WHERE (recordsummary_start_time, id) < ("2025-06-23 12:06:10.302", "6") AND parent = "foo" ORDER BY recordsummary_start_time DESC,id DESC LIMIT 6 === RUN TestListResults/paginate_results_sorting_by_summary.end_time_asc === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.608ms] [rows:6] SELECT * FROM `results` WHERE parent = "foo" ORDER BY recordsummary_end_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.644ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_end_time, id) > ("2025-06-23 12:07:09.302", "5") AND parent = "foo" ORDER BY recordsummary_end_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.814ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_end_time, id) > ("2025-06-23 12:07:14.302", "10") AND parent = "foo" ORDER BY recordsummary_end_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.502ms] [rows:5] SELECT * FROM `results` WHERE (recordsummary_end_time, id) > ("2025-06-23 12:07:19.302", "15") AND parent = "foo" ORDER BY recordsummary_end_time ASC,id ASC LIMIT 6 === RUN TestListResults/paginate_results_sorting_by_summary.end_time_desc === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [5.027ms] [rows:6] SELECT * FROM `results` WHERE parent = "foo" ORDER BY recordsummary_end_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [6.001ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_end_time, id) < ("2025-06-23 12:07:20.302", "16") AND parent = "foo" ORDER BY recordsummary_end_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.569ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_end_time, id) < ("2025-06-23 12:07:15.302", "11") AND parent = "foo" ORDER BY recordsummary_end_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.461ms] [rows:5] SELECT * FROM `results` WHERE (recordsummary_end_time, id) < ("2025-06-23 12:07:10.302", "6") AND parent = "foo" ORDER BY recordsummary_end_time DESC,id DESC LIMIT 6 === RUN TestListResults/paginate_results_using_filter === NAME TestListResults db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.613ms] [rows:6] SELECT * FROM `results` WHERE parent = "foo" AND (((annotations->>'foo' <> 'bar-1') AND (annotations->>'foo' <> 'bar-10'))) ORDER BY id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.838ms] [rows:6] SELECT * FROM `results` WHERE id > "15" AND parent = "foo" AND (((annotations->>'foo' <> 'bar-1') AND (annotations->>'foo' <> 'bar-10'))) ORDER BY id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.708ms] [rows:6] SELECT * FROM `results` WHERE id > "2" AND parent = "foo" AND (((annotations->>'foo' <> 'bar-1') AND (annotations->>'foo' <> 'bar-10'))) ORDER BY id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.194ms] [rows:3] SELECT * FROM `results` WHERE id > "6" AND parent = "foo" AND (((annotations->>'foo' <> 'bar-1') AND (annotations->>'foo' <> 'bar-10'))) ORDER BY id ASC LIMIT 6 --- PASS: TestListResults (1.69s) --- PASS: TestListResults/list_all_results (0.10s) --- PASS: TestListResults/list_all_results_without_knowing_the_parent_name (0.07s) --- PASS: TestListResults/no_results (0.00s) --- PASS: TestListResults/missing_parent (0.00s) --- PASS: TestListResults/simple_query (0.01s) --- PASS: TestListResults/complex_query (0.01s) --- PASS: TestListResults/filter_all (0.00s) --- PASS: TestListResults/filter_by_annotations (0.01s) --- PASS: TestListResults/non-boolean_expression (0.00s) --- PASS: TestListResults/non-existing_field (0.00s) --- PASS: TestListResults/invalid_page_size (0.00s) --- PASS: TestListResults/invalid_order_field_name (0.00s) --- PASS: TestListResults/invalid_order_clause (0.00s) --- PASS: TestListResults/invalid_order_direction (0.00s) --- PASS: TestListResults/paginate_results_using_default_order (0.10s) --- PASS: TestListResults/paginate_results_sorting_by_create_time_asc (0.14s) --- PASS: TestListResults/paginate_results_sorting_by_create_time_desc (0.11s) --- PASS: TestListResults/paginate_results_sorting_by_update_time_asc (0.09s) --- PASS: TestListResults/paginate_results_sorting_by_update_time_desc (0.11s) --- PASS: TestListResults/paginate_results_sorting_by_summary.start_time_asc (0.10s) --- PASS: TestListResults/paginate_results_sorting_by_summary.start_time_desc (0.12s) --- PASS: TestListResults/paginate_results_sorting_by_summary.end_time_asc (0.12s) --- PASS: TestListResults/paginate_results_sorting_by_summary.end_time_desc (0.13s) --- PASS: TestListResults/paginate_results_using_filter (0.09s) PASS ok github.com/tektoncd/results/pkg/api/server/v1alpha2 13.395s === RUN TestRBAC rbac_test.go:93: test database: /tmp/testdb3648665461 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.120ms] [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.453ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [53.946ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [17.059ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.215ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [19.667ms] [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 [13.574ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680333.2572865,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} === RUN TestRBAC/authorized_user === NAME TestRBAC db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [38.456ms] [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","ddc28e32-8c6d-4c4d-90f5-2f520da9ab60","bar","null","","",NULL,NULL,0,"null","ddc28e32-8c6d-4c4d-90f5-2f520da9ab60-1750680333309740757","2025-06-23 12:05:33.309","2025-06-23 12:05:33.309") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [6.574ms] [rows:1] SELECT * 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/lister/lister.go:110 [7.135ms] [rows:1] SELECT * FROM `results` WHERE parent = "foo" ORDER BY id ASC LIMIT 51 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [14.099ms] [rows:1] SELECT * 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/results.go:140 [41.775ms] [rows:1] UPDATE `results` SET `name`="bar",`annotations`="null",`created_time`="2025-06-23 12:05:33.309",`updated_time`="2025-06-23 12:05:33.4",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="ddc28e32-8c6d-4c4d-90f5-2f520da9ab60-1750680333400012897" WHERE `parent` = "foo" AND `id` = "ddc28e32-8c6d-4c4d-90f5-2f520da9ab60" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [21.932ms] [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.377ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","ddc28e32-8c6d-4c4d-90f5-2f520da9ab60","bar","5ffdd484-e537-4f8d-b347-230a46fad6f1","baz","","","5ffdd484-e537-4f8d-b347-230a46fad6f1-1750680333481730437","2025-06-23 12:05:33.481","2025-06-23 12:05:33.481") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [11.185ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [5.210ms] [rows:1] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" ORDER BY id ASC LIMIT 51 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.184ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217 [1.201ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz",`type`="",`data`="",`created_time`="2025-06-23 12:05:33.481",`updated_time`="2025-06-23 12:05:33.538",`etag`="5ffdd484-e537-4f8d-b347-230a46fad6f1-1750680333538575409" WHERE `parent` = "foo" AND `result_id` = "ddc28e32-8c6d-4c4d-90f5-2f520da9ab60" AND `id` = "5ffdd484-e537-4f8d-b347-230a46fad6f1" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [3.958ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:246 [21.126ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "ddc28e32-8c6d-4c4d-90f5-2f520da9ab60" AND `records`.`result_name` = "bar" AND `records`.`id` = "5ffdd484-e537-4f8d-b347-230a46fad6f1" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-23 12:05:33.481" AND `records`.`updated_time` = "2025-06-23 12:05:33.538" AND `records`.`etag` = "5ffdd484-e537-4f8d-b347-230a46fad6f1-1750680333538575409" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [14.724ms] [rows:1] SELECT * 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/results.go:174 [24.222ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "ddc28e32-8c6d-4c4d-90f5-2f520da9ab60" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-23 12:05:33.309" AND `results`.`updated_time` = "2025-06-23 12:05:33.4" AND `results`.`etag` = "ddc28e32-8c6d-4c4d-90f5-2f520da9ab60-1750680333400012897" === RUN TestRBAC/unauthorized_user === RUN TestRBAC/authorized_group === NAME TestRBAC db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [12.445ms] [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","fd6093ce-fb26-4d1b-890b-1a04e7fcd0fe","bar","null","","",NULL,NULL,0,"null","fd6093ce-fb26-4d1b-890b-1a04e7fcd0fe-1750680333732023316","2025-06-23 12:05:33.732","2025-06-23 12:05:33.732") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [4.532ms] [rows:1] SELECT * 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/lister/lister.go:110 [4.271ms] [rows:1] SELECT * FROM `results` WHERE parent = "foo" ORDER BY id ASC LIMIT 51 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [8.272ms] [rows:1] SELECT * 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/results.go:140 [1.421ms] [rows:1] UPDATE `results` SET `name`="bar",`annotations`="null",`created_time`="2025-06-23 12:05:33.732",`updated_time`="2025-06-23 12:05:33.785",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="fd6093ce-fb26-4d1b-890b-1a04e7fcd0fe-1750680333785187886" WHERE `parent` = "foo" AND `id` = "fd6093ce-fb26-4d1b-890b-1a04e7fcd0fe" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.926ms] [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 [17.965ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","fd6093ce-fb26-4d1b-890b-1a04e7fcd0fe","bar","b911b2d2-ff6c-4a36-b93e-9d48f6083318","baz","","","b911b2d2-ff6c-4a36-b93e-9d48f6083318-1750680333809421264","2025-06-23 12:05:33.809","2025-06-23 12:05:33.809") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [9.518ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.732ms] [rows:1] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" ORDER BY id ASC LIMIT 51 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.084ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217 [4.832ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz",`type`="",`data`="",`created_time`="2025-06-23 12:05:33.809",`updated_time`="2025-06-23 12:05:33.861",`etag`="b911b2d2-ff6c-4a36-b93e-9d48f6083318-1750680333861046096" WHERE `parent` = "foo" AND `result_id` = "fd6093ce-fb26-4d1b-890b-1a04e7fcd0fe" AND `id` = "b911b2d2-ff6c-4a36-b93e-9d48f6083318" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [10.346ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:246 [21.297ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "fd6093ce-fb26-4d1b-890b-1a04e7fcd0fe" AND `records`.`result_name` = "bar" AND `records`.`id` = "b911b2d2-ff6c-4a36-b93e-9d48f6083318" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-23 12:05:33.809" AND `records`.`updated_time` = "2025-06-23 12:05:33.861" AND `records`.`etag` = "b911b2d2-ff6c-4a36-b93e-9d48f6083318-1750680333861046096" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [5.553ms] [rows:1] SELECT * 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/results.go:174 [18.467ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "fd6093ce-fb26-4d1b-890b-1a04e7fcd0fe" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-23 12:05:33.732" AND `results`.`updated_time` = "2025-06-23 12:05:33.785" AND `results`.`etag` = "fd6093ce-fb26-4d1b-890b-1a04e7fcd0fe-1750680333785187886" === RUN TestRBAC/unauthorized_group === RUN TestRBAC/authorized_extra === NAME TestRBAC db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [17.173ms] [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","2fe116e6-e312-46dd-9816-86910a1dc581","bar","null","","",NULL,NULL,0,"null","2fe116e6-e312-46dd-9816-86910a1dc581-1750680334030959286","2025-06-23 12:05:34.03","2025-06-23 12:05:34.03") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [4.984ms] [rows:1] SELECT * 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/lister/lister.go:110 [6.088ms] [rows:1] SELECT * FROM `results` WHERE parent = "foo" ORDER BY id ASC LIMIT 51 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.906ms] [rows:1] SELECT * 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/results.go:140 [1.446ms] [rows:1] UPDATE `results` SET `name`="bar",`annotations`="null",`created_time`="2025-06-23 12:05:34.03",`updated_time`="2025-06-23 12:05:34.075",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="2fe116e6-e312-46dd-9816-86910a1dc581-1750680334075868901" WHERE `parent` = "foo" AND `id` = "2fe116e6-e312-46dd-9816-86910a1dc581" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.941ms] [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 [10.852ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","2fe116e6-e312-46dd-9816-86910a1dc581","bar","4a0dad22-e363-4e9f-932d-291cac40a6e3","baz","","","4a0dad22-e363-4e9f-932d-291cac40a6e3-1750680334101642645","2025-06-23 12:05:34.101","2025-06-23 12:05:34.101") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.192ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.506ms] [rows:1] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" ORDER BY id ASC LIMIT 51 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [5.423ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217 [8.116ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz",`type`="",`data`="",`created_time`="2025-06-23 12:05:34.101",`updated_time`="2025-06-23 12:05:34.157",`etag`="4a0dad22-e363-4e9f-932d-291cac40a6e3-1750680334157703771" WHERE `parent` = "foo" AND `result_id` = "2fe116e6-e312-46dd-9816-86910a1dc581" AND `id` = "4a0dad22-e363-4e9f-932d-291cac40a6e3" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [22.789ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:246 [12.548ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "2fe116e6-e312-46dd-9816-86910a1dc581" AND `records`.`result_name` = "bar" AND `records`.`id` = "4a0dad22-e363-4e9f-932d-291cac40a6e3" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-23 12:05:34.101" AND `records`.`updated_time` = "2025-06-23 12:05:34.157" AND `records`.`etag` = "4a0dad22-e363-4e9f-932d-291cac40a6e3-1750680334157703771" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [8.759ms] [rows:1] SELECT * 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/results.go:174 [14.826ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "2fe116e6-e312-46dd-9816-86910a1dc581" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-23 12:05:34.03" AND `results`.`updated_time` = "2025-06-23 12:05:34.075" AND `results`.`etag` = "2fe116e6-e312-46dd-9816-86910a1dc581-1750680334075868901" === RUN TestRBAC/unauthorized_extra === RUN TestRBAC/unauthenticated_user === RUN TestRBAC/authorized_impersonated_user === NAME TestRBAC db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [23.780ms] [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","02ab0730-aae5-4208-a5d9-f3c01a62b016","bar","null","","",NULL,NULL,0,"null","02ab0730-aae5-4208-a5d9-f3c01a62b016-1750680334447655450","2025-06-23 12:05:34.447","2025-06-23 12:05:34.447") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [1.276ms] [rows:1] SELECT * 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/lister/lister.go:110 [1.311ms] [rows:1] SELECT * FROM `results` WHERE parent = "foo" ORDER BY id ASC LIMIT 51 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [1.288ms] [rows:1] SELECT * 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/results.go:140 [7.405ms] [rows:1] UPDATE `results` SET `name`="bar",`annotations`="null",`created_time`="2025-06-23 12:05:34.447",`updated_time`="2025-06-23 12:05:34.514",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="02ab0730-aae5-4208-a5d9-f3c01a62b016-1750680334514965698" WHERE `parent` = "foo" AND `id` = "02ab0730-aae5-4208-a5d9-f3c01a62b016" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.986ms] [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 [37.966ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","02ab0730-aae5-4208-a5d9-f3c01a62b016","bar","47d0a835-5de3-47c5-a794-668dde3018af","baz","","","47d0a835-5de3-47c5-a794-668dde3018af-1750680334570631936","2025-06-23 12:05:34.57","2025-06-23 12:05:34.57") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [8.027ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.324ms] [rows:1] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" ORDER BY id ASC LIMIT 51 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.462ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217 [1.822ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz",`type`="",`data`="",`created_time`="2025-06-23 12:05:34.57",`updated_time`="2025-06-23 12:05:34.633",`etag`="47d0a835-5de3-47c5-a794-668dde3018af-1750680334633936272" WHERE `parent` = "foo" AND `result_id` = "02ab0730-aae5-4208-a5d9-f3c01a62b016" AND `id` = "47d0a835-5de3-47c5-a794-668dde3018af" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.087ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:246 [20.012ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "02ab0730-aae5-4208-a5d9-f3c01a62b016" AND `records`.`result_name` = "bar" AND `records`.`id` = "47d0a835-5de3-47c5-a794-668dde3018af" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-23 12:05:34.57" AND `records`.`updated_time` = "2025-06-23 12:05:34.633" AND `records`.`etag` = "47d0a835-5de3-47c5-a794-668dde3018af-1750680334633936272" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [3.752ms] [rows:1] SELECT * 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/results.go:174 [17.873ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "02ab0730-aae5-4208-a5d9-f3c01a62b016" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-23 12:05:34.447" AND `results`.`updated_time` = "2025-06-23 12:05:34.514" AND `results`.`etag` = "02ab0730-aae5-4208-a5d9-f3c01a62b016-1750680334514965698" === RUN TestRBAC/unauthorized_impersonated_user === RUN TestRBAC/authorized_impersonated_group === NAME TestRBAC db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [24.333ms] [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","b501d88d-a5a0-4fe0-ba28-3e8c4ac2f047","bar","null","","",NULL,NULL,0,"null","b501d88d-a5a0-4fe0-ba28-3e8c4ac2f047-1750680334751985710","2025-06-23 12:05:34.751","2025-06-23 12:05:34.751") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [5.406ms] [rows:1] SELECT * 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/lister/lister.go:110 [1.834ms] [rows:1] SELECT * FROM `results` WHERE parent = "foo" ORDER BY id ASC LIMIT 51 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [1.902ms] [rows:1] SELECT * 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/results.go:140 [1.509ms] [rows:1] UPDATE `results` SET `name`="bar",`annotations`="null",`created_time`="2025-06-23 12:05:34.751",`updated_time`="2025-06-23 12:05:34.803",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="b501d88d-a5a0-4fe0-ba28-3e8c4ac2f047-1750680334803289118" WHERE `parent` = "foo" AND `id` = "b501d88d-a5a0-4fe0-ba28-3e8c4ac2f047" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [6.708ms] [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 [24.196ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","b501d88d-a5a0-4fe0-ba28-3e8c4ac2f047","bar","a3340ad5-d524-404d-82bc-c563c5ccb88e","baz","","","a3340ad5-d524-404d-82bc-c563c5ccb88e-1750680334832762083","2025-06-23 12:05:34.832","2025-06-23 12:05:34.832") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.837ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [2.329ms] [rows:1] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" ORDER BY id ASC LIMIT 51 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.145ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217 [1.294ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz",`type`="",`data`="",`created_time`="2025-06-23 12:05:34.832",`updated_time`="2025-06-23 12:05:34.889",`etag`="a3340ad5-d524-404d-82bc-c563c5ccb88e-1750680334889211852" WHERE `parent` = "foo" AND `result_id` = "b501d88d-a5a0-4fe0-ba28-3e8c4ac2f047" AND `id` = "a3340ad5-d524-404d-82bc-c563c5ccb88e" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.292ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:246 [15.822ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "b501d88d-a5a0-4fe0-ba28-3e8c4ac2f047" AND `records`.`result_name` = "bar" AND `records`.`id` = "a3340ad5-d524-404d-82bc-c563c5ccb88e" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-23 12:05:34.832" AND `records`.`updated_time` = "2025-06-23 12:05:34.889" AND `records`.`etag` = "a3340ad5-d524-404d-82bc-c563c5ccb88e-1750680334889211852" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [1.369ms] [rows:1] SELECT * 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/results.go:174 [28.164ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "b501d88d-a5a0-4fe0-ba28-3e8c4ac2f047" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-23 12:05:34.751" AND `results`.`updated_time` = "2025-06-23 12:05:34.803" AND `results`.`etag` = "b501d88d-a5a0-4fe0-ba28-3e8c4ac2f047-1750680334803289118" === RUN TestRBAC/unauthorized_impersonated_group --- PASS: TestRBAC (2.13s) --- PASS: TestRBAC/authorized_user (0.37s) --- PASS: TestRBAC/unauthorized_user (0.06s) --- PASS: TestRBAC/authorized_group (0.23s) --- PASS: TestRBAC/unauthorized_group (0.07s) --- PASS: TestRBAC/authorized_extra (0.28s) --- PASS: TestRBAC/unauthorized_extra (0.06s) --- PASS: TestRBAC/unauthenticated_user (0.07s) --- PASS: TestRBAC/authorized_impersonated_user (0.26s) --- PASS: TestRBAC/unauthorized_impersonated_user (0.04s) --- PASS: TestRBAC/authorized_impersonated_group (0.25s) --- PASS: TestRBAC/unauthorized_impersonated_group (0.04s) PASS ok github.com/tektoncd/results/pkg/api/server/v1alpha2/auth 4.185s === RUN TestHeaderMatcher === RUN TestHeaderMatcher/impersonation_header === RUN TestHeaderMatcher/impersonate_extra_header === RUN TestHeaderMatcher/grpc_metadata_header === RUN TestHeaderMatcher/unknown_header --- PASS: TestHeaderMatcher (0.00s) --- PASS: TestHeaderMatcher/impersonation_header (0.00s) --- PASS: TestHeaderMatcher/impersonate_extra_header (0.00s) --- PASS: TestHeaderMatcher/grpc_metadata_header (0.00s) --- PASS: TestHeaderMatcher/unknown_header (0.00s) === RUN TestNewImpersonation === RUN TestNewImpersonation/missing_all_impersonation_header === RUN TestNewImpersonation/missing_impersonate_user_header_only === RUN TestNewImpersonation/parse_impersonation_headers --- PASS: TestNewImpersonation (0.01s) --- PASS: TestNewImpersonation/missing_all_impersonation_header (0.00s) --- PASS: TestNewImpersonation/missing_impersonate_user_header_only (0.00s) --- PASS: TestNewImpersonation/parse_impersonation_headers (0.01s) === RUN TestImpersonation_Check === RUN TestImpersonation_Check/authorized_user === RUN TestImpersonation_Check/unauthorized_user --- PASS: TestImpersonation_Check (0.00s) --- PASS: TestImpersonation_Check/authorized_user (0.00s) --- PASS: TestImpersonation_Check/unauthorized_user (0.00s) PASS ok github.com/tektoncd/results/pkg/api/server/v1alpha2/auth/impersonation 1.645s === RUN TestCheckAndBuildGroupQuery === RUN TestCheckAndBuildGroupQuery/valid_time_query_with_one_part === RUN TestCheckAndBuildGroupQuery/valid_time_query_with_two_parts_and_startTime === RUN TestCheckAndBuildGroupQuery/valid_time_query_with_two_parts_and_completionTime === RUN TestCheckAndBuildGroupQuery/valid_non-time_query_with_parent === RUN TestCheckAndBuildGroupQuery/valid_non-time_query_with_pipeline === RUN TestCheckAndBuildGroupQuery/valid_non-time_query_with_repository === RUN TestCheckAndBuildGroupQuery/invalid_query --- PASS: TestCheckAndBuildGroupQuery (0.01s) --- PASS: TestCheckAndBuildGroupQuery/valid_time_query_with_one_part (0.00s) --- PASS: TestCheckAndBuildGroupQuery/valid_time_query_with_two_parts_and_startTime (0.00s) --- PASS: TestCheckAndBuildGroupQuery/valid_time_query_with_two_parts_and_completionTime (0.00s) --- PASS: TestCheckAndBuildGroupQuery/valid_non-time_query_with_parent (0.00s) --- PASS: TestCheckAndBuildGroupQuery/valid_non-time_query_with_pipeline (0.00s) --- PASS: TestCheckAndBuildGroupQuery/valid_non-time_query_with_repository (0.00s) --- PASS: TestCheckAndBuildGroupQuery/invalid_query (0.00s) === RUN TestCheckAndBuildOrderBy === RUN TestCheckAndBuildOrderBy/valid_query_with_ascending_order === RUN TestCheckAndBuildOrderBy/valid_query_with_descending_order === RUN TestCheckAndBuildOrderBy/invalid_query_with_no_order === RUN TestCheckAndBuildOrderBy/invalid_query_with_wrong_field === RUN TestCheckAndBuildOrderBy/invalid_query_with_wrong_order --- PASS: TestCheckAndBuildOrderBy (0.01s) --- PASS: TestCheckAndBuildOrderBy/valid_query_with_ascending_order (0.00s) --- PASS: TestCheckAndBuildOrderBy/valid_query_with_descending_order (0.00s) --- PASS: TestCheckAndBuildOrderBy/invalid_query_with_no_order (0.00s) --- PASS: TestCheckAndBuildOrderBy/invalid_query_with_wrong_field (0.00s) --- PASS: TestCheckAndBuildOrderBy/invalid_query_with_wrong_order (0.00s) === RUN TestFilterValidateToken === RUN TestFilterValidateToken/valid_token === RUN TestFilterValidateToken/invalid_token --- PASS: TestFilterValidateToken (0.00s) --- PASS: TestFilterValidateToken/valid_token (0.00s) --- PASS: TestFilterValidateToken/invalid_token (0.00s) === RUN TestFilterBuild === RUN TestFilterBuild/no_where_clause === RUN TestFilterBuild/do_not_add_WHERE_clauses_if_the_user_sends_-_as_the_value === RUN TestFilterBuild/where_clause_with_parent_and_id === RUN TestFilterBuild/where_clause_with_cel2sql_filters === RUN TestFilterBuild/more_complex_filter --- PASS: TestFilterBuild (0.08s) --- PASS: TestFilterBuild/no_where_clause (0.00s) --- PASS: TestFilterBuild/do_not_add_WHERE_clauses_if_the_user_sends_-_as_the_value (0.00s) --- PASS: TestFilterBuild/where_clause_with_parent_and_id (0.00s) --- PASS: TestFilterBuild/where_clause_with_cel2sql_filters (0.06s) --- PASS: TestFilterBuild/more_complex_filter (0.00s) === RUN TestLimitBuild === RUN TestLimitBuild/limit_clause === RUN TestLimitBuild/invalid_page_size_-_negative_value === RUN TestLimitBuild/invalid_page_size_-_too_large_value --- PASS: TestLimitBuild (0.00s) --- PASS: TestLimitBuild/limit_clause (0.00s) --- PASS: TestLimitBuild/invalid_page_size_-_negative_value (0.00s) --- PASS: TestLimitBuild/invalid_page_size_-_too_large_value (0.00s) === RUN TestBuildQuery === RUN TestBuildQuery/complex_query === RUN TestBuildQuery/return_an_error_if_the_provided_page_token_is_invalid --- PASS: TestBuildQuery (0.02s) --- PASS: TestBuildQuery/complex_query (0.01s) --- PASS: TestBuildQuery/return_an_error_if_the_provided_page_token_is_invalid (0.00s) === RUN TestOffsetValidateToken === RUN TestOffsetValidateToken/valid === RUN TestOffsetValidateToken/missing_LastItem_field === RUN TestOffsetValidateToken/missing_LastItem.Uid_field --- PASS: TestOffsetValidateToken (0.00s) --- PASS: TestOffsetValidateToken/valid (0.00s) --- PASS: TestOffsetValidateToken/missing_LastItem_field (0.00s) --- PASS: TestOffsetValidateToken/missing_LastItem.Uid_field (0.00s) === RUN TestOffsetBuild === RUN TestOffsetBuild/no_clauses === RUN TestOffsetBuild/use_only_the_id_to_determine_the_page_offset === RUN TestOffsetBuild/use_more_than_one_field_to_determine_the_page_offset === RUN TestOffsetBuild/paginating_results_using_descending_order --- PASS: TestOffsetBuild (0.00s) --- PASS: TestOffsetBuild/no_clauses (0.00s) --- PASS: TestOffsetBuild/use_only_the_id_to_determine_the_page_offset (0.00s) --- PASS: TestOffsetBuild/use_more_than_one_field_to_determine_the_page_offset (0.00s) --- PASS: TestOffsetBuild/paginating_results_using_descending_order (0.00s) === RUN TestOrderByValidateToken === RUN TestOrderByValidateToken/valid_token === RUN TestOrderByValidateToken/the_provided_ordering_values_match_the_ordering_values_in_the_token === RUN TestOrderByValidateToken/missing_LastItem.OrderBy_field === RUN TestOrderByValidateToken/the_provided_field_name_differs_from_the_field_name_in_the_token === RUN TestOrderByValidateToken/the_provided_direction_differs_from_the_direction_in_the_token --- PASS: TestOrderByValidateToken (0.00s) --- PASS: TestOrderByValidateToken/valid_token (0.00s) --- PASS: TestOrderByValidateToken/the_provided_ordering_values_match_the_ordering_values_in_the_token (0.00s) --- PASS: TestOrderByValidateToken/missing_LastItem.OrderBy_field (0.00s) --- PASS: TestOrderByValidateToken/the_provided_field_name_differs_from_the_field_name_in_the_token (0.00s) --- PASS: TestOrderByValidateToken/the_provided_direction_differs_from_the_direction_in_the_token (0.00s) === RUN TestOrderByBuild === RUN TestOrderByBuild/no_order_by_clause === RUN TestOrderByBuild/order_by_a_given_column --- PASS: TestOrderByBuild (0.00s) --- PASS: TestOrderByBuild/no_order_by_clause (0.00s) --- PASS: TestOrderByBuild/order_by_a_given_column (0.00s) === RUN TestParseOrderBy === RUN TestParseOrderBy/valid_order_by_statement === RUN TestParseOrderBy/sort_in_ascending_order === RUN TestParseOrderBy/update_time_field_omitting_the_direction === RUN TestParseOrderBy/summary.start_time_field === RUN TestParseOrderBy/summary.end_time_field === RUN TestParseOrderBy/trailing_and_leading_spaces === RUN TestParseOrderBy/trailing_and_leading_spaces_with_no_direction --- PASS: TestParseOrderBy (0.01s) --- PASS: TestParseOrderBy/valid_order_by_statement (0.00s) --- PASS: TestParseOrderBy/sort_in_ascending_order (0.00s) --- PASS: TestParseOrderBy/update_time_field_omitting_the_direction (0.00s) --- PASS: TestParseOrderBy/summary.start_time_field (0.00s) --- PASS: TestParseOrderBy/summary.end_time_field (0.00s) --- PASS: TestParseOrderBy/trailing_and_leading_spaces (0.00s) --- PASS: TestParseOrderBy/trailing_and_leading_spaces_with_no_direction (0.00s) === RUN TestParseOrderByErrors === RUN TestParseOrderByErrors/disallowed_field_in_the_order_by_clause === RUN TestParseOrderByErrors/invalid_order_by === RUN TestParseOrderByErrors/invalid_direction --- PASS: TestParseOrderByErrors (0.00s) --- PASS: TestParseOrderByErrors/disallowed_field_in_the_order_by_clause (0.00s) --- PASS: TestParseOrderByErrors/invalid_order_by (0.00s) --- PASS: TestParseOrderByErrors/invalid_direction (0.00s) === RUN TestEncodeAndDecodePageToken --- PASS: TestEncodeAndDecodePageToken (0.00s) PASS ok github.com/tektoncd/results/pkg/api/server/v1alpha2/lister 1.858s === RUN TestFileStream_WriteTo --- PASS: TestFileStream_WriteTo (0.00s) === RUN TestFileStream_ReadFrom --- PASS: TestFileStream_ReadFrom (0.00s) === RUN TestFileStream_Delete --- PASS: TestFileStream_Delete (0.00s) === RUN TestGCSReadFrom gcs_test.go:77: Replaying GCS API responses from replay file testdata/TestGCSReadFrom.replay --- PASS: TestGCSReadFrom (2.37s) === RUN TestGCSWriteTo gcs_test.go:77: Replaying GCS API responses from replay file testdata/TestGCSWriteTo.replay --- PASS: TestGCSWriteTo (0.11s) === RUN TestGCSDelete gcs_test.go:77: Replaying GCS API responses from replay file testdata/TestGCSDelete.replay --- PASS: TestGCSDelete (0.11s) === RUN TestFilePath --- PASS: TestFilePath (0.00s) === RUN TestFormatName --- PASS: TestFormatName (0.00s) === RUN TestParseName === RUN TestParseName/simple === RUN TestParseName/resource_name_reuse === RUN TestParseName/missing_name === RUN TestParseName/missing_name,_no_slash === RUN TestParseName/missing_parent === RUN TestParseName/missing_parent,_no_slash === RUN TestParseName/wrong_resource === RUN TestParseName/result_resource === RUN TestParseName/invalid_parent === RUN TestParseName/invalid_name --- PASS: TestParseName (0.01s) --- PASS: TestParseName/simple (0.00s) --- PASS: TestParseName/resource_name_reuse (0.00s) --- PASS: TestParseName/missing_name (0.00s) --- PASS: TestParseName/missing_name,_no_slash (0.00s) --- PASS: TestParseName/missing_parent (0.00s) --- PASS: TestParseName/missing_parent,_no_slash (0.00s) --- PASS: TestParseName/wrong_resource (0.00s) --- PASS: TestParseName/result_resource (0.00s) --- PASS: TestParseName/invalid_parent (0.00s) --- PASS: TestParseName/invalid_name (0.00s) === RUN TestToStorage --- PASS: TestToStorage (0.00s) === RUN TestToStream === RUN TestToStream/Log_Filesystem_Type === RUN TestToStream/TaskRun_Record === RUN TestToStream/PipelineRun_Record --- PASS: TestToStream (0.00s) --- PASS: TestToStream/Log_Filesystem_Type (0.00s) --- PASS: TestToStream/TaskRun_Record (0.00s) --- PASS: TestToStream/PipelineRun_Record (0.00s) === RUN TestS3Stream_WriteTo --- PASS: TestS3Stream_WriteTo (0.00s) === RUN TestS3Stream_ReadFrom --- PASS: TestS3Stream_ReadFrom (0.00s) === RUN TestS3Stream_Delete --- PASS: TestS3Stream_Delete (0.00s) PASS ok github.com/tektoncd/results/pkg/api/server/v1alpha2/log 4.399s === RUN TestLogPluginServer_GetLog plugin_logs_test.go:108: test database: /tmp/testdb4236750410 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.196ms] [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.247ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [37.920ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [52.770ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.172ms] [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 [14.383ms] [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 [13.783ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"info","ts":1750680333.4755816,"caller":"plugin/server.go:65","msg":"Setting up LogPluginServer"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [16.096ms] [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","839a6585-7d81-4e92-a403-e186fb257709","bar","null","","",NULL,NULL,0,"null","839a6585-7d81-4e92-a403-e186fb257709-1750680333482962206","2025-06-23 12:05:33.482","2025-06-23 12:05:33.482") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [8.689ms] [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 [25.068ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","839a6585-7d81-4e92-a403-e186fb257709","bar","0f901359-d04d-4050-9f9c-f3b11e9c0118","baz","tekton.dev/v1.PipelineRun","{""metadata"":{""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{""startTime"":""2025-06-23T12:05:33Z"",""completionTime"":""2025-06-23T12:05:33Z""}}","0f901359-d04d-4050-9f9c-f3b11e9c0118-1750680333585284531","2025-06-23 12:05:33.585","2025-06-23 12:05:33.585") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:768 [1.029ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 plugin_logs_test.go:55: Received request: GET /app/loki/api/v1/query_range?direction=forward&end=1750680333&limit=1500&query=%7B+namespace%3D%22%22foo%22%22%2Cnamespace%3D%22foo%22+%7D%7Cjson+uid%3D%22kubernetes.labels.tekton_dev_pipelineRunUID%22%2C+container%3D%22kubernetes.container_name%22%2C+message%3D%22message%22+%7Cuid%3D%22baz%22%7C+line_format+%22container-%7B%7B.container%7D%7D%3A+message%3D%7B%7B.message%7D%7D%22&start=1750680333 plugin_logs_test.go:56: Received headers: map[Accept-Encoding:[gzip] Authorization:[Bearer dummytoken] User-Agent:[Go-http-client/1.1]] --- PASS: TestLogPluginServer_GetLog (0.54s) === RUN TestMergeLogParts === RUN TestMergeLogParts/Test_with_matching_regexp === RUN TestMergeLogParts/Test_with_empty_regexp === RUN TestMergeLogParts/Test_with_not_matching_regexp --- PASS: TestMergeLogParts (0.08s) --- PASS: TestMergeLogParts/Test_with_matching_regexp (0.00s) --- PASS: TestMergeLogParts/Test_with_empty_regexp (0.08s) --- PASS: TestMergeLogParts/Test_with_not_matching_regexp (0.00s) === RUN TestSplunkLogs plugin_logs_test.go:319: test database: /tmp/testdb2327330868 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.108ms] [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.192ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [9.486ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [23.147ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.299ms] [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.499ms] [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.963ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"info","ts":1750680333.9967837,"caller":"plugin/server.go:65","msg":"Setting up LogPluginServer"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [18.728ms] [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 ("rh-acs-tenant","9ffaed53-5765-47dd-a9d1-fc348e8421fb","test-result","null","","",NULL,NULL,0,"null","9ffaed53-5765-47dd-a9d1-fc348e8421fb-1750680333997877956","2025-06-23 12:05:33.997","2025-06-23 12:05:33.997") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [7.778ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "rh-acs-tenant" AND `results`.`name` = "test-result" 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.142ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("rh-acs-tenant","9ffaed53-5765-47dd-a9d1-fc348e8421fb","test-result","2ef2e65a-caae-41de-9103-fd1feecbf278","25274ae9-d521-4a9c-b254-122c17f64941","tekton.dev/v1.TaskRun","{""metadata"":{""uid"":""25274ae9-d521-4a9c-b254-122c17f64941"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":"""",""startTime"":""2025-06-23T11:05:34Z"",""completionTime"":""2025-06-23T12:05:34Z""}}","2ef2e65a-caae-41de-9103-fd1feecbf278-1750680334036513882","2025-06-23 12:05:34.036","2025-06-23 12:05:34.036") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:768 [1.091ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "rh-acs-tenant" AND `records`.`result_name` = "test-result" AND `records`.`name` = "25274ae9-d521-4a9c-b254-122c17f64941" ORDER BY `records`.`id` LIMIT 1 plugin_logs_test.go:259: Received request: POST /services/search/v2/jobs?output_mode=json plugin_logs_test.go:260: Received headers: map[Accept-Encoding:[gzip] Authorization:[Bearer eyJraWQiOiJzcGx1bmsuc2VjcmV0IiwiYWxnIjoiSFM1MTIiLCJ2ZXIiOiJ2MiIsInR0eXAiOiJzdGF0aWMifQ.eyJpc3MiOiJzY19hZG1pbiBmcm9tIGZlZG9yYSIsInN1YiI6InNjX2FkbWluIiwiYXVkIjoia3ViZXJuZXRlcyIsImlkcCI6IlNwbHVuayIsImp0aSI6IjI0MGM1MDY3NGJkNDgxYjU5ZWE5MTY5ZDJjN2MyZjM5NDVmZDFhOTM3MWU0Yzg0MTQ0N2NkYTYzYmQ4NmZjMGQiLCJpYXQiOjE3NDYzODA1NDgsImV4cCI6MTc3MjM4OTc1NSwibmJyIjoxNzQ2MzgwNTQ4fQ.WnMJE6Dd0Fmn5AipZtl_bpfwIpfGR6feW63Xs1890XPh1o1CrBTNbslTeIH1b9ewluOfrY7rxToAQMoCO3ZJQA] Content-Length:[221] Content-Type:[application/x-www-form-urlencoded] User-Agent:[Go-http-client/1.1]] plugin_logs_test.go:259: Received request: GET /services/search/v2/jobs/1234567?output_mode=json plugin_logs_test.go:260: Received headers: map[Accept-Encoding:[gzip] Authorization:[Bearer eyJraWQiOiJzcGx1bmsuc2VjcmV0IiwiYWxnIjoiSFM1MTIiLCJ2ZXIiOiJ2MiIsInR0eXAiOiJzdGF0aWMifQ.eyJpc3MiOiJzY19hZG1pbiBmcm9tIGZlZG9yYSIsInN1YiI6InNjX2FkbWluIiwiYXVkIjoia3ViZXJuZXRlcyIsImlkcCI6IlNwbHVuayIsImp0aSI6IjI0MGM1MDY3NGJkNDgxYjU5ZWE5MTY5ZDJjN2MyZjM5NDVmZDFhOTM3MWU0Yzg0MTQ0N2NkYTYzYmQ4NmZjMGQiLCJpYXQiOjE3NDYzODA1NDgsImV4cCI6MTc3MjM4OTc1NSwibmJyIjoxNzQ2MzgwNTQ4fQ.WnMJE6Dd0Fmn5AipZtl_bpfwIpfGR6feW63Xs1890XPh1o1CrBTNbslTeIH1b9ewluOfrY7rxToAQMoCO3ZJQA] User-Agent:[Go-http-client/1.1]] plugin_logs_test.go:259: Received request: GET /services/search/v2/jobs/1234567/results?output_mode=json_rows&count=0 plugin_logs_test.go:260: Received headers: map[Accept-Encoding:[gzip] Authorization:[Bearer eyJraWQiOiJzcGx1bmsuc2VjcmV0IiwiYWxnIjoiSFM1MTIiLCJ2ZXIiOiJ2MiIsInR0eXAiOiJzdGF0aWMifQ.eyJpc3MiOiJzY19hZG1pbiBmcm9tIGZlZG9yYSIsInN1YiI6InNjX2FkbWluIiwiYXVkIjoia3ViZXJuZXRlcyIsImlkcCI6IlNwbHVuayIsImp0aSI6IjI0MGM1MDY3NGJkNDgxYjU5ZWE5MTY5ZDJjN2MyZjM5NDVmZDFhOTM3MWU0Yzg0MTQ0N2NkYTYzYmQ4NmZjMGQiLCJpYXQiOjE3NDYzODA1NDgsImV4cCI6MTc3MjM4OTc1NSwibmJyIjoxNzQ2MzgwNTQ4fQ.WnMJE6Dd0Fmn5AipZtl_bpfwIpfGR6feW63Xs1890XPh1o1CrBTNbslTeIH1b9ewluOfrY7rxToAQMoCO3ZJQA] User-Agent:[Go-http-client/1.1]] plugin_logs_test.go:375: recv error: --- PASS: TestSplunkLogs (5.38s) PASS ok github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin 8.345s === RUN TestParseName === RUN TestParseName/simple === RUN TestParseName/resource_name_reuse === RUN TestParseName/missing_name === RUN TestParseName/missing_name,_no_slash === RUN TestParseName/missing_parent === RUN TestParseName/missing_parent,_no_slash === RUN TestParseName/wrong_resource === RUN TestParseName/result_resource === RUN TestParseName/invalid_parent === RUN TestParseName/invalid_name --- PASS: TestParseName (0.01s) --- PASS: TestParseName/simple (0.00s) --- PASS: TestParseName/resource_name_reuse (0.00s) --- PASS: TestParseName/missing_name (0.00s) --- PASS: TestParseName/missing_name,_no_slash (0.00s) --- PASS: TestParseName/missing_parent (0.00s) --- PASS: TestParseName/missing_parent,_no_slash (0.00s) --- PASS: TestParseName/wrong_resource (0.00s) --- PASS: TestParseName/result_resource (0.00s) --- PASS: TestParseName/invalid_parent (0.00s) --- PASS: TestParseName/invalid_name (0.00s) === RUN TestToStorage === RUN TestToStorage/full === RUN TestToStorage/missing_data === RUN TestToStorage/deprecated_fields === RUN TestToStorage/invalid_type === RUN TestToStorage/invalid_data --- PASS: TestToStorage (0.05s) --- PASS: TestToStorage/full (0.02s) --- PASS: TestToStorage/missing_data (0.01s) --- PASS: TestToStorage/deprecated_fields (0.01s) --- PASS: TestToStorage/invalid_type (0.00s) --- PASS: TestToStorage/invalid_data (0.00s) === RUN TestToAPI === RUN TestToAPI/full === RUN TestToAPI/partial --- PASS: TestToAPI (0.16s) --- PASS: TestToAPI/full (0.02s) --- PASS: TestToAPI/partial (0.00s) === RUN TestFormatName --- PASS: TestFormatName (0.00s) === RUN TestValidateType === RUN TestValidateType/success === RUN TestValidateType/failure --- PASS: TestValidateType (0.00s) --- PASS: TestValidateType/success (0.00s) --- PASS: TestValidateType/failure (0.00s) PASS ok github.com/tektoncd/results/pkg/api/server/v1alpha2/record 1.865s === RUN TestParseName === RUN TestParseName/simple === RUN TestParseName/resource_name_reuse === RUN TestParseName/missing_name === RUN TestParseName/missing_name,_no_slash === RUN TestParseName/missing_parent === RUN TestParseName/missing_parent,_no_slash === RUN TestParseName/wrong_resource === RUN TestParseName/invalid_parent === RUN TestParseName/invalid_name --- PASS: TestParseName (0.01s) --- PASS: TestParseName/simple (0.00s) --- PASS: TestParseName/resource_name_reuse (0.00s) --- PASS: TestParseName/missing_name (0.00s) --- PASS: TestParseName/missing_name,_no_slash (0.00s) --- PASS: TestParseName/missing_parent (0.00s) --- PASS: TestParseName/missing_parent,_no_slash (0.00s) --- PASS: TestParseName/wrong_resource (0.00s) --- PASS: TestParseName/invalid_parent (0.00s) --- PASS: TestParseName/invalid_name (0.00s) === RUN TestToStorage === RUN TestToStorage/all === RUN TestToStorage/deprecated_fields === RUN TestToStorage/invalid_summary_record_name === RUN TestToStorage/invalid_summary_type --- PASS: TestToStorage (0.01s) --- PASS: TestToStorage/all (0.00s) --- PASS: TestToStorage/deprecated_fields (0.00s) --- PASS: TestToStorage/invalid_summary_record_name (0.00s) --- PASS: TestToStorage/invalid_summary_type (0.00s) === RUN TestToAPI --- PASS: TestToAPI (0.04s) === RUN TestMatch === RUN TestMatch/no_filter === RUN TestMatch/matching_condition === RUN TestMatch/non-matching_condition === RUN TestMatch/nil_result === RUN TestMatch/non-bool_output === RUN TestMatch/wrong_resource_type 2025/06/23 12:05:33 failed to evaluate the expression: no such attribute(s): record --- PASS: TestMatch (0.19s) --- PASS: TestMatch/no_filter (0.00s) --- PASS: TestMatch/matching_condition (0.14s) --- PASS: TestMatch/non-matching_condition (0.00s) --- PASS: TestMatch/nil_result (0.00s) --- PASS: TestMatch/non-bool_output (0.00s) --- PASS: TestMatch/wrong_resource_type (0.01s) === RUN TestFormatName --- PASS: TestFormatName (0.00s) PASS ok github.com/tektoncd/results/pkg/api/server/v1alpha2/result 2.597s === RUN TestStoreLoadWithContext logger.go:146: 2025-06-23T12:05:33.137Z DEBUG configmap/store.go:155 results config "config-observability" config was added or updated: &config.Metrics{TaskrunLevel:"task", PipelinerunLevel:"pipeline", DurationTaskrunType:"histogram", DurationPipelinerunType:"histogram"} --- PASS: TestStoreLoadWithContext (0.02s) === RUN TestStoreLoadWithContext_Empty --- PASS: TestStoreLoadWithContext_Empty (0.00s) PASS ok github.com/tektoncd/results/pkg/apis/config 2.286s === RUN TestNewRESTClient === RUN TestNewRESTClient/valid_config === RUN TestNewRESTClient/nil_config === RUN TestNewRESTClient/nil_transport --- PASS: TestNewRESTClient (0.02s) --- PASS: TestNewRESTClient/valid_config (0.00s) --- PASS: TestNewRESTClient/nil_config (0.00s) --- PASS: TestNewRESTClient/nil_transport (0.00s) === RUN TestBuildURL === RUN TestBuildURL/no_params === RUN TestBuildURL/with_params --- PASS: TestBuildURL (0.00s) --- PASS: TestBuildURL/no_params (0.00s) --- PASS: TestBuildURL/with_params (0.00s) === RUN TestSend === RUN TestSend/successful_request --- PASS: TestSend (0.03s) --- PASS: TestSend/successful_request (0.02s) PASS ok github.com/tektoncd/results/pkg/cli/client 1.431s === RUN TestListRecords === RUN TestListRecords/successful_list === RUN TestListRecords/error_response 2025/06/23 12:05:32 RoundTripper returned a response & error; ignoring response --- PASS: TestListRecords (0.03s) --- PASS: TestListRecords/successful_list (0.03s) --- PASS: TestListRecords/error_response (0.00s) PASS ok github.com/tektoncd/results/pkg/cli/client/records 1.276s === RUN TestPrintProto === RUN TestPrintProto/*results_go_proto.Result_textproto === RUN TestPrintProto/*results_go_proto.Record_textproto === RUN TestPrintProto/*results_go_proto.Result_json === RUN TestPrintProto/*results_go_proto.Record_json --- PASS: TestPrintProto (0.01s) --- PASS: TestPrintProto/*results_go_proto.Result_textproto (0.01s) --- PASS: TestPrintProto/*results_go_proto.Record_textproto (0.00s) --- PASS: TestPrintProto/*results_go_proto.Result_json (0.00s) --- PASS: TestPrintProto/*results_go_proto.Record_json (0.00s) === RUN TestPrintProto_Tab === RUN TestPrintProto_Tab/*results_go_proto.ListResultsResponse [Name Start Update] [a 2025-06-23 12:05:37 +0000 UTC 2025-06-23 12:05:37 +0000 UTC] === RUN TestPrintProto_Tab/*results_go_proto.ListRecordsResponse [Name Type Start Update] [a tacocat 2025-06-23 12:05:37 +0000 UTC 2025-06-23 12:05:37 +0000 UTC] --- PASS: TestPrintProto_Tab (0.00s) --- PASS: TestPrintProto_Tab/*results_go_proto.ListResultsResponse (0.00s) --- PASS: TestPrintProto_Tab/*results_go_proto.ListRecordsResponse (0.00s) PASS ok github.com/tektoncd/results/pkg/cli/cmd 1.826s ? github.com/tektoncd/results/pkg/cli/common [no test files] ? github.com/tektoncd/results/pkg/cli/common/prerun [no test files] ? github.com/tektoncd/results/pkg/cli/config/test [no test files] ? github.com/tektoncd/results/pkg/converter [no test files] ? github.com/tektoncd/results/pkg/internal/jsonutil [no test files] ? github.com/tektoncd/results/pkg/cli/dev/cmd/logs [no test files] ? github.com/tektoncd/results/pkg/cli/dev/format [no test files] ? github.com/tektoncd/results/pkg/cli/dev/cmd/records [no test files] ? github.com/tektoncd/results/pkg/cli/dev/portforward [no test files] ? github.com/tektoncd/results/pkg/cli/options [no test files] ? github.com/tektoncd/results/pkg/cli/dev/flags [no test files] === RUN TestCommand === RUN TestCommand/valid_params === RUN TestCommand/nil_params --- PASS: TestCommand (0.00s) --- PASS: TestCommand/valid_params (0.00s) --- PASS: TestCommand/nil_params (0.00s) === RUN TestCommandPersistentPreRunE === RUN TestCommandPersistentPreRunE/valid_params --- PASS: TestCommandPersistentPreRunE (0.00s) --- PASS: TestCommandPersistentPreRunE/valid_params (0.00s) === RUN TestCommandFlagDefaults === RUN TestCommandFlagDefaults/kubeconfig_default === RUN TestCommandFlagDefaults/context_default === RUN TestCommandFlagDefaults/namespace_default === RUN TestCommandFlagDefaults/host_default === RUN TestCommandFlagDefaults/token_default === RUN TestCommandFlagDefaults/api-path_default === RUN TestCommandFlagDefaults/insecure-skip-tls-verify_default --- PASS: TestCommandFlagDefaults (0.01s) --- PASS: TestCommandFlagDefaults/kubeconfig_default (0.00s) --- PASS: TestCommandFlagDefaults/context_default (0.00s) --- PASS: TestCommandFlagDefaults/namespace_default (0.00s) --- PASS: TestCommandFlagDefaults/host_default (0.00s) --- PASS: TestCommandFlagDefaults/token_default (0.00s) --- PASS: TestCommandFlagDefaults/api-path_default (0.00s) --- PASS: TestCommandFlagDefaults/insecure-skip-tls-verify_default (0.00s) === RUN TestCommandFlagShorthands === RUN TestCommandFlagShorthands/kubeconfig_shorthand === RUN TestCommandFlagShorthands/context_shorthand === RUN TestCommandFlagShorthands/namespace_shorthand --- PASS: TestCommandFlagShorthands (0.00s) --- PASS: TestCommandFlagShorthands/kubeconfig_shorthand (0.00s) --- PASS: TestCommandFlagShorthands/context_shorthand (0.00s) --- PASS: TestCommandFlagShorthands/namespace_shorthand (0.00s) === RUN TestResetCommand === RUN TestResetCommand/valid_params === RUN TestResetCommand/nil_params --- PASS: TestResetCommand (0.00s) --- PASS: TestResetCommand/valid_params (0.00s) --- PASS: TestResetCommand/nil_params (0.00s) === RUN TestSetCommand === RUN TestSetCommand/valid_params_no_flags === RUN TestSetCommand/nil_params_no_flags === RUN TestSetCommand/with_host_flag === RUN TestSetCommand/with_token_flag === RUN TestSetCommand/with_api-path_flag === RUN TestSetCommand/with_insecure-skip-tls-verify_flag === RUN TestSetCommand/with_multiple_flags --- PASS: TestSetCommand (0.02s) --- PASS: TestSetCommand/valid_params_no_flags (0.00s) --- PASS: TestSetCommand/nil_params_no_flags (0.01s) --- PASS: TestSetCommand/with_host_flag (0.00s) --- PASS: TestSetCommand/with_token_flag (0.00s) --- PASS: TestSetCommand/with_api-path_flag (0.00s) --- PASS: TestSetCommand/with_insecure-skip-tls-verify_flag (0.00s) --- PASS: TestSetCommand/with_multiple_flags (0.00s) === RUN TestViewCommand === RUN TestViewCommand/valid_params === RUN TestViewCommand/nil_params --- PASS: TestViewCommand (0.00s) --- PASS: TestViewCommand/valid_params (0.00s) --- PASS: TestViewCommand/nil_params (0.00s) PASS ok github.com/tektoncd/results/pkg/cli/cmd/config 1.587s === RUN TestDescribeCommand === RUN TestDescribeCommand/success === RUN TestDescribeCommand/not_found === RUN TestDescribeCommand/multiple_found === RUN TestDescribeCommand/error_from_client === RUN TestDescribeCommand/invalid_arguments === RUN TestDescribeCommand/UID_lookup === RUN TestDescribeCommand/complex_output === RUN TestDescribeCommand/output_yaml === RUN TestDescribeCommand/output_json --- PASS: TestDescribeCommand (0.10s) --- PASS: TestDescribeCommand/success (0.09s) --- PASS: TestDescribeCommand/not_found (0.00s) --- PASS: TestDescribeCommand/multiple_found (0.00s) --- PASS: TestDescribeCommand/error_from_client (0.00s) --- PASS: TestDescribeCommand/invalid_arguments (0.00s) --- PASS: TestDescribeCommand/UID_lookup (0.00s) --- PASS: TestDescribeCommand/complex_output (0.00s) --- PASS: TestDescribeCommand/output_yaml (0.00s) --- PASS: TestDescribeCommand/output_json (0.00s) === RUN TestListCommand === RUN TestListCommand/successful_list_with_default_options === RUN TestListCommand/list_with_pipeline_name_filter === RUN TestListCommand/list_with_partial_pipeline_name_match === RUN TestListCommand/list_with_namespace_filter === RUN TestListCommand/list_with_error === RUN TestListCommand/empty_list === RUN TestListCommand/list_with_pipeline_name_and_namespace --- PASS: TestListCommand (0.02s) --- PASS: TestListCommand/successful_list_with_default_options (0.01s) --- PASS: TestListCommand/list_with_pipeline_name_filter (0.00s) --- PASS: TestListCommand/list_with_partial_pipeline_name_match (0.00s) --- PASS: TestListCommand/list_with_namespace_filter (0.00s) --- PASS: TestListCommand/list_with_error (0.00s) --- PASS: TestListCommand/empty_list (0.00s) --- PASS: TestListCommand/list_with_pipeline_name_and_namespace (0.00s) === RUN TestBuildFilterString === RUN TestBuildFilterString/single_label === RUN TestBuildFilterString/multiple_labels === RUN TestBuildFilterString/with_pipeline_name === RUN TestBuildFilterString/empty_label --- PASS: TestBuildFilterString (0.00s) --- PASS: TestBuildFilterString/single_label (0.00s) --- PASS: TestBuildFilterString/multiple_labels (0.00s) --- PASS: TestBuildFilterString/with_pipeline_name (0.00s) --- PASS: TestBuildFilterString/empty_label (0.00s) === RUN TestValidateLabels === RUN TestValidateLabels/valid_single_label === RUN TestValidateLabels/valid_multiple_labels === RUN TestValidateLabels/missing_equals_sign === RUN TestValidateLabels/missing_value === RUN TestValidateLabels/missing_key === RUN TestValidateLabels/empty_pair === RUN TestValidateLabels/malformed_pair === RUN TestValidateLabels/whitespace_in_key --- PASS: TestValidateLabels (0.00s) --- PASS: TestValidateLabels/valid_single_label (0.00s) --- PASS: TestValidateLabels/valid_multiple_labels (0.00s) --- PASS: TestValidateLabels/missing_equals_sign (0.00s) --- PASS: TestValidateLabels/missing_value (0.00s) --- PASS: TestValidateLabels/missing_key (0.00s) --- PASS: TestValidateLabels/empty_pair (0.00s) --- PASS: TestValidateLabels/malformed_pair (0.00s) --- PASS: TestValidateLabels/whitespace_in_key (0.00s) === RUN TestLogsCommand === RUN TestLogsCommand/successful_log_retrieval_by_name === RUN TestLogsCommand/successful_log_retrieval_by_UID === RUN TestLogsCommand/no_PipelineRun_found Error: no PipelineRun found with name non-existent === RUN TestLogsCommand/multiple_PipelineRuns_found Error: multiple PipelineRuns found === RUN TestLogsCommand/error_getting_logs Error: rpc error: code = Internal desc = failed to get logs === RUN TestLogsCommand/invalid_arguments Error: requires exactly one argument when --uid is not provided --- PASS: TestLogsCommand (0.00s) --- PASS: TestLogsCommand/successful_log_retrieval_by_name (0.00s) --- PASS: TestLogsCommand/successful_log_retrieval_by_UID (0.00s) --- PASS: TestLogsCommand/no_PipelineRun_found (0.00s) --- PASS: TestLogsCommand/multiple_PipelineRuns_found (0.00s) --- PASS: TestLogsCommand/error_getting_logs (0.00s) --- PASS: TestLogsCommand/invalid_arguments (0.00s) === RUN TestCommand === RUN TestCommand/command_configuration === RUN TestCommand/subcommands --- PASS: TestCommand (0.00s) --- PASS: TestCommand/command_configuration (0.00s) --- PASS: TestCommand/subcommands (0.00s) PASS ok github.com/tektoncd/results/pkg/cli/cmd/pipelinerun 1.513s === RUN TestDescribeTaskRun === RUN TestDescribeTaskRun/success === RUN TestDescribeTaskRun/not_found === RUN TestDescribeTaskRun/multiple_found === RUN TestDescribeTaskRun/error_from_client === RUN TestDescribeTaskRun/invalid_arguments === RUN TestDescribeTaskRun/UID_lookup === RUN TestDescribeTaskRun/complex_output === RUN TestDescribeTaskRun/output_yaml === RUN TestDescribeTaskRun/output_json --- PASS: TestDescribeTaskRun (0.02s) --- PASS: TestDescribeTaskRun/success (0.02s) --- PASS: TestDescribeTaskRun/not_found (0.00s) --- PASS: TestDescribeTaskRun/multiple_found (0.00s) --- PASS: TestDescribeTaskRun/error_from_client (0.00s) --- PASS: TestDescribeTaskRun/invalid_arguments (0.00s) --- PASS: TestDescribeTaskRun/UID_lookup (0.00s) --- PASS: TestDescribeTaskRun/complex_output (0.00s) --- PASS: TestDescribeTaskRun/output_yaml (0.00s) --- PASS: TestDescribeTaskRun/output_json (0.00s) === RUN TestListCommand === RUN TestListCommand/successful_list_with_default_options === RUN TestListCommand/list_with_task_name_filter === RUN TestListCommand/list_with_single_label_filter === RUN TestListCommand/list_with_multiple_label_filters === RUN TestListCommand/list_with_invalid_label_format === RUN TestListCommand/list_with_empty_label_value === RUN TestListCommand/list_with_empty_label_key === RUN TestListCommand/list_with_task_name_and_label_filter === RUN TestListCommand/list_with_pipelinerun_filter === RUN TestListCommand/list_with_pipelinerun_and_label_filters === RUN TestListCommand/list_with_pipelinerun_and_name_filters --- PASS: TestListCommand (0.03s) --- PASS: TestListCommand/successful_list_with_default_options (0.00s) --- PASS: TestListCommand/list_with_task_name_filter (0.00s) --- PASS: TestListCommand/list_with_single_label_filter (0.00s) --- PASS: TestListCommand/list_with_multiple_label_filters (0.00s) --- PASS: TestListCommand/list_with_invalid_label_format (0.00s) --- PASS: TestListCommand/list_with_empty_label_value (0.00s) --- PASS: TestListCommand/list_with_empty_label_key (0.00s) --- PASS: TestListCommand/list_with_task_name_and_label_filter (0.00s) --- PASS: TestListCommand/list_with_pipelinerun_filter (0.00s) --- PASS: TestListCommand/list_with_pipelinerun_and_label_filters (0.00s) --- PASS: TestListCommand/list_with_pipelinerun_and_name_filters (0.00s) === RUN TestParseRecordsToTr === RUN TestParseRecordsToTr/valid_taskrun_records === RUN TestParseRecordsToTr/invalid_taskrun_data --- PASS: TestParseRecordsToTr (0.00s) --- PASS: TestParseRecordsToTr/valid_taskrun_records (0.00s) --- PASS: TestParseRecordsToTr/invalid_taskrun_data (0.00s) === RUN TestBuildFilterString === RUN TestBuildFilterString/pipelinerun_filter_only === RUN TestBuildFilterString/pipelinerun_and_label_filters === RUN TestBuildFilterString/pipelinerun_and_name_filters --- PASS: TestBuildFilterString (0.00s) --- PASS: TestBuildFilterString/pipelinerun_filter_only (0.00s) --- PASS: TestBuildFilterString/pipelinerun_and_label_filters (0.00s) --- PASS: TestBuildFilterString/pipelinerun_and_name_filters (0.00s) === RUN TestLogsCommand === RUN TestLogsCommand/successful_log_retrieval_by_name === RUN TestLogsCommand/successful_log_retrieval_by_UID === RUN TestLogsCommand/no_TaskRun_found Error: no TaskRun found with name non-existent === RUN TestLogsCommand/multiple_TaskRuns_found Error: multiple TaskRuns found === RUN TestLogsCommand/error_getting_logs Error: rpc error: code = Internal desc = failed to get logs === RUN TestLogsCommand/invalid_arguments Error: requires exactly one argument when --uid is not provided --- PASS: TestLogsCommand (0.00s) --- PASS: TestLogsCommand/successful_log_retrieval_by_name (0.00s) --- PASS: TestLogsCommand/successful_log_retrieval_by_UID (0.00s) --- PASS: TestLogsCommand/no_TaskRun_found (0.00s) --- PASS: TestLogsCommand/multiple_TaskRuns_found (0.00s) --- PASS: TestLogsCommand/error_getting_logs (0.00s) --- PASS: TestLogsCommand/invalid_arguments (0.00s) === RUN TestCommand === RUN TestCommand/command_configuration === RUN TestCommand/subcommands --- PASS: TestCommand (0.00s) --- PASS: TestCommand/command_configuration (0.00s) --- PASS: TestCommand/subcommands (0.00s) PASS ok github.com/tektoncd/results/pkg/cli/cmd/taskrun 1.684s === RUN TestNewConfig === RUN TestNewConfig/valid_params --- PASS: TestNewConfig (0.07s) --- PASS: TestNewConfig/valid_params (0.06s) === RUN TestSet --- PASS: TestSet (0.03s) === RUN TestReset --- PASS: TestReset (0.09s) === RUN TestLoadClientConfig --- PASS: TestLoadClientConfig (0.18s) === RUN TestNewConfigError --- PASS: TestNewConfigError (0.01s) === RUN TestSetWithPrompt config_test.go:270: Received expected error when prompting for user input in test environment --- PASS: TestSetWithPrompt (0.10s) === RUN TestPersist --- PASS: TestPersist (0.06s) === RUN TestSetVersion --- PASS: TestSetVersion (0.05s) === RUN TestHost --- PASS: TestHost (0.50s) === RUN TestToken --- PASS: TestToken (0.11s) === RUN TestExtensionBasic === RUN TestExtensionBasic/valid_extension === RUN TestExtensionBasic/empty_extension --- PASS: TestExtensionBasic (0.00s) --- PASS: TestExtensionBasic/valid_extension (0.00s) --- PASS: TestExtensionBasic/empty_extension (0.00s) === RUN TestExtensionDeepCopy --- PASS: TestExtensionDeepCopy (0.00s) === RUN TestExtensionEmpty --- PASS: TestExtensionEmpty (0.00s) === RUN TestGetRoutes === RUN TestGetRoutes/no_services_found === RUN TestGetRoutes/invalid_config === RUN TestGetRoutes/invalid_host --- PASS: TestGetRoutes (0.10s) --- PASS: TestGetRoutes/no_services_found (0.03s) --- PASS: TestGetRoutes/invalid_config (0.01s) --- PASS: TestGetRoutes/invalid_host (0.05s) === RUN TestGetRoutesWithNilConfig --- PASS: TestGetRoutesWithNilConfig (0.00s) PASS ok github.com/tektoncd/results/pkg/cli/config 2.644s === RUN TestToken === RUN TestToken/default === RUN TestToken/token === RUN TestToken/serviceaccount === RUN TestToken/token#01 === RUN TestToken/token_over_serviceaccount --- PASS: TestToken (0.01s) --- PASS: TestToken/default (0.00s) --- PASS: TestToken/token (0.00s) --- PASS: TestToken/serviceaccount (0.00s) --- PASS: TestToken/token#01 (0.00s) --- PASS: TestToken/token_over_serviceaccount (0.00s) === RUN TestCerts --- PASS: TestCerts (0.52s) PASS ok github.com/tektoncd/results/pkg/cli/dev/client 1.906s === RUN TestDescribeResult --- PASS: TestDescribeResult (0.00s) PASS ok github.com/tektoncd/results/pkg/cli/dev/cmd/result 1.149s === RUN TestParseFileConfig --- PASS: TestParseFileConfig (0.00s) === RUN TestEnvVarConfig --- PASS: TestEnvVarConfig (0.00s) === RUN TestFlagConfig --- PASS: TestFlagConfig (0.00s) PASS ok github.com/tektoncd/results/pkg/cli/dev/config 1.107s === RUN TestAddResultsOptions === RUN TestAddResultsOptions/add_all_flags --- PASS: TestAddResultsOptions (0.00s) --- PASS: TestAddResultsOptions/add_all_flags (0.00s) === RUN TestGetResultsOptions --- PASS: TestGetResultsOptions (0.00s) === RUN TestInitParams --- PASS: TestInitParams (0.00s) === RUN TestInitParamsWithEmptyFlags --- PASS: TestInitParamsWithEmptyFlags (0.00s) PASS ok github.com/tektoncd/results/pkg/cli/flags 1.375s ? github.com/tektoncd/results/pkg/internal/test [no test files] === RUN TestClearOutputOnly --- PASS: TestClearOutputOnly (0.04s) PASS ok github.com/tektoncd/results/pkg/internal/protoutil 1.220s === RUN TestBufferedLog_Write --- PASS: TestBufferedLog_Write (0.00s) === RUN TestBufferedLog_Flush === RUN TestBufferedLog_Flush/when_content_is_longer_than_chunk === RUN TestBufferedLog_Flush/when_content_is_smaller_than_chunk === RUN TestBufferedLog_Flush/when_content_is_equal_to_chunk === RUN TestBufferedLog_Flush/when_content_is_equal_to_few_chunks === RUN TestBufferedLog_Flush/when_content_is_more_than_few_chunks --- PASS: TestBufferedLog_Flush (0.00s) --- PASS: TestBufferedLog_Flush/when_content_is_longer_than_chunk (0.00s) --- PASS: TestBufferedLog_Flush/when_content_is_smaller_than_chunk (0.00s) --- PASS: TestBufferedLog_Flush/when_content_is_equal_to_chunk (0.00s) --- PASS: TestBufferedLog_Flush/when_content_is_equal_to_few_chunks (0.00s) --- PASS: TestBufferedLog_Flush/when_content_is_more_than_few_chunks (0.00s) PASS ok github.com/tektoncd/results/pkg/logs 1.077s ? github.com/tektoncd/results/pkg/test [no test files] ? github.com/tektoncd/results/pkg/test/fake [no test files] === RUN TestRecorder_DurationAndCountDeleted === RUN TestRecorder_DurationAndCountDeleted/for_succeed_pipeline logger.go:146: 2025-06-23T12:06:02.773Z DEBUG pipelinerunmetrics/metrics.go:78 unregistering pipelinerun metrics view logger.go:146: 2025-06-23T12:06:02.774Z DEBUG pipelinerunmetrics/metrics.go:73 registering pipelinerun metrics view === RUN TestRecorder_DurationAndCountDeleted/for_canceled_pipeline_(without_completion_time) logger.go:146: 2025-06-23T12:06:02.774Z DEBUG pipelinerunmetrics/metrics.go:78 unregistering pipelinerun metrics view logger.go:146: 2025-06-23T12:06:02.775Z DEBUG pipelinerunmetrics/metrics.go:73 registering pipelinerun metrics view === RUN TestRecorder_DurationAndCountDeleted/for_failed_pipeline_(without_completion_time) logger.go:146: 2025-06-23T12:06:02.775Z DEBUG pipelinerunmetrics/metrics.go:78 unregistering pipelinerun metrics view logger.go:146: 2025-06-23T12:06:02.775Z DEBUG pipelinerunmetrics/metrics.go:73 registering pipelinerun metrics view --- PASS: TestRecorder_DurationAndCountDeleted (0.00s) --- PASS: TestRecorder_DurationAndCountDeleted/for_succeed_pipeline (0.00s) --- PASS: TestRecorder_DurationAndCountDeleted/for_canceled_pipeline_(without_completion_time) (0.00s) --- PASS: TestRecorder_DurationAndCountDeleted/for_failed_pipeline_(without_completion_time) (0.00s) PASS ok github.com/tektoncd/results/pkg/pipelinerunmetrics 1.184s === RUN TestAgent_job {"level":"info","msg":"retention job started at: 2025-06-23 12:06:04.328204993 +0000 UTC m=+0.530529090, deleting data older than 2025-06-22 12:06:04.328203912 +0000 UTC m=-86399.469472002, retention policy: { 24h0m0s}"} {"level":"info","msg":"retention job finished at: 2025-06-23 12:06:04.329449873 +0000 UTC m=+0.531773964"} --- PASS: TestAgent_job (0.11s) PASS ok github.com/tektoncd/results/pkg/retention 1.707s === RUN TestRecorder_DurationAndCountDeleted === RUN TestRecorder_DurationAndCountDeleted/for_succeeded_taskrun logger.go:146: 2025-06-23T12:06:04.071Z DEBUG taskrunmetrics/metrics.go:89 unregistering taskrun metrics view logger.go:146: 2025-06-23T12:06:04.071Z DEBUG taskrunmetrics/metrics.go:84 registering taskrun metrics view === RUN TestRecorder_DurationAndCountDeleted/for_failed_taskrun logger.go:146: 2025-06-23T12:06:04.072Z DEBUG taskrunmetrics/metrics.go:89 unregistering taskrun metrics view logger.go:146: 2025-06-23T12:06:04.072Z DEBUG taskrunmetrics/metrics.go:84 registering taskrun metrics view === RUN TestRecorder_DurationAndCountDeleted/for_succeeded_taskrun_in_pipelinerun logger.go:146: 2025-06-23T12:06:04.072Z DEBUG taskrunmetrics/metrics.go:89 unregistering taskrun metrics view logger.go:146: 2025-06-23T12:06:04.073Z DEBUG taskrunmetrics/metrics.go:84 registering taskrun metrics view === RUN TestRecorder_DurationAndCountDeleted/for_failed_taskrun_in_pipelinerun logger.go:146: 2025-06-23T12:06:04.079Z DEBUG taskrunmetrics/metrics.go:89 unregistering taskrun metrics view logger.go:146: 2025-06-23T12:06:04.080Z DEBUG taskrunmetrics/metrics.go:84 registering taskrun metrics view --- PASS: TestRecorder_DurationAndCountDeleted (0.01s) --- PASS: TestRecorder_DurationAndCountDeleted/for_succeeded_taskrun (0.00s) --- PASS: TestRecorder_DurationAndCountDeleted/for_failed_taskrun (0.00s) --- PASS: TestRecorder_DurationAndCountDeleted/for_succeeded_taskrun_in_pipelinerun (0.00s) --- PASS: TestRecorder_DurationAndCountDeleted/for_failed_taskrun_in_pipelinerun (0.00s) PASS ok github.com/tektoncd/results/pkg/taskrunmetrics 1.420s ? github.com/tektoncd/results/pkg/watcher/grpc [no test files] ? github.com/tektoncd/results/pkg/watcher/logs [no test files] === RUN TestToProto === RUN TestToProto/string === RUN TestToProto/string/*v1.TaskRun === RUN TestToProto/string/*unstructured.Unstructured === RUN TestToProto/string#01 === RUN TestToProto/string#01/*v1.PipelineRun === RUN TestToProto/string#01/*unstructured.Unstructured === RUN TestToProto/nil --- PASS: TestToProto (0.46s) --- PASS: TestToProto/string (0.21s) --- PASS: TestToProto/string/*v1.TaskRun (0.08s) --- PASS: TestToProto/string/*unstructured.Unstructured (0.07s) --- PASS: TestToProto/string#01 (0.25s) --- PASS: TestToProto/string#01/*v1.PipelineRun (0.07s) --- PASS: TestToProto/string#01/*unstructured.Unstructured (0.09s) --- PASS: TestToProto/nil (0.00s) === RUN TestToLogProto === RUN TestToLogProto/TaskRun_Log === RUN TestToLogProto/PipelineRun_Log --- PASS: TestToLogProto (0.11s) --- PASS: TestToLogProto/TaskRun_Log (0.05s) --- PASS: TestToLogProto/PipelineRun_Log (0.05s) === RUN TestTypeName === RUN TestTypeName/tekton.dev/v1.TaskRun === RUN TestTypeName/tekton.dev/v1.PipelineRun === RUN TestTypeName/foo.bar --- PASS: TestTypeName (0.00s) --- PASS: TestTypeName/tekton.dev/v1.TaskRun (0.00s) --- PASS: TestTypeName/tekton.dev/v1.PipelineRun (0.00s) --- PASS: TestTypeName/foo.bar (0.00s) === RUN TestInferGVK --- PASS: TestInferGVK (0.00s) === RUN TestStatus === RUN TestStatus/TaskRun_Success === RUN TestStatus/PipelineRun_Timeout === RUN TestStatus/Pod_Failure === RUN TestStatus/Ready_Condition === RUN TestStatus/Unknown_reason === RUN TestStatus/#00 --- PASS: TestStatus (0.00s) --- PASS: TestStatus/TaskRun_Success (0.00s) --- PASS: TestStatus/PipelineRun_Timeout (0.00s) --- PASS: TestStatus/Pod_Failure (0.00s) --- PASS: TestStatus/Ready_Condition (0.00s) --- PASS: TestStatus/Unknown_reason (0.00s) --- PASS: TestStatus/#00 (0.00s) PASS ok github.com/tektoncd/results/pkg/watcher/convert 1.911s === RUN TestGetDisableAnnotationUpdate --- PASS: TestGetDisableAnnotationUpdate (0.00s) === RUN TestCompletedResourceGracePeriod --- PASS: TestCompletedResourceGracePeriod (0.00s) === RUN TestController logger.go:146: 2025-06-23T12:06:24.253Z INFO cache/cacheclient.go:42 CACHE CLIENT &{lru:0xc000d0c960 evictedKeys:[] evictedVals:[] onEvictedCB: lock:{w:{state:0 sema:0} writerSem:0 readerSem:0 readerCount:{_:{} v:0} readerWait:{_:{} v:0}}} reconciler_test.go:54: test database: /tmp/testdb1990273258 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.057ms] [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.167ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [249.506ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [198.915ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.121ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [204.615ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [284.144ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680385.2888436,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} logger.go:146: 2025-06-23T12:06:25.294Z 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: 2025-06-23T12:06:25.295Z 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: 2025-06-23T12:06:25.296Z INFO TestController controller/controller.go:484 Starting controller and workers {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun"} logger.go:146: 2025-06-23T12:06:25.296Z INFO TestController controller/controller.go:494 Started workers {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun"} logger.go:146: 2025-06-23T12:06:25.296Z INFO TestController controller/controller.go:484 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: 2025-06-23T12:06:25.297Z INFO TestController controller/controller.go:494 Started workers {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun"} logger.go:146: 2025-06-23T12:06:25.299Z DEBUG TestController controller/controller.go:418 Adding to queue ns/taskrun (depth: 1) {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/key": "ns/taskrun"} logger.go:146: 2025-06-23T12:06:25.299Z DEBUG TestController controller/controller.go:511 Processing from queue ns/taskrun (depth: 0) {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun"} logger.go:146: 2025-06-23T12:06:25.336Z DEBUG TestController controller/controller.go:418 Adding to queue ns/taskrun (depth: 1) {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/key": "ns/taskrun"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.469ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "pr-id" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:25.343Z DEBUG TestController results/results.go:188 Result doesn't exist yet - creating {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/traceid": "960d5319-ce3b-483a-9bdd-b8dd940b2db5", "knative.dev/key": "ns/taskrun", "results.tekton.dev/kind": "TaskRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/tr-id", "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 [222.295ms] [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","07b6d74f-ae30-4b7a-99eb-f22a7a8ddf15","pr-id","null","","",NULL,NULL,0,"null","07b6d74f-ae30-4b7a-99eb-f22a7a8ddf15-1750680385347340394","2025-06-23 12:06:25.347","2025-06-23 12:06:25.347") 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 [25.934ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "pr-id" AND `records`.`name` = "tr-id" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:25.600Z DEBUG TestController results/results.go:334 Record doesn't exist yet - creating {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/traceid": "960d5319-ce3b-483a-9bdd-b8dd940b2db5", "knative.dev/key": "ns/taskrun", "results.tekton.dev/kind": "TaskRun", "results.tekton.dev/record": "ns/results/pr-id/records/tr-id"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [6.766ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "pr-id" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [191.912ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","07b6d74f-ae30-4b7a-99eb-f22a7a8ddf15","pr-id","55924b54-c48b-4dfb-9129-3793d5f654f4","tr-id","tekton.dev/v1.TaskRun","{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""tr-id"",""creationTimestamp"":null,""annotations"":{""demo"":""demo"",""tekton.dev/pipelineRun"":""pr""},""ownerReferences"":[{""apiVersion"":""tekton.dev/v1"",""kind"":""PipelineRun"",""name"":"""",""uid"":""pr-id""}],""finalizers"":[""results.tekton.dev/taskrun""]},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","55924b54-c48b-4dfb-9129-3793d5f654f4-1750680385610434720","2025-06-23 12:06:25.61","2025-06-23 12:06:25.61") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T12:06:25.804Z DEBUG TestController dynamic/dynamic.go:259 Record has been successfully upserted into API server {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/traceid": "960d5319-ce3b-483a-9bdd-b8dd940b2db5", "knative.dev/key": "ns/taskrun", "results.tekton.dev/kind": "TaskRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/tr-id", "results.tekton.dev/time-taken-ms": 469} logger.go:146: 2025-06-23T12:06:25.806Z INFO TestController dynamic/dynamic.go:319 Skipping resource deletion: deletion is disabled {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/traceid": "960d5319-ce3b-483a-9bdd-b8dd940b2db5", "knative.dev/key": "ns/taskrun", "results.tekton.dev/kind": "TaskRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/tr-id", "results.tekton.dev/gracePeriod": "0s"} logger.go:146: 2025-06-23T12:06:25.812Z DEBUG TestController controller/controller.go:418 Adding to queue ns/taskrun (depth: 1) {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/key": "ns/taskrun"} logger.go:146: 2025-06-23T12:06:25.814Z DEBUG TestController controller/controller.go:418 Adding to queue ns/taskrun (depth: 1) {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/key": "ns/taskrun"} logger.go:146: 2025-06-23T12:06:25.814Z WARN TestController dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/traceid": "960d5319-ce3b-483a-9bdd-b8dd940b2db5", "knative.dev/key": "ns/taskrun", "results.tekton.dev/kind": "TaskRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/tr-id", "namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:25.815Z INFO TestController controller/controller.go:548 Reconcile succeeded {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/traceid": "960d5319-ce3b-483a-9bdd-b8dd940b2db5", "knative.dev/key": "ns/taskrun", "duration": "515.454788ms"} logger.go:146: 2025-06-23T12:06:25.815Z DEBUG TestController controller/controller.go:511 Processing from queue ns/taskrun (depth: 0) {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.783ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "pr-id" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:25.819Z DEBUG TestController results/results.go:202 No further actions to be done on the Result: the object is not a top level record {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/traceid": "86c53584-cfe4-4dde-b09f-cbbbe387ac9d", "knative.dev/key": "ns/taskrun", "results.tekton.dev/kind": "TaskRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/tr-id", "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.934ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "pr-id" AND `records`.`name` = "tr-id" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:25.842Z DEBUG TestController results/results.go:326 Updating Record {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/traceid": "86c53584-cfe4-4dde-b09f-cbbbe387ac9d", "knative.dev/key": "ns/taskrun", "results.tekton.dev/kind": "TaskRun", "results.tekton.dev/record": "ns/results/pr-id/records/tr-id"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.619ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "pr-id" AND `records`.`name` = "tr-id" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217 [10.330ms] [rows:1] UPDATE `records` SET `result_name`="pr-id",`name`="tr-id",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""tr-id"",""creationTimestamp"":null,""annotations"":{""demo"":""demo"",""results.tekton.dev/record"":""ns/results/pr-id/records/tr-id"",""results.tekton.dev/result"":""ns/results/pr-id"",""results.tekton.dev/stored"":""false"",""tekton.dev/pipelineRun"":""pr""},""ownerReferences"":[{""apiVersion"":""tekton.dev/v1"",""kind"":""PipelineRun"",""name"":"""",""uid"":""pr-id""}],""finalizers"":[""results.tekton.dev/taskrun""]},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}",`created_time`="2025-06-23 12:06:25.61",`updated_time`="2025-06-23 12:06:25.846",`etag`="55924b54-c48b-4dfb-9129-3793d5f654f4-1750680385846351879" WHERE `parent` = "ns" AND `result_id` = "07b6d74f-ae30-4b7a-99eb-f22a7a8ddf15" AND `id` = "55924b54-c48b-4dfb-9129-3793d5f654f4" logger.go:146: 2025-06-23T12:06:26.073Z DEBUG TestController dynamic/dynamic.go:259 Record has been successfully upserted into API server {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/traceid": "86c53584-cfe4-4dde-b09f-cbbbe387ac9d", "knative.dev/key": "ns/taskrun", "results.tekton.dev/kind": "TaskRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/tr-id", "results.tekton.dev/time-taken-ms": 257} logger.go:146: 2025-06-23T12:06:26.073Z DEBUG TestController dynamic/dynamic.go:291 Skipping CRD annotation patch: Result annotations are already set {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/traceid": "86c53584-cfe4-4dde-b09f-cbbbe387ac9d", "knative.dev/key": "ns/taskrun", "results.tekton.dev/kind": "TaskRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/tr-id"} logger.go:146: 2025-06-23T12:06:26.074Z INFO TestController dynamic/dynamic.go:319 Skipping resource deletion: deletion is disabled {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/traceid": "86c53584-cfe4-4dde-b09f-cbbbe387ac9d", "knative.dev/key": "ns/taskrun", "results.tekton.dev/kind": "TaskRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/tr-id", "results.tekton.dev/gracePeriod": "0s"} logger.go:146: 2025-06-23T12:06:26.074Z DEBUG TestController dynamic/dynamic.go:761 Skipping CRD annotation patch: Result Stored annotations are already set ObjectName: taskrun {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/traceid": "86c53584-cfe4-4dde-b09f-cbbbe387ac9d", "knative.dev/key": "ns/taskrun", "results.tekton.dev/kind": "TaskRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/tr-id"} logger.go:146: 2025-06-23T12:06:26.074Z WARN TestController dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/traceid": "86c53584-cfe4-4dde-b09f-cbbbe387ac9d", "knative.dev/key": "ns/taskrun", "results.tekton.dev/kind": "TaskRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/tr-id", "namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:26.074Z INFO TestController controller/controller.go:548 Reconcile succeeded {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/traceid": "86c53584-cfe4-4dde-b09f-cbbbe387ac9d", "knative.dev/key": "ns/taskrun", "duration": "258.598894ms"} === NAME TestController/taskrun reconciler_test.go:135: Get (&{{TaskRun tekton.dev/v1} {taskrun ns tr-id 0 0001-01-01 00:00:00 +0000 UTC map[] map[demo:demo results.tekton.dev/record:ns/results/pr-id/records/tr-id results.tekton.dev/result:ns/results/pr-id results.tekton.dev/stored:false tekton.dev/pipelineRun:pr] [{tekton.dev/v1 PipelineRun pr-id }] [results.tekton.dev/taskrun] []} { [] 0 nil [] [] [] nil} {{0 [] map[]} { [] [] [] [] map[]}}}, ) === RUN TestController/pipelinerun === NAME TestController logger.go:146: 2025-06-23T12:06:26.303Z DEBUG TestController controller/controller.go:418 Adding to queue ns/pr (depth: 1) {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/key": "ns/pr"} logger.go:146: 2025-06-23T12:06:26.304Z DEBUG TestController controller/controller.go:511 Processing from queue ns/pr (depth: 0) {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun"} logger.go:146: 2025-06-23T12:06:26.315Z INFO TestController pipelinerun/reconciler.go:67 Initiating reconciliation for PipelineRun 'ns/pr' {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/traceid": "97ca0d93-9cb3-4226-a15b-6212c2bf0da5", "knative.dev/key": "ns/pr", "results.tekton.dev/kind": "PipelineRun"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.659ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "pr-id" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:26.321Z DEBUG TestController controller/controller.go:418 Adding to queue ns/pr (depth: 1) {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/key": "ns/pr"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.672ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "pr-id" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:140 [0.762ms] [rows:1] UPDATE `results` SET `name`="pr-id",`annotations`="{""object.metadata.name"":""pr""}",`created_time`="2025-06-23 12:06:25.347",`updated_time`="2025-06-23 12:06:26.328",`recordsummary_record`="ns/results/pr-id/records/pr-id",`recordsummary_type`="tekton.dev/v1.PipelineRun",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="07b6d74f-ae30-4b7a-99eb-f22a7a8ddf15-1750680386328534824" WHERE `parent` = "ns" AND `id` = "07b6d74f-ae30-4b7a-99eb-f22a7a8ddf15" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.481ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "pr-id" AND `records`.`name` = "pr-id" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:26.361Z DEBUG TestController results/results.go:334 Record doesn't exist yet - creating {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/traceid": "97ca0d93-9cb3-4226-a15b-6212c2bf0da5", "knative.dev/key": "ns/pr", "results.tekton.dev/kind": "PipelineRun", "results.tekton.dev/record": "ns/results/pr-id/records/pr-id"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.517ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "pr-id" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [17.792ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","07b6d74f-ae30-4b7a-99eb-f22a7a8ddf15","pr-id","2330519c-7607-43ad-a28f-9dea99dac04d","pr-id","tekton.dev/v1.PipelineRun","{""kind"":""PipelineRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""pr"",""namespace"":""ns"",""uid"":""pr-id"",""creationTimestamp"":null,""annotations"":{""demo"":""demo""},""finalizers"":[""results.tekton.dev/pipelinerun""]},""spec"":{""taskRunTemplate"":{}},""status"":{}}","2330519c-7607-43ad-a28f-9dea99dac04d-1750680386363052244","2025-06-23 12:06:26.363","2025-06-23 12:06:26.363") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T12:06:26.384Z DEBUG TestController dynamic/dynamic.go:259 Record has been successfully upserted into API server {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/traceid": "97ca0d93-9cb3-4226-a15b-6212c2bf0da5", "knative.dev/key": "ns/pr", "results.tekton.dev/kind": "PipelineRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/pr-id", "results.tekton.dev/time-taken-ms": 68} logger.go:146: 2025-06-23T12:06:26.386Z INFO TestController dynamic/dynamic.go:319 Skipping resource deletion: deletion is disabled {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/traceid": "97ca0d93-9cb3-4226-a15b-6212c2bf0da5", "knative.dev/key": "ns/pr", "results.tekton.dev/kind": "PipelineRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/pr-id", "results.tekton.dev/gracePeriod": "0s"} logger.go:146: 2025-06-23T12:06:26.386Z DEBUG TestController controller/controller.go:418 Adding to queue ns/pr (depth: 1) {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/key": "ns/pr"} logger.go:146: 2025-06-23T12:06:26.388Z WARN TestController dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/traceid": "97ca0d93-9cb3-4226-a15b-6212c2bf0da5", "knative.dev/key": "ns/pr", "results.tekton.dev/kind": "PipelineRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/pr-id", "namespace": "ns", "kind": "PipelineRun", "name": "pr"} logger.go:146: 2025-06-23T12:06:26.388Z INFO TestController controller/controller.go:548 Reconcile succeeded {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/traceid": "97ca0d93-9cb3-4226-a15b-6212c2bf0da5", "knative.dev/key": "ns/pr", "duration": "83.962542ms"} logger.go:146: 2025-06-23T12:06:26.388Z DEBUG TestController controller/controller.go:418 Adding to queue ns/pr (depth: 1) {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/key": "ns/pr"} logger.go:146: 2025-06-23T12:06:26.388Z DEBUG TestController controller/controller.go:511 Processing from queue ns/pr (depth: 0) {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun"} logger.go:146: 2025-06-23T12:06:26.389Z INFO TestController pipelinerun/reconciler.go:67 Initiating reconciliation for PipelineRun 'ns/pr' {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/traceid": "792c9756-06eb-4a3f-8cd8-325cdc511ae0", "knative.dev/key": "ns/pr", "results.tekton.dev/kind": "PipelineRun"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.696ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "pr-id" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:26.392Z DEBUG TestController results/results.go:210 No further actions to be done on the Result: no differences found {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/traceid": "792c9756-06eb-4a3f-8cd8-325cdc511ae0", "knative.dev/key": "ns/pr", "results.tekton.dev/kind": "PipelineRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/pr-id", "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.653ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "pr-id" AND `records`.`name` = "pr-id" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:26.412Z DEBUG TestController results/results.go:326 Updating Record {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/traceid": "792c9756-06eb-4a3f-8cd8-325cdc511ae0", "knative.dev/key": "ns/pr", "results.tekton.dev/kind": "PipelineRun", "results.tekton.dev/record": "ns/results/pr-id/records/pr-id"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.610ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "pr-id" AND `records`.`name` = "pr-id" 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.620ms] [rows:1] UPDATE `records` SET `result_name`="pr-id",`name`="pr-id",`type`="tekton.dev/v1.PipelineRun",`data`="{""kind"":""PipelineRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""pr"",""namespace"":""ns"",""uid"":""pr-id"",""creationTimestamp"":null,""annotations"":{""demo"":""demo"",""results.tekton.dev/record"":""ns/results/pr-id/records/pr-id"",""results.tekton.dev/result"":""ns/results/pr-id"",""results.tekton.dev/stored"":""false""},""finalizers"":[""results.tekton.dev/pipelinerun""]},""spec"":{""taskRunTemplate"":{}},""status"":{}}",`created_time`="2025-06-23 12:06:26.363",`updated_time`="2025-06-23 12:06:26.415",`etag`="2330519c-7607-43ad-a28f-9dea99dac04d-1750680386415445747" WHERE `parent` = "ns" AND `result_id` = "07b6d74f-ae30-4b7a-99eb-f22a7a8ddf15" AND `id` = "2330519c-7607-43ad-a28f-9dea99dac04d" logger.go:146: 2025-06-23T12:06:26.469Z DEBUG TestController dynamic/dynamic.go:259 Record has been successfully upserted into API server {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/traceid": "792c9756-06eb-4a3f-8cd8-325cdc511ae0", "knative.dev/key": "ns/pr", "results.tekton.dev/kind": "PipelineRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/pr-id", "results.tekton.dev/time-taken-ms": 79} logger.go:146: 2025-06-23T12:06:26.469Z DEBUG TestController dynamic/dynamic.go:291 Skipping CRD annotation patch: Result annotations are already set {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/traceid": "792c9756-06eb-4a3f-8cd8-325cdc511ae0", "knative.dev/key": "ns/pr", "results.tekton.dev/kind": "PipelineRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/pr-id"} logger.go:146: 2025-06-23T12:06:26.469Z INFO TestController dynamic/dynamic.go:319 Skipping resource deletion: deletion is disabled {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/traceid": "792c9756-06eb-4a3f-8cd8-325cdc511ae0", "knative.dev/key": "ns/pr", "results.tekton.dev/kind": "PipelineRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/pr-id", "results.tekton.dev/gracePeriod": "0s"} logger.go:146: 2025-06-23T12:06:26.470Z DEBUG TestController dynamic/dynamic.go:761 Skipping CRD annotation patch: Result Stored annotations are already set ObjectName: pr {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/traceid": "792c9756-06eb-4a3f-8cd8-325cdc511ae0", "knative.dev/key": "ns/pr", "results.tekton.dev/kind": "PipelineRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/pr-id"} logger.go:146: 2025-06-23T12:06:26.470Z WARN TestController dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/traceid": "792c9756-06eb-4a3f-8cd8-325cdc511ae0", "knative.dev/key": "ns/pr", "results.tekton.dev/kind": "PipelineRun", "results.tekton.dev/result": "ns/results/pr-id", "results.tekton.dev/record": "ns/results/pr-id/records/pr-id", "namespace": "ns", "kind": "PipelineRun", "name": "pr"} logger.go:146: 2025-06-23T12:06:26.470Z INFO TestController controller/controller.go:548 Reconcile succeeded {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/traceid": "792c9756-06eb-4a3f-8cd8-325cdc511ae0", "knative.dev/key": "ns/pr", "duration": "81.466772ms"} === NAME TestController/pipelinerun reconciler_test.go:135: Get (&{{PipelineRun tekton.dev/v1} {pr ns pr-id 0 0001-01-01 00:00:00 +0000 UTC map[] map[demo:demo results.tekton.dev/record:ns/results/pr-id/records/pr-id results.tekton.dev/result:ns/results/pr-id results.tekton.dev/stored:false] [] [results.tekton.dev/pipelinerun] []} { [] { } [] []} {{0 [] map[]} { [] [] [] map[]}}}, ) === NAME TestController logger.go:146: 2025-06-23T12:06:27.306Z INFO TestController controller/controller.go:496 Shutting down workers {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun"} logger.go:146: 2025-06-23T12:06:27.306Z INFO TestController controller/controller.go:496 Shutting down workers {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun"} --- PASS: TestController (3.06s) --- PASS: TestController/taskrun (1.00s) --- PASS: TestController/pipelinerun (1.00s) PASS ok github.com/tektoncd/results/pkg/watcher/reconciler 5.048s === RUN TestPatch === RUN TestPatch/create_a_patch_containing_only_the_result_and_record_identifiers_since_the_object_is_a_PipelineRun === RUN TestPatch/create_a_patch_containing_only_the_result_and_record_identifiers_since_the_TaskRun_isn't_owned_by_a_PipelineRun === RUN TestPatch/create_a_patch_containing_only_the_result_and_record_identifiers_since_the_TaskRun_isn't_done_yet === RUN TestPatch/mark_the_TaskRun_as_ready_for_deletion_since_it's_owned_by_a_PipelineRun_and_is_done --- PASS: TestPatch (0.00s) --- PASS: TestPatch/create_a_patch_containing_only_the_result_and_record_identifiers_since_the_object_is_a_PipelineRun (0.00s) --- PASS: TestPatch/create_a_patch_containing_only_the_result_and_record_identifiers_since_the_TaskRun_isn't_owned_by_a_PipelineRun (0.00s) --- PASS: TestPatch/create_a_patch_containing_only_the_result_and_record_identifiers_since_the_TaskRun_isn't_done_yet (0.00s) --- PASS: TestPatch/mark_the_TaskRun_as_ready_for_deletion_since_it's_owned_by_a_PipelineRun_and_is_done (0.00s) === RUN TestIsPatched === RUN TestIsPatched/result_and_record_identifiers_are_missing_in_the_PipelineRun === RUN TestIsPatched/the_record_identifier_is_missing_in_the_PipelineRun === RUN TestIsPatched/the_PipelineRun_contains_all_relevant_annotations === RUN TestIsPatched/the_TaskRun_contains_all_relevant_annotations === RUN TestIsPatched/the_TaskRun_should_be_marked_as_ready_to_be_deleted --- PASS: TestIsPatched (0.00s) --- PASS: TestIsPatched/result_and_record_identifiers_are_missing_in_the_PipelineRun (0.00s) --- PASS: TestIsPatched/the_record_identifier_is_missing_in_the_PipelineRun (0.00s) --- PASS: TestIsPatched/the_PipelineRun_contains_all_relevant_annotations (0.00s) --- PASS: TestIsPatched/the_TaskRun_contains_all_relevant_annotations (0.00s) --- PASS: TestIsPatched/the_TaskRun_should_be_marked_as_ready_to_be_deleted (0.00s) PASS ok github.com/tektoncd/results/pkg/watcher/reconciler/annotation 1.153s ? github.com/tektoncd/results/pkg/watcher/reconciler/leaderelection [no test files] ? github.com/tektoncd/results/proto/pipeline/v1 [no test files] ? github.com/tektoncd/results/proto/pipeline/v1/pipeline_go_proto [no test files] ? github.com/tektoncd/results/proto/v1alpha2 [no test files] ? github.com/tektoncd/results/proto/v1alpha2/results_go_proto [no test files] ? github.com/tektoncd/results/proto/v1alpha3 [no test files] ? github.com/tektoncd/results/proto/v1alpha3/results_go_proto [no test files] ? github.com/tektoncd/results/test/e2e/client [no test files] ? github.com/tektoncd/results/tools/simpleui [no test files] === RUN TestReconcile_TaskRun logger.go:146: 2025-06-23T12:06:32.698Z INFO cache/cacheclient.go:42 CACHE CLIENT &{lru:0xc000820320 evictedKeys:[] evictedVals:[] onEvictedCB: lock:{w:{state:0 sema:0} writerSem:0 readerSem:0 readerCount:{_:{} v:0} readerWait:{_:{} v:0}}} dynamic_test.go:129: test database: /tmp/testdb1030564862 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.037ms] [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.116ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [7986.052ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [168.087ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.117ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [38.610ms] [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 [76.981ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680400.989406,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.413ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.006Z 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 [52.007ms] [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","78ae7aa6-5db5-4768-8e9e-2b08b8d7fb73","12345","{""object.metadata.name"":""taskrun""}","ns/results/12345/records/12345","tekton.dev/v1.TaskRun",NULL,"0000-00-00 00:00:00",1,"null","78ae7aa6-5db5-4768-8e9e-2b08b8d7fb73-1750680401009975108","2025-06-23 12:06:41.009","2025-06-23 12:06:41.009") 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 [6.069ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.094Z DEBUG TestReconcile_TaskRun results/results.go:334 Record doesn't exist yet - creating {"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:102 [4.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 [15.390ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","78ae7aa6-5db5-4768-8e9e-2b08b8d7fb73","12345","9ba77ba8-14fe-4b25-8c65-4bcb1f22011f","12345","tekton.dev/v1.TaskRun","{""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"":""True"",""lastTransitionTime"":null,""reason"":""Succeeded""}],""podName"":""""}}","9ba77ba8-14fe-4b25-8c65-4bcb1f22011f-1750680401100902970","2025-06-23 12:06:41.1","2025-06-23 12:06:41.1") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.812ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.123Z 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.570ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "54d3b1aa-0cb7-34ab-8d40-ded17a2310fb" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.688ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.130Z 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.422ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "54d3b1aa-0cb7-34ab-8d40-ded17a2310fb" 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.674ms] [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 [11.356ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","78ae7aa6-5db5-4768-8e9e-2b08b8d7fb73","12345","3b03fcee-0e47-46c6-a4b3-f917a948f289","54d3b1aa-0cb7-34ab-8d40-ded17a2310fb","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""ns"",""uid"":""54d3b1aa-0cb7-34ab-8d40-ded17a2310fb"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""ns"",""name"":""taskrun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","3b03fcee-0e47-46c6-a4b3-f917a948f289-1750680401135660902","2025-06-23 12:06:41.135","2025-06-23 12:06:41.135") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T12:06:41.148Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:289 Skipping CRD annotation patch: annotation update is disabled logger.go:146: 2025-06-23T12:06:41.149Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:472 Streaming log started {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:41.150Z ERROR TestReconcile_TaskRun dynamic/dynamic.go:480 Error streaming log {"namespace": "ns", "kind": "TaskRun", "name": "taskrun", "error": "failed to create tkn reader: Parsing kubeconfig failed: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable"} logger.go:146: 2025-06-23T12:06:41.150Z 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.708ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.155Z 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.447ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "2d28a373-a85e-3136-af08-e81946ee968a" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.649ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.164Z 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.494ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "2d28a373-a85e-3136-af08-e81946ee968a" 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.513ms] [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 [18.501ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","78ae7aa6-5db5-4768-8e9e-2b08b8d7fb73","12345","d6e8240f-ea6d-4cf6-94b1-f44ad7ebab2c","2d28a373-a85e-3136-af08-e81946ee968a","results.tekton.dev/v1.EventList","{""metadata"":{},""items"":null}","d6e8240f-ea6d-4cf6-94b1-f44ad7ebab2c-1750680401171094198","2025-06-23 12:06:41.171","2025-06-23 12:06:41.171") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T12:06:41.191Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:289 Skipping CRD annotation patch: annotation update is disabled logger.go:146: 2025-06-23T12:06:41.191Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:41.191Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/time-taken-ms": 121} logger.go:146: 2025-06-23T12:06:41.191Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:289 Skipping CRD annotation patch: annotation update is disabled {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345"} logger.go:146: 2025-06-23T12:06:41.191Z INFO TestReconcile_TaskRun dynamic/dynamic.go:319 Skipping resource deletion: deletion is disabled {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "0s"} logger.go:146: 2025-06-23T12:06:41.192Z WARN TestReconcile_TaskRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "namespace": "ns", "kind": "TaskRun", "name": "taskrun"} === RUN TestReconcile_TaskRun/disabled_annotations === NAME TestReconcile_TaskRun db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.754ms] [rows:1] SELECT * 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:135 [0.914ms] [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:135 [0.676ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "2d28a373-a85e-3136-af08-e81946ee968a" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.521ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "2d28a373-a85e-3136-af08-e81946ee968a" ORDER BY `records`.`id` LIMIT 1 === RUN TestReconcile_TaskRun/enabled_annotations === NAME TestReconcile_TaskRun db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.836ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.208Z DEBUG TestReconcile_TaskRun results/results.go:210 No further actions to be done on the Result: no differences found {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.664ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.225Z DEBUG TestReconcile_TaskRun results/results.go:322 No further actions to be done on the Record: no changes found {"results.tekton.dev/record": "ns/results/12345/records/12345"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [4.804ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.234Z 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.699ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "54d3b1aa-0cb7-34ab-8d40-ded17a2310fb" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.657ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.266Z 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.630ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "2d28a373-a85e-3136-af08-e81946ee968a" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.273Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:41.273Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/time-taken-ms": 21} logger.go:146: 2025-06-23T12:06:41.276Z INFO TestReconcile_TaskRun dynamic/dynamic.go:319 Skipping resource deletion: deletion is disabled {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "0s"} logger.go:146: 2025-06-23T12:06:41.278Z WARN TestReconcile_TaskRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "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.770ms] [rows:1] SELECT * 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:135 [0.713ms] [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:135 [0.936ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "54d3b1aa-0cb7-34ab-8d40-ded17a2310fb" ORDER BY `records`.`id` LIMIT 1 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` = "2d28a373-a85e-3136-af08-e81946ee968a" ORDER BY `records`.`id` LIMIT 1 === RUN TestReconcile_TaskRun/delete_object_once_grace_period_elapses === NAME TestReconcile_TaskRun db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [1.076ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.294Z DEBUG TestReconcile_TaskRun results/results.go:210 No further actions to be done on the Result: no differences found {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.637ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.315Z 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 [1.902ms] [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 [1.089ms] [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"":""True"",""lastTransitionTime"":null,""reason"":""Succeeded""}],""podName"":"""",""completionTime"":""2025-06-23T12:06:40Z""}}",`created_time`="2025-06-23 12:06:41.1",`updated_time`="2025-06-23 12:06:41.32",`etag`="9ba77ba8-14fe-4b25-8c65-4bcb1f22011f-1750680401320162890" WHERE `parent` = "ns" AND `result_id` = "78ae7aa6-5db5-4768-8e9e-2b08b8d7fb73" AND `id` = "9ba77ba8-14fe-4b25-8c65-4bcb1f22011f" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.764ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.354Z 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.598ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "54d3b1aa-0cb7-34ab-8d40-ded17a2310fb" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.722ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.364Z 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.736ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "2d28a373-a85e-3136-af08-e81946ee968a" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.369Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:41.370Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/time-taken-ms": 59} logger.go:146: 2025-06-23T12:06:41.372Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:359 Object is not ready for deletion yet - requeuing to process later {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "1s", "results.tekton.dev/requeueAfter": "1s"} logger.go:146: 2025-06-23T12:06:41.372Z WARN TestReconcile_TaskRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "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.519ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.376Z 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.683ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.397Z DEBUG TestReconcile_TaskRun results/results.go:322 No further actions to be done on the Record: no changes found {"results.tekton.dev/record": "ns/results/12345/records/12345"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.702ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.401Z 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.798ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "54d3b1aa-0cb7-34ab-8d40-ded17a2310fb" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.742ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.413Z 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.621ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "2d28a373-a85e-3136-af08-e81946ee968a" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.418Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:41.419Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/time-taken-ms": 25} logger.go:146: 2025-06-23T12:06:41.420Z INFO TestReconcile_TaskRun dynamic/dynamic.go:375 Deleting object {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "1s", "results.tekton.dev/uid": "12345", "results.tekton.dev/time-taken-seconds": 0} logger.go:146: 2025-06-23T12:06:41.421Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:385 Object has been successfully deleted {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "1s", "results.tekton.dev/time-taken-seconds": 0} logger.go:146: 2025-06-23T12:06:41.421Z WARN TestReconcile_TaskRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "namespace": "ns", "kind": "TaskRun", "name": "taskrun"} === RUN TestReconcile_TaskRun/delete_failed_runs === NAME TestReconcile_TaskRun db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.723ms] [rows:1] SELECT * 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/results.go:208 [0.931ms] [rows:1] SELECT * 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/results.go:140 [0.976ms] [rows:1] UPDATE `results` SET `name`="12345",`annotations`="{""object.metadata.name"":""taskrun""}",`created_time`="2025-06-23 12:06:41.009",`updated_time`="2025-06-23 12:06:41.43",`recordsummary_record`="ns/results/12345/records/12345",`recordsummary_type`="tekton.dev/v1.TaskRun",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=2,`recordsummary_annotations`="null",`etag`="78ae7aa6-5db5-4768-8e9e-2b08b8d7fb73-1750680401430708083" WHERE `parent` = "ns" AND `id` = "78ae7aa6-5db5-4768-8e9e-2b08b8d7fb73" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [10.862ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.515Z 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.751ms] [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 [2.873ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""annotations"":{""demo"":""demo""}},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-06-23T12:06:41Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-23T12:06:41Z"",""completionTime"":""2025-06-23T12:06:42Z""}}",`created_time`="2025-06-23 12:06:41.1",`updated_time`="2025-06-23 12:06:41.518",`etag`="9ba77ba8-14fe-4b25-8c65-4bcb1f22011f-1750680401518924897" WHERE `parent` = "ns" AND `result_id` = "78ae7aa6-5db5-4768-8e9e-2b08b8d7fb73" AND `id` = "9ba77ba8-14fe-4b25-8c65-4bcb1f22011f" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.904ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.547Z 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.722ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "54d3b1aa-0cb7-34ab-8d40-ded17a2310fb" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.806ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.557Z 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.743ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "2d28a373-a85e-3136-af08-e81946ee968a" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.562Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:41.563Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/time-taken-ms": 120} logger.go:146: 2025-06-23T12:06:41.565Z INFO TestReconcile_TaskRun dynamic/dynamic.go:375 Deleting object {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "1s", "results.tekton.dev/uid": "12345", "results.tekton.dev/time-taken-seconds": -1} logger.go:146: 2025-06-23T12:06:41.565Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:385 Object has been successfully deleted {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "1s", "results.tekton.dev/time-taken-seconds": -1} logger.go:146: 2025-06-23T12:06:41.565Z WARN TestReconcile_TaskRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "namespace": "ns", "kind": "TaskRun", "name": "taskrun"} === RUN TestReconcile_TaskRun/wait_until_the_object_has_the_desired_labels_to_delete_it === NAME TestReconcile_TaskRun db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.669ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.570Z DEBUG TestReconcile_TaskRun results/results.go:210 No further actions to be done on the Result: no differences found {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.620ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.600Z DEBUG TestReconcile_TaskRun results/results.go:322 No further actions to be done on the Record: no changes found {"results.tekton.dev/record": "ns/results/12345/records/12345"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.746ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.604Z 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.609ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "54d3b1aa-0cb7-34ab-8d40-ded17a2310fb" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.595ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.617Z 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.639ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "2d28a373-a85e-3136-af08-e81946ee968a" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.621Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:41.622Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/time-taken-ms": 34} logger.go:146: 2025-06-23T12:06:41.625Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:365 Object doesn't match the required label selectors - requeuing to process later {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "1s", "results.tekton.dev/label-selectors": "x=foo"} logger.go:146: 2025-06-23T12:06:41.626Z WARN TestReconcile_TaskRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "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.778ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.632Z 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.627ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.649Z 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.691ms] [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.677ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""labels"":{""x"":""foo""},""annotations"":{""demo"":""demo""}},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-06-23T12:06:41Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-23T12:06:41Z"",""completionTime"":""2025-06-23T12:06:42Z""}}",`created_time`="2025-06-23 12:06:41.1",`updated_time`="2025-06-23 12:06:41.653",`etag`="9ba77ba8-14fe-4b25-8c65-4bcb1f22011f-1750680401653626769" WHERE `parent` = "ns" AND `result_id` = "78ae7aa6-5db5-4768-8e9e-2b08b8d7fb73" AND `id` = "9ba77ba8-14fe-4b25-8c65-4bcb1f22011f" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.543ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.665Z 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.764ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "54d3b1aa-0cb7-34ab-8d40-ded17a2310fb" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.645ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.676Z 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.733ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "2d28a373-a85e-3136-af08-e81946ee968a" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.681Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:41.682Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/time-taken-ms": 35} logger.go:146: 2025-06-23T12:06:41.684Z INFO TestReconcile_TaskRun dynamic/dynamic.go:375 Deleting object {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "1s", "results.tekton.dev/uid": "12345", "results.tekton.dev/time-taken-seconds": -1} logger.go:146: 2025-06-23T12:06:41.684Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:385 Object has been successfully deleted {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "1s", "results.tekton.dev/time-taken-seconds": -1} logger.go:146: 2025-06-23T12:06:41.685Z WARN TestReconcile_TaskRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "namespace": "ns", "kind": "TaskRun", "name": "taskrun"} === RUN TestReconcile_TaskRun/wait_until_the_IsReadyForDeletion_function_returns_true_to_delete_the_object === NAME TestReconcile_TaskRun db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.648ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.690Z 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.604ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.712Z DEBUG TestReconcile_TaskRun results/results.go:322 No further actions to be done on the Record: no changes found {"results.tekton.dev/record": "ns/results/12345/records/12345"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.490ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.716Z 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.727ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "54d3b1aa-0cb7-34ab-8d40-ded17a2310fb" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.620ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.724Z 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 [5.214ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "2d28a373-a85e-3136-af08-e81946ee968a" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.735Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:41.736Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/time-taken-ms": 25} logger.go:146: 2025-06-23T12:06:41.738Z WARN TestReconcile_TaskRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "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.826ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.742Z 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 [1.367ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.766Z DEBUG TestReconcile_TaskRun results/results.go:322 No further actions to be done on the Record: no changes found {"results.tekton.dev/record": "ns/results/12345/records/12345"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.585ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.770Z 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.661ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "54d3b1aa-0cb7-34ab-8d40-ded17a2310fb" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.681ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.780Z 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.660ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "2d28a373-a85e-3136-af08-e81946ee968a" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.785Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:41.785Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/time-taken-ms": 28} logger.go:146: 2025-06-23T12:06:41.787Z WARN TestReconcile_TaskRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "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: 2025-06-23T12:06:41.791Z 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.576ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.814Z 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.631ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217 [30.144ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""labels"":{""x"":""foo""},""annotations"":{""x"":""foo""}},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-06-23T12:06:41Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-23T12:06:41Z"",""completionTime"":""2025-06-23T12:06:42Z""}}",`created_time`="2025-06-23 12:06:41.1",`updated_time`="2025-06-23 12:06:41.816",`etag`="9ba77ba8-14fe-4b25-8c65-4bcb1f22011f-1750680401816634890" WHERE `parent` = "ns" AND `result_id` = "78ae7aa6-5db5-4768-8e9e-2b08b8d7fb73" AND `id` = "9ba77ba8-14fe-4b25-8c65-4bcb1f22011f" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.650ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.896Z 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.721ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "54d3b1aa-0cb7-34ab-8d40-ded17a2310fb" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.631ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.904Z 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.793ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "2d28a373-a85e-3136-af08-e81946ee968a" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.909Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:41.910Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/time-taken-ms": 104} logger.go:146: 2025-06-23T12:06:41.912Z INFO TestReconcile_TaskRun dynamic/dynamic.go:375 Deleting object {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "1s", "results.tekton.dev/uid": "12345", "results.tekton.dev/time-taken-seconds": -1} logger.go:146: 2025-06-23T12:06:41.913Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:385 Object has been successfully deleted {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "1s", "results.tekton.dev/time-taken-seconds": -1} logger.go:146: 2025-06-23T12:06:41.913Z WARN TestReconcile_TaskRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "namespace": "ns", "kind": "TaskRun", "name": "taskrun"} === RUN TestReconcile_TaskRun/delete_object_with_owner_references_when_owner_check_is_disabled === NAME TestReconcile_TaskRun db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [1.118ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.918Z 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 [1.740ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.943Z 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.650ms] [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 [1.603ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""labels"":{""x"":""foo""},""annotations"":{""x"":""foo""},""ownerReferences"":[{""apiVersion"":""v1"",""kind"":""test"",""name"":""test-owner"",""uid"":""""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-06-23T12:06:41Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-23T12:06:41Z"",""completionTime"":""2025-06-23T12:06:42Z""}}",`created_time`="2025-06-23 12:06:41.1",`updated_time`="2025-06-23 12:06:41.945",`etag`="9ba77ba8-14fe-4b25-8c65-4bcb1f22011f-1750680401945908385" WHERE `parent` = "ns" AND `result_id` = "78ae7aa6-5db5-4768-8e9e-2b08b8d7fb73" AND `id` = "9ba77ba8-14fe-4b25-8c65-4bcb1f22011f" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.887ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.965Z 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.676ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "54d3b1aa-0cb7-34ab-8d40-ded17a2310fb" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.763ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.973Z 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.567ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "2d28a373-a85e-3136-af08-e81946ee968a" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.978Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:41.978Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/time-taken-ms": 47} logger.go:146: 2025-06-23T12:06:41.981Z INFO TestReconcile_TaskRun dynamic/dynamic.go:375 Deleting object {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "1s", "results.tekton.dev/uid": "12345", "results.tekton.dev/time-taken-seconds": -1} logger.go:146: 2025-06-23T12:06:41.981Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:385 Object has been successfully deleted {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "1s", "results.tekton.dev/time-taken-seconds": -1} logger.go:146: 2025-06-23T12:06:41.982Z WARN TestReconcile_TaskRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "namespace": "ns", "kind": "TaskRun", "name": "taskrun"} === RUN TestReconcile_TaskRun/do_not_delete_object_with_owner_references_has_PipelineRun_object_and_owner_check_is_disabled === NAME TestReconcile_TaskRun db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.540ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "d4914885-8058-42b9-9102-6287b7384d9c" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.985Z DEBUG TestReconcile_TaskRun results/results.go:188 Result doesn't exist yet - creating {"results.tekton.dev/result": "ns/results/d4914885-8058-42b9-9102-6287b7384d9c", "results.tekton.dev/record": "ns/results/d4914885-8058-42b9-9102-6287b7384d9c/records/12345", "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 [15.891ms] [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","e935eb25-016e-4eed-aa3e-91bd533e9162","d4914885-8058-42b9-9102-6287b7384d9c","null","","",NULL,NULL,0,"null","e935eb25-016e-4eed-aa3e-91bd533e9162-1750680401988685191","2025-06-23 12:06:41.988","2025-06-23 12:06:41.988") 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 [0.481ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "d4914885-8058-42b9-9102-6287b7384d9c" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.008Z DEBUG TestReconcile_TaskRun results/results.go:334 Record doesn't exist yet - creating {"results.tekton.dev/record": "ns/results/d4914885-8058-42b9-9102-6287b7384d9c/records/12345"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.480ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "d4914885-8058-42b9-9102-6287b7384d9c" 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.757ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","e935eb25-016e-4eed-aa3e-91bd533e9162","d4914885-8058-42b9-9102-6287b7384d9c","450adad8-b693-46fc-b9c9-c76f685d5ec4","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"":""d4914885-8058-42b9-9102-6287b7384d9c""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-06-23T12:06:41Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-23T12:06:41Z"",""completionTime"":""2025-06-23T12:06:42Z""}}","450adad8-b693-46fc-b9c9-c76f685d5ec4-1750680402010328130","2025-06-23 12:06:42.01","2025-06-23 12:06:42.01") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.637ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "d4914885-8058-42b9-9102-6287b7384d9c" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.046Z 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/d4914885-8058-42b9-9102-6287b7384d9c", "results.tekton.dev/record": "ns/results/d4914885-8058-42b9-9102-6287b7384d9c/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.469ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "d4914885-8058-42b9-9102-6287b7384d9c" AND `records`.`name` = "04cbe123-51c9-3376-b049-c52db89efb1f" ORDER BY `records`.`id` LIMIT 1 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` = "ns" AND `results`.`name` = "d4914885-8058-42b9-9102-6287b7384d9c" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.051Z 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/d4914885-8058-42b9-9102-6287b7384d9c", "results.tekton.dev/record": "ns/results/d4914885-8058-42b9-9102-6287b7384d9c/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.440ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "d4914885-8058-42b9-9102-6287b7384d9c" AND `records`.`name` = "04cbe123-51c9-3376-b049-c52db89efb1f" 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.376ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "d4914885-8058-42b9-9102-6287b7384d9c" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [7.659ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","e935eb25-016e-4eed-aa3e-91bd533e9162","d4914885-8058-42b9-9102-6287b7384d9c","e17cff8f-4cd9-4188-96bd-d7b6783a9231","04cbe123-51c9-3376-b049-c52db89efb1f","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""ns"",""uid"":""04cbe123-51c9-3376-b049-c52db89efb1f"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""ns"",""name"":""taskrun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","e17cff8f-4cd9-4188-96bd-d7b6783a9231-1750680402055457160","2025-06-23 12:06:42.055","2025-06-23 12:06:42.055") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T12:06:42.066Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:472 Streaming log started {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:42.067Z ERROR TestReconcile_TaskRun dynamic/dynamic.go:480 Error streaming log {"namespace": "ns", "kind": "TaskRun", "name": "taskrun", "error": "failed to create tkn reader: Parsing kubeconfig failed: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable"} logger.go:146: 2025-06-23T12:06:42.068Z 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.700ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "d4914885-8058-42b9-9102-6287b7384d9c" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.071Z 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/d4914885-8058-42b9-9102-6287b7384d9c", "results.tekton.dev/record": "ns/results/d4914885-8058-42b9-9102-6287b7384d9c/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.456ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "d4914885-8058-42b9-9102-6287b7384d9c" AND `records`.`name` = "a5dfbfd3-4827-389b-98d2-30e3e13e7ccb" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.417ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "d4914885-8058-42b9-9102-6287b7384d9c" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.076Z 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/d4914885-8058-42b9-9102-6287b7384d9c", "results.tekton.dev/record": "ns/results/d4914885-8058-42b9-9102-6287b7384d9c/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.426ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "d4914885-8058-42b9-9102-6287b7384d9c" AND `records`.`name` = "a5dfbfd3-4827-389b-98d2-30e3e13e7ccb" 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.461ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "d4914885-8058-42b9-9102-6287b7384d9c" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [28.891ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","e935eb25-016e-4eed-aa3e-91bd533e9162","d4914885-8058-42b9-9102-6287b7384d9c","c0633a77-77ae-44e0-a0a2-911b49f39d18","a5dfbfd3-4827-389b-98d2-30e3e13e7ccb","results.tekton.dev/v1.EventList","{""metadata"":{},""items"":null}","c0633a77-77ae-44e0-a0a2-911b49f39d18-1750680402080589126","2025-06-23 12:06:42.08","2025-06-23 12:06:42.08") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T12:06:42.112Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:42.112Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/d4914885-8058-42b9-9102-6287b7384d9c", "results.tekton.dev/record": "ns/results/d4914885-8058-42b9-9102-6287b7384d9c/records/12345", "results.tekton.dev/time-taken-ms": 61} logger.go:146: 2025-06-23T12:06:42.115Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:334 Resource is owned by a PipelineRun, deferring deletion to parent PipelineRun {"results.tekton.dev/result": "ns/results/d4914885-8058-42b9-9102-6287b7384d9c", "results.tekton.dev/record": "ns/results/d4914885-8058-42b9-9102-6287b7384d9c/records/12345", "results.tekton.dev/gracePeriod": "1s", "tekton.dev/PipelineRun": "test-pipelinerun"} logger.go:146: 2025-06-23T12:06:42.115Z WARN TestReconcile_TaskRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/d4914885-8058-42b9-9102-6287b7384d9c", "results.tekton.dev/record": "ns/results/d4914885-8058-42b9-9102-6287b7384d9c/records/12345", "namespace": "ns", "kind": "TaskRun", "name": "taskrun"} === RUN TestReconcile_TaskRun/do_not_delete_object_with_owner_references_when_owner_check_is_enabled === NAME TestReconcile_TaskRun db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.700ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.118Z 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.608ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.144Z 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.534ms] [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.569ms] [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"":""cd367f01-5689-4e2d-bb8c-3702f7ad192c""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-06-23T12:06:41Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-23T12:06:41Z"",""completionTime"":""2025-06-23T12:06:42Z""}}",`created_time`="2025-06-23 12:06:41.1",`updated_time`="2025-06-23 12:06:42.147",`etag`="9ba77ba8-14fe-4b25-8c65-4bcb1f22011f-1750680402147386873" WHERE `parent` = "ns" AND `result_id` = "78ae7aa6-5db5-4768-8e9e-2b08b8d7fb73" AND `id` = "9ba77ba8-14fe-4b25-8c65-4bcb1f22011f" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.560ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.158Z 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.548ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "54d3b1aa-0cb7-34ab-8d40-ded17a2310fb" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.563ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.165Z 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.514ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "2d28a373-a85e-3136-af08-e81946ee968a" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.169Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T12:06:42.169Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/time-taken-ms": 39} logger.go:146: 2025-06-23T12:06:42.171Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:340 Resource is owned by another object, deferring deletion to parent resource(s) {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "1s", "results.tekton.dev/ownerReferences": [{"apiVersion":"v1","kind":"test","name":"test-owner","uid":"cd367f01-5689-4e2d-bb8c-3702f7ad192c"}]} logger.go:146: 2025-06-23T12:06:42.171Z WARN TestReconcile_TaskRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "namespace": "ns", "kind": "TaskRun", "name": "taskrun"} --- PASS: TestReconcile_TaskRun (9.48s) --- PASS: TestReconcile_TaskRun/disabled_annotations (0.01s) --- PASS: TestReconcile_TaskRun/enabled_annotations (0.09s) --- PASS: TestReconcile_TaskRun/delete_object_once_grace_period_elapses (0.13s) --- PASS: TestReconcile_TaskRun/delete_failed_runs (0.14s) --- PASS: TestReconcile_TaskRun/wait_until_the_object_has_the_desired_labels_to_delete_it (0.12s) --- PASS: TestReconcile_TaskRun/wait_until_the_IsReadyForDeletion_function_returns_true_to_delete_the_object (0.23s) --- PASS: TestReconcile_TaskRun/delete_object_with_owner_references_when_owner_check_is_disabled (0.07s) --- PASS: TestReconcile_TaskRun/do_not_delete_object_with_owner_references_has_PipelineRun_object_and_owner_check_is_disabled (0.13s) --- PASS: TestReconcile_TaskRun/do_not_delete_object_with_owner_references_when_owner_check_is_enabled (0.06s) === RUN TestReconcile_PipelineRun logger.go:146: 2025-06-23T12:06:42.173Z INFO cache/cacheclient.go:42 CACHE CLIENT &{lru:0xc000dbf560 evictedKeys:[] evictedVals:[] onEvictedCB: lock:{w:{state:0 sema:0} writerSem:0 readerSem:0 readerCount:{_:{} v:0} readerWait:{_:{} v:0}}} dynamic_test.go:438: test database: /tmp/testdb320138828 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.028ms] [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.130ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [14.197ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [11.251ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) 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 [8.768ms] [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.940ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680402.2326984,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.410ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.238Z 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 [12.981ms] [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","99108933-b9fc-42ad-8611-29996db6bef5","12345","{""object.metadata.name"":""pipelinerun""}","ns/results/12345/records/12345","tekton.dev/v1.PipelineRun",NULL,"0000-00-00 00:00:00",1,"null","99108933-b9fc-42ad-8611-29996db6bef5-1750680402239537490","2025-06-23 12:06:42.239","2025-06-23 12:06:42.239") 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 [0.516ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.260Z DEBUG TestReconcile_PipelineRun results/results.go:334 Record doesn't exist yet - creating {"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:102 [3.669ms] [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 [8.662ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","99108933-b9fc-42ad-8611-29996db6bef5","12345","15500f00-14c0-40a2-9065-7ba44c5bc718","12345","tekton.dev/v1.PipelineRun","{""kind"":""PipelineRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""pipelinerun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""annotations"":{""demo"":""demo""}},""spec"":{""pipelineSpec"":{""tasks"":[{""name"":""task"",""taskSpec"":{""spec"":null,""metadata"":{},""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}}]},""taskRunTemplate"":{}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""True"",""lastTransitionTime"":null,""reason"":""Succeeded""}]}}","15500f00-14c0-40a2-9065-7ba44c5bc718-1750680402266076866","2025-06-23 12:06:42.266","2025-06-23 12:06:42.266") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.770ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.280Z 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.477ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "87a0b30f-924d-3d1f-a54f-92a856655f86" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.664ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.285Z 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.699ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "87a0b30f-924d-3d1f-a54f-92a856655f86" 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.471ms] [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 [21.471ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","99108933-b9fc-42ad-8611-29996db6bef5","12345","28981b55-5f4d-4500-b199-fd21d18826cf","87a0b30f-924d-3d1f-a54f-92a856655f86","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""pipelinerun-log"",""namespace"":""ns"",""uid"":""87a0b30f-924d-3d1f-a54f-92a856655f86"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""PipelineRun"",""namespace"":""ns"",""name"":""pipelinerun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","28981b55-5f4d-4500-b199-fd21d18826cf-1750680402290581115","2025-06-23 12:06:42.29","2025-06-23 12:06:42.29") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T12:06:42.318Z DEBUG TestReconcile_PipelineRun dynamic/dynamic.go:472 Streaming log started {"namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun"} logger.go:146: 2025-06-23T12:06:42.319Z ERROR TestReconcile_PipelineRun dynamic/dynamic.go:480 Error streaming log {"namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun", "error": "failed to create tkn reader: Parsing kubeconfig failed: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable"} logger.go:146: 2025-06-23T12:06:42.319Z 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.692ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.323Z 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.377ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "72f2ef0b-4a1c-3704-8172-f59eb87d25c5" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.500ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:42.328Z 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.450ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "72f2ef0b-4a1c-3704-8172-f59eb87d25c5" 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.428ms] [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 [28.765ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","99108933-b9fc-42ad-8611-29996db6bef5","12345","2e071c65-27ee-47f8-9ff3-8733febadcab","72f2ef0b-4a1c-3704-8172-f59eb87d25c5","results.tekton.dev/v1.EventList","{""metadata"":{},""items"":null}","2e071c65-27ee-47f8-9ff3-8733febadcab-1750680402332208634","2025-06-23 12:06:42.332","2025-06-23 12:06:42.332") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T12:06:42.364Z DEBUG TestReconcile_PipelineRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun"} logger.go:146: 2025-06-23T12:06:42.366Z DEBUG TestReconcile_PipelineRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/time-taken-ms": 40} logger.go:146: 2025-06-23T12:06:42.368Z INFO TestReconcile_PipelineRun dynamic/dynamic.go:319 Skipping resource deletion: deletion is disabled {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/gracePeriod": "0s"} logger.go:146: 2025-06-23T12:06:42.369Z WARN TestReconcile_PipelineRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun"} === RUN TestReconcile_PipelineRun/Result === NAME TestReconcile_PipelineRun db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.734ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 === RUN TestReconcile_PipelineRun/Record === NAME TestReconcile_PipelineRun db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.576ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 === RUN TestReconcile_PipelineRun/Log === NAME TestReconcile_PipelineRun db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.648ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "87a0b30f-924d-3d1f-a54f-92a856655f86" ORDER BY `records`.`id` LIMIT 1 === RUN TestReconcile_PipelineRun/EventList === NAME TestReconcile_PipelineRun db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.663ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "72f2ef0b-4a1c-3704-8172-f59eb87d25c5" ORDER BY `records`.`id` LIMIT 1 --- PASS: TestReconcile_PipelineRun (0.21s) --- PASS: TestReconcile_PipelineRun/Result (0.00s) --- PASS: TestReconcile_PipelineRun/Record (0.00s) --- PASS: TestReconcile_PipelineRun/Log (0.00s) --- PASS: TestReconcile_PipelineRun/EventList (0.00s) PASS ok github.com/tektoncd/results/pkg/watcher/reconciler/dynamic 11.258s === RUN TestAreAllUnderlyingTaskRunsReadyForDeletion === RUN TestAreAllUnderlyingTaskRunsReadyForDeletion/all_underlying_TaskRuns_are_ready_to_be_deleted === RUN TestAreAllUnderlyingTaskRunsReadyForDeletion/one_TaskRun_is_ready_to_be_deleted_whereas_the_other_is_not logger.go:146: 2025-06-23T12:06:32.738Z DEBUG TaskRun default/bar associated with PipelineRun isn't yet ready to be deleted - the annotation results.tekton.dev/childReadyForDeletion is missing === RUN TestAreAllUnderlyingTaskRunsReadyForDeletion/consider_that_missing_TaskRuns_can_be_deleted logger.go:146: 2025-06-23T12:06:32.738Z DEBUG TaskRun default/baz associated with PipelineRun is no longer available. Skipping. --- PASS: TestAreAllUnderlyingTaskRunsReadyForDeletion (0.00s) --- PASS: TestAreAllUnderlyingTaskRunsReadyForDeletion/all_underlying_TaskRuns_are_ready_to_be_deleted (0.00s) --- PASS: TestAreAllUnderlyingTaskRunsReadyForDeletion/one_TaskRun_is_ready_to_be_deleted_whereas_the_other_is_not (0.00s) --- PASS: TestAreAllUnderlyingTaskRunsReadyForDeletion/consider_that_missing_TaskRuns_can_be_deleted (0.00s) === RUN TestFinalize === RUN TestFinalize/pipelinerun_still_running_-_skip_finalization logger.go:146: 2025-06-23T12:06:32.739Z DEBUG pipelinerun test-ns/test-pr is still running === RUN TestFinalize/store_deadline_passed_-_proceed_with_deletion logger.go:146: 2025-06-23T12:06:32.739Z DEBUG store deadline: 2025-06-23 11:06:32.739299792 +0000 UTC now: 2025-06-23 12:06:32.739773657 +0000 UTC, completion time: 2025-06-23 10:06:32.739299792 +0000 UTC logger.go:146: 2025-06-23T12:06:32.739Z DEBUG store deadline has passed for pipelinerun test-ns/test-pr logger.go:146: 2025-06-23T12:06:32.740Z ERROR pipelinerun not stored: test-ns/test-pr, uid: , === RUN TestFinalize/missing_annotations_-_requeue logger.go:146: 2025-06-23T12:06:32.740Z DEBUG pipelinerun test-ns/test-pr annotations are missing, now: 2025-06-23 12:06:32.740313595 +0000 UTC, storeDeadline: 2025-06-23 13:06:32.739300842 +0000 UTC === RUN TestFinalize/stored_annotation_missing_-_requeue logger.go:146: 2025-06-23T12:06:32.740Z DEBUG stored annotation is missing on pipelinerun test-ns/test-pr, now: 2025-06-23 12:06:32.740680982 +0000 UTC, storeDeadline: 2025-06-23 13:06:32.73930132 +0000 UTC === RUN TestFinalize/stored_annotation_not_true_-_requeue logger.go:146: 2025-06-23T12:06:32.741Z DEBUG stored annotation is not true on pipelinerun test-ns/test-pr, now: 2025-06-23 12:06:32.741009694 +0000 UTC, storeDeadline: 2025-06-23 13:06:32.739301624 +0000 UTC === RUN TestFinalize/reconcile_error_-_requeue logger.go:146: 2025-06-23T12:06:32.741Z DEBUG stored annotation is not true on pipelinerun test-ns/test-pr, now: 2025-06-23 12:06:32.7413301 +0000 UTC, storeDeadline: 2025-06-23 13:06:32.739302311 +0000 UTC === RUN TestFinalize/successful_finalization === RUN TestFinalize/verify_finalizer_requeue_interval logger.go:146: 2025-06-23T12:06:32.741Z DEBUG pipelinerun test-ns/test-pr annotations are missing, now: 0001-01-01 00:00:00 +0000 UTC, storeDeadline: 0001-01-01 00:00:00 +0000 UTC --- PASS: TestFinalize (0.00s) --- PASS: TestFinalize/pipelinerun_still_running_-_skip_finalization (0.00s) --- PASS: TestFinalize/store_deadline_passed_-_proceed_with_deletion (0.00s) --- PASS: TestFinalize/missing_annotations_-_requeue (0.00s) --- PASS: TestFinalize/stored_annotation_missing_-_requeue (0.00s) --- PASS: TestFinalize/stored_annotation_not_true_-_requeue (0.00s) --- PASS: TestFinalize/reconcile_error_-_requeue (0.00s) --- PASS: TestFinalize/successful_finalization (0.00s) --- PASS: TestFinalize/verify_finalizer_requeue_interval (0.00s) PASS ok github.com/tektoncd/results/pkg/watcher/reconciler/pipelinerun 1.603s === RUN TestFinalize === RUN TestFinalize/taskrun_still_running_-_skip_finalization logger.go:146: 2025-06-23T12:06:32.679Z DEBUG taskrun test-ns/test-pr is still running === RUN TestFinalize/store_deadline_passed_-_proceed_with_deletion logger.go:146: 2025-06-23T12:06:32.679Z DEBUG store deadline: 2025-06-23 11:06:32.678890589 +0000 UTC now: 2025-06-23 12:06:32.679498462 +0000 UTC, completion time: 2025-06-23 10:06:32.678890589 +0000 UTC logger.go:146: 2025-06-23T12:06:32.679Z DEBUG store deadline has passed for taskrun test-ns/test-pr logger.go:146: 2025-06-23T12:06:32.679Z ERROR taskrun not stored: test-ns/test-pr, uid: , === RUN TestFinalize/missing_annotations_-_requeue logger.go:146: 2025-06-23T12:06:32.679Z DEBUG taskrun test-ns/test-pr annotations are missing, now: 2025-06-23 12:06:32.679893381 +0000 UTC, storeDeadline: 2025-06-23 13:06:32.678891078 +0000 UTC === RUN TestFinalize/stored_annotation_missing_-_requeue logger.go:146: 2025-06-23T12:06:32.680Z DEBUG stored annotation is missing on taskrun test-ns/test-pr, now: 2025-06-23 12:06:32.68013199 +0000 UTC, storeDeadline: 2025-06-23 13:06:32.678891444 +0000 UTC === RUN TestFinalize/stored_annotation_not_true_-_requeue logger.go:146: 2025-06-23T12:06:32.680Z DEBUG stored annotation is not true on taskrun test-ns/test-pr, now: 2025-06-23 12:06:32.680413212 +0000 UTC, storeDeadline: 2025-06-23 13:06:32.678892312 +0000 UTC === RUN TestFinalize/reconcile_error_-_requeue logger.go:146: 2025-06-23T12:06:32.680Z DEBUG stored annotation is not true on taskrun test-ns/test-pr, now: 2025-06-23 12:06:32.680631943 +0000 UTC, storeDeadline: 2025-06-23 13:06:32.67889258 +0000 UTC === RUN TestFinalize/successful_finalization === RUN TestFinalize/verify_finalizer_requeue_interval logger.go:146: 2025-06-23T12:06:32.681Z DEBUG taskrun test-ns/test-pr annotations are missing, now: 2025-06-23 12:06:32.680980713 +0000 UTC, storeDeadline: 0001-01-01 00:00:00 +0000 UTC --- PASS: TestFinalize (0.00s) --- PASS: TestFinalize/taskrun_still_running_-_skip_finalization (0.00s) --- PASS: TestFinalize/store_deadline_passed_-_proceed_with_deletion (0.00s) --- PASS: TestFinalize/missing_annotations_-_requeue (0.00s) --- PASS: TestFinalize/stored_annotation_missing_-_requeue (0.00s) --- PASS: TestFinalize/stored_annotation_not_true_-_requeue (0.00s) --- PASS: TestFinalize/reconcile_error_-_requeue (0.00s) --- PASS: TestFinalize/successful_finalization (0.00s) --- PASS: TestFinalize/verify_finalizer_requeue_interval (0.00s) PASS ok github.com/tektoncd/results/pkg/watcher/reconciler/taskrun 1.542s === RUN TestClient_PutLog logs_test.go:15: test database: /tmp/testdb1148840887 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.037ms] [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" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [8350.326ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [155.109ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.122ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [32.079ms] [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 [30.316ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680400.9239533,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} === 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.454ms] [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 [104.430ms] [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","b4c33dc1-7151-40dd-8a69-efbc5c2d6e25","taskrun-id","{""object.metadata.name"":""taskrun""}","test/results/taskrun-id/records/taskrun-id","tekton.dev/v1.TaskRun",NULL,NULL,0,"null","b4c33dc1-7151-40dd-8a69-efbc5c2d6e25-1750680400936652091","2025-06-23 12:06:40.936","2025-06-23 12:06:40.936") 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 [0.908ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "160dfd28-cac3-3af0-b4ea-115b91a8429f" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [3.712ms] [rows:1] SELECT `results`.`name`,`results`.`id` 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/records.go:82 [38.353ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","b4c33dc1-7151-40dd-8a69-efbc5c2d6e25","taskrun-id","4cb83a91-2178-4f58-8235-d7a93d31bf6c","160dfd28-cac3-3af0-b4ea-115b91a8429f","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""test"",""uid"":""160dfd28-cac3-3af0-b4ea-115b91a8429f"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""test"",""name"":""taskrun"",""uid"":""taskrun-id""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","4cb83a91-2178-4f58-8235-d7a93d31bf6c-1750680401053512523","2025-06-23 12:06:41.053","2025-06-23 12:06:41.053") RETURNING `created_time`,`updated_time` === RUN TestClient_PutLog/taskrun/update === NAME TestClient_PutLog db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.837ms] [rows:1] 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/records.go:135 [0.784ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "160dfd28-cac3-3af0-b4ea-115b91a8429f" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.669ms] [rows:1] 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/records.go:135 [0.589ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "160dfd28-cac3-3af0-b4ea-115b91a8429f" ORDER BY `records`.`id` LIMIT 1 === RUN TestClient_PutLog/pipelinerun === RUN TestClient_PutLog/pipelinerun/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.473ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "pipelinerun-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 [17.891ms] [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","6902aa1f-a95d-44bf-83cf-63f8cd0a466a","pipelinerun-id","{""object.metadata.name"":""pipelinerun""}","test/results/pipelinerun-id/records/pipelinerun-id","tekton.dev/v1.PipelineRun",NULL,NULL,0,"null","6902aa1f-a95d-44bf-83cf-63f8cd0a466a-1750680401118358282","2025-06-23 12:06:41.118","2025-06-23 12:06:41.118") 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 [0.549ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "1e05a207-4cc3-3183-980f-ce17cb9a3f2f" 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.885ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "pipelinerun-id" 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.313ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","6902aa1f-a95d-44bf-83cf-63f8cd0a466a","pipelinerun-id","8c3e3373-565c-41cf-a74c-f0568c57bcd9","1e05a207-4cc3-3183-980f-ce17cb9a3f2f","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""pipelinerun-log"",""namespace"":""test"",""uid"":""1e05a207-4cc3-3183-980f-ce17cb9a3f2f"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""PipelineRun"",""namespace"":""test"",""name"":""pipelinerun"",""uid"":""pipelinerun-id""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","8c3e3373-565c-41cf-a74c-f0568c57bcd9-1750680401146021922","2025-06-23 12:06:41.146","2025-06-23 12:06:41.146") RETURNING `created_time`,`updated_time` === RUN TestClient_PutLog/pipelinerun/update === NAME TestClient_PutLog db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.961ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "pipelinerun-id" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.156ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "1e05a207-4cc3-3183-980f-ce17cb9a3f2f" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.689ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "pipelinerun-id" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.629ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "1e05a207-4cc3-3183-980f-ce17cb9a3f2f" ORDER BY `records`.`id` LIMIT 1 --- PASS: TestClient_PutLog (8.85s) --- PASS: TestClient_PutLog/taskrun (0.18s) --- PASS: TestClient_PutLog/taskrun/create (0.16s) --- PASS: TestClient_PutLog/taskrun/update (0.01s) --- PASS: TestClient_PutLog/pipelinerun (0.07s) --- PASS: TestClient_PutLog/pipelinerun/create (0.05s) --- PASS: TestClient_PutLog/pipelinerun/update (0.01s) === RUN TestDefaultName === RUN TestDefaultName/*v1.TaskRun === RUN TestDefaultName/*v1.PipelineRun --- PASS: TestDefaultName (0.00s) --- PASS: TestDefaultName/*v1.TaskRun (0.00s) --- PASS: TestDefaultName/*v1.PipelineRun (0.00s) === RUN TestResultName === RUN TestResultName/object_name === RUN TestResultName/pipeline_run === RUN TestResultName/trigger_event === RUN TestResultName/result --- PASS: TestResultName (0.00s) --- PASS: TestResultName/object_name (0.00s) --- PASS: TestResultName/pipeline_run (0.00s) --- PASS: TestResultName/trigger_event (0.00s) --- PASS: TestResultName/result (0.00s) === RUN TestRecordName === RUN TestRecordName/derive_the_record_name_from_the_parent_name_and_the_record's_default_name === RUN TestRecordName/read_the_record_name_from_the_record_annotation === RUN TestRecordName/do_not_read_the_record_annotation_if_the_object_is_owned_by_another_object --- PASS: TestRecordName (0.00s) --- PASS: TestRecordName/derive_the_record_name_from_the_parent_name_and_the_record's_default_name (0.00s) --- PASS: TestRecordName/read_the_record_name_from_the_record_annotation (0.00s) --- PASS: TestRecordName/do_not_read_the_record_annotation_if_the_object_is_owned_by_another_object (0.00s) === RUN TestParentName === RUN TestParentName/default_to_the_object's_namespace_when_the_results_annotation_is_unset === RUN TestParentName/extract_the_parent_name_from_the_result_annotation --- PASS: TestParentName (0.00s) --- PASS: TestParentName/default_to_the_object's_namespace_when_the_results_annotation_is_unset (0.00s) --- PASS: TestParentName/extract_the_parent_name_from_the_result_annotation (0.00s) === RUN TestEnsureResult results_test.go:236: test database: /tmp/testdb3927771181 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.044ms] [rows:0] PRAGMA foreign_keys = ON; db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.148ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [21.517ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [18.880ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.130ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [22.935ms] [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.731ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680401.2961257,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.441ms] [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.352ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.305Z DEBUG results/results.go:188 Result doesn't exist yet - creating {"results.tekton.dev/result": "test/results/taskrun-id", "results.tekton.dev/record": "test/results/taskrun-id/records/taskrun-id", "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 [22.008ms] [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","5826b0ff-af8d-426b-b7e5-03351acb1cf0","taskrun-id","{""object.metadata.name"":""foo""}","test/results/taskrun-id/records/taskrun-id","tekton.dev/v1.TaskRun",NULL,NULL,0,"null","5826b0ff-af8d-426b-b7e5-03351acb1cf0-1750680401306338731","2025-06-23 12:06:41.306","2025-06-23 12:06:41.306") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.730ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.344Z DEBUG results/results.go:210 No further actions to be done on the Result: no differences found {"results.tekton.dev/result": "test/results/taskrun-id", "results.tekton.dev/record": "test/results/taskrun-id/records/taskrun-id", "results.tekton.dev/top-level-record": true} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.334ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "pipelinerun-id" ORDER BY `results`.`id` LIMIT 1 === RUN TestEnsureResult/foo#01 === NAME TestEnsureResult db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.544ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "pipelinerun-id" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.353Z DEBUG results/results.go:188 Result doesn't exist yet - creating {"results.tekton.dev/result": "test/results/pipelinerun-id", "results.tekton.dev/record": "test/results/pipelinerun-id/records/pipelinerun-id", "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 [42.471ms] [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","f2cb8e81-0452-46eb-ba10-3383fb60140d","pipelinerun-id","{""object.metadata.name"":""foo""}","test/results/pipelinerun-id/records/pipelinerun-id","tekton.dev/v1.PipelineRun",NULL,NULL,0,"null","f2cb8e81-0452-46eb-ba10-3383fb60140d-1750680401354398850","2025-06-23 12:06:41.354","2025-06-23 12:06:41.354") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [2.115ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "pipelinerun-id" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.407Z DEBUG results/results.go:210 No further actions to be done on the Result: no differences found {"results.tekton.dev/result": "test/results/pipelinerun-id", "results.tekton.dev/record": "test/results/pipelinerun-id/records/pipelinerun-id", "results.tekton.dev/top-level-record": true} --- PASS: TestEnsureResult (0.23s) --- PASS: TestEnsureResult/foo (0.04s) --- PASS: TestEnsureResult/foo#01 (0.06s) === RUN TestEnsureResult_RecordSummaryUpdate results_test.go:305: test database: /tmp/testdb715171692 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.057ms] [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.168ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [32.231ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [19.830ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.132ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [15.172ms] [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.232ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680401.5518608,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.425ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "default" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.559Z 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 [26.259ms] [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","8178c9cb-4289-4032-b3e1-3a762f6f5209","1","null","","",NULL,NULL,0,"null","8178c9cb-4289-4032-b3e1-3a762f6f5209-1750680401560830691","2025-06-23 12:06:41.56","2025-06-23 12:06:41.56") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.771ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "default" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.898ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "default" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:140 [0.782ms] [rows:1] UPDATE `results` SET `name`="1",`annotations`="{""object.metadata.name"":""foo""}",`created_time`="2025-06-23 12:06:41.56",`updated_time`="2025-06-23 12:06:41.598",`recordsummary_record`="default/results/1/records/1",`recordsummary_type`="tekton.dev/v1.PipelineRun",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="8178c9cb-4289-4032-b3e1-3a762f6f5209-1750680401598665216" WHERE `parent` = "default" AND `id` = "8178c9cb-4289-4032-b3e1-3a762f6f5209" --- PASS: TestEnsureResult_RecordSummaryUpdate (0.22s) === RUN TestAnnotations results_test.go:353: test database: /tmp/testdb619387954 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.044ms] [rows:0] PRAGMA foreign_keys = ON; db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.132ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [9.368ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [22.205ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.130ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [7.566ms] [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 [10.959ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680401.7057447,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.933ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "default" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T12:06:41.711Z 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 [12.098ms] [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","ac5a4208-2dc9-4950-bcc6-c8fa4cb6282e","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""}","ac5a4208-2dc9-4950-bcc6-c8fa4cb6282e-1750680401713169515","2025-06-23 12:06:41.713","2025-06-23 12:06:41.713") RETURNING `created_time`,`updated_time` --- PASS: TestAnnotations (0.09s) === RUN TestUpsertRecord results_test.go:387: test database: /tmp/testdb425190094 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.085ms] [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.133ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [96.993ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [15.979ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.135ms] [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 [14.355ms] [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.143ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680401.9260218,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} === 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.486ms] [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 [9.543ms] [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","25610904-2c0a-4cff-9d15-7cf6436ca4f9","taskrun-id","{""object.metadata.name"":""taskrun""}","test/results/taskrun-id/records/taskrun-id","tekton.dev/v1.TaskRun",NULL,NULL,0,"null","25610904-2c0a-4cff-9d15-7cf6436ca4f9-1750680401935655765","2025-06-23 12:06:41.935","2025-06-23 12:06:41.935") 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 [0.436ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "taskrun-id" ORDER BY `records`.`id` LIMIT 1 === RUN TestUpsertRecord/taskrun/create === NAME TestUpsertRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.500ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "taskrun-id" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [3.041ms] [rows:1] SELECT `results`.`name`,`results`.`id` 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/records.go:82 [12.763ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","25610904-2c0a-4cff-9d15-7cf6436ca4f9","taskrun-id","e60cac2e-e0fd-442f-83c5-78f56fc7b286","taskrun-id","tekton.dev/v1.TaskRun","{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""test"",""uid"":""taskrun-id"",""generation"":1,""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":"""",""results"":[{""name"":""result1"",""value"":""value1""}]}}","e60cac2e-e0fd-442f-83c5-78f56fc7b286-1750680401973121758","2025-06-23 12:06:41.973","2025-06-23 12:06:41.973") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.915ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "taskrun-id" ORDER BY `records`.`id` LIMIT 1 === RUN TestUpsertRecord/taskrun/no-op === NAME TestUpsertRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.733ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "taskrun-id" ORDER BY `records`.`id` LIMIT 1 === RUN TestUpsertRecord/taskrun/update === NAME TestUpsertRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.663ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "taskrun-id" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.589ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "taskrun-id" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:217 [9.261ms] [rows:1] UPDATE `records` SET `result_name`="taskrun-id",`name`="taskrun-id",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""test"",""uid"":""taskrun-id"",""generation"":1,""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":"""",""results"":[{""name"":""result1"",""value"":""value1-updated""}]}}",`created_time`="2025-06-23 12:06:41.973",`updated_time`="2025-06-23 12:06:42.096",`etag`="e60cac2e-e0fd-442f-83c5-78f56fc7b286-1750680402096203755" WHERE `parent` = "test" AND `result_id` = "25610904-2c0a-4cff-9d15-7cf6436ca4f9" AND `id` = "e60cac2e-e0fd-442f-83c5-78f56fc7b286" === RUN TestUpsertRecord/pipelinerun === NAME TestUpsertRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.406ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "pipelinerun-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 [17.936ms] [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","4e58ba7f-112a-4167-8352-d61c16af2cae","pipelinerun-id","{""object.metadata.name"":""pipelinerun""}","test/results/pipelinerun-id/records/pipelinerun-id","tekton.dev/v1.PipelineRun",NULL,NULL,0,"null","4e58ba7f-112a-4167-8352-d61c16af2cae-1750680402129206402","2025-06-23 12:06:42.129","2025-06-23 12:06:42.129") 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 [0.480ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "pipelinerun-id" ORDER BY `records`.`id` LIMIT 1 === RUN TestUpsertRecord/pipelinerun/create === NAME TestUpsertRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.485ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "pipelinerun-id" 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.479ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "pipelinerun-id" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [10.715ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","4e58ba7f-112a-4167-8352-d61c16af2cae","pipelinerun-id","b90082e7-7438-429d-b1b2-a5160c877a43","pipelinerun-id","tekton.dev/v1.PipelineRun","{""kind"":""PipelineRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""pipelinerun"",""namespace"":""test"",""uid"":""pipelinerun-id"",""generation"":1,""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{""results"":[{""name"":""result1"",""value"":""value1""}]}}","b90082e7-7438-429d-b1b2-a5160c877a43-1750680402157364508","2025-06-23 12:06:42.157","2025-06-23 12:06:42.157") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.733ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "pipelinerun-id" ORDER BY `records`.`id` LIMIT 1 === RUN TestUpsertRecord/pipelinerun/no-op === NAME TestUpsertRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.862ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "pipelinerun-id" ORDER BY `records`.`id` LIMIT 1 === RUN TestUpsertRecord/pipelinerun/update === NAME TestUpsertRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.664ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "pipelinerun-id" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.670ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "pipelinerun-id" 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.628ms] [rows:1] UPDATE `records` SET `result_name`="pipelinerun-id",`name`="pipelinerun-id",`type`="tekton.dev/v1.PipelineRun",`data`="{""kind"":""PipelineRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""pipelinerun"",""namespace"":""test"",""uid"":""pipelinerun-id"",""generation"":1,""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{""results"":[{""name"":""result1"",""value"":""value1-update""}]}}",`created_time`="2025-06-23 12:06:42.157",`updated_time`="2025-06-23 12:06:42.255",`etag`="b90082e7-7438-429d-b1b2-a5160c877a43-1750680402255368043" WHERE `parent` = "test" AND `result_id` = "4e58ba7f-112a-4167-8352-d61c16af2cae" AND `id` = "b90082e7-7438-429d-b1b2-a5160c877a43" --- PASS: TestUpsertRecord (0.55s) --- PASS: TestUpsertRecord/taskrun (0.19s) --- PASS: TestUpsertRecord/taskrun/create (0.10s) --- PASS: TestUpsertRecord/taskrun/no-op (0.03s) --- PASS: TestUpsertRecord/taskrun/update (0.04s) --- PASS: TestUpsertRecord/pipelinerun (0.15s) --- PASS: TestUpsertRecord/pipelinerun/create (0.06s) --- PASS: TestUpsertRecord/pipelinerun/no-op (0.02s) --- PASS: TestUpsertRecord/pipelinerun/update (0.03s) === RUN TestPut results_test.go:557: test database: /tmp/testdb1607085685 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.046ms] [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.199ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [14.457ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [7.449ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.117ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [7.106ms] [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 [35.049ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750680402.3654017,"caller":"plugin/plugin_logs.go:720","msg":"Plugin Logs API Disable: unsupported type of logs given for plugin, legacy logging system might work"} === 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 [0.395ms] [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.877ms] [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","8c3bcb7c-d7d1-475a-901a-7a51e763966a","taskrun-id","{""object.metadata.name"":""taskrun""}","test/results/taskrun-id/records/taskrun-id","tekton.dev/v1.TaskRun",NULL,NULL,0,"null","8c3bcb7c-d7d1-475a-901a-7a51e763966a-1750680402371950743","2025-06-23 12:06:42.371","2025-06-23 12:06:42.371") 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 [1.319ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "taskrun-id" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.207ms] [rows:1] SELECT `results`.`name`,`results`.`id` 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/records.go:82 [6.411ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","8c3bcb7c-d7d1-475a-901a-7a51e763966a","taskrun-id","dacf1b65-a6fe-4826-8ce2-59681d2819dc","taskrun-id","tekton.dev/v1.TaskRun","{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""test"",""uid"":""taskrun-id"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","dacf1b65-a6fe-4826-8ce2-59681d2819dc-1750680402388420505","2025-06-23 12:06:42.388","2025-06-23 12:06:42.388") RETURNING `created_time`,`updated_time` === RUN TestPut/taskrun/update === NAME TestPut db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.772ms] [rows:1] 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/records.go:135 [0.629ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "taskrun-id" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.700ms] [rows:1] 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/records.go:135 [0.796ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "taskrun-id" ORDER BY `records`.`id` LIMIT 1 === RUN TestPut/pipelinerun === RUN TestPut/pipelinerun/create === NAME TestPut db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.312ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "pipelinerun-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 [6.960ms] [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","c87650f9-d137-4bdc-9005-e814b907d40e","pipelinerun-id","{""object.metadata.name"":""pipelinerun""}","test/results/pipelinerun-id/records/pipelinerun-id","tekton.dev/v1.PipelineRun",NULL,NULL,0,"null","c87650f9-d137-4bdc-9005-e814b907d40e-1750680402418632922","2025-06-23 12:06:42.418","2025-06-23 12:06:42.418") 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 [0.447ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "pipelinerun-id" 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.379ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "pipelinerun-id" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [8.135ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","c87650f9-d137-4bdc-9005-e814b907d40e","pipelinerun-id","12cbe828-d77b-447e-b1df-ca9ff8a2ba2e","pipelinerun-id","tekton.dev/v1.PipelineRun","{""kind"":""PipelineRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""pipelinerun"",""namespace"":""test"",""uid"":""pipelinerun-id"",""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{}}","12cbe828-d77b-447e-b1df-ca9ff8a2ba2e-1750680402430099479","2025-06-23 12:06:42.43","2025-06-23 12:06:42.43") RETURNING `created_time`,`updated_time` === RUN TestPut/pipelinerun/update === NAME TestPut db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.486ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "pipelinerun-id" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.588ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "pipelinerun-id" ORDER BY `records`.`id` LIMIT 1 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` = "test" AND `results`.`name` = "pipelinerun-id" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.551ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "pipelinerun-id" ORDER BY `records`.`id` LIMIT 1 --- PASS: TestPut (0.18s) --- PASS: TestPut/taskrun (0.05s) --- PASS: TestPut/taskrun/create (0.03s) --- PASS: TestPut/taskrun/update (0.01s) --- PASS: TestPut/pipelinerun (0.04s) --- PASS: TestPut/pipelinerun/create (0.02s) --- PASS: TestPut/pipelinerun/update (0.01s) PASS ok github.com/tektoncd/results/pkg/watcher/results 11.353s testing: warning: no tests to run PASS ok github.com/tektoncd/results/tools/postgres-migrate 1.077s [no tests to run] FAIL unit_tests returning =========================== ==== UNIT TESTS FAILED ==== =========================== + EXIT_VALUE=1 + set +o xtrace