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 179edb49efe024784476aa46234269b70112a1e7: pkg/cli/dev/cmd/records/get.go pkg/cli/dev/cmd/result/describe.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 09:57:07 maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined === RUN Test_determineAuth === RUN Test_determineAuth/missing_token === RUN Test_determineAuth/invalid_token === RUN Test_determineAuth/valid_token --- PASS: Test_determineAuth (0.00s) --- PASS: Test_determineAuth/missing_token (0.00s) --- PASS: Test_determineAuth/invalid_token (0.00s) --- PASS: Test_determineAuth/valid_token (0.00s) PASS ok github.com/tektoncd/results/cmd/api 1.187s ? 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.01s) === 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.059s === 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.04s) --- PASS: TestParseFilter/success (0.03s) --- PASS: TestParseFilter/success/#00 (0.00s) --- PASS: TestParseFilter/success/result (0.01s) --- PASS: TestParseFilter/success/result.id (0.00s) --- PASS: TestParseFilter/success/result.id_==_"1" (0.00s) --- PASS: TestParseFilter/success/result.id_==_"1"_||_result.name_==_"2" (0.00s) --- PASS: TestParseFilter/success/result.id.startsWith("tacocat") (0.00s) --- PASS: TestParseFilter/error (0.00s) --- PASS: TestParseFilter/error/asdf (0.00s) --- PASS: TestParseFilter/error/result.id_==_1 (0.00s) --- PASS: TestParseFilter/error/result.ID (0.00s) PASS ok github.com/tektoncd/results/pkg/api/server/cel 1.082s === 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.07s) --- 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.00s) --- PASS: TestConvertRecordExpressions/type_coercion_with_a_dyn_expression_in_the_right_hand_side (0.00s) --- PASS: TestConvertRecordExpressions/in_operator (0.00s) --- PASS: TestConvertRecordExpressions/index_operator (0.00s) --- PASS: TestConvertRecordExpressions/concatenate_strings (0.00s) --- PASS: TestConvertRecordExpressions/multiple_concatenate_strings (0.00s) --- PASS: TestConvertRecordExpressions/contains_string_function (0.00s) --- PASS: TestConvertRecordExpressions/not_contains_string_function (0.00s) --- PASS: TestConvertRecordExpressions/complex_not_expressions (0.00s) --- PASS: TestConvertRecordExpressions/endsWith_string_function (0.00s) --- PASS: TestConvertRecordExpressions/getDate_function (0.00s) --- PASS: TestConvertRecordExpressions/getDayOfMonth_function (0.00s) --- PASS: TestConvertRecordExpressions/getDayOfWeek_function (0.00s) --- PASS: TestConvertRecordExpressions/getDayOfYear_function (0.00s) --- PASS: TestConvertRecordExpressions/getFullYear_function (0.00s) --- 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.00s) --- PASS: TestConvertRecordExpressions/index_operator_with_string_argument_in_JSON_object (0.00s) --- PASS: TestConvertRecordExpressions/complex_expression_with_subgroups (0.00s) --- PASS: TestConvertRecordExpressions/complex_expression_involving_multiple_subgroups_and_operators (0.00s) === 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.171s === RUN TestAnnotationsScan --- PASS: TestAnnotationsScan (0.00s) === RUN TestAnnotationsValue --- PASS: TestAnnotationsValue (0.00s) PASS ok github.com/tektoncd/results/pkg/api/server/db 1.033s ? 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.023s === 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.027s ? 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/testdb1130914099 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.033ms] [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.209ms] [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.129ms] [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 [4.411ms] [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.116ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [5.209ms] [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.813ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672676.2637393,"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 [4.840ms] [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-1750672676179859647","2025-06-23 09:57:56.179","2025-06-23 09:57:56.179") RETURNING `created_time`,`updated_time` logs_test.go:113: test log file: /tmp/test-log-taskrun-3149166367.log db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.584ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [5.029ms] [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-3149166367.log"",""size"":1024,""isStored"":true,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","2-1750672676179859647","2025-06-23 09:57:56.179","2025-06-23 09:57:56.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.468ms] [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.10s) === RUN TestGetLogV2 logs_test.go:171: test database: /tmp/testdb1229135140 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.030ms] [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.095ms] [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 [5.134ms] [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 [4.866ms] [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.091ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [5.021ms] [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 [4.254ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672676.3140128,"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 [5.109ms] [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-1750672676179859647","2025-06-23 09:57:56.179","2025-06-23 09:57:56.179") RETURNING `created_time`,`updated_time` logs_test.go:191: test log file: /tmp/test-log-taskrun-2058771724.log db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.601ms] [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 [5.069ms] [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-2058771724.log"",""size"":1024,""isStored"":true,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","4-1750672676179859647","2025-06-23 09:57:56.179","2025-06-23 09:57:56.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.461ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 --- PASS: TestGetLogV2 (0.05s) === RUN TestUpdateLog logs_test.go:254: test database: /tmp/testdb1476173256 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.106ms] [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 [4.784ms] [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 [4.580ms] [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.082ms] [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.002ms] [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 [3.990ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672676.365334,"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 [5.181ms] [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-1750672676179859647","2025-06-23 09:57:56.179","2025-06-23 09:57:56.179") RETURNING `created_time`,`updated_time` logs_test.go:268: test storage directory: /tmp/test-logs-2578554158 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.483ms] [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 [5.792ms] [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-2578554158/test-uid/task-run.log"",""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","6-1750672676179859647","2025-06-23 09:57:56.179","2025-06-23 09:57:56.179") 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 [0.459ms] [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 [0.381ms] [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 [0.395ms] [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-2578554158/test-uid/task-run.log"",""size"":36,""isStored"":true,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}",`created_time`="2025-06-23 09:57:56.179",`updated_time`="2025-06-23 09:57:56.179",`etag`="6-1750672676179859647" WHERE `parent` = "foo" AND `result_id` = "5" AND `id` = "6" --- PASS: TestUpdateLog (0.06s) === RUN TestListLogs logs_test.go:333: test database: /tmp/testdb4012603963 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.031ms] [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.108ms] [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.134ms] [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 [4.842ms] [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.110ms] [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 [4.508ms] [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 [4.399ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672676.4445195,"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 [5.214ms] [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-1750672676179859647","2025-06-23 09:57:56.179","2025-06-23 09:57:56.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.563ms] [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 [5.207ms] [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-1750672677179859647","2025-06-23 09:57:57.179","2025-06-23 09:57:57.179") 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-1750672677179859647" created_time:{seconds:1750672677 nanos:179859647} create_time:{seconds:1750672677 nanos:179859647} updated_time:{seconds:1750672677 nanos:179859647} update_time:{seconds:1750672677 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.303ms] [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 [5.007ms] [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-1750672678179859647","2025-06-23 09:57:58.179","2025-06-23 09:57:58.179") 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-1750672678179859647" created_time:{seconds:1750672678 nanos:179859647} create_time:{seconds:1750672678 nanos:179859647} updated_time:{seconds:1750672678 nanos:179859647} update_time:{seconds:1750672678 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.256ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [4.331ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") 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-1750672679179859647" created_time:{seconds:1750672679 nanos:179859647} create_time:{seconds:1750672679 nanos:179859647} updated_time:{seconds:1750672679 nanos:179859647} update_time:{seconds:1750672679 nanos:179859647} === RUN TestListLogs/all === NAME TestListLogs db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [0.604ms] [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 [0.803ms] [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 [0.655ms] [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.358ms] [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 [0.572ms] [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 [0.550ms] [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 [0.556ms] [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 [0.526ms] [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 [0.572ms] [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 [0.605ms] [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 [0.751ms] [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 [0.620ms] [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 [0.727ms] [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":1750672676.8913531,"caller":"v1alpha2/logs.go:268","msg":"rpc error: code = InvalidArgument desc = name must match (^[a-z0-9_-]{1,63})/results/([a-z0-9_-]{1,63}$)","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2.(*Server).ListLogs\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:268\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestListLogs.func1\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:569\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1690"} === RUN TestListLogs/invalid_order_by_clause === RUN TestListLogs/invalid_sort_direction --- PASS: TestListLogs (0.50s) --- PASS: TestListLogs/all (0.04s) --- PASS: TestListLogs/list_all_records_without_knowing_the_result_name (0.04s) --- PASS: TestListLogs/list_all_records_without_knowing_the_parent_and_the_result_name (0.04s) --- PASS: TestListLogs/missing_parent (0.00s) --- PASS: TestListLogs/filter_by_record_property (0.02s) --- PASS: TestListLogs/filter_by_record_data (0.02s) --- PASS: TestListLogs/filter_by_parent (0.04s) --- PASS: TestListLogs/filter_and_page_size (0.02s) --- PASS: TestListLogs/only_page_size (0.02s) --- PASS: TestListLogs/with_order_asc (0.04s) --- PASS: TestListLogs/with_order_desc (0.04s) --- PASS: TestListLogs/with_missing_order (0.04s) --- PASS: TestListLogs/with_default_order (0.04s) --- PASS: TestListLogs/unknown_type (0.00s) --- PASS: TestListLogs/unknown_any_field (0.00s) --- PASS: TestListLogs/invalid_page_size (0.00s) --- 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/testdb2074337574 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.027ms] [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.103ms] [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.872ms] [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.469ms] [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.085ms] [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 [4.961ms] [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 [4.805ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672676.968638,"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 [6.371ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.967ms] [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 [6.350ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.413ms] [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 [17.875ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [8.163ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.444ms] [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 [13.433ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.429ms] [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 [10.743ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [14.072ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.451ms] [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 [6.106ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.412ms] [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 [10.882ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [11.484ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.372ms] [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 [12.053ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.399ms] [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 [8.288ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [1.000ms] [rows:4] SELECT * FROM `records` WHERE type = "results.tekton.dev/v1alpha3.Log" AND id > "" AND parent = "0" LIMIT 51 --- PASS: TestListLogs_multiresult (0.35s) === RUN TestDeleteLog logs_test.go:652: test database: /tmp/testdb1419664189 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.038ms] [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.128ms] [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.105ms] [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.366ms] [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 [7.570ms] [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.978ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672677.3073177,"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 [49.567ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` logs_test.go:672: test log file: /tmp/test-log-taskrun-3852298939.log db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.686ms] [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.292ms] [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-3852298939.log"",""size"":1024,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","24-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") 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 [0.708ms] [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 [6.267ms] [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-3852298939.log"",""size"":1024,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}" AND `records`.`created_time` = "2025-06-23 09:57:59.179" AND `records`.`updated_time` = "2025-06-23 09:57:59.179" AND `records`.`etag` = "24-1750672679179859647" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.335ms] [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.252ms] [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.14s) --- PASS: TestDeleteLog/success (0.01s) --- PASS: TestDeleteLog/already_deleted (0.00s) === 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/testdb1589786140 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.033ms] [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.104ms] [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 [6.975ms] [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.924ms] [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 [31.053ms] [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.145ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672677.4847398,"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 [7.887ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` === RUN TestCreateRecord/success === NAME TestCreateRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.001ms] [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 [3.975ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") 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.502ms] [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.526ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 UNIQUE constraint failed: records.parent, records.result_name, records.name [0.743ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` --- PASS: TestCreateRecord (0.14s) --- PASS: TestCreateRecord/success (0.01s) --- 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/testdb1914122537 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.069ms] [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.134ms] [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 [4.836ms] [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 [5.493ms] [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.084ms] [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.912ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [14.644ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672677.5764837,"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 [1.151ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` --- PASS: TestCreateRecord_ConcurrentDelete (0.05s) === RUN TestGetRecord records_test.go:185: test database: /tmp/testdb3276826979 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.030ms] [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.098ms] [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.000ms] [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 [4.280ms] [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 [4.612ms] [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.053ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672677.6147516,"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 [7.503ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.582ms] [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 [5.512ms] [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-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") 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 [0.679ms] [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 [0.270ms] [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.06s) --- PASS: TestGetRecord/success (0.00s) --- 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/testdb2236376448 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.035ms] [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.092ms] [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 [4.638ms] [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 [5.265ms] [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.134ms] [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.503ms] [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.263ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672677.6781688,"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 [6.824ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1","bar","null","","",NULL,NULL,0,"null","1-1750672679179859647","2025-06-23 09:57:59.179","2025-06-23 09:57:59.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.212ms] [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.554ms] [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-1750672680179859647","2025-06-23 09:58:00.179","2025-06-23 09:58:00.179") 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-1750672680179859647" created_time:{seconds:1750672680 nanos:179859647} create_time:{seconds:1750672680 nanos:179859647} updated_time:{seconds:1750672680 nanos:179859647} update_time:{seconds:1750672680 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.438ms] [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 [5.351ms] [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-1750672681179859647","2025-06-23 09:58:01.179","2025-06-23 09:58:01.179") 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-1750672681179859647" created_time:{seconds:1750672681 nanos:179859647} create_time:{seconds:1750672681 nanos:179859647} updated_time:{seconds:1750672681 nanos:179859647} update_time:{seconds:1750672681 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.432ms] [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.787ms] [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-1750672682179859647","2025-06-23 09:58:02.179","2025-06-23 09:58:02.179") 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-1750672682179859647" created_time:{seconds:1750672682 nanos:179859647} create_time:{seconds:1750672682 nanos:179859647} updated_time:{seconds:1750672682 nanos:179859647} update_time:{seconds:1750672682 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.482ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [6.142ms] [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-1750672683179859647","2025-06-23 09:58:03.179","2025-06-23 09:58:03.179") 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-1750672683179859647" created_time:{seconds:1750672683 nanos:179859647} create_time:{seconds:1750672683 nanos:179859647} updated_time:{seconds:1750672683 nanos:179859647} update_time:{seconds:1750672683 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.626ms] [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.311ms] [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-1750672684179859647","2025-06-23 09:58:04.179","2025-06-23 09:58:04.179") 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-1750672684179859647" created_time:{seconds:1750672684 nanos:179859647} create_time:{seconds:1750672684 nanos:179859647} updated_time:{seconds:1750672684 nanos:179859647} update_time:{seconds:1750672684 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.290ms] [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 [3.868ms] [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-1750672685179859647","2025-06-23 09:58:05.179","2025-06-23 09:58:05.179") 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-1750672685179859647" created_time:{seconds:1750672685 nanos:179859647} create_time:{seconds:1750672685 nanos:179859647} updated_time:{seconds:1750672685 nanos:179859647} update_time:{seconds:1750672685 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.257ms] [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 [4.511ms] [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-1750672686179859647","2025-06-23 09:58:06.179","2025-06-23 09:58:06.179") 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-1750672686179859647" created_time:{seconds:1750672686 nanos:179859647} create_time:{seconds:1750672686 nanos:179859647} updated_time:{seconds:1750672686 nanos:179859647} update_time:{seconds:1750672686 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.308ms] [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 [5.161ms] [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-1750672687179859647","2025-06-23 09:58:07.179","2025-06-23 09:58:07.179") 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-1750672687179859647" created_time:{seconds:1750672687 nanos:179859647} create_time:{seconds:1750672687 nanos:179859647} updated_time:{seconds:1750672687 nanos:179859647} update_time:{seconds:1750672687 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.302ms] [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 [5.563ms] [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-1750672688179859647","2025-06-23 09:58:08.179","2025-06-23 09:58:08.179") 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-1750672688179859647" created_time:{seconds:1750672688 nanos:179859647} create_time:{seconds:1750672688 nanos:179859647} updated_time:{seconds:1750672688 nanos:179859647} update_time:{seconds:1750672688 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.399ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [6.333ms] [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-1750672689179859647","2025-06-23 09:58:09.179","2025-06-23 09:58:09.179") 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-1750672689179859647" created_time:{seconds:1750672689 nanos:179859647} create_time:{seconds:1750672689 nanos:179859647} updated_time:{seconds:1750672689 nanos:179859647} update_time:{seconds:1750672689 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.390ms] [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 [8.135ms] [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-1750672690179859647","2025-06-23 09:58:10.179","2025-06-23 09:58:10.179") 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-1750672690179859647" created_time:{seconds:1750672690 nanos:179859647} create_time:{seconds:1750672690 nanos:179859647} updated_time:{seconds:1750672690 nanos:179859647} update_time:{seconds:1750672690 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.423ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [6.770ms] [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-1750672691179859647","2025-06-23 09:58:11.179","2025-06-23 09:58:11.179") 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-1750672691179859647" created_time:{seconds:1750672691 nanos:179859647} create_time:{seconds:1750672691 nanos:179859647} updated_time:{seconds:1750672691 nanos:179859647} update_time:{seconds:1750672691 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.405ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [6.311ms] [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-1750672692179859647","2025-06-23 09:58:12.179","2025-06-23 09:58:12.179") 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-1750672692179859647" created_time:{seconds:1750672692 nanos:179859647} create_time:{seconds:1750672692 nanos:179859647} updated_time:{seconds:1750672692 nanos:179859647} update_time:{seconds:1750672692 nanos:179859647} 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` = "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.014ms] [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-1750672693179859647","2025-06-23 09:58:13.179","2025-06-23 09:58:13.179") 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-1750672693179859647" created_time:{seconds:1750672693 nanos:179859647} create_time:{seconds:1750672693 nanos:179859647} updated_time:{seconds:1750672693 nanos:179859647} update_time:{seconds:1750672693 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.314ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [6.520ms] [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-1750672694179859647","2025-06-23 09:58:14.179","2025-06-23 09:58:14.179") 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-1750672694179859647" created_time:{seconds:1750672694 nanos:179859647} create_time:{seconds:1750672694 nanos:179859647} updated_time:{seconds:1750672694 nanos:179859647} update_time:{seconds:1750672694 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.352ms] [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 [5.926ms] [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-1750672695179859647","2025-06-23 09:58:15.179","2025-06-23 09:58:15.179") 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-1750672695179859647" created_time:{seconds:1750672695 nanos:179859647} create_time:{seconds:1750672695 nanos:179859647} updated_time:{seconds:1750672695 nanos:179859647} update_time:{seconds:1750672695 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.285ms] [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.684ms] [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-1750672696179859647","2025-06-23 09:58:16.179","2025-06-23 09:58:16.179") 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-1750672696179859647" created_time:{seconds:1750672696 nanos:179859647} create_time:{seconds:1750672696 nanos:179859647} updated_time:{seconds:1750672696 nanos:179859647} update_time:{seconds:1750672696 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.298ms] [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 [5.940ms] [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-1750672697179859647","2025-06-23 09:58:17.179","2025-06-23 09:58:17.179") 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-1750672697179859647" created_time:{seconds:1750672697 nanos:179859647} create_time:{seconds:1750672697 nanos:179859647} updated_time:{seconds:1750672697 nanos:179859647} update_time:{seconds:1750672697 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.379ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [6.467ms] [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-1750672698179859647","2025-06-23 09:58:18.179","2025-06-23 09:58:18.179") 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-1750672698179859647" created_time:{seconds:1750672698 nanos:179859647} create_time:{seconds:1750672698 nanos:179859647} updated_time:{seconds:1750672698 nanos:179859647} update_time:{seconds:1750672698 nanos:179859647} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.348ms] [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 [5.402ms] [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-1750672699179859647","2025-06-23 09:58:19.179","2025-06-23 09:58:19.179") 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-1750672699179859647" created_time:{seconds:1750672699 nanos:179859647} create_time:{seconds:1750672699 nanos:179859647} updated_time:{seconds:1750672699 nanos:179859647} update_time:{seconds:1750672699 nanos:179859647} === 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 [1.773ms] [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 [1.825ms] [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 [1.690ms] [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.477ms] [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.638ms] [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.022ms] [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.583ms] [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.245ms] [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.155ms] [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 [0.853ms] [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.243ms] [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 [0.814ms] [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 [0.885ms] [rows:6] SELECT * FROM `records` WHERE (created_time, id) > ("2025-06-23 09:58:04.179", "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.739ms] [rows:6] SELECT * FROM `records` WHERE (created_time, id) > ("2025-06-23 09:58:09.179", "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 [0.831ms] [rows:5] SELECT * FROM `records` WHERE (created_time, id) > ("2025-06-23 09:58:14.179", "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.391ms] [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.202ms] [rows:6] SELECT * FROM `records` WHERE (created_time, id) < ("2025-06-23 09:58:15.179", "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 [0.844ms] [rows:6] SELECT * FROM `records` WHERE (created_time, id) < ("2025-06-23 09:58:10.179", "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 [0.732ms] [rows:5] SELECT * FROM `records` WHERE (created_time, id) < ("2025-06-23 09:58:05.179", "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 [0.786ms] [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.180ms] [rows:6] SELECT * FROM `records` WHERE (updated_time, id) > ("2025-06-23 09:58:04.179", "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.211ms] [rows:6] SELECT * FROM `records` WHERE (updated_time, id) > ("2025-06-23 09:58:09.179", "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 [0.788ms] [rows:5] SELECT * FROM `records` WHERE (updated_time, id) > ("2025-06-23 09:58:14.179", "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.229ms] [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 [0.924ms] [rows:6] SELECT * FROM `records` WHERE (updated_time, id) < ("2025-06-23 09:58:15.179", "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 [0.899ms] [rows:6] SELECT * FROM `records` WHERE (updated_time, id) < ("2025-06-23 09:58:10.179", "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 [0.747ms] [rows:5] SELECT * FROM `records` WHERE (updated_time, id) < ("2025-06-23 09:58:05.179", "7") AND parent = "foo" AND result_name = "bar" ORDER BY updated_time DESC,id DESC LIMIT 6 --- PASS: TestListRecords (1.21s) --- PASS: TestListRecords/all (0.09s) --- PASS: TestListRecords/list_all_records_without_knowing_the_result_name (0.09s) --- PASS: TestListRecords/list_all_records_without_knowing_the_parent_and_the_result_name (0.09s) --- PASS: TestListRecords/filter_by_record_property (0.01s) --- PASS: TestListRecords/filter_by_record_data (0.01s) --- PASS: TestListRecords/filter_by_record_type (0.07s) --- 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.12s) --- PASS: TestListRecords/paginate_records_sorting_by_create_time_asc (0.11s) --- PASS: TestListRecords/paginate_records_sorting_by_create_time_desc (0.12s) --- PASS: TestListRecords/paginate_records_sorting_by_update_time_asc (0.15s) --- PASS: TestListRecords/paginate_records_sorting_by_update_time_desc (0.13s) === RUN TestUpdateRecord records_test.go:542: test database: /tmp/testdb2454075508 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.121ms] [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 [50.010ms] [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.079ms] [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.105ms] [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.341ms] [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 [4.079ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672678.9317808,"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.000ms] [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-1750672699179859647","2025-06-23 09:58:19.179","2025-06-23 09:58:19.179") RETURNING `created_time`,`updated_time` === RUN TestUpdateRecord/success === NAME TestUpdateRecord db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.933ms] [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.248ms] [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-1750672699179859647","2025-06-23 09:58:19.179","2025-06-23 09:58:19.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.566ms] [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.512ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="a",`type`="",`data`="{""metadata"":{""name"":""taskrun""}}",`created_time`="2025-06-23 09:58:19.179",`updated_time`="2025-06-23 09:58:20.179",`etag`="23-1750672700179859647" 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.409ms] [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.820ms] [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-1750672700179859647","2025-06-23 09:58:20.179","2025-06-23 09:58:20.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.549ms] [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.553ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="b",`type`="",`data`="",`created_time`="2025-06-23 09:58:20.179",`updated_time`="2025-06-23 09:58:21.179",`etag`="24-1750672701179859647" 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.418ms] [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.455ms] [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.14s) --- PASS: TestUpdateRecord/success (0.02s) --- PASS: TestUpdateRecord/ignored_fields (0.02s) --- 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/testdb4284591133 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.026ms] [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.093ms] [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.545ms] [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.630ms] [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.169ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [6.267ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [5.054ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672679.0450954,"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 [5.578ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.439ms] [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 [5.719ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") 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 [0.439ms] [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 [5.009ms] [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 09:58:24.179" AND `records`.`updated_time` = "2025-06-23 09:58:24.179" AND `records`.`etag` = "26-1750672704179859647" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.266ms] [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.214ms] [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.08s) --- PASS: TestDeleteRecord/success (0.01s) --- PASS: TestDeleteRecord/already_deleted (0.00s) === RUN TestListRecords_multiresult records_test.go:731: test database: /tmp/testdb765887287 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.029ms] [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.095ms] [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 [6.178ms] [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.488ms] [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.102ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [5.372ms] [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 [4.962ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672679.108366,"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 [4.838ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.793ms] [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 [6.831ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.298ms] [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 [5.285ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.610ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.277ms] [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 [4.824ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.292ms] [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 [5.008ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [5.895ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.352ms] [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 [6.226ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.368ms] [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 [4.598ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [5.152ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.450ms] [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 [5.056ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.355ms] [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 [5.332ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") 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.12s) === RUN TestCreateResult results_test.go:43: test database: /tmp/testdb25003402 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.034ms] [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.100ms] [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 [4.792ms] [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 [4.702ms] [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.084ms] [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 [4.607ms] [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 [4.434ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672679.2218487,"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 [5.539ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.654ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 === RUN TestCreateResult/mismatched_parent === RUN TestCreateResult/missing_name === RUN TestCreateResult/already_exists === NAME TestCreateResult db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 UNIQUE constraint failed: results.parent, results.name [0.732ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") RETURNING `created_time`,`updated_time` === RUN TestCreateResult/large_name === RUN TestCreateResult/large_result_summary_type --- PASS: TestCreateResult (0.04s) --- PASS: TestCreateResult/success (0.01s) --- 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/testdb4065958711 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.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 [6.040ms] [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 [5.748ms] [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.085ms] [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.830ms] [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.298ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672679.277757,"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 [4.417ms] [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-1750672704179859647","2025-06-23 09:58:24.179","2025-06-23 09:58:24.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.485ms] [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.419ms] [rows:1] UPDATE `results` SET `name`="bar-0",`annotations`="{""foo"":""bar""}",`created_time`="2025-06-23 09:58:24.179",`updated_time`="2025-06-23 09:58:25.179",`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-1750672705179859647" WHERE `parent` = "foo" AND `id` = "42" 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` = "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 [4.996ms] [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-1750672705179859647","2025-06-23 09:58:25.179","2025-06-23 09:58:25.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.512ms] [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.409ms] [rows:1] UPDATE `results` SET `name`="bar-1",`annotations`="null",`created_time`="2025-06-23 09:58:25.179",`updated_time`="2025-06-23 09:58:26.179",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="43-1750672706179859647" 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.622ms] [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 [16.703ms] [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-1750672706179859647","2025-06-23 09:58:26.179","2025-06-23 09:58:26.179") 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 [5.606ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","45","bar-3","null","","",NULL,NULL,0,"null","45-1750672707179859647","2025-06-23 09:58:27.179","2025-06-23 09:58:27.179") 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.350ms] [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 [4.913ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","46","bar-4","null","","",NULL,NULL,0,"null","46-1750672708179859647","2025-06-23 09:58:28.179","2025-06-23 09:58:28.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.597ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "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 [5.145ms] [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-1750672709179859647","2025-06-23 09:58:29.179","2025-06-23 09:58:29.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.558ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar-5" ORDER BY `results`.`id` LIMIT 1 --- PASS: TestUpdateResult (0.11s) --- PASS: TestUpdateResult/success (0.02s) --- PASS: TestUpdateResult/test_update_with_empty_result (0.02s) --- 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/testdb2319661456 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.038ms] [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.117ms] [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 [5.227ms] [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 [4.560ms] [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.080ms] [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 [4.812ms] [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 [4.269ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672679.3841379,"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 [5.886ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","48","bar","null","","",NULL,NULL,0,"null","48-1750672710179859647","2025-06-23 09:58:30.179","2025-06-23 09:58:30.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.469ms] [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.247ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "a" AND `results`.`name` = "doesnotexist" ORDER BY `results`.`id` LIMIT 1 --- PASS: TestGetResult (0.04s) --- PASS: TestGetResult/no_name (0.00s) --- PASS: TestGetResult/not_found (0.00s) === RUN TestDeleteResult results_test.go:296: test database: /tmp/testdb479802434 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.034ms] [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.097ms] [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 [4.647ms] [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 [5.295ms] [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.087ms] [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.145ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [4.683ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672679.4268146,"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 [5.555ms] [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-1750672710179859647","2025-06-23 09:58:30.179","2025-06-23 09:58:30.179") 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.499ms] [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 [4.478ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "49" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-23 09:58:30.179" AND `results`.`updated_time` = "2025-06-23 09:58:30.179" AND `results`.`etag` = "49-1750672710179859647" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.260ms] [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.177ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 --- PASS: TestDeleteResult (0.05s) --- PASS: TestDeleteResult/success (0.01s) --- PASS: TestDeleteResult/already_deleted (0.00s) === RUN TestCascadeDelete results_test.go:332: test database: /tmp/testdb1086459897 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.115ms] [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.386ms] [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 [4.421ms] [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.113ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [5.218ms] [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.410ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672679.5161872,"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 [5.571ms] [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-1750672710179859647","2025-06-23 09:58:30.179","2025-06-23 09:58:30.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.457ms] [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 [5.376ms] [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-1750672710179859647","2025-06-23 09:58:30.179","2025-06-23 09:58:30.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [0.500ms] [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 [4.988ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "50" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-23 09:58:30.179" AND `results`.`updated_time` = "2025-06-23 09:58:30.179" AND `results`.`etag` = "50-1750672710179859647" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.266ms] [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.10s) === RUN TestListResults results_test.go:366: test database: /tmp/testdb869797266 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.095ms] [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 [5.289ms] [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 [4.186ms] [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.099ms] [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.556ms] [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 [4.278ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672679.5697043,"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 [5.035ms] [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","7f6b5a6f-df80-4a4a-ab7c-1f316e4555a7","{""foo"":""bar-1""}","foo/results/7f6b5a6f-df80-4a4a-ab7c-1f316e4555a7/records/3ddfd2e6-d411-4d9d-8d60-991d1355628f","resource_type","2025-06-23 09:58:31.179","2025-06-23 09:59:31.179",0,"null","1-1750672711179859647","2025-06-23 09:58:31.179","2025-06-23 09:58:31.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [5.214ms] [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","0becfde6-6873-4f84-b4fb-6e0092779b24","{""foo"":""bar-2""}","foo/results/0becfde6-6873-4f84-b4fb-6e0092779b24/records/eda3cd56-bfce-47a4-b8ef-2036bf9e6abf","resource_type","2025-06-23 09:58:32.179","2025-06-23 09:59:32.179",0,"null","2-1750672712179859647","2025-06-23 09:58:32.179","2025-06-23 09:58:32.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [6.369ms] [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","ca821172-18ad-4bd0-832d-57aef4d03ddd","{""foo"":""bar-3""}","foo/results/ca821172-18ad-4bd0-832d-57aef4d03ddd/records/2ed1a653-493e-44e5-b0a2-0afebcd3ebfa","resource_type","2025-06-23 09:58:33.179","2025-06-23 09:59:33.179",0,"null","3-1750672713179859647","2025-06-23 09:58:33.179","2025-06-23 09:58:33.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [7.042ms] [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","6124d977-d0a2-4dbe-b4d2-1223e70e5215","{""foo"":""bar-4""}","foo/results/6124d977-d0a2-4dbe-b4d2-1223e70e5215/records/d38931df-70ba-47e6-87ad-09c5196e5d14","resource_type","2025-06-23 09:58:34.179","2025-06-23 09:59:34.179",0,"null","4-1750672714179859647","2025-06-23 09:58:34.179","2025-06-23 09:58:34.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [6.207ms] [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","e4e82faa-dd27-43ee-a801-70485af2c2cd","{""foo"":""bar-5""}","foo/results/e4e82faa-dd27-43ee-a801-70485af2c2cd/records/2e186b28-0903-4dc1-8c34-34546d80c495","resource_type","2025-06-23 09:58:35.179","2025-06-23 09:59:35.179",0,"null","5-1750672715179859647","2025-06-23 09:58:35.179","2025-06-23 09:58:35.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [6.623ms] [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","27199167-ec57-4144-8bb1-16cd38db394e","{""foo"":""bar-6""}","foo/results/27199167-ec57-4144-8bb1-16cd38db394e/records/54e8b6a3-4b52-4bb6-9512-f8136727c160","resource_type","2025-06-23 09:58:36.179","2025-06-23 09:59:36.179",0,"null","6-1750672716179859647","2025-06-23 09:58:36.179","2025-06-23 09:58:36.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.905ms] [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","55b70fb1-32d8-418a-a89a-dd5a39880cee","{""foo"":""bar-7""}","foo/results/55b70fb1-32d8-418a-a89a-dd5a39880cee/records/4021cf66-58a6-47ec-887f-d1dcc906b0c4","resource_type","2025-06-23 09:58:37.179","2025-06-23 09:59:37.179",0,"null","7-1750672717179859647","2025-06-23 09:58:37.179","2025-06-23 09:58:37.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [5.237ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","8","5ea6b882-e6fa-4b44-ba44-ec79e619069a","{""foo"":""bar-8""}","foo/results/5ea6b882-e6fa-4b44-ba44-ec79e619069a/records/91316ea7-abea-4aab-885d-b8279227d8bf","resource_type","2025-06-23 09:58:38.179","2025-06-23 09:59:38.179",0,"null","8-1750672718179859647","2025-06-23 09:58:38.179","2025-06-23 09:58:38.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.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","9","1bb0715d-f3ce-462b-9ca3-45d0d6f51cac","{""foo"":""bar-9""}","foo/results/1bb0715d-f3ce-462b-9ca3-45d0d6f51cac/records/4d2c0322-f189-434c-82a9-bdcccc0b5d7a","resource_type","2025-06-23 09:58:39.179","2025-06-23 09:59:39.179",0,"null","9-1750672719179859647","2025-06-23 09:58:39.179","2025-06-23 09:58:39.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.501ms] [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","67f5592c-bc32-4827-93f5-9aa97a4f1ec3","{""foo"":""bar-10""}","foo/results/67f5592c-bc32-4827-93f5-9aa97a4f1ec3/records/6a13ce36-6366-4039-a486-0010f2647c94","resource_type","2025-06-23 09:58:40.179","2025-06-23 09:59:40.179",0,"null","10-1750672720179859647","2025-06-23 09:58:40.179","2025-06-23 09:58:40.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [5.047ms] [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","e682affb-fb0c-489d-91f6-fe434357ed15","{""foo"":""bar-11""}","foo/results/e682affb-fb0c-489d-91f6-fe434357ed15/records/4dcf3bd2-b663-4ff4-91a9-9f956a6a822f","resource_type","2025-06-23 09:58:41.179","2025-06-23 09:59:41.179",0,"null","11-1750672721179859647","2025-06-23 09:58:41.179","2025-06-23 09:58:41.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [5.158ms] [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","b1333919-3445-42e6-aa58-b4b2170f4bac","{""foo"":""bar-12""}","foo/results/b1333919-3445-42e6-aa58-b4b2170f4bac/records/c87663cc-6ebd-4293-bec1-5a289e175d2a","resource_type","2025-06-23 09:58:42.179","2025-06-23 09:59:42.179",0,"null","12-1750672722179859647","2025-06-23 09:58:42.179","2025-06-23 09:58:42.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.859ms] [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","c0443be9-8cc9-446b-bcd5-1c6d73d1e2bb","{""foo"":""bar-13""}","foo/results/c0443be9-8cc9-446b-bcd5-1c6d73d1e2bb/records/6aea938c-da00-4208-8208-5597c23778dd","resource_type","2025-06-23 09:58:43.179","2025-06-23 09:59:43.179",0,"null","13-1750672723179859647","2025-06-23 09:58:43.179","2025-06-23 09:58:43.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.634ms] [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","fd9070f2-d163-4d32-88ce-8750a346bb10","{""foo"":""bar-14""}","foo/results/fd9070f2-d163-4d32-88ce-8750a346bb10/records/8e1af94f-3cb4-4756-92f9-380e28389dc7","resource_type","2025-06-23 09:58:44.179","2025-06-23 09:59:44.179",0,"null","14-1750672724179859647","2025-06-23 09:58:44.179","2025-06-23 09:58:44.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.957ms] [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","0599c9a8-10cc-43d1-a320-3a4cd0a44e02","{""foo"":""bar-15""}","foo/results/0599c9a8-10cc-43d1-a320-3a4cd0a44e02/records/a717f4af-b6e6-4bd2-b45b-98626ba75a1c","resource_type","2025-06-23 09:58:45.179","2025-06-23 09:59:45.179",0,"null","15-1750672725179859647","2025-06-23 09:58:45.179","2025-06-23 09:58:45.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.638ms] [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","c9147536-e247-4dd4-9729-7e19c013cab2","{""foo"":""bar-16""}","foo/results/c9147536-e247-4dd4-9729-7e19c013cab2/records/f65d1727-0385-4fdf-9726-e0e7abe4ddc6","resource_type","2025-06-23 09:58:46.179","2025-06-23 09:59:46.179",0,"null","16-1750672726179859647","2025-06-23 09:58:46.179","2025-06-23 09:58:46.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.835ms] [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","8d49fb05-c730-4097-b747-9c2c7a8fb49f","{""foo"":""bar-17""}","foo/results/8d49fb05-c730-4097-b747-9c2c7a8fb49f/records/66e952d7-5693-45a4-9aef-25ac411cae8e","resource_type","2025-06-23 09:58:47.179","2025-06-23 09:59:47.179",0,"null","17-1750672727179859647","2025-06-23 09:58:47.179","2025-06-23 09:58:47.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [5.372ms] [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","77f6aa01-dd7a-41d4-9680-c7fced3107ca","{""foo"":""bar-18""}","foo/results/77f6aa01-dd7a-41d4-9680-c7fced3107ca/records/5b59bf8c-f958-42c0-8181-9c574c993c08","resource_type","2025-06-23 09:58:48.179","2025-06-23 09:59:48.179",0,"null","18-1750672728179859647","2025-06-23 09:58:48.179","2025-06-23 09:58:48.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.595ms] [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","199cf6e5-3d92-40e4-8d74-2d042bf5b8c0","{""foo"":""bar-19""}","foo/results/199cf6e5-3d92-40e4-8d74-2d042bf5b8c0/records/7159935f-fbef-47e5-9e79-e8ed96db10f1","resource_type","2025-06-23 09:58:49.179","2025-06-23 09:59:49.179",0,"null","19-1750672729179859647","2025-06-23 09:58:49.179","2025-06-23 09:58:49.179") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [8.376ms] [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","425ee3cc-429c-4115-8230-0e75b78789e1","{""foo"":""bar-20""}","foo/results/425ee3cc-429c-4115-8230-0e75b78789e1/records/5f0a504c-7a4d-4b94-9553-d68fff6809c8","resource_type","2025-06-23 09:58:50.179","2025-06-23 09:59:50.179",0,"null","20-1750672730179859647","2025-06-23 09:58:50.179","2025-06-23 09:58:50.179") 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 [4.593ms] [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 [3.854ms] [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.285ms] [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.422ms] [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.905ms] [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.357ms] [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.688ms] [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.413ms] [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.418ms] [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.640ms] [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.425ms] [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.661ms] [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.111ms] [rows:6] SELECT * FROM `results` WHERE (created_time, id) > ("2025-06-23 09:58:35.179", "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 [1.142ms] [rows:6] SELECT * FROM `results` WHERE (created_time, id) > ("2025-06-23 09:58:40.179", "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 [0.987ms] [rows:5] SELECT * FROM `results` WHERE (created_time, id) > ("2025-06-23 09:58:45.179", "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.178ms] [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 [1.294ms] [rows:6] SELECT * FROM `results` WHERE (created_time, id) < ("2025-06-23 09:58:46.179", "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.664ms] [rows:6] SELECT * FROM `results` WHERE (created_time, id) < ("2025-06-23 09:58:41.179", "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.424ms] [rows:5] SELECT * FROM `results` WHERE (created_time, id) < ("2025-06-23 09:58:36.179", "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.061ms] [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.109ms] [rows:6] SELECT * FROM `results` WHERE (updated_time, id) > ("2025-06-23 09:58:35.179", "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 [1.887ms] [rows:6] SELECT * FROM `results` WHERE (updated_time, id) > ("2025-06-23 09:58:40.179", "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 [0.987ms] [rows:5] SELECT * FROM `results` WHERE (updated_time, id) > ("2025-06-23 09:58:45.179", "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.050ms] [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.085ms] [rows:6] SELECT * FROM `results` WHERE (updated_time, id) < ("2025-06-23 09:58:46.179", "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.035ms] [rows:6] SELECT * FROM `results` WHERE (updated_time, id) < ("2025-06-23 09:58:41.179", "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 [0.942ms] [rows:5] SELECT * FROM `results` WHERE (updated_time, id) < ("2025-06-23 09:58:36.179", "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.366ms] [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.035ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_start_time, id) > ("2025-06-23 09:58:35.179", "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.056ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_start_time, id) > ("2025-06-23 09:58:40.179", "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 [0.944ms] [rows:5] SELECT * FROM `results` WHERE (recordsummary_start_time, id) > ("2025-06-23 09:58:45.179", "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 [1.069ms] [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.192ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_start_time, id) < ("2025-06-23 09:58:46.179", "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.343ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_start_time, id) < ("2025-06-23 09:58:41.179", "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 [0.945ms] [rows:5] SELECT * FROM `results` WHERE (recordsummary_start_time, id) < ("2025-06-23 09:58:36.179", "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.072ms] [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.100ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_end_time, id) > ("2025-06-23 09:59:35.179", "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.209ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_end_time, id) > ("2025-06-23 09:59:40.179", "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.619ms] [rows:5] SELECT * FROM `results` WHERE (recordsummary_end_time, id) > ("2025-06-23 09:59:45.179", "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 [1.591ms] [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 [2.499ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_end_time, id) < ("2025-06-23 09:59:46.179", "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.923ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_end_time, id) < ("2025-06-23 09:59:41.179", "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 [0.923ms] [rows:5] SELECT * FROM `results` WHERE (recordsummary_end_time, id) < ("2025-06-23 09:59:36.179", "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.104ms] [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.138ms] [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.039ms] [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.002ms] [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 (0.90s) --- PASS: TestListResults/list_all_results (0.07s) --- PASS: TestListResults/list_all_results_without_knowing_the_parent_name (0.06s) --- 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.07s) --- PASS: TestListResults/paginate_results_sorting_by_create_time_asc (0.05s) --- PASS: TestListResults/paginate_results_sorting_by_create_time_desc (0.07s) --- PASS: TestListResults/paginate_results_sorting_by_update_time_asc (0.05s) --- PASS: TestListResults/paginate_results_sorting_by_update_time_desc (0.05s) --- PASS: TestListResults/paginate_results_sorting_by_summary.start_time_asc (0.05s) --- PASS: TestListResults/paginate_results_sorting_by_summary.start_time_desc (0.05s) --- PASS: TestListResults/paginate_results_sorting_by_summary.end_time_asc (0.06s) --- PASS: TestListResults/paginate_results_sorting_by_summary.end_time_desc (0.07s) --- PASS: TestListResults/paginate_results_using_filter (0.06s) PASS ok github.com/tektoncd/results/pkg/api/server/v1alpha2 5.396s === RUN TestRBAC rbac_test.go:93: test database: /tmp/testdb2449488705 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.043ms] [rows:0] PRAGMA foreign_keys = ON; db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.131ms] [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 [44.833ms] [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.372ms] [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 [7.195ms] [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.186ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672677.2980905,"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 [49.383ms] [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","005fd645-cb87-4177-b265-fed006ecff34","bar","null","","",NULL,NULL,0,"null","005fd645-cb87-4177-b265-fed006ecff34-1750672677308100678","2025-06-23 09:57:57.308","2025-06-23 09:57:57.308") 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 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [0.822ms] [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.040ms] [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 [0.865ms] [rows:1] UPDATE `results` SET `name`="bar",`annotations`="null",`created_time`="2025-06-23 09:57:57.308",`updated_time`="2025-06-23 09:57:57.368",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="005fd645-cb87-4177-b265-fed006ecff34-1750672677368201070" WHERE `parent` = "foo" AND `id` = "005fd645-cb87-4177-b265-fed006ecff34" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.625ms] [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 [49.678ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","005fd645-cb87-4177-b265-fed006ecff34","bar","11f63c04-47cc-4e2b-8f57-27dce3448569","baz","","","11f63c04-47cc-4e2b-8f57-27dce3448569-1750672677382312623","2025-06-23 09:57:57.382","2025-06-23 09:57:57.382") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [1.356ms] [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 [0.822ms] [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 [0.731ms] [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 [0.884ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz",`type`="",`data`="",`created_time`="2025-06-23 09:57:57.382",`updated_time`="2025-06-23 09:57:57.442",`etag`="11f63c04-47cc-4e2b-8f57-27dce3448569-1750672677442719115" WHERE `parent` = "foo" AND `result_id` = "005fd645-cb87-4177-b265-fed006ecff34" AND `id` = "11f63c04-47cc-4e2b-8f57-27dce3448569" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.447ms] [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 [8.421ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "005fd645-cb87-4177-b265-fed006ecff34" AND `records`.`result_name` = "bar" AND `records`.`id` = "11f63c04-47cc-4e2b-8f57-27dce3448569" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-23 09:57:57.382" AND `records`.`updated_time` = "2025-06-23 09:57:57.442" AND `records`.`etag` = "11f63c04-47cc-4e2b-8f57-27dce3448569-1750672677442719115" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [0.814ms] [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 [6.865ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "005fd645-cb87-4177-b265-fed006ecff34" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-23 09:57:57.308" AND `results`.`updated_time` = "2025-06-23 09:57:57.368" AND `results`.`etag` = "005fd645-cb87-4177-b265-fed006ecff34-1750672677368201070" === 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 [27.971ms] [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","856f7e85-c224-48dd-9fca-995a093d6928","bar","null","","",NULL,NULL,0,"null","856f7e85-c224-48dd-9fca-995a093d6928-1750672677508312475","2025-06-23 09:57:57.508","2025-06-23 09:57:57.508") RETURNING `created_time`,`updated_time` 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` = "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 [0.705ms] [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.521ms] [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 [0.561ms] [rows:1] UPDATE `results` SET `name`="bar",`annotations`="null",`created_time`="2025-06-23 09:57:57.508",`updated_time`="2025-06-23 09:57:57.543",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="856f7e85-c224-48dd-9fca-995a093d6928-1750672677543166694" WHERE `parent` = "foo" AND `id` = "856f7e85-c224-48dd-9fca-995a093d6928" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.481ms] [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 [8.677ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","856f7e85-c224-48dd-9fca-995a093d6928","bar","2d80acf5-ffe0-428c-989b-7612a566033a","baz","","","2d80acf5-ffe0-428c-989b-7612a566033a-1750672677549778838","2025-06-23 09:57:57.549","2025-06-23 09:57:57.549") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.830ms] [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 [0.973ms] [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 [0.451ms] [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 [7.791ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz",`type`="",`data`="",`created_time`="2025-06-23 09:57:57.549",`updated_time`="2025-06-23 09:57:57.566",`etag`="2d80acf5-ffe0-428c-989b-7612a566033a-1750672677566350072" WHERE `parent` = "foo" AND `result_id` = "856f7e85-c224-48dd-9fca-995a093d6928" AND `id` = "2d80acf5-ffe0-428c-989b-7612a566033a" 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` = "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 [5.699ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "856f7e85-c224-48dd-9fca-995a093d6928" AND `records`.`result_name` = "bar" AND `records`.`id` = "2d80acf5-ffe0-428c-989b-7612a566033a" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-23 09:57:57.549" AND `records`.`updated_time` = "2025-06-23 09:57:57.566" AND `records`.`etag` = "2d80acf5-ffe0-428c-989b-7612a566033a-1750672677566350072" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [1.009ms] [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 [6.291ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "856f7e85-c224-48dd-9fca-995a093d6928" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-23 09:57:57.508" AND `results`.`updated_time` = "2025-06-23 09:57:57.543" AND `results`.`etag` = "856f7e85-c224-48dd-9fca-995a093d6928-1750672677543166694" === 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 [6.646ms] [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","34df9794-a554-4710-b3db-dbcc656cf61d","bar","null","","",NULL,NULL,0,"null","34df9794-a554-4710-b3db-dbcc656cf61d-1750672677613870185","2025-06-23 09:57:57.613","2025-06-23 09:57:57.613") RETURNING `created_time`,`updated_time` 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` = "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 [0.740ms] [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.625ms] [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.515ms] [rows:1] UPDATE `results` SET `name`="bar",`annotations`="null",`created_time`="2025-06-23 09:57:57.613",`updated_time`="2025-06-23 09:57:57.627",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="34df9794-a554-4710-b3db-dbcc656cf61d-1750672677627927902" WHERE `parent` = "foo" AND `id` = "34df9794-a554-4710-b3db-dbcc656cf61d" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.530ms] [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 [4.864ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","34df9794-a554-4710-b3db-dbcc656cf61d","bar","a4cbf779-214a-4761-9626-4e03d63bf63d","baz","","","a4cbf779-214a-4761-9626-4e03d63bf63d-1750672677640542237","2025-06-23 09:57:57.64","2025-06-23 09:57:57.64") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.543ms] [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 [0.587ms] [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 [0.718ms] [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 [0.672ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz",`type`="",`data`="",`created_time`="2025-06-23 09:57:57.64",`updated_time`="2025-06-23 09:57:57.652",`etag`="a4cbf779-214a-4761-9626-4e03d63bf63d-1750672677652039891" WHERE `parent` = "foo" AND `result_id` = "34df9794-a554-4710-b3db-dbcc656cf61d" AND `id` = "a4cbf779-214a-4761-9626-4e03d63bf63d" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.591ms] [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 [5.323ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "34df9794-a554-4710-b3db-dbcc656cf61d" AND `records`.`result_name` = "bar" AND `records`.`id` = "a4cbf779-214a-4761-9626-4e03d63bf63d" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-23 09:57:57.64" AND `records`.`updated_time` = "2025-06-23 09:57:57.652" AND `records`.`etag` = "a4cbf779-214a-4761-9626-4e03d63bf63d-1750672677652039891" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [0.905ms] [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 [11.707ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "34df9794-a554-4710-b3db-dbcc656cf61d" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-23 09:57:57.613" AND `results`.`updated_time` = "2025-06-23 09:57:57.627" AND `results`.`etag` = "34df9794-a554-4710-b3db-dbcc656cf61d-1750672677627927902" === 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 [7.339ms] [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","9812c249-ea3d-4ec2-9d1b-a3acf21754df","bar","null","","",NULL,NULL,0,"null","9812c249-ea3d-4ec2-9d1b-a3acf21754df-1750672677705600798","2025-06-23 09:57:57.705","2025-06-23 09:57:57.705") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.477ms] [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 [0.720ms] [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.504ms] [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 [0.591ms] [rows:1] UPDATE `results` SET `name`="bar",`annotations`="null",`created_time`="2025-06-23 09:57:57.705",`updated_time`="2025-06-23 09:57:57.72",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="9812c249-ea3d-4ec2-9d1b-a3acf21754df-1750672677720899717" WHERE `parent` = "foo" AND `id` = "9812c249-ea3d-4ec2-9d1b-a3acf21754df" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.507ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [6.150ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","9812c249-ea3d-4ec2-9d1b-a3acf21754df","bar","0735fbdd-9e04-4611-9474-7909ca2352dd","baz","","","0735fbdd-9e04-4611-9474-7909ca2352dd-1750672677729800554","2025-06-23 09:57:57.729","2025-06-23 09:57:57.729") RETURNING `created_time`,`updated_time` 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` = "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 [0.599ms] [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 [0.558ms] [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 [0.602ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz",`type`="",`data`="",`created_time`="2025-06-23 09:57:57.729",`updated_time`="2025-06-23 09:57:57.742",`etag`="0735fbdd-9e04-4611-9474-7909ca2352dd-1750672677742914358" WHERE `parent` = "foo" AND `result_id` = "9812c249-ea3d-4ec2-9d1b-a3acf21754df" AND `id` = "0735fbdd-9e04-4611-9474-7909ca2352dd" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.425ms] [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 [4.741ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "9812c249-ea3d-4ec2-9d1b-a3acf21754df" AND `records`.`result_name` = "bar" AND `records`.`id` = "0735fbdd-9e04-4611-9474-7909ca2352dd" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-23 09:57:57.729" AND `records`.`updated_time` = "2025-06-23 09:57:57.742" AND `records`.`etag` = "0735fbdd-9e04-4611-9474-7909ca2352dd-1750672677742914358" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [0.552ms] [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 [3.341ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "9812c249-ea3d-4ec2-9d1b-a3acf21754df" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-23 09:57:57.705" AND `results`.`updated_time` = "2025-06-23 09:57:57.72" AND `results`.`etag` = "9812c249-ea3d-4ec2-9d1b-a3acf21754df-1750672677720899717" === 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 [6.943ms] [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","5f8b2427-cfbb-4a4c-9e9f-040e00079323","bar","null","","",NULL,NULL,0,"null","5f8b2427-cfbb-4a4c-9e9f-040e00079323-1750672677779805701","2025-06-23 09:57:57.779","2025-06-23 09:57:57.779") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.549ms] [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 [0.535ms] [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.463ms] [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 [0.506ms] [rows:1] UPDATE `results` SET `name`="bar",`annotations`="null",`created_time`="2025-06-23 09:57:57.779",`updated_time`="2025-06-23 09:57:57.794",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="5f8b2427-cfbb-4a4c-9e9f-040e00079323-1750672677794202805" WHERE `parent` = "foo" AND `id` = "5f8b2427-cfbb-4a4c-9e9f-040e00079323" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.413ms] [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 [5.387ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","5f8b2427-cfbb-4a4c-9e9f-040e00079323","bar","89c23760-3404-432e-9e9c-b1fef9cad9a6","baz","","","89c23760-3404-432e-9e9c-b1fef9cad9a6-1750672677802114701","2025-06-23 09:57:57.802","2025-06-23 09:57:57.802") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.563ms] [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 [0.582ms] [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 [0.652ms] [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.337ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz",`type`="",`data`="",`created_time`="2025-06-23 09:57:57.802",`updated_time`="2025-06-23 09:57:57.814",`etag`="89c23760-3404-432e-9e9c-b1fef9cad9a6-1750672677814970166" WHERE `parent` = "foo" AND `result_id` = "5f8b2427-cfbb-4a4c-9e9f-040e00079323" AND `id` = "89c23760-3404-432e-9e9c-b1fef9cad9a6" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.484ms] [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 [7.050ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "5f8b2427-cfbb-4a4c-9e9f-040e00079323" AND `records`.`result_name` = "bar" AND `records`.`id` = "89c23760-3404-432e-9e9c-b1fef9cad9a6" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-23 09:57:57.802" AND `records`.`updated_time` = "2025-06-23 09:57:57.814" AND `records`.`etag` = "89c23760-3404-432e-9e9c-b1fef9cad9a6-1750672677814970166" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [0.719ms] [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 [5.272ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "5f8b2427-cfbb-4a4c-9e9f-040e00079323" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-23 09:57:57.779" AND `results`.`updated_time` = "2025-06-23 09:57:57.794" AND `results`.`etag` = "5f8b2427-cfbb-4a4c-9e9f-040e00079323-1750672677794202805" === RUN TestRBAC/unauthorized_impersonated_group --- PASS: TestRBAC (0.65s) --- PASS: TestRBAC/authorized_user (0.19s) --- PASS: TestRBAC/unauthorized_user (0.01s) --- PASS: TestRBAC/authorized_group (0.09s) --- PASS: TestRBAC/unauthorized_group (0.01s) --- PASS: TestRBAC/authorized_extra (0.07s) --- PASS: TestRBAC/unauthorized_extra (0.01s) --- PASS: TestRBAC/unauthenticated_user (0.01s) --- PASS: TestRBAC/authorized_impersonated_user (0.06s) --- PASS: TestRBAC/unauthorized_impersonated_user (0.01s) --- PASS: TestRBAC/authorized_impersonated_group (0.06s) --- PASS: TestRBAC/unauthorized_impersonated_group (0.01s) PASS ok github.com/tektoncd/results/pkg/api/server/v1alpha2/auth 1.888s === 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.00s) --- PASS: TestNewImpersonation/missing_all_impersonation_header (0.00s) --- PASS: TestNewImpersonation/missing_impersonate_user_header_only (0.00s) --- PASS: TestNewImpersonation/parse_impersonation_headers (0.00s) === 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.136s === 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.00s) --- 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.00s) --- 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.02s) --- 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.02s) --- 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.01s) --- PASS: TestBuildQuery/complex_query (0.00s) --- 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.00s) --- 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.199s === 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 (0.63s) === RUN TestGCSWriteTo gcs_test.go:77: Replaying GCS API responses from replay file testdata/TestGCSWriteTo.replay --- PASS: TestGCSWriteTo (0.03s) === RUN TestGCSDelete gcs_test.go:77: Replaying GCS API responses from replay file testdata/TestGCSDelete.replay --- PASS: TestGCSDelete (0.03s) === 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.00s) --- 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 1.797s === RUN TestLogPluginServer_GetLog plugin_logs_test.go:108: test database: /tmp/testdb688932321 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.080ms] [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.114ms] [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 [49.223ms] [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.985ms] [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.110ms] [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.357ms] [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.176ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"info","ts":1750672677.2981133,"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 [6.200ms] [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","4a9b226a-88f6-4d54-b3ce-5e90d08dbefa","bar","null","","",NULL,NULL,0,"null","4a9b226a-88f6-4d54-b3ce-5e90d08dbefa-1750672677300667905","2025-06-23 09:57:57.3","2025-06-23 09:57:57.3") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.380ms] [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 [41.551ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","4a9b226a-88f6-4d54-b3ce-5e90d08dbefa","bar","63e1baea-74d3-4b07-8459-a7ade0ce8b7b","baz","tekton.dev/v1.PipelineRun","{""metadata"":{""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{""startTime"":""2025-06-23T09:57:57Z"",""completionTime"":""2025-06-23T09:57:57Z""}}","63e1baea-74d3-4b07-8459-a7ade0ce8b7b-1750672677322773542","2025-06-23 09:57:57.322","2025-06-23 09:57:57.322") 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 [0.530ms] [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=1750672677&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=1750672677 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.22s) === RUN TestMergeLogParts === RUN TestMergeLogParts/Test_with_matching_regexp === RUN TestMergeLogParts/Test_with_empty_regexp === RUN TestMergeLogParts/Test_with_not_matching_regexp --- PASS: TestMergeLogParts (0.02s) --- PASS: TestMergeLogParts/Test_with_matching_regexp (0.00s) --- PASS: TestMergeLogParts/Test_with_empty_regexp (0.02s) --- PASS: TestMergeLogParts/Test_with_not_matching_regexp (0.00s) === RUN TestSplunkLogs plugin_logs_test.go:319: test database: /tmp/testdb3970021596 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.047ms] [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.123ms] [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 [6.898ms] [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 [29.838ms] [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.113ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [6.262ms] [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.479ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"info","ts":1750672677.492763,"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 [5.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 ("rh-acs-tenant","b56d3866-02dd-47db-a4a6-2251efbffae2","test-result","null","","",NULL,NULL,0,"null","b56d3866-02dd-47db-a4a6-2251efbffae2-1750672677493064646","2025-06-23 09:57:57.493","2025-06-23 09:57:57.493") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.839ms] [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 [9.129ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("rh-acs-tenant","b56d3866-02dd-47db-a4a6-2251efbffae2","test-result","5c284b09-be22-488b-84fd-391e9d18ba09","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-23T08:57:57Z"",""completionTime"":""2025-06-23T09:57:57Z""}}","5c284b09-be22-488b-84fd-391e9d18ba09-1750672677504546277","2025-06-23 09:57:57.504","2025-06-23 09:57:57.504") 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 [0.681ms] [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.13s) PASS ok github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin 6.586s === 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.00s) --- 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.01s) --- PASS: TestToStorage/full (0.00s) --- PASS: TestToStorage/missing_data (0.00s) --- PASS: TestToStorage/deprecated_fields (0.00s) --- PASS: TestToStorage/invalid_type (0.00s) --- PASS: TestToStorage/invalid_data (0.00s) === RUN TestToAPI === RUN TestToAPI/full === RUN TestToAPI/partial --- PASS: TestToAPI (0.03s) --- PASS: TestToAPI/full (0.01s) --- 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.184s === 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.00s) --- 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.00s) --- 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.01s) === 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 09:57:57 failed to evaluate the expression: no such attribute(s): record --- PASS: TestMatch (0.03s) --- PASS: TestMatch/no_filter (0.00s) --- PASS: TestMatch/matching_condition (0.02s) --- PASS: TestMatch/non-matching_condition (0.00s) --- PASS: TestMatch/nil_result (0.00s) --- PASS: TestMatch/non-bool_output (0.00s) --- PASS: TestMatch/wrong_resource_type (0.00s) === RUN TestFormatName --- PASS: TestFormatName (0.00s) PASS ok github.com/tektoncd/results/pkg/api/server/v1alpha2/result 1.177s === RUN TestStoreLoadWithContext logger.go:146: 2025-06-23T09:57:57.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.01s) === RUN TestStoreLoadWithContext_Empty --- PASS: TestStoreLoadWithContext_Empty (0.00s) PASS ok github.com/tektoncd/results/pkg/apis/config 1.164s === RUN TestNewRESTClient === RUN TestNewRESTClient/valid_config === RUN TestNewRESTClient/nil_config === RUN TestNewRESTClient/nil_transport --- PASS: TestNewRESTClient (0.00s) --- 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.01s) --- PASS: TestSend/successful_request (0.00s) PASS ok github.com/tektoncd/results/pkg/cli/client 1.046s === RUN TestListRecords === RUN TestListRecords/successful_list === RUN TestListRecords/error_response 2025/06/23 09:57:57 RoundTripper returned a response & error; ignoring response --- PASS: TestListRecords (0.00s) --- PASS: TestListRecords/successful_list (0.00s) --- PASS: TestListRecords/error_response (0.00s) PASS ok github.com/tektoncd/results/pkg/cli/client/records 1.051s === 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.00s) --- PASS: TestPrintProto/*results_go_proto.Result_textproto (0.00s) --- 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 09:57:58 +0000 UTC 2025-06-23 09:57:58 +0000 UTC] === RUN TestPrintProto_Tab/*results_go_proto.ListRecordsResponse [Name Type Start Update] [a tacocat 2025-06-23 09:57:58 +0000 UTC 2025-06-23 09:57:58 +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.178s ? 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/cli/dev/cmd/logs [no test files] ? github.com/tektoncd/results/pkg/cli/dev/cmd/records [no test files] ? github.com/tektoncd/results/pkg/cli/dev/flags [no test files] ? github.com/tektoncd/results/pkg/cli/dev/format [no test files] ? github.com/tektoncd/results/pkg/cli/dev/portforward [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.00s) --- 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.00s) --- PASS: TestSetCommand/valid_params_no_flags (0.00s) --- PASS: TestSetCommand/nil_params_no_flags (0.00s) --- 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.139s === 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.02s) --- PASS: TestDescribeCommand/success (0.02s) --- 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.01s) --- PASS: TestListCommand/successful_list_with_default_options (0.00s) --- 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.171s === 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.01s) --- 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.02s) --- 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.201s === RUN TestNewConfig === RUN TestNewConfig/valid_params --- PASS: TestNewConfig (0.01s) --- PASS: TestNewConfig/valid_params (0.01s) === RUN TestSet --- PASS: TestSet (0.02s) === RUN TestReset --- PASS: TestReset (0.02s) === RUN TestLoadClientConfig --- PASS: TestLoadClientConfig (0.01s) === RUN TestNewConfigError --- PASS: TestNewConfigError (0.00s) === RUN TestSetWithPrompt config_test.go:270: Received expected error when prompting for user input in test environment --- PASS: TestSetWithPrompt (0.01s) === RUN TestPersist --- PASS: TestPersist (0.01s) === RUN TestSetVersion --- PASS: TestSetVersion (0.01s) === RUN TestHost --- PASS: TestHost (0.06s) === RUN TestToken --- PASS: TestToken (0.01s) === 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.02s) --- PASS: TestGetRoutes/invalid_config (0.00s) --- PASS: TestGetRoutes/invalid_host (0.07s) === RUN TestGetRoutesWithNilConfig --- PASS: TestGetRoutesWithNilConfig (0.00s) PASS ok github.com/tektoncd/results/pkg/cli/config 1.339s === RUN TestToken === RUN TestToken/default === RUN TestToken/token === RUN TestToken/serviceaccount === RUN TestToken/token#01 === RUN TestToken/token_over_serviceaccount --- PASS: TestToken (0.00s) --- 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.17s) PASS ok github.com/tektoncd/results/pkg/cli/dev/client 1.305s === RUN TestDescribeResult --- PASS: TestDescribeResult (0.00s) PASS ok github.com/tektoncd/results/pkg/cli/dev/cmd/result 1.047s === 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.039s ? github.com/tektoncd/results/pkg/cli/options [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/internal/test [no test files] === 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.102s === RUN TestClearOutputOnly --- PASS: TestClearOutputOnly (0.01s) PASS ok github.com/tektoncd/results/pkg/internal/protoutil 1.048s === 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.034s === RUN TestRecorder_DurationAndCountDeleted === RUN TestRecorder_DurationAndCountDeleted/for_succeed_pipeline logger.go:146: 2025-06-23T09:58:07.098Z DEBUG pipelinerunmetrics/metrics.go:78 unregistering pipelinerun metrics view logger.go:146: 2025-06-23T09:58:07.098Z DEBUG pipelinerunmetrics/metrics.go:73 registering pipelinerun metrics view === RUN TestRecorder_DurationAndCountDeleted/for_canceled_pipeline_(without_completion_time) logger.go:146: 2025-06-23T09:58:07.099Z DEBUG pipelinerunmetrics/metrics.go:78 unregistering pipelinerun metrics view logger.go:146: 2025-06-23T09:58:07.099Z DEBUG pipelinerunmetrics/metrics.go:73 registering pipelinerun metrics view === RUN TestRecorder_DurationAndCountDeleted/for_failed_pipeline_(without_completion_time) logger.go:146: 2025-06-23T09:58:07.100Z DEBUG pipelinerunmetrics/metrics.go:78 unregistering pipelinerun metrics view logger.go:146: 2025-06-23T09:58:07.100Z 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.092s ? github.com/tektoncd/results/pkg/test [no test files] ? github.com/tektoncd/results/pkg/test/fake [no test files] === RUN TestAgent_job {"level":"info","msg":"retention job started at: 2025-06-23 09:58:09.396959297 +0000 UTC m=+0.154508264, deleting data older than 2025-06-22 09:58:09.396958679 +0000 UTC m=-86399.845492339, retention policy: { 24h0m0s}"} {"level":"info","msg":"retention job finished at: 2025-06-23 09:58:09.397537758 +0000 UTC m=+0.155086738"} --- PASS: TestAgent_job (0.03s) PASS ok github.com/tektoncd/results/pkg/retention 1.203s === RUN TestRecorder_DurationAndCountDeleted === RUN TestRecorder_DurationAndCountDeleted/for_succeeded_taskrun logger.go:146: 2025-06-23T09:58:09.305Z DEBUG taskrunmetrics/metrics.go:89 unregistering taskrun metrics view logger.go:146: 2025-06-23T09:58:09.306Z DEBUG taskrunmetrics/metrics.go:84 registering taskrun metrics view === RUN TestRecorder_DurationAndCountDeleted/for_failed_taskrun logger.go:146: 2025-06-23T09:58:09.307Z DEBUG taskrunmetrics/metrics.go:89 unregistering taskrun metrics view logger.go:146: 2025-06-23T09:58:09.307Z DEBUG taskrunmetrics/metrics.go:84 registering taskrun metrics view === RUN TestRecorder_DurationAndCountDeleted/for_succeeded_taskrun_in_pipelinerun logger.go:146: 2025-06-23T09:58:09.309Z DEBUG taskrunmetrics/metrics.go:89 unregistering taskrun metrics view logger.go:146: 2025-06-23T09:58:09.310Z DEBUG taskrunmetrics/metrics.go:84 registering taskrun metrics view === RUN TestRecorder_DurationAndCountDeleted/for_failed_taskrun_in_pipelinerun logger.go:146: 2025-06-23T09:58:09.312Z DEBUG taskrunmetrics/metrics.go:89 unregistering taskrun metrics view logger.go:146: 2025-06-23T09:58:09.312Z 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.109s ? 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.21s) --- PASS: TestToProto/string (0.11s) --- PASS: TestToProto/string/*v1.TaskRun (0.05s) --- PASS: TestToProto/string/*unstructured.Unstructured (0.04s) --- PASS: TestToProto/string#01 (0.10s) --- PASS: TestToProto/string#01/*v1.PipelineRun (0.05s) --- PASS: TestToProto/string#01/*unstructured.Unstructured (0.03s) --- PASS: TestToProto/nil (0.00s) === RUN TestToLogProto === RUN TestToLogProto/TaskRun_Log === RUN TestToLogProto/PipelineRun_Log --- PASS: TestToLogProto (0.02s) --- PASS: TestToLogProto/TaskRun_Log (0.01s) --- PASS: TestToLogProto/PipelineRun_Log (0.01s) === 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.402s === RUN TestGetDisableAnnotationUpdate --- PASS: TestGetDisableAnnotationUpdate (0.00s) === RUN TestCompletedResourceGracePeriod --- PASS: TestCompletedResourceGracePeriod (0.00s) === RUN TestController logger.go:146: 2025-06-23T09:58:18.683Z INFO cache/cacheclient.go:42 CACHE CLIENT &{lru:0xc0009cb060 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/testdb1602166984 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.138ms] [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 [45.178ms] [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 [4.616ms] [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.091ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [3.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 [3.970ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672698.7658954,"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-23T09:58:18.770Z 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-23T09:58:18.770Z 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-23T09:58:18.771Z 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-23T09:58:18.771Z 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-23T09:58:18.771Z 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-23T09:58:18.771Z 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-23T09:58:18.772Z 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-23T09:58:18.773Z 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-23T09:58:18.797Z 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.335ms] [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-23T09:58:18.799Z 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": "50665d4e-33c2-4c9a-bbb0-29e81d22f7d4", "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 [6.291ms] [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","d94a39f9-9c67-4e05-962e-a4c8ae0659d2","pr-id","null","","",NULL,NULL,0,"null","d94a39f9-9c67-4e05-962e-a4c8ae0659d2-1750672698801631574","2025-06-23 09:58:18.801","2025-06-23 09:58:18.801") 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.396ms] [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-23T09:58:18.810Z 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": "50665d4e-33c2-4c9a-bbb0-29e81d22f7d4", "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 [2.117ms] [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 [5.318ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","d94a39f9-9c67-4e05-962e-a4c8ae0659d2","pr-id","e5de63e5-7511-41ab-8ba9-51d0fba39cae","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"":""""}}","e5de63e5-7511-41ab-8ba9-51d0fba39cae-1750672698814703607","2025-06-23 09:58:18.814","2025-06-23 09:58:18.814") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T09:58:18.821Z 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": "50665d4e-33c2-4c9a-bbb0-29e81d22f7d4", "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": 24} logger.go:146: 2025-06-23T09:58:18.822Z 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": "50665d4e-33c2-4c9a-bbb0-29e81d22f7d4", "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-23T09:58:18.822Z 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-23T09:58:18.823Z 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": "50665d4e-33c2-4c9a-bbb0-29e81d22f7d4", "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-23T09:58:18.823Z 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-23T09:58:18.823Z 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": "50665d4e-33c2-4c9a-bbb0-29e81d22f7d4", "knative.dev/key": "ns/taskrun", "duration": "50.584846ms"} logger.go:146: 2025-06-23T09:58:18.824Z 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.507ms] [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-23T09:58:18.826Z 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": "a1640239-5eba-4ca5-82ec-4f01cea2133b", "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.427ms] [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-23T09:58:18.841Z 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": "a1640239-5eba-4ca5-82ec-4f01cea2133b", "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.566ms] [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 [0.587ms] [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 09:58:18.814",`updated_time`="2025-06-23 09:58:18.843",`etag`="e5de63e5-7511-41ab-8ba9-51d0fba39cae-1750672698843699152" WHERE `parent` = "ns" AND `result_id` = "d94a39f9-9c67-4e05-962e-a4c8ae0659d2" AND `id` = "e5de63e5-7511-41ab-8ba9-51d0fba39cae" logger.go:146: 2025-06-23T09:58:18.849Z 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": "a1640239-5eba-4ca5-82ec-4f01cea2133b", "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": 24} logger.go:146: 2025-06-23T09:58:18.849Z 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": "a1640239-5eba-4ca5-82ec-4f01cea2133b", "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-23T09:58:18.849Z 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": "a1640239-5eba-4ca5-82ec-4f01cea2133b", "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-23T09:58:18.850Z 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": "a1640239-5eba-4ca5-82ec-4f01cea2133b", "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-23T09:58:18.850Z 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": "a1640239-5eba-4ca5-82ec-4f01cea2133b", "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-23T09:58:18.850Z 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": "a1640239-5eba-4ca5-82ec-4f01cea2133b", "knative.dev/key": "ns/taskrun", "duration": "25.551745ms"} === 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-23T09:58:19.779Z 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-23T09:58:19.780Z 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-23T09:58:19.787Z 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-23T09:58:19.788Z 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": "c3d96132-ebb7-4f02-92e1-fa70db56190a", "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.725ms] [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:208 [0.742ms] [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.788ms] [rows:1] UPDATE `results` SET `name`="pr-id",`annotations`="{""object.metadata.name"":""pr""}",`created_time`="2025-06-23 09:58:18.801",`updated_time`="2025-06-23 09:58:19.794",`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`="d94a39f9-9c67-4e05-962e-a4c8ae0659d2-1750672699794865692" WHERE `parent` = "ns" AND `id` = "d94a39f9-9c67-4e05-962e-a4c8ae0659d2" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.558ms] [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-23T09:58:19.850Z 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": "c3d96132-ebb7-4f02-92e1-fa70db56190a", "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.549ms] [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 [9.598ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","d94a39f9-9c67-4e05-962e-a4c8ae0659d2","pr-id","8777370b-114d-41fe-a1a9-d2f64393867e","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"":{}}","8777370b-114d-41fe-a1a9-d2f64393867e-1750672699852173345","2025-06-23 09:58:19.852","2025-06-23 09:58:19.852") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T09:58:19.863Z 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": "c3d96132-ebb7-4f02-92e1-fa70db56190a", "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": 74} logger.go:146: 2025-06-23T09:58:19.864Z 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": "c3d96132-ebb7-4f02-92e1-fa70db56190a", "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-23T09:58:19.864Z 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-23T09:58:19.866Z 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": "c3d96132-ebb7-4f02-92e1-fa70db56190a", "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-23T09:58:19.866Z 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": "c3d96132-ebb7-4f02-92e1-fa70db56190a", "knative.dev/key": "ns/pr", "duration": "86.22801ms"} logger.go:146: 2025-06-23T09:58:19.866Z 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-23T09:58:19.866Z 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-23T09:58:19.867Z 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": "607d9a50-839b-4e8f-b561-7f8e156a2e04", "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.678ms] [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-23T09:58:19.870Z 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": "607d9a50-839b-4e8f-b561-7f8e156a2e04", "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.557ms] [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-23T09:58:19.882Z 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": "607d9a50-839b-4e8f-b561-7f8e156a2e04", "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.672ms] [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.641ms] [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 09:58:19.852",`updated_time`="2025-06-23 09:58:19.884",`etag`="8777370b-114d-41fe-a1a9-d2f64393867e-1750672699884744727" WHERE `parent` = "ns" AND `result_id` = "d94a39f9-9c67-4e05-962e-a4c8ae0659d2" AND `id` = "8777370b-114d-41fe-a1a9-d2f64393867e" logger.go:146: 2025-06-23T09:58:19.892Z 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": "607d9a50-839b-4e8f-b561-7f8e156a2e04", "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": 25} logger.go:146: 2025-06-23T09:58:19.892Z 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": "607d9a50-839b-4e8f-b561-7f8e156a2e04", "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-23T09:58:19.893Z 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": "607d9a50-839b-4e8f-b561-7f8e156a2e04", "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-23T09:58:19.893Z 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": "607d9a50-839b-4e8f-b561-7f8e156a2e04", "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-23T09:58:19.893Z 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": "607d9a50-839b-4e8f-b561-7f8e156a2e04", "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-23T09:58:19.893Z 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": "607d9a50-839b-4e8f-b561-7f8e156a2e04", "knative.dev/key": "ns/pr", "duration": "26.738249ms"} === 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-23T09:58:20.780Z 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-23T09:58:20.780Z 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 (2.10s) --- PASS: TestController/taskrun (1.01s) --- PASS: TestController/pipelinerun (1.00s) PASS ok github.com/tektoncd/results/pkg/watcher/reconciler 3.595s === 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.071s ? 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-23T09:58:23.487Z INFO cache/cacheclient.go:42 CACHE CLIENT &{lru:0xc000c6c7e0 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/testdb2675062000 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.039ms] [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.125ms] [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 [4.923ms] [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.796ms] [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.092ms] [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.724ms] [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 [31.035ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672703.5551727,"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.346ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.563Z 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 [5.294ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("ns","7f7f9245-99b8-492d-adc7-067814fbf309","12345","{""object.metadata.name"":""taskrun""}","ns/results/12345/records/12345","tekton.dev/v1.TaskRun",NULL,"0000-00-00 00:00:00",1,"null","7f7f9245-99b8-492d-adc7-067814fbf309-1750672703565743481","2025-06-23 09:58:23.565","2025-06-23 09:58:23.565") 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.483ms] [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-23T09:58:23.587Z 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 [2.847ms] [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 [47.255ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","7f7f9245-99b8-492d-adc7-067814fbf309","12345","7840173e-add1-41c8-a1d7-074148dadc7a","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"":""""}}","7840173e-add1-41c8-a1d7-074148dadc7a-1750672703591960964","2025-06-23 09:58:23.591","2025-06-23 09:58:23.591") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.852ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.644Z 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.368ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bb343cf6-ca35-3c8b-97d9-bf09afa0646c" 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.460ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.648Z 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.339ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bb343cf6-ca35-3c8b-97d9-bf09afa0646c" 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.398ms] [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 [71.777ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","7f7f9245-99b8-492d-adc7-067814fbf309","12345","72fd85ba-723d-418e-99ce-0a51dfefa69f","bb343cf6-ca35-3c8b-97d9-bf09afa0646c","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""ns"",""uid"":""bb343cf6-ca35-3c8b-97d9-bf09afa0646c"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""ns"",""name"":""taskrun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","72fd85ba-723d-418e-99ce-0a51dfefa69f-1750672703652471440","2025-06-23 09:58:23.652","2025-06-23 09:58:23.652") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T09:58:23.726Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:289 Skipping CRD annotation patch: annotation update is disabled logger.go:146: 2025-06-23T09:58:23.726Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:472 Streaming log started {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T09:58:23.727Z 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-23T09:58:23.727Z 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.690ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.730Z 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.368ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" 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.524ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.736Z 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.372ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" 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` = "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 [4.184ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","7f7f9245-99b8-492d-adc7-067814fbf309","12345","d2692164-e2fa-4c1a-ac79-b3fcaa46ce0d","1924a383-0abc-35ca-afc6-e0a2320dbfa2","results.tekton.dev/v1.EventList","{""metadata"":{},""items"":null}","d2692164-e2fa-4c1a-ac79-b3fcaa46ce0d-1750672703739498696","2025-06-23 09:58:23.739","2025-06-23 09:58:23.739") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T09:58:23.744Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:289 Skipping CRD annotation patch: annotation update is disabled logger.go:146: 2025-06-23T09:58:23.744Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T09:58:23.744Z 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": 80} logger.go:146: 2025-06-23T09:58:23.745Z 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-23T09:58:23.745Z 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-23T09:58:23.745Z 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.604ms] [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.806ms] [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.458ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" 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.518ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" 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.586ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.757Z 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.501ms] [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-23T09:58:23.770Z 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.515ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.774Z 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.512ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bb343cf6-ca35-3c8b-97d9-bf09afa0646c" 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.548ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.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.530ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.794Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T09:58:23.794Z 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": 16} logger.go:146: 2025-06-23T09:58:23.796Z 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-23T09:58:23.796Z 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.456ms] [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.484ms] [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.372ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bb343cf6-ca35-3c8b-97d9-bf09afa0646c" 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.372ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" 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 [0.413ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.805Z 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.474ms] [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-23T09:58:23.826Z 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.494ms] [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.505ms] [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-23T09:58:23Z""}}",`created_time`="2025-06-23 09:58:23.591",`updated_time`="2025-06-23 09:58:23.828",`etag`="7840173e-add1-41c8-a1d7-074148dadc7a-1750672703828710246" WHERE `parent` = "ns" AND `result_id` = "7f7f9245-99b8-492d-adc7-067814fbf309" AND `id` = "7840173e-add1-41c8-a1d7-074148dadc7a" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.621ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.837Z 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.441ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bb343cf6-ca35-3c8b-97d9-bf09afa0646c" 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.455ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.843Z 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.471ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.846Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T09:58:23.847Z 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": 30} logger.go:146: 2025-06-23T09:58:23.848Z 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-23T09:58:23.848Z 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.441ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.851Z 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.497ms] [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-23T09:58:23.863Z 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 [2.371ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.869Z 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.428ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bb343cf6-ca35-3c8b-97d9-bf09afa0646c" 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.438ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.876Z 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.458ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.879Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T09:58:23.879Z 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": 15} logger.go:146: 2025-06-23T09:58:23.880Z 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-23T09:58:23.880Z 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-23T09:58:23.880Z 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.483ms] [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.513ms] [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.539ms] [rows:1] UPDATE `results` SET `name`="12345",`annotations`="{""object.metadata.name"":""taskrun""}",`created_time`="2025-06-23 09:58:23.565",`updated_time`="2025-06-23 09:58:23.885",`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`="7f7f9245-99b8-492d-adc7-067814fbf309-1750672703885629122" WHERE `parent` = "ns" AND `id` = "7f7f9245-99b8-492d-adc7-067814fbf309" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.512ms] [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-23T09:58:23.908Z 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.412ms] [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.467ms] [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-23T09:58:23Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-23T09:58:23Z"",""completionTime"":""2025-06-23T09:58:25Z""}}",`created_time`="2025-06-23 09:58:23.591",`updated_time`="2025-06-23 09:58:23.909",`etag`="7840173e-add1-41c8-a1d7-074148dadc7a-1750672703909987352" WHERE `parent` = "ns" AND `result_id` = "7f7f9245-99b8-492d-adc7-067814fbf309" AND `id` = "7840173e-add1-41c8-a1d7-074148dadc7a" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.482ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.918Z 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.558ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bb343cf6-ca35-3c8b-97d9-bf09afa0646c" 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.462ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.924Z 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.469ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.927Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T09:58:23.927Z 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-23T09:58:23.929Z 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-23T09:58:23.929Z 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-23T09:58:23.929Z 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.464ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.932Z 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.526ms] [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-23T09:58:23.947Z 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.496ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.949Z 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.419ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bb343cf6-ca35-3c8b-97d9-bf09afa0646c" 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.431ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.956Z 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.529ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.959Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T09:58:23.959Z 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": 17} logger.go:146: 2025-06-23T09:58:23.960Z 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-23T09:58:23.960Z 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.400ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.963Z 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.438ms] [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-23T09:58:23.976Z 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.477ms] [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.503ms] [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-23T09:58:23Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-23T09:58:23Z"",""completionTime"":""2025-06-23T09:58:25Z""}}",`created_time`="2025-06-23 09:58:23.591",`updated_time`="2025-06-23 09:58:23.979",`etag`="7840173e-add1-41c8-a1d7-074148dadc7a-1750672703979072036" WHERE `parent` = "ns" AND `result_id` = "7f7f9245-99b8-492d-adc7-067814fbf309" AND `id` = "7840173e-add1-41c8-a1d7-074148dadc7a" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.549ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.029Z 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.502ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bb343cf6-ca35-3c8b-97d9-bf09afa0646c" 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.438ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.035Z 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.498ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.038Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T09:58:24.038Z 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": 65} logger.go:146: 2025-06-23T09:58:24.040Z 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-23T09:58:24.040Z 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-23T09:58:24.040Z 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.592ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.044Z 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.448ms] [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-23T09:58:24.058Z 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.448ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.061Z 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.500ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bb343cf6-ca35-3c8b-97d9-bf09afa0646c" 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.420ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.067Z 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.493ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.070Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T09:58:24.070Z 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": 17} logger.go:146: 2025-06-23T09:58:24.071Z 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.502ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.074Z 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.562ms] [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-23T09:58:24.088Z 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.527ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.091Z 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.607ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bb343cf6-ca35-3c8b-97d9-bf09afa0646c" 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.486ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.097Z 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.429ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.101Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T09:58:24.101Z 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": 16} logger.go:146: 2025-06-23T09:58:24.103Z 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.492ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.105Z 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.526ms] [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-23T09:58:24.120Z 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.633ms] [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.511ms] [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-23T09:58:23Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-23T09:58:23Z"",""completionTime"":""2025-06-23T09:58:25Z""}}",`created_time`="2025-06-23 09:58:23.591",`updated_time`="2025-06-23 09:58:24.122",`etag`="7840173e-add1-41c8-a1d7-074148dadc7a-1750672704122695688" WHERE `parent` = "ns" AND `result_id` = "7f7f9245-99b8-492d-adc7-067814fbf309" AND `id` = "7840173e-add1-41c8-a1d7-074148dadc7a" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.555ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.172Z 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.484ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bb343cf6-ca35-3c8b-97d9-bf09afa0646c" 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.493ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.178Z 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.447ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.181Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T09:58:24.182Z 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": 66} logger.go:146: 2025-06-23T09:58:24.183Z 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-23T09:58:24.183Z 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-23T09:58:24.183Z 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 [0.487ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.185Z 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.525ms] [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-23T09:58:24.200Z 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.454ms] [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.477ms] [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-23T09:58:23Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-23T09:58:23Z"",""completionTime"":""2025-06-23T09:58:25Z""}}",`created_time`="2025-06-23 09:58:23.591",`updated_time`="2025-06-23 09:58:24.202",`etag`="7840173e-add1-41c8-a1d7-074148dadc7a-1750672704202687695" WHERE `parent` = "ns" AND `result_id` = "7f7f9245-99b8-492d-adc7-067814fbf309" AND `id` = "7840173e-add1-41c8-a1d7-074148dadc7a" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.522ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.211Z 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.513ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bb343cf6-ca35-3c8b-97d9-bf09afa0646c" 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.433ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.216Z 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.597ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.220Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T09:58:24.220Z 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-23T09:58:24.222Z 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-23T09:58:24.222Z 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-23T09:58:24.222Z 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.263ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "2b10713c-0329-4954-b2c7-649ca670cc6b" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.224Z DEBUG TestReconcile_TaskRun results/results.go:188 Result doesn't exist yet - creating {"results.tekton.dev/result": "ns/results/2b10713c-0329-4954-b2c7-649ca670cc6b", "results.tekton.dev/record": "ns/results/2b10713c-0329-4954-b2c7-649ca670cc6b/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 [6.056ms] [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","87a82593-5f31-43b6-80ee-116332b38390","2b10713c-0329-4954-b2c7-649ca670cc6b","null","","",NULL,NULL,0,"null","87a82593-5f31-43b6-80ee-116332b38390-1750672704225345248","2025-06-23 09:58:24.225","2025-06-23 09:58:24.225") 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.400ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "2b10713c-0329-4954-b2c7-649ca670cc6b" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.234Z DEBUG TestReconcile_TaskRun results/results.go:334 Record doesn't exist yet - creating {"results.tekton.dev/record": "ns/results/2b10713c-0329-4954-b2c7-649ca670cc6b/records/12345"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.444ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "2b10713c-0329-4954-b2c7-649ca670cc6b" 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.087ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","87a82593-5f31-43b6-80ee-116332b38390","2b10713c-0329-4954-b2c7-649ca670cc6b","5dcc2f1e-7821-4763-b617-80e218388cfe","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"":""2b10713c-0329-4954-b2c7-649ca670cc6b""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-06-23T09:58:23Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-23T09:58:23Z"",""completionTime"":""2025-06-23T09:58:25Z""}}","5dcc2f1e-7821-4763-b617-80e218388cfe-1750672704235854253","2025-06-23 09:58:24.235","2025-06-23 09:58:24.235") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.606ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "2b10713c-0329-4954-b2c7-649ca670cc6b" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.246Z 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/2b10713c-0329-4954-b2c7-649ca670cc6b", "results.tekton.dev/record": "ns/results/2b10713c-0329-4954-b2c7-649ca670cc6b/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.372ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "2b10713c-0329-4954-b2c7-649ca670cc6b" AND `records`.`name` = "e40193c7-0e83-3d63-b2a1-fc8593509d0d" 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.452ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "2b10713c-0329-4954-b2c7-649ca670cc6b" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.250Z 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/2b10713c-0329-4954-b2c7-649ca670cc6b", "results.tekton.dev/record": "ns/results/2b10713c-0329-4954-b2c7-649ca670cc6b/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.320ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "2b10713c-0329-4954-b2c7-649ca670cc6b" AND `records`.`name` = "e40193c7-0e83-3d63-b2a1-fc8593509d0d" 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.455ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "2b10713c-0329-4954-b2c7-649ca670cc6b" 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.408ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","87a82593-5f31-43b6-80ee-116332b38390","2b10713c-0329-4954-b2c7-649ca670cc6b","0d0be51c-89b0-4d4d-b4a9-995fe676b1b7","e40193c7-0e83-3d63-b2a1-fc8593509d0d","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""ns"",""uid"":""e40193c7-0e83-3d63-b2a1-fc8593509d0d"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""ns"",""name"":""taskrun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","0d0be51c-89b0-4d4d-b4a9-995fe676b1b7-1750672704253680667","2025-06-23 09:58:24.253","2025-06-23 09:58:24.253") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T09:58:24.263Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:472 Streaming log started {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T09:58:24.264Z 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-23T09:58:24.264Z 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.482ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "2b10713c-0329-4954-b2c7-649ca670cc6b" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.266Z 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/2b10713c-0329-4954-b2c7-649ca670cc6b", "results.tekton.dev/record": "ns/results/2b10713c-0329-4954-b2c7-649ca670cc6b/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.342ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "2b10713c-0329-4954-b2c7-649ca670cc6b" AND `records`.`name` = "36d82ef3-e25c-3991-8297-a87be4cbcfa0" 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.394ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "2b10713c-0329-4954-b2c7-649ca670cc6b" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.270Z 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/2b10713c-0329-4954-b2c7-649ca670cc6b", "results.tekton.dev/record": "ns/results/2b10713c-0329-4954-b2c7-649ca670cc6b/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.441ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "2b10713c-0329-4954-b2c7-649ca670cc6b" AND `records`.`name` = "36d82ef3-e25c-3991-8297-a87be4cbcfa0" 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.370ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "2b10713c-0329-4954-b2c7-649ca670cc6b" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [5.256ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","87a82593-5f31-43b6-80ee-116332b38390","2b10713c-0329-4954-b2c7-649ca670cc6b","36fc7df9-50b1-4699-a1f5-848ce687c9fa","36d82ef3-e25c-3991-8297-a87be4cbcfa0","results.tekton.dev/v1.EventList","{""metadata"":{},""items"":null}","36fc7df9-50b1-4699-a1f5-848ce687c9fa-1750672704273534639","2025-06-23 09:58:24.273","2025-06-23 09:58:24.273") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T09:58:24.281Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T09:58:24.281Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/2b10713c-0329-4954-b2c7-649ca670cc6b", "results.tekton.dev/record": "ns/results/2b10713c-0329-4954-b2c7-649ca670cc6b/records/12345", "results.tekton.dev/time-taken-ms": 21} logger.go:146: 2025-06-23T09:58:24.283Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:334 Resource is owned by a PipelineRun, deferring deletion to parent PipelineRun {"results.tekton.dev/result": "ns/results/2b10713c-0329-4954-b2c7-649ca670cc6b", "results.tekton.dev/record": "ns/results/2b10713c-0329-4954-b2c7-649ca670cc6b/records/12345", "results.tekton.dev/gracePeriod": "1s", "tekton.dev/PipelineRun": "test-pipelinerun"} logger.go:146: 2025-06-23T09:58:24.283Z WARN TestReconcile_TaskRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/2b10713c-0329-4954-b2c7-649ca670cc6b", "results.tekton.dev/record": "ns/results/2b10713c-0329-4954-b2c7-649ca670cc6b/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.629ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.286Z 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.484ms] [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-23T09:58:24.302Z 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.447ms] [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.495ms] [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"":""f0594d85-f46f-425a-b141-9d880dc0830c""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-06-23T09:58:23Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-23T09:58:23Z"",""completionTime"":""2025-06-23T09:58:25Z""}}",`created_time`="2025-06-23 09:58:23.591",`updated_time`="2025-06-23 09:58:24.304",`etag`="7840173e-add1-41c8-a1d7-074148dadc7a-1750672704304741082" WHERE `parent` = "ns" AND `result_id` = "7f7f9245-99b8-492d-adc7-067814fbf309" AND `id` = "7840173e-add1-41c8-a1d7-074148dadc7a" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.558ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.313Z 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.503ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bb343cf6-ca35-3c8b-97d9-bf09afa0646c" 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.479ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.319Z 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.511ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "1924a383-0abc-35ca-afc6-e0a2320dbfa2" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.323Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-23T09:58:24.323Z 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": 27} logger.go:146: 2025-06-23T09:58:24.324Z 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":"f0594d85-f46f-425a-b141-9d880dc0830c"}]} logger.go:146: 2025-06-23T09:58:24.325Z 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 (0.84s) --- PASS: TestReconcile_TaskRun/disabled_annotations (0.01s) --- PASS: TestReconcile_TaskRun/enabled_annotations (0.05s) --- PASS: TestReconcile_TaskRun/delete_object_once_grace_period_elapses (0.08s) --- PASS: TestReconcile_TaskRun/delete_failed_runs (0.05s) --- PASS: TestReconcile_TaskRun/wait_until_the_object_has_the_desired_labels_to_delete_it (0.11s) --- PASS: TestReconcile_TaskRun/wait_until_the_IsReadyForDeletion_function_returns_true_to_delete_the_object (0.14s) --- PASS: TestReconcile_TaskRun/delete_object_with_owner_references_when_owner_check_is_disabled (0.04s) --- PASS: TestReconcile_TaskRun/do_not_delete_object_with_owner_references_has_PipelineRun_object_and_owner_check_is_disabled (0.06s) --- PASS: TestReconcile_TaskRun/do_not_delete_object_with_owner_references_when_owner_check_is_enabled (0.04s) === RUN TestReconcile_PipelineRun logger.go:146: 2025-06-23T09:58:24.326Z INFO cache/cacheclient.go:42 CACHE CLIENT &{lru:0xc0014e12c0 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/testdb2013053887 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.030ms] [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.101ms] [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 [5.122ms] [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 [3.861ms] [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.082ms] [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 [4.512ms] [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 [4.142ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672704.3629239,"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.297ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.368Z 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 [6.021ms] [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","286f4a2e-8967-427f-b887-c59aacc0c953","12345","{""object.metadata.name"":""pipelinerun""}","ns/results/12345/records/12345","tekton.dev/v1.PipelineRun",NULL,"0000-00-00 00:00:00",1,"null","286f4a2e-8967-427f-b887-c59aacc0c953-1750672704369462140","2025-06-23 09:58:24.369","2025-06-23 09:58:24.369") 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.389ms] [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-23T09:58:24.381Z 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 [2.061ms] [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 [5.642ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","286f4a2e-8967-427f-b887-c59aacc0c953","12345","17162198-d23d-46d5-8dcf-00985ceca9f9","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""}]}}","17162198-d23d-46d5-8dcf-00985ceca9f9-1750672704384855927","2025-06-23 09:58:24.384","2025-06-23 09:58:24.384") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.539ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.394Z 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 [1.061ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "997c3b2e-19fd-309b-950f-71bc93693532" 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.528ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.401Z 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.385ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "997c3b2e-19fd-309b-950f-71bc93693532" 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.334ms] [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 [5.181ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","286f4a2e-8967-427f-b887-c59aacc0c953","12345","6b7ddee7-8000-4b03-955f-28fc66161e73","997c3b2e-19fd-309b-950f-71bc93693532","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""pipelinerun-log"",""namespace"":""ns"",""uid"":""997c3b2e-19fd-309b-950f-71bc93693532"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""PipelineRun"",""namespace"":""ns"",""name"":""pipelinerun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","6b7ddee7-8000-4b03-955f-28fc66161e73-1750672704405150106","2025-06-23 09:58:24.405","2025-06-23 09:58:24.405") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T09:58:24.414Z DEBUG TestReconcile_PipelineRun dynamic/dynamic.go:472 Streaming log started {"namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun"} logger.go:146: 2025-06-23T09:58:24.415Z 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-23T09:58:24.415Z 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.551ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.418Z 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.360ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bd7d5cb8-cb40-3d11-a4b9-1646a9e1db47" 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.513ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:24.423Z 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.374ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bd7d5cb8-cb40-3d11-a4b9-1646a9e1db47" 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.349ms] [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 [25.974ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","286f4a2e-8967-427f-b887-c59aacc0c953","12345","e1c58c18-4037-46ce-b9e2-3e5df15c5808","bd7d5cb8-cb40-3d11-a4b9-1646a9e1db47","results.tekton.dev/v1.EventList","{""metadata"":{},""items"":null}","e1c58c18-4037-46ce-b9e2-3e5df15c5808-1750672704426810723","2025-06-23 09:58:24.426","2025-06-23 09:58:24.426") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-23T09:58:24.455Z DEBUG TestReconcile_PipelineRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun"} logger.go:146: 2025-06-23T09:58:24.455Z 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": 25} logger.go:146: 2025-06-23T09:58:24.456Z 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-23T09:58:24.456Z 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.598ms] [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.589ms] [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.439ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "997c3b2e-19fd-309b-950f-71bc93693532" 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.441ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "bd7d5cb8-cb40-3d11-a4b9-1646a9e1db47" ORDER BY `records`.`id` LIMIT 1 --- PASS: TestReconcile_PipelineRun (0.14s) --- 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 2.512s === 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-23T09:58:23.453Z 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-23T09:58:23.453Z 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-23T09:58:23.454Z DEBUG pipelinerun test-ns/test-pr is still running === RUN TestFinalize/store_deadline_passed_-_proceed_with_deletion logger.go:146: 2025-06-23T09:58:23.454Z DEBUG store deadline: 2025-06-23 08:58:23.45418574 +0000 UTC now: 2025-06-23 09:58:23.454596613 +0000 UTC, completion time: 2025-06-23 07:58:23.45418574 +0000 UTC logger.go:146: 2025-06-23T09:58:23.454Z DEBUG store deadline has passed for pipelinerun test-ns/test-pr logger.go:146: 2025-06-23T09:58:23.454Z ERROR pipelinerun not stored: test-ns/test-pr, uid: , === RUN TestFinalize/missing_annotations_-_requeue logger.go:146: 2025-06-23T09:58:23.454Z DEBUG pipelinerun test-ns/test-pr annotations are missing, now: 2025-06-23 09:58:23.454957067 +0000 UTC, storeDeadline: 2025-06-23 10:58:23.454186299 +0000 UTC === RUN TestFinalize/stored_annotation_missing_-_requeue logger.go:146: 2025-06-23T09:58:23.455Z DEBUG stored annotation is missing on pipelinerun test-ns/test-pr, now: 2025-06-23 09:58:23.45516066 +0000 UTC, storeDeadline: 2025-06-23 10:58:23.454186572 +0000 UTC === RUN TestFinalize/stored_annotation_not_true_-_requeue logger.go:146: 2025-06-23T09:58:23.455Z DEBUG stored annotation is not true on pipelinerun test-ns/test-pr, now: 2025-06-23 09:58:23.455419284 +0000 UTC, storeDeadline: 2025-06-23 10:58:23.454186786 +0000 UTC === RUN TestFinalize/reconcile_error_-_requeue logger.go:146: 2025-06-23T09:58:23.455Z DEBUG stored annotation is not true on pipelinerun test-ns/test-pr, now: 2025-06-23 09:58:23.455669542 +0000 UTC, storeDeadline: 2025-06-23 10:58:23.454186971 +0000 UTC === RUN TestFinalize/successful_finalization === RUN TestFinalize/verify_finalizer_requeue_interval logger.go:146: 2025-06-23T09:58:23.456Z 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.496s === RUN TestFinalize === RUN TestFinalize/taskrun_still_running_-_skip_finalization logger.go:146: 2025-06-23T09:58:23.445Z DEBUG taskrun test-ns/test-pr is still running === RUN TestFinalize/store_deadline_passed_-_proceed_with_deletion logger.go:146: 2025-06-23T09:58:23.445Z DEBUG store deadline: 2025-06-23 08:58:23.444892305 +0000 UTC now: 2025-06-23 09:58:23.445633266 +0000 UTC, completion time: 2025-06-23 07:58:23.444892305 +0000 UTC logger.go:146: 2025-06-23T09:58:23.445Z DEBUG store deadline has passed for taskrun test-ns/test-pr logger.go:146: 2025-06-23T09:58:23.445Z ERROR taskrun not stored: test-ns/test-pr, uid: , === RUN TestFinalize/missing_annotations_-_requeue logger.go:146: 2025-06-23T09:58:23.446Z DEBUG taskrun test-ns/test-pr annotations are missing, now: 2025-06-23 09:58:23.446182621 +0000 UTC, storeDeadline: 2025-06-23 10:58:23.444892989 +0000 UTC === RUN TestFinalize/stored_annotation_missing_-_requeue logger.go:146: 2025-06-23T09:58:23.446Z DEBUG stored annotation is missing on taskrun test-ns/test-pr, now: 2025-06-23 09:58:23.446539094 +0000 UTC, storeDeadline: 2025-06-23 10:58:23.4448935 +0000 UTC === RUN TestFinalize/stored_annotation_not_true_-_requeue logger.go:146: 2025-06-23T09:58:23.446Z DEBUG stored annotation is not true on taskrun test-ns/test-pr, now: 2025-06-23 09:58:23.44677563 +0000 UTC, storeDeadline: 2025-06-23 10:58:23.444893811 +0000 UTC === RUN TestFinalize/reconcile_error_-_requeue logger.go:146: 2025-06-23T09:58:23.447Z DEBUG stored annotation is not true on taskrun test-ns/test-pr, now: 2025-06-23 09:58:23.446978069 +0000 UTC, storeDeadline: 2025-06-23 10:58:23.444894155 +0000 UTC === RUN TestFinalize/successful_finalization === RUN TestFinalize/verify_finalizer_requeue_interval logger.go:146: 2025-06-23T09:58:23.447Z DEBUG taskrun test-ns/test-pr annotations are missing, now: 2025-06-23 09:58:23.447398957 +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.488s === RUN TestClient_PutLog logs_test.go:15: test database: /tmp/testdb419871875 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.035ms] [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.106ms] [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 [48.428ms] [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 [4.722ms] [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.082ms] [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 [4.140ms] [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 [3.834ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672703.1947756,"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.322ms] [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 [5.993ms] [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","7a9cdb70-d839-46e9-a6cf-d4404a9a39a7","taskrun-id","{""object.metadata.name"":""taskrun""}","test/results/taskrun-id/records/taskrun-id","tekton.dev/v1.TaskRun",NULL,NULL,0,"null","7a9cdb70-d839-46e9-a6cf-d4404a9a39a7-1750672703203838944","2025-06-23 09:58:23.203","2025-06-23 09:58:23.203") 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.428ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "8703b6ae-b4d9-34b1-b9ee-97de156f1a95" 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.982ms] [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 [5.276ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","7a9cdb70-d839-46e9-a6cf-d4404a9a39a7","taskrun-id","3340fa8f-5938-429c-a7ab-5676b5deece2","8703b6ae-b4d9-34b1-b9ee-97de156f1a95","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""test"",""uid"":""8703b6ae-b4d9-34b1-b9ee-97de156f1a95"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""test"",""name"":""taskrun"",""uid"":""taskrun-id""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","3340fa8f-5938-429c-a7ab-5676b5deece2-1750672703218892501","2025-06-23 09:58:23.218","2025-06-23 09:58:23.218") 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.749ms] [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.516ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "8703b6ae-b4d9-34b1-b9ee-97de156f1a95" 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.449ms] [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.549ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "8703b6ae-b4d9-34b1-b9ee-97de156f1a95" 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.223ms] [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.346ms] [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","f63739a2-ca00-409c-a14f-44a7a84eb90d","pipelinerun-id","{""object.metadata.name"":""pipelinerun""}","test/results/pipelinerun-id/records/pipelinerun-id","tekton.dev/v1.PipelineRun",NULL,NULL,0,"null","f63739a2-ca00-409c-a14f-44a7a84eb90d-1750672703237426432","2025-06-23 09:58:23.237","2025-06-23 09:58:23.237") 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.396ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "6959dbd2-9240-3b89-8808-fa991a9227ad" 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` = "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 [7.891ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","f63739a2-ca00-409c-a14f-44a7a84eb90d","pipelinerun-id","1dcb9eed-c822-44c4-b9c7-05b20b2a72b6","6959dbd2-9240-3b89-8808-fa991a9227ad","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""pipelinerun-log"",""namespace"":""test"",""uid"":""6959dbd2-9240-3b89-8808-fa991a9227ad"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""PipelineRun"",""namespace"":""test"",""name"":""pipelinerun"",""uid"":""pipelinerun-id""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","1dcb9eed-c822-44c4-b9c7-05b20b2a72b6-1750672703248452680","2025-06-23 09:58:23.248","2025-06-23 09:58:23.248") 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.597ms] [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.532ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "6959dbd2-9240-3b89-8808-fa991a9227ad" 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.418ms] [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.447ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "6959dbd2-9240-3b89-8808-fa991a9227ad" ORDER BY `records`.`id` LIMIT 1 --- PASS: TestClient_PutLog (0.15s) --- PASS: TestClient_PutLog/taskrun (0.04s) --- PASS: TestClient_PutLog/taskrun/create (0.03s) --- PASS: TestClient_PutLog/taskrun/update (0.00s) --- PASS: TestClient_PutLog/pipelinerun (0.03s) --- PASS: TestClient_PutLog/pipelinerun/create (0.02s) --- PASS: TestClient_PutLog/pipelinerun/update (0.00s) === 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/testdb3299232582 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.033ms] [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.099ms] [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 [5.162ms] [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 [4.736ms] [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.075ms] [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 [4.964ms] [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 [4.819ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672703.3046477,"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.351ms] [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.282ms] [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-23T09:58:23.310Z 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 [5.789ms] [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","426c971c-8211-44ef-9ed5-ab881fb126d4","taskrun-id","{""object.metadata.name"":""foo""}","test/results/taskrun-id/records/taskrun-id","tekton.dev/v1.TaskRun",NULL,NULL,0,"null","426c971c-8211-44ef-9ed5-ab881fb126d4-1750672703311883499","2025-06-23 09:58:23.311","2025-06-23 09:58:23.311") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.691ms] [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-23T09:58:23.324Z 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.262ms] [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.505ms] [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-23T09:58:23.330Z 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 [5.870ms] [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","1dbcfdb3-8320-411b-8e3f-567f430bad09","pipelinerun-id","{""object.metadata.name"":""foo""}","test/results/pipelinerun-id/records/pipelinerun-id","tekton.dev/v1.PipelineRun",NULL,NULL,0,"null","1dbcfdb3-8320-411b-8e3f-567f430bad09-1750672703331371915","2025-06-23 09:58:23.331","2025-06-23 09:58:23.331") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.617ms] [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-23T09:58:23.343Z 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.08s) --- PASS: TestEnsureResult/foo (0.02s) --- PASS: TestEnsureResult/foo#01 (0.02s) === RUN TestEnsureResult_RecordSummaryUpdate results_test.go:305: test database: /tmp/testdb3039224267 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.030ms] [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.096ms] [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 [5.445ms] [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 [4.856ms] [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.081ms] [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 [4.191ms] [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 [3.970ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672703.3829205,"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.283ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "default" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.387Z 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.265ms] [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","dc8d0bf4-0a32-4fc8-ac03-1482cf71f7b8","1","null","","",NULL,NULL,0,"null","dc8d0bf4-0a32-4fc8-ac03-1482cf71f7b8-1750672703388634632","2025-06-23 09:58:23.388","2025-06-23 09:58:23.388") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.520ms] [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.806ms] [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.759ms] [rows:1] UPDATE `results` SET `name`="1",`annotations`="{""object.metadata.name"":""foo""}",`created_time`="2025-06-23 09:58:23.388",`updated_time`="2025-06-23 09:58:23.421",`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`="dc8d0bf4-0a32-4fc8-ac03-1482cf71f7b8-1750672703421850936" WHERE `parent` = "default" AND `id` = "dc8d0bf4-0a32-4fc8-ac03-1482cf71f7b8" --- PASS: TestEnsureResult_RecordSummaryUpdate (0.13s) === RUN TestAnnotations results_test.go:353: test database: /tmp/testdb2988827246 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.033ms] [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 [5.355ms] [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 [3.563ms] [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.084ms] [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 [3.800ms] [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 [4.173ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672703.5042524,"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.285ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "default" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-23T09:58:23.508Z 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 [6.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 ("default","416510c9-3515-4141-b15f-d9e9007b1911","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""}","416510c9-3515-4141-b15f-d9e9007b1911-1750672703509735994","2025-06-23 09:58:23.509","2025-06-23 09:58:23.509") RETURNING `created_time`,`updated_time` --- PASS: TestAnnotations (0.05s) === RUN TestUpsertRecord results_test.go:387: test database: /tmp/testdb2519725117 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.040ms] [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.101ms] [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.556ms] [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 [4.785ms] [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.085ms] [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 [4.059ms] [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.310ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672703.5733547,"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.413ms] [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 [5.805ms] [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","8e53cfc0-48df-40bd-b748-50ab99a93719","taskrun-id","{""object.metadata.name"":""taskrun""}","test/results/taskrun-id/records/taskrun-id","tekton.dev/v1.TaskRun",NULL,NULL,0,"null","8e53cfc0-48df-40bd-b748-50ab99a93719-1750672703579191322","2025-06-23 09:58:23.579","2025-06-23 09:58:23.579") 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.343ms] [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.318ms] [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.192ms] [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 [77.468ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","8e53cfc0-48df-40bd-b748-50ab99a93719","taskrun-id","8a1fc17f-7f82-47bc-b2ef-4c2726446d1c","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""}]}}","8a1fc17f-7f82-47bc-b2ef-4c2726446d1c-1750672703604514342","2025-06-23 09:58:23.604","2025-06-23 09:58:23.604") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.559ms] [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.563ms] [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.614ms] [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.616ms] [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 [0.540ms] [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 09:58:23.604",`updated_time`="2025-06-23 09:58:23.739",`etag`="8a1fc17f-7f82-47bc-b2ef-4c2726446d1c-1750672703739038539" WHERE `parent` = "test" AND `result_id` = "8e53cfc0-48df-40bd-b748-50ab99a93719" AND `id` = "8a1fc17f-7f82-47bc-b2ef-4c2726446d1c" === 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.357ms] [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 [5.094ms] [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","bd090f96-85a9-4896-abb9-d2ae1dfc57ed","pipelinerun-id","{""object.metadata.name"":""pipelinerun""}","test/results/pipelinerun-id/records/pipelinerun-id","tekton.dev/v1.PipelineRun",NULL,NULL,0,"null","bd090f96-85a9-4896-abb9-d2ae1dfc57ed-1750672703760904671","2025-06-23 09:58:23.76","2025-06-23 09:58:23.76") 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.350ms] [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.371ms] [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.400ms] [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 [5.404ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","bd090f96-85a9-4896-abb9-d2ae1dfc57ed","pipelinerun-id","a133ad4f-9164-47a0-99ae-2893493b75ca","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""}]}}","a133ad4f-9164-47a0-99ae-2893493b75ca-1750672703773282717","2025-06-23 09:58:23.773","2025-06-23 09:58:23.773") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.599ms] [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.467ms] [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.496ms] [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.377ms] [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.517ms] [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 09:58:23.773",`updated_time`="2025-06-23 09:58:23.838",`etag`="a133ad4f-9164-47a0-99ae-2893493b75ca-1750672703838815396" WHERE `parent` = "test" AND `result_id` = "bd090f96-85a9-4896-abb9-d2ae1dfc57ed" AND `id` = "a133ad4f-9164-47a0-99ae-2893493b75ca" --- PASS: TestUpsertRecord (0.33s) --- PASS: TestUpsertRecord/taskrun (0.18s) --- PASS: TestUpsertRecord/taskrun/create (0.12s) --- PASS: TestUpsertRecord/taskrun/no-op (0.02s) --- PASS: TestUpsertRecord/taskrun/update (0.03s) --- PASS: TestUpsertRecord/pipelinerun (0.10s) --- PASS: TestUpsertRecord/pipelinerun/create (0.04s) --- PASS: TestUpsertRecord/pipelinerun/no-op (0.02s) --- PASS: TestUpsertRecord/pipelinerun/update (0.02s) === RUN TestPut results_test.go:557: test database: /tmp/testdb1302613253 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.027ms] [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.106ms] [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 [5.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 [4.041ms] [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.081ms] [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 [4.764ms] [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.073ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750672703.8849807,"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.288ms] [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 [6.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 ("test","19bdd068-3bb6-49e0-91c8-4e931dcf66eb","taskrun-id","{""object.metadata.name"":""taskrun""}","test/results/taskrun-id/records/taskrun-id","tekton.dev/v1.TaskRun",NULL,NULL,0,"null","19bdd068-3bb6-49e0-91c8-4e931dcf66eb-1750672703890353598","2025-06-23 09:58:23.89","2025-06-23 09:58:23.89") 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.512ms] [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.076ms] [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 [5.044ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","19bdd068-3bb6-49e0-91c8-4e931dcf66eb","taskrun-id","c3504e31-5a80-48f5-8c46-f1d28e7d1bf6","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"":""""}}","c3504e31-5a80-48f5-8c46-f1d28e7d1bf6-1750672703903251397","2025-06-23 09:58:23.903","2025-06-23 09:58:23.903") 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.571ms] [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.444ms] [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.475ms] [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.597ms] [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.317ms] [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 [5.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 ("test","2f38198d-4ecc-48fc-af9d-9818984d6fde","pipelinerun-id","{""object.metadata.name"":""pipelinerun""}","test/results/pipelinerun-id/records/pipelinerun-id","tekton.dev/v1.PipelineRun",NULL,NULL,0,"null","2f38198d-4ecc-48fc-af9d-9818984d6fde-1750672703926536791","2025-06-23 09:58:23.926","2025-06-23 09:58:23.926") 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.349ms] [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.365ms] [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 [4.958ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","2f38198d-4ecc-48fc-af9d-9818984d6fde","pipelinerun-id","a63c90a6-49ec-414e-86ca-09d3de373093","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"":{}}","a63c90a6-49ec-414e-86ca-09d3de373093-1750672703935347888","2025-06-23 09:58:23.935","2025-06-23 09:58:23.935") 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.483ms] [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.417ms] [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.506ms] [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.578ms] [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.10s) --- PASS: TestPut/taskrun (0.04s) --- PASS: TestPut/taskrun/create (0.02s) --- PASS: TestPut/taskrun/update (0.01s) --- PASS: TestPut/pipelinerun (0.03s) --- PASS: TestPut/pipelinerun/create (0.02s) --- PASS: TestPut/pipelinerun/update (0.01s) PASS ok github.com/tektoncd/results/pkg/watcher/results 2.000s testing: warning: no tests to run PASS ok github.com/tektoncd/results/tools/postgres-migrate 1.072s [no tests to run] FAIL unit_tests returning =========================== ==== UNIT TESTS FAILED ==== =========================== + EXIT_VALUE=1 + set +o xtrace