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 950a7afabe29264f4484f967470afcca06211486: go.mod go.sum vendor/gorm.io/driver/mysql/README.md vendor/gorm.io/driver/mysql/error_translator.go vendor/gorm.io/driver/mysql/migrator.go vendor/gorm.io/driver/mysql/mysql.go vendor/gorm.io/gorm/.golangci.yml vendor/gorm.io/gorm/CODE_OF_CONDUCT.md vendor/gorm.io/gorm/LICENSE vendor/gorm.io/gorm/association.go vendor/gorm.io/gorm/callbacks.go vendor/gorm.io/gorm/callbacks/associations.go vendor/gorm.io/gorm/callbacks/create.go vendor/gorm.io/gorm/callbacks/delete.go vendor/gorm.io/gorm/callbacks/preload.go vendor/gorm.io/gorm/callbacks/query.go vendor/gorm.io/gorm/callbacks/raw.go vendor/gorm.io/gorm/callbacks/update.go vendor/gorm.io/gorm/chainable_api.go vendor/gorm.io/gorm/clause/joins.go vendor/gorm.io/gorm/clause/limit.go vendor/gorm.io/gorm/clause/returning.go vendor/gorm.io/gorm/clause/where.go vendor/gorm.io/gorm/errors.go vendor/gorm.io/gorm/finisher_api.go vendor/gorm.io/gorm/generics.go vendor/gorm.io/gorm/gorm.go vendor/gorm.io/gorm/internal/lru/lru.go vendor/gorm.io/gorm/internal/stmt_store/stmt_store.go vendor/gorm.io/gorm/logger/logger.go vendor/gorm.io/gorm/logger/sql.go vendor/gorm.io/gorm/migrator/migrator.go vendor/gorm.io/gorm/prepare_stmt.go vendor/gorm.io/gorm/scan.go vendor/gorm.io/gorm/schema/constraint.go vendor/gorm.io/gorm/schema/field.go vendor/gorm.io/gorm/schema/index.go vendor/gorm.io/gorm/schema/naming.go vendor/gorm.io/gorm/schema/relationship.go vendor/gorm.io/gorm/schema/schema.go vendor/gorm.io/gorm/schema/serializer.go vendor/gorm.io/gorm/schema/utils.go vendor/gorm.io/gorm/statement.go vendor/gorm.io/gorm/utils/utils.go vendor/modules.txt 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 2025/06/25 11:32:08 maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined === RUN Test_determineAuth === RUN Test_determineAuth/missing_token === RUN Test_determineAuth/invalid_token === RUN Test_determineAuth/valid_token --- PASS: Test_determineAuth (0.01s) --- PASS: Test_determineAuth/missing_token (0.00s) --- PASS: Test_determineAuth/invalid_token (0.00s) --- PASS: Test_determineAuth/valid_token (0.00s) PASS ok github.com/tektoncd/results/cmd/api 2.032s ? github.com/tektoncd/results/cmd/cli-docs [no test files] ? 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 --- PASS: TestFieldMask_Paths (0.00s) === RUN TestFieldMask_Filter --- PASS: TestFieldMask_Filter (0.02s) === RUN TestFieldMask_FilterJSON --- PASS: TestFieldMask_FilterJSON (0.00s) === RUN TestFromMetadata --- PASS: TestFromMetadata (0.00s) === RUN TestMetadataAnnotator --- PASS: TestMetadataAnnotator (0.00s) PASS ok github.com/tektoncd/results/internal/fieldmask 1.063s === 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.05s) --- PASS: TestParseFilter/success (0.03s) --- PASS: TestParseFilter/success/#00 (0.00s) --- PASS: TestParseFilter/success/result (0.02s) --- 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.01s) --- PASS: TestParseFilter/error/asdf (0.00s) --- PASS: TestParseFilter/error/result.id_==_1 (0.00s) --- PASS: TestParseFilter/error/result.ID (0.00s) PASS ok github.com/tektoncd/results/pkg/api/server/cel 1.097s === 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.09s) --- 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.01s) --- 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.02s) --- 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.178s === RUN TestAnnotationsScan --- PASS: TestAnnotationsScan (0.00s) === RUN TestAnnotationsValue --- PASS: TestAnnotationsValue (0.00s) PASS ok github.com/tektoncd/results/pkg/api/server/db 1.037s ? 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.038s === 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.049s ? 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/testdb1232882259 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.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 [47.646ms] [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.238ms] [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 [4.575ms] [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.616ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851218.97411,"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.466ms] [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-1750851218893676267","2025-06-25 11:33:38.893","2025-06-25 11:33:38.893") RETURNING `created_time`,`updated_time` logs_test.go:113: test log file: /tmp/test-log-taskrun-1123933697.log db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.558ms] [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.597ms] [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-1123933697.log"",""size"":1024,""isStored"":true,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","2-1750851218893676267","2025-06-25 11:33:38.893","2025-06-25 11:33:38.893") RETURNING `created_time`,`updated_time` 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` = "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/testdb3519608433 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.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 [3.876ms] [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.827ms] [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.086ms] [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.135ms] [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.357ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851219.023555,"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.673ms] [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-1750851218893676267","2025-06-25 11:33:38.893","2025-06-25 11:33:38.893") RETURNING `created_time`,`updated_time` logs_test.go:191: test log file: /tmp/test-log-taskrun-3709445955.log db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.782ms] [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.227ms] [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-3709445955.log"",""size"":1024,""isStored"":true,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","4-1750851218893676267","2025-06-25 11:33:38.893","2025-06-25 11:33:38.893") RETURNING `created_time`,`updated_time` 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` = "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/testdb233189015 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.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 [4.566ms] [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.272ms] [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.100ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [4.124ms] [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.809ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851219.0761452,"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.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","5","bar","null","","",NULL,NULL,0,"null","5-1750851218893676267","2025-06-25 11:33:38.893","2025-06-25 11:33:38.893") RETURNING `created_time`,`updated_time` logs_test.go:268: test storage directory: /tmp/test-logs-3765206494 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.578ms] [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.132ms] [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-3765206494/test-uid/task-run.log"",""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","6-1750851218893676267","2025-06-25 11:33:38.893","2025-06-25 11:33:38.893") 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.491ms] [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.509ms] [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.484ms] [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-3765206494/test-uid/task-run.log"",""size"":36,""isStored"":true,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}",`created_time`="2025-06-25 11:33:38.893",`updated_time`="2025-06-25 11:33:38.893",`etag`="6-1750851218893676267" WHERE `parent` = "foo" AND `result_id` = "5" AND `id` = "6" --- PASS: TestUpdateLog (0.08s) === RUN TestListLogs logs_test.go:333: test database: /tmp/testdb3595063380 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.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 [25.791ms] [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.669ms] [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.320ms] [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.559ms] [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.672ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851219.1916904,"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 [11.008ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","7","bar","null","","",NULL,NULL,0,"null","7-1750851218893676267","2025-06-25 11:33:38.893","2025-06-25 11:33:38.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.522ms] [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.153ms] [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-1750851219893676267","2025-06-25 11:33:39.893","2025-06-25 11:33:39.893") 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-1750851219893676267" created_time:{seconds:1750851219 nanos:893676267} create_time:{seconds:1750851219 nanos:893676267} updated_time:{seconds:1750851219 nanos:893676267} update_time:{seconds:1750851219 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.446ms] [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.032ms] [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-1750851220893676267","2025-06-25 11:33:40.893","2025-06-25 11:33:40.893") 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-1750851220893676267" created_time:{seconds:1750851220 nanos:893676267} create_time:{seconds:1750851220 nanos:893676267} updated_time:{seconds:1750851220 nanos:893676267} update_time:{seconds:1750851220 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.392ms] [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 [27.960ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") 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-1750851221893676267" created_time:{seconds:1750851221 nanos:893676267} create_time:{seconds:1750851221 nanos:893676267} updated_time:{seconds:1750851221 nanos:893676267} update_time:{seconds:1750851221 nanos:893676267} === RUN TestListLogs/all === NAME TestListLogs db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [0.683ms] [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.921ms] [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.900ms] [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.461ms] [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.944ms] [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.901ms] [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.924ms] [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 [2.019ms] [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.649ms] [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.693ms] [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.972ms] [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.681ms] [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.800ms] [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":1750851219.9057333,"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.78s) --- PASS: TestListLogs/all (0.08s) --- PASS: TestListLogs/list_all_records_without_knowing_the_result_name (0.06s) --- PASS: TestListLogs/list_all_records_without_knowing_the_parent_and_the_result_name (0.06s) --- PASS: TestListLogs/missing_parent (0.00s) --- PASS: TestListLogs/filter_by_record_property (0.04s) --- PASS: TestListLogs/filter_by_record_data (0.03s) --- PASS: TestListLogs/filter_by_parent (0.06s) --- PASS: TestListLogs/filter_and_page_size (0.03s) --- PASS: TestListLogs/only_page_size (0.02s) --- PASS: TestListLogs/with_order_asc (0.06s) --- PASS: TestListLogs/with_order_desc (0.06s) --- PASS: TestListLogs/with_missing_order (0.05s) --- PASS: TestListLogs/with_default_order (0.07s) --- PASS: TestListLogs/unknown_type (0.01s) --- PASS: TestListLogs/unknown_any_field (0.01s) --- 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/testdb810562756 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.111ms] [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 [3.838ms] [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.471ms] [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.098ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [3.664ms] [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.518ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851219.9375558,"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.246ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.560ms] [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 [4.504ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.321ms] [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 [4.126ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [7.700ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.381ms] [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 [3.926ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.239ms] [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.276ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.062ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("1","17","0","null","","",NULL,NULL,0,"null","17-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.320ms] [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.386ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.638ms] [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.488ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [3.931ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` 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` = "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 [3.964ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.362ms] [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.115ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352 [1.015ms] [rows:4] SELECT * FROM `records` WHERE type = "results.tekton.dev/v1alpha3.Log" AND id > "" AND parent = "0" LIMIT 51 --- PASS: TestListLogs_multiresult (0.19s) === RUN TestDeleteLog logs_test.go:652: test database: /tmp/testdb2956362300 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.046ms] [rows:0] PRAGMA foreign_keys = ON; db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.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 [4.735ms] [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.974ms] [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.090ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [24.069ms] [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.445ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851220.1664767,"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.345ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` logs_test.go:672: test log file: /tmp/test-log-taskrun-1794603663.log db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.639ms] [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.931ms] [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-1794603663.log"",""size"":1024,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","24-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") 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.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/logs.go:425 [4.414ms] [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-1794603663.log"",""size"":1024,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}" AND `records`.`created_time` = "2025-06-25 11:33:41.893" AND `records`.`updated_time` = "2025-06-25 11:33:41.893" AND `records`.`etag` = "24-1750851221893676267" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.458ms] [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.282ms] [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.09s) --- 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/testdb1809660841 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.147ms] [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 [11.118ms] [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.757ms] [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.153ms] [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.239ms] [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.372ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851220.2345722,"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.890ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","25","bar","null","","",NULL,NULL,0,"null","25-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") 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.236ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [15.508ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") 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.499ms] [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.430ms] [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.855ms] [rows:0] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","25","bar","27","baz","TaskRun","{""metadata"":{""name"":""tacocat"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","27-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` --- PASS: TestCreateRecord (0.09s) --- PASS: TestCreateRecord/success (0.03s) --- PASS: TestCreateRecord/mismatched_parent (0.00s) --- PASS: TestCreateRecord/parent_does_not_exist (0.00s) --- PASS: TestCreateRecord/missing_name (0.00s) --- PASS: TestCreateRecord/result_used_as_name (0.00s) --- PASS: TestCreateRecord/already_exists (0.00s) === RUN TestCreateRecord_ConcurrentDelete records_test.go:162: test database: /tmp/testdb1851671471 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.059ms] [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.176ms] [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 [39.948ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [10.132ms] [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.133ms] [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.436ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [13.186ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851220.3774605,"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.342ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` --- PASS: TestCreateRecord_ConcurrentDelete (0.10s) === RUN TestGetRecord records_test.go:185: test database: /tmp/testdb3634163468 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.059ms] [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.195ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [13.976ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [12.315ms] [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.137ms] [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.869ms] [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.022ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851220.4577954,"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 [11.466ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.756ms] [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.040ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") 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.544ms] [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.337ms] [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.11s) --- 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/testdb3968266576 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.058ms] [rows:0] PRAGMA foreign_keys = ON; db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.148ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [45.094ms] [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.599ms] [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.129ms] [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.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 [15.656ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851220.5790539,"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.885ms] [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-1750851221893676267","2025-06-25 11:33:41.893","2025-06-25 11:33:41.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.605ms] [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","1","bar","2","0","TaskRun","{""metadata"":{""name"":""0"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","2-1750851222893676267","2025-06-25 11:33:42.893","2025-06-25 11:33:42.893") 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-1750851222893676267" created_time:{seconds:1750851222 nanos:893676267} create_time:{seconds:1750851222 nanos:893676267} updated_time:{seconds:1750851222 nanos:893676267} update_time:{seconds:1750851222 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.650ms] [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.366ms] [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-1750851223893676267","2025-06-25 11:33:43.893","2025-06-25 11:33:43.893") 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-1750851223893676267" created_time:{seconds:1750851223 nanos:893676267} create_time:{seconds:1750851223 nanos:893676267} updated_time:{seconds:1750851223 nanos:893676267} update_time:{seconds:1750851223 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.411ms] [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.377ms] [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-1750851224893676267","2025-06-25 11:33:44.893","2025-06-25 11:33:44.893") 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-1750851224893676267" created_time:{seconds:1750851224 nanos:893676267} create_time:{seconds:1750851224 nanos:893676267} updated_time:{seconds:1750851224 nanos:893676267} update_time:{seconds:1750851224 nanos:893676267} 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 [8.337ms] [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-1750851225893676267","2025-06-25 11:33:45.893","2025-06-25 11:33:45.893") 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-1750851225893676267" created_time:{seconds:1750851225 nanos:893676267} create_time:{seconds:1750851225 nanos:893676267} updated_time:{seconds:1750851225 nanos:893676267} update_time:{seconds:1750851225 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.535ms] [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.003ms] [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-1750851226893676267","2025-06-25 11:33:46.893","2025-06-25 11:33:46.893") 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-1750851226893676267" created_time:{seconds:1750851226 nanos:893676267} create_time:{seconds:1750851226 nanos:893676267} updated_time:{seconds:1750851226 nanos:893676267} update_time:{seconds:1750851226 nanos:893676267} 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 [4.757ms] [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-1750851227893676267","2025-06-25 11:33:47.893","2025-06-25 11:33:47.893") 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-1750851227893676267" created_time:{seconds:1750851227 nanos:893676267} create_time:{seconds:1750851227 nanos:893676267} updated_time:{seconds:1750851227 nanos:893676267} update_time:{seconds:1750851227 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.421ms] [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 [11.594ms] [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-1750851228893676267","2025-06-25 11:33:48.893","2025-06-25 11:33:48.893") 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-1750851228893676267" created_time:{seconds:1750851228 nanos:893676267} create_time:{seconds:1750851228 nanos:893676267} updated_time:{seconds:1750851228 nanos:893676267} update_time:{seconds:1750851228 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.441ms] [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.843ms] [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-1750851229893676267","2025-06-25 11:33:49.893","2025-06-25 11:33:49.893") 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-1750851229893676267" created_time:{seconds:1750851229 nanos:893676267} create_time:{seconds:1750851229 nanos:893676267} updated_time:{seconds:1750851229 nanos:893676267} update_time:{seconds:1750851229 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.377ms] [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.531ms] [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-1750851230893676267","2025-06-25 11:33:50.893","2025-06-25 11:33:50.893") 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-1750851230893676267" created_time:{seconds:1750851230 nanos:893676267} create_time:{seconds:1750851230 nanos:893676267} updated_time:{seconds:1750851230 nanos:893676267} update_time:{seconds:1750851230 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.436ms] [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.327ms] [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-1750851231893676267","2025-06-25 11:33:51.893","2025-06-25 11:33:51.893") 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-1750851231893676267" created_time:{seconds:1750851231 nanos:893676267} create_time:{seconds:1750851231 nanos:893676267} updated_time:{seconds:1750851231 nanos:893676267} update_time:{seconds:1750851231 nanos:893676267} 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` = "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.600ms] [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-1750851232893676267","2025-06-25 11:33:52.893","2025-06-25 11:33:52.893") 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-1750851232893676267" created_time:{seconds:1750851232 nanos:893676267} create_time:{seconds:1750851232 nanos:893676267} updated_time:{seconds:1750851232 nanos:893676267} update_time:{seconds:1750851232 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.420ms] [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.252ms] [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-1750851233893676267","2025-06-25 11:33:53.893","2025-06-25 11:33:53.893") 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-1750851233893676267" created_time:{seconds:1750851233 nanos:893676267} create_time:{seconds:1750851233 nanos:893676267} updated_time:{seconds:1750851233 nanos:893676267} update_time:{seconds:1750851233 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.358ms] [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.498ms] [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-1750851234893676267","2025-06-25 11:33:54.893","2025-06-25 11:33:54.893") 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-1750851234893676267" created_time:{seconds:1750851234 nanos:893676267} create_time:{seconds:1750851234 nanos:893676267} updated_time:{seconds:1750851234 nanos:893676267} update_time:{seconds:1750851234 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.492ms] [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.633ms] [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-1750851235893676267","2025-06-25 11:33:55.893","2025-06-25 11:33:55.893") 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-1750851235893676267" created_time:{seconds:1750851235 nanos:893676267} create_time:{seconds:1750851235 nanos:893676267} updated_time:{seconds:1750851235 nanos:893676267} update_time:{seconds:1750851235 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.299ms] [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.271ms] [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-1750851236893676267","2025-06-25 11:33:56.893","2025-06-25 11:33:56.893") 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-1750851236893676267" created_time:{seconds:1750851236 nanos:893676267} create_time:{seconds:1750851236 nanos:893676267} updated_time:{seconds:1750851236 nanos:893676267} update_time:{seconds:1750851236 nanos:893676267} 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.294ms] [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-1750851237893676267","2025-06-25 11:33:57.893","2025-06-25 11:33:57.893") 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-1750851237893676267" created_time:{seconds:1750851237 nanos:893676267} create_time:{seconds:1750851237 nanos:893676267} updated_time:{seconds:1750851237 nanos:893676267} update_time:{seconds:1750851237 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.362ms] [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.036ms] [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-1750851238893676267","2025-06-25 11:33:58.893","2025-06-25 11:33:58.893") 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-1750851238893676267" created_time:{seconds:1750851238 nanos:893676267} create_time:{seconds:1750851238 nanos:893676267} updated_time:{seconds:1750851238 nanos:893676267} update_time:{seconds:1750851238 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.607ms] [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.906ms] [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-1750851239893676267","2025-06-25 11:33:59.893","2025-06-25 11:33:59.893") 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-1750851239893676267" created_time:{seconds:1750851239 nanos:893676267} create_time:{seconds:1750851239 nanos:893676267} updated_time:{seconds:1750851239 nanos:893676267} update_time:{seconds:1750851239 nanos:893676267} 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 [4.000ms] [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-1750851240893676267","2025-06-25 11:34:00.893","2025-06-25 11:34:00.893") 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-1750851240893676267" created_time:{seconds:1750851240 nanos:893676267} create_time:{seconds:1750851240 nanos:893676267} updated_time:{seconds:1750851240 nanos:893676267} update_time:{seconds:1750851240 nanos:893676267} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.289ms] [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.521ms] [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-1750851241893676267","2025-06-25 11:34:01.893","2025-06-25 11:34:01.893") 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-1750851241893676267" created_time:{seconds:1750851241 nanos:893676267} create_time:{seconds:1750851241 nanos:893676267} updated_time:{seconds:1750851241 nanos:893676267} update_time:{seconds:1750851241 nanos:893676267} === 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 [2.875ms] [rows:20] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" ORDER BY id ASC LIMIT 51 === RUN TestListRecords/list_all_records_without_knowing_the_result_name records_test.go:475: Parent: "foo/results/-" === NAME TestListRecords db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [2.914ms] [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 [3.075ms] [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.668ms] [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.843ms] [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.652ms] [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.525ms] [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.260ms] [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.256ms] [rows:6] SELECT * FROM `records` WHERE id > "14" AND parent = "foo" AND result_name = "bar" ORDER BY id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.230ms] [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.139ms] [rows:5] SELECT * FROM `records` WHERE id > "4" AND parent = "foo" AND result_name = "bar" ORDER BY id ASC LIMIT 6 === RUN TestListRecords/paginate_records_sorting_by_create_time_asc === NAME TestListRecords db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.185ms] [rows:6] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" ORDER BY created_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.240ms] [rows:6] SELECT * FROM `records` WHERE (created_time, id) > ("2025-06-25 11:33:46.893", "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.349ms] [rows:6] SELECT * FROM `records` WHERE (created_time, id) > ("2025-06-25 11:33:51.893", "11") AND parent = "foo" AND result_name = "bar" ORDER BY created_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.097ms] [rows:5] SELECT * FROM `records` WHERE (created_time, id) > ("2025-06-25 11:33:56.893", "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.278ms] [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.399ms] [rows:6] SELECT * FROM `records` WHERE (created_time, id) < ("2025-06-25 11:33:57.893", "17") AND parent = "foo" AND result_name = "bar" ORDER BY created_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.343ms] [rows:6] SELECT * FROM `records` WHERE (created_time, id) < ("2025-06-25 11:33:52.893", "12") AND parent = "foo" AND result_name = "bar" ORDER BY created_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.182ms] [rows:5] SELECT * FROM `records` WHERE (created_time, id) < ("2025-06-25 11:33:47.893", "7") AND parent = "foo" AND result_name = "bar" ORDER BY created_time DESC,id DESC LIMIT 6 === RUN TestListRecords/paginate_records_sorting_by_update_time_asc === NAME TestListRecords db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.238ms] [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.355ms] [rows:6] SELECT * FROM `records` WHERE (updated_time, id) > ("2025-06-25 11:33:46.893", "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.290ms] [rows:6] SELECT * FROM `records` WHERE (updated_time, id) > ("2025-06-25 11:33:51.893", "11") AND parent = "foo" AND result_name = "bar" ORDER BY updated_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.182ms] [rows:5] SELECT * FROM `records` WHERE (updated_time, id) > ("2025-06-25 11:33:56.893", "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.246ms] [rows:6] SELECT * FROM `records` WHERE parent = "foo" AND result_name = "bar" ORDER BY updated_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.263ms] [rows:6] SELECT * FROM `records` WHERE (updated_time, id) < ("2025-06-25 11:33:57.893", "17") AND parent = "foo" AND result_name = "bar" ORDER BY updated_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.275ms] [rows:6] SELECT * FROM `records` WHERE (updated_time, id) < ("2025-06-25 11:33:52.893", "12") AND parent = "foo" AND result_name = "bar" ORDER BY updated_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.102ms] [rows:5] SELECT * FROM `records` WHERE (updated_time, id) < ("2025-06-25 11:33:47.893", "7") AND parent = "foo" AND result_name = "bar" ORDER BY updated_time DESC,id DESC LIMIT 6 --- PASS: TestListRecords (1.67s) --- PASS: TestListRecords/all (0.13s) --- PASS: TestListRecords/list_all_records_without_knowing_the_result_name (0.14s) --- PASS: TestListRecords/list_all_records_without_knowing_the_parent_and_the_result_name (0.16s) --- PASS: TestListRecords/filter_by_record_property (0.02s) --- PASS: TestListRecords/filter_by_record_data (0.01s) --- PASS: TestListRecords/filter_by_record_type (0.08s) --- 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.18s) --- PASS: TestListRecords/paginate_records_sorting_by_create_time_asc (0.17s) --- PASS: TestListRecords/paginate_records_sorting_by_create_time_desc (0.18s) --- PASS: TestListRecords/paginate_records_sorting_by_update_time_asc (0.17s) --- PASS: TestListRecords/paginate_records_sorting_by_update_time_desc (0.17s) === RUN TestUpdateRecord records_test.go:542: test database: /tmp/testdb1421509918 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.129ms] [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.129ms] [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.793ms] [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.850ms] [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.107ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [3.901ms] [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.746ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851222.1931767,"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 [11.688ms] [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-1750851241893676267","2025-06-25 11:34:01.893","2025-06-25 11:34:01.893") 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.867ms] [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.291ms] [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-1750851241893676267","2025-06-25 11:34:01.893","2025-06-25 11:34:01.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.433ms] [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-25 11:34:01.893",`updated_time`="2025-06-25 11:34:02.893",`etag`="23-1750851242893676267" 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.431ms] [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.861ms] [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-1750851242893676267","2025-06-25 11:34:02.893","2025-06-25 11:34:02.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.531ms] [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.468ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="b",`type`="",`data`="",`created_time`="2025-06-25 11:34:02.893",`updated_time`="2025-06-25 11:34:03.893",`etag`="24-1750851243893676267" 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.389ms] [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.486ms] [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.09s) --- 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/testdb2234914939 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.148ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [9.398ms] [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.284ms] [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 [11.967ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [10.108ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851222.3000588,"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.326ms] [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-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.887ms] [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.894ms] [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-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") 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.441ms] [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 [3.954ms] [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-25 11:34:06.893" AND `records`.`updated_time` = "2025-06-25 11:34:06.893" AND `records`.`etag` = "26-1750851246893676267" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.340ms] [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.250ms] [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/testdb4284593314 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.037ms] [rows:0] PRAGMA foreign_keys = ON; db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.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.322ms] [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.386ms] [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 [7.750ms] [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.809ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851222.3595881,"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.179ms] [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-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.446ms] [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 [3.706ms] [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-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.276ms] [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 [3.746ms] [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-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [3.904ms] [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-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.266ms] [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 [7.124ms] [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-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.297ms] [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.013ms] [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-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.025ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("1","33","0","null","","",NULL,NULL,0,"null","33-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.434ms] [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.367ms] [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-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") RETURNING `created_time`,`updated_time` 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` = "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 [3.714ms] [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-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [8.049ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("1","36","1","null","","",NULL,NULL,0,"null","36-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.296ms] [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 [4.914ms] [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-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") 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` = "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 [3.946ms] [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-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [0.605ms] [rows:4] SELECT * FROM `records` WHERE parent = "0" ORDER BY id ASC LIMIT 51 --- PASS: TestListRecords_multiresult (0.11s) === RUN TestCreateResult results_test.go:43: test database: /tmp/testdb1668659461 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.107ms] [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.292ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [8.969ms] [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 [4.302ms] [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.826ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851222.465486,"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 [3.657ms] [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-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") 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" 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.647ms] [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-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") 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/testdb3148087668 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.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 [7.618ms] [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.491ms] [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.120ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [3.692ms] [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.468ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851222.5094364,"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.241ms] [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-1750851246893676267","2025-06-25 11:34:06.893","2025-06-25 11:34:06.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.447ms] [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.403ms] [rows:1] UPDATE `results` SET `name`="bar-0",`annotations`="{""foo"":""bar""}",`created_time`="2025-06-25 11:34:06.893",`updated_time`="2025-06-25 11:34:07.893",`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-1750851247893676267" 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.408ms] [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.128ms] [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-1750851247893676267","2025-06-25 11:34:07.893","2025-06-25 11:34:07.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.399ms] [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.422ms] [rows:1] UPDATE `results` SET `name`="bar-1",`annotations`="null",`created_time`="2025-06-25 11:34:07.893",`updated_time`="2025-06-25 11:34:08.893",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="43-1750851248893676267" 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.439ms] [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 [4.380ms] [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-1750851248893676267","2025-06-25 11:34:08.893","2025-06-25 11:34:08.893") 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 [4.232ms] [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-1750851249893676267","2025-06-25 11:34:09.893","2025-06-25 11:34:09.893") 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.339ms] [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.136ms] [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-1750851250893676267","2025-06-25 11:34:10.893","2025-06-25 11:34:10.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.501ms] [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.252ms] [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-1750851251893676267","2025-06-25 11:34:11.893","2025-06-25 11:34:11.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.445ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar-5" ORDER BY `results`.`id` LIMIT 1 --- PASS: TestUpdateResult (0.09s) --- PASS: TestUpdateResult/success (0.01s) --- PASS: TestUpdateResult/test_update_with_empty_result (0.02s) --- PASS: TestUpdateResult/test_update_with_invalid_name (0.00s) --- 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/testdb3209267043 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.396ms] [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.719ms] [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.929ms] [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 [4.288ms] [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.964ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851222.597656,"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.928ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","48","bar","null","","",NULL,NULL,0,"null","48-1750851252893676267","2025-06-25 11:34:12.893","2025-06-25 11:34:12.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.565ms] [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.319ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "a" AND `results`.`name` = "doesnotexist" ORDER BY `results`.`id` LIMIT 1 --- PASS: TestGetResult (0.05s) --- PASS: TestGetResult/no_name (0.00s) --- PASS: TestGetResult/not_found (0.00s) === RUN TestDeleteResult results_test.go:296: test database: /tmp/testdb3973864494 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.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 [47.668ms] [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.874ms] [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.083ms] [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.024ms] [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.135ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851222.6867428,"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.509ms] [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-1750851252893676267","2025-06-25 11:34:12.893","2025-06-25 11:34:12.893") 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.602ms] [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.070ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "49" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-25 11:34:12.893" AND `results`.`updated_time` = "2025-06-25 11:34:12.893" AND `results`.`etag` = "49-1750851252893676267" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 record not found [0.290ms] [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.194ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 --- PASS: TestDeleteResult (0.09s) --- PASS: TestDeleteResult/success (0.01s) --- PASS: TestDeleteResult/already_deleted (0.00s) === RUN TestCascadeDelete results_test.go:332: test database: /tmp/testdb2590445057 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.036ms] [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 [8.071ms] [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.140ms] [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.106ms] [rows:0] CREATE TABLE `records` (`parent` text,`result_id` text,`result_name` text,`id` text,`name` text,`type` text,`data` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`etag` text,PRIMARY KEY (`parent`,`result_id`,`id`),CONSTRAINT `fk_records_result` FOREIGN KEY (`parent`,`result_id`) REFERENCES `results`(`parent`,`id`) ON DELETE CASCADE ON UPDATE CASCADE) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [3.416ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851222.7302089,"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.457ms] [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-1750851252893676267","2025-06-25 11:34:12.893","2025-06-25 11:34:12.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [1.342ms] [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.214ms] [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-1750851252893676267","2025-06-25 11:34:12.893","2025-06-25 11:34:12.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [0.395ms] [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.152ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "50" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-25 11:34:12.893" AND `results`.`updated_time` = "2025-06-25 11:34:12.893" AND `results`.`etag` = "50-1750851252893676267" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.253ms] [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.05s) === RUN TestListResults results_test.go:366: test database: /tmp/testdb448204917 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.102ms] [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.806ms] [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.788ms] [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.108ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [3.752ms] [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.974ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851222.779892,"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.327ms] [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","905e713c-3f67-4b99-afa5-0bf9c274519a","{""foo"":""bar-1""}","foo/results/905e713c-3f67-4b99-afa5-0bf9c274519a/records/758bb766-c7aa-4d7a-bb01-9fad88ae41df","resource_type","2025-06-25 11:34:13.893","2025-06-25 11:35:13.893",0,"null","1-1750851253893676267","2025-06-25 11:34:13.893","2025-06-25 11:34:13.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [3.842ms] [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","47d5c96f-c820-4d46-9f6e-dd6e70d0b73d","{""foo"":""bar-2""}","foo/results/47d5c96f-c820-4d46-9f6e-dd6e70d0b73d/records/e5b1a0ec-4c63-4cc4-bc8e-d74678bce8ca","resource_type","2025-06-25 11:34:14.893","2025-06-25 11:35:14.893",0,"null","2-1750851254893676267","2025-06-25 11:34:14.893","2025-06-25 11:34:14.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.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","3","fb2af530-e447-4af3-865f-e28b916a8ee2","{""foo"":""bar-3""}","foo/results/fb2af530-e447-4af3-865f-e28b916a8ee2/records/9769a711-4b9f-4d64-ba89-acba0ec7162f","resource_type","2025-06-25 11:34:15.893","2025-06-25 11:35:15.893",0,"null","3-1750851255893676267","2025-06-25 11:34:15.893","2025-06-25 11:34:15.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.982ms] [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","c46649b3-4e4c-42a1-8adb-5d97572b089b","{""foo"":""bar-4""}","foo/results/c46649b3-4e4c-42a1-8adb-5d97572b089b/records/902e6fd9-4e3d-4d8d-a0ea-6ac9c7726d0e","resource_type","2025-06-25 11:34:16.893","2025-06-25 11:35:16.893",0,"null","4-1750851256893676267","2025-06-25 11:34:16.893","2025-06-25 11:34:16.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.436ms] [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","e8906dd9-68af-4f5d-941c-c0a3fb3b4e3e","{""foo"":""bar-5""}","foo/results/e8906dd9-68af-4f5d-941c-c0a3fb3b4e3e/records/323d6953-7d18-4671-8526-6a27df77b1dd","resource_type","2025-06-25 11:34:17.893","2025-06-25 11:35:17.893",0,"null","5-1750851257893676267","2025-06-25 11:34:17.893","2025-06-25 11:34:17.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [7.016ms] [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","652414d4-1757-48b7-ad83-8126e722d929","{""foo"":""bar-6""}","foo/results/652414d4-1757-48b7-ad83-8126e722d929/records/ae326183-f6bc-4a93-89af-01322d1ed871","resource_type","2025-06-25 11:34:18.893","2025-06-25 11:35:18.893",0,"null","6-1750851258893676267","2025-06-25 11:34:18.893","2025-06-25 11:34:18.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.711ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","7","1ef584b9-8ae9-4650-b552-b86da98f07fe","{""foo"":""bar-7""}","foo/results/1ef584b9-8ae9-4650-b552-b86da98f07fe/records/2fff5fbf-9e71-47b9-9aab-473684edbf5e","resource_type","2025-06-25 11:34:19.893","2025-06-25 11:35:19.893",0,"null","7-1750851259893676267","2025-06-25 11:34:19.893","2025-06-25 11:34:19.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.092ms] [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","b7159543-e40e-423b-9647-84af61452504","{""foo"":""bar-8""}","foo/results/b7159543-e40e-423b-9647-84af61452504/records/44544371-9a22-41f7-bceb-452f565d0a23","resource_type","2025-06-25 11:34:20.893","2025-06-25 11:35:20.893",0,"null","8-1750851260893676267","2025-06-25 11:34:20.893","2025-06-25 11:34:20.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.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","9","57a73ee5-1ce1-45a4-94e1-d0664fa5a420","{""foo"":""bar-9""}","foo/results/57a73ee5-1ce1-45a4-94e1-d0664fa5a420/records/001eb2bb-c8c5-4128-9d99-1722e130a58f","resource_type","2025-06-25 11:34:21.893","2025-06-25 11:35:21.893",0,"null","9-1750851261893676267","2025-06-25 11:34:21.893","2025-06-25 11:34:21.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.712ms] [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","ad5c7899-e88f-49fa-8612-93b707e021db","{""foo"":""bar-10""}","foo/results/ad5c7899-e88f-49fa-8612-93b707e021db/records/77d6afc6-0e4c-43d8-aa4a-f926c6f6af91","resource_type","2025-06-25 11:34:22.893","2025-06-25 11:35:22.893",0,"null","10-1750851262893676267","2025-06-25 11:34:22.893","2025-06-25 11:34:22.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.235ms] [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","ede06ad7-28a0-4fc7-a909-5ee917e3b4d5","{""foo"":""bar-11""}","foo/results/ede06ad7-28a0-4fc7-a909-5ee917e3b4d5/records/09f8005e-8bae-4695-a8c9-a750f66822dd","resource_type","2025-06-25 11:34:23.893","2025-06-25 11:35:23.893",0,"null","11-1750851263893676267","2025-06-25 11:34:23.893","2025-06-25 11:34:23.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.676ms] [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","1cab6a45-a8d1-4efe-8039-b9bf9053ac8e","{""foo"":""bar-12""}","foo/results/1cab6a45-a8d1-4efe-8039-b9bf9053ac8e/records/2d58b90f-617c-44ac-a2b5-1cef1a38e60e","resource_type","2025-06-25 11:34:24.893","2025-06-25 11:35:24.893",0,"null","12-1750851264893676267","2025-06-25 11:34:24.893","2025-06-25 11:34:24.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.718ms] [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","953130e0-71d8-4a66-82ab-a4660f3cdf0e","{""foo"":""bar-13""}","foo/results/953130e0-71d8-4a66-82ab-a4660f3cdf0e/records/175daa1e-94cf-449d-9389-90afd6351da9","resource_type","2025-06-25 11:34:25.893","2025-06-25 11:35:25.893",0,"null","13-1750851265893676267","2025-06-25 11:34:25.893","2025-06-25 11:34:25.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [5.017ms] [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","090a2e0f-b2f3-4f28-8b8d-b32f13342064","{""foo"":""bar-14""}","foo/results/090a2e0f-b2f3-4f28-8b8d-b32f13342064/records/2349582d-c331-4006-86ff-281570d7595e","resource_type","2025-06-25 11:34:26.893","2025-06-25 11:35:26.893",0,"null","14-1750851266893676267","2025-06-25 11:34:26.893","2025-06-25 11:34:26.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [5.583ms] [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","f033379d-ea9a-424d-838f-84bc3f69ab86","{""foo"":""bar-15""}","foo/results/f033379d-ea9a-424d-838f-84bc3f69ab86/records/ce616cc2-be01-40de-8cdb-72b21c09c5bb","resource_type","2025-06-25 11:34:27.893","2025-06-25 11:35:27.893",0,"null","15-1750851267893676267","2025-06-25 11:34:27.893","2025-06-25 11:34:27.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.413ms] [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","2700efd4-d6dc-4a4a-a685-862ccf0f1e88","{""foo"":""bar-16""}","foo/results/2700efd4-d6dc-4a4a-a685-862ccf0f1e88/records/2c85320e-2e55-4ff7-ad3c-b38289b7a15c","resource_type","2025-06-25 11:34:28.893","2025-06-25 11:35:28.893",0,"null","16-1750851268893676267","2025-06-25 11:34:28.893","2025-06-25 11:34:28.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [6.845ms] [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","2210c016-e6ce-4119-970e-b6771f68cad6","{""foo"":""bar-17""}","foo/results/2210c016-e6ce-4119-970e-b6771f68cad6/records/9b88e01d-45c4-4df2-8e4e-1cd0624b95d4","resource_type","2025-06-25 11:34:29.893","2025-06-25 11:35:29.893",0,"null","17-1750851269893676267","2025-06-25 11:34:29.893","2025-06-25 11:34:29.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.968ms] [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","429b8329-bbfb-48e0-88be-44f6fb84d7ee","{""foo"":""bar-18""}","foo/results/429b8329-bbfb-48e0-88be-44f6fb84d7ee/records/d7287b9b-80c7-44bd-a2a9-19c76de1a1f9","resource_type","2025-06-25 11:34:30.893","2025-06-25 11:35:30.893",0,"null","18-1750851270893676267","2025-06-25 11:34:30.893","2025-06-25 11:34:30.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.443ms] [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","6da7fceb-beb5-45e8-bcf7-cc98161dee59","{""foo"":""bar-19""}","foo/results/6da7fceb-beb5-45e8-bcf7-cc98161dee59/records/97c13295-1e11-4a0d-9331-fea9ad782eeb","resource_type","2025-06-25 11:34:31.893","2025-06-25 11:35:31.893",0,"null","19-1750851271893676267","2025-06-25 11:34:31.893","2025-06-25 11:34:31.893") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [4.626ms] [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","fe4be43b-c585-4fc4-81b3-0b480d8819e4","{""foo"":""bar-20""}","foo/results/fe4be43b-c585-4fc4-81b3-0b480d8819e4/records/5ab00127-f107-43c0-93a4-1ff4d801a27d","resource_type","2025-06-25 11:34:32.893","2025-06-25 11:35:32.893",0,"null","20-1750851272893676267","2025-06-25 11:34:32.893","2025-06-25 11:34:32.893") 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 [3.203ms] [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.923ms] [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.348ms] [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.521ms] [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 [1.056ms] [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.399ms] [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.759ms] [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.425ms] [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.670ms] [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.505ms] [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 [0.945ms] [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.138ms] [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.121ms] [rows:6] SELECT * FROM `results` WHERE (created_time, id) > ("2025-06-25 11:34:17.893", "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.094ms] [rows:6] SELECT * FROM `results` WHERE (created_time, id) > ("2025-06-25 11:34:22.893", "10") AND parent = "foo" ORDER BY created_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.466ms] [rows:5] SELECT * FROM `results` WHERE (created_time, id) > ("2025-06-25 11:34:27.893", "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.184ms] [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.626ms] [rows:6] SELECT * FROM `results` WHERE (created_time, id) < ("2025-06-25 11:34:28.893", "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.608ms] [rows:6] SELECT * FROM `results` WHERE (created_time, id) < ("2025-06-25 11:34:23.893", "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.487ms] [rows:5] SELECT * FROM `results` WHERE (created_time, id) < ("2025-06-25 11:34:18.893", "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.570ms] [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.360ms] [rows:6] SELECT * FROM `results` WHERE (updated_time, id) > ("2025-06-25 11:34:17.893", "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.161ms] [rows:6] SELECT * FROM `results` WHERE (updated_time, id) > ("2025-06-25 11:34:22.893", "10") AND parent = "foo" ORDER BY updated_time ASC,id ASC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.556ms] [rows:5] SELECT * FROM `results` WHERE (updated_time, id) > ("2025-06-25 11:34:27.893", "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 [2.597ms] [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.673ms] [rows:6] SELECT * FROM `results` WHERE (updated_time, id) < ("2025-06-25 11:34:28.893", "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.831ms] [rows:6] SELECT * FROM `results` WHERE (updated_time, id) < ("2025-06-25 11:34:23.893", "11") AND parent = "foo" ORDER BY updated_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.524ms] [rows:5] SELECT * FROM `results` WHERE (updated_time, id) < ("2025-06-25 11:34:18.893", "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.629ms] [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.625ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_start_time, id) > ("2025-06-25 11:34:17.893", "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.106ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_start_time, id) > ("2025-06-25 11:34:22.893", "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.958ms] [rows:5] SELECT * FROM `results` WHERE (recordsummary_start_time, id) > ("2025-06-25 11:34:27.893", "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.691ms] [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.157ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_start_time, id) < ("2025-06-25 11:34:28.893", "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.055ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_start_time, id) < ("2025-06-25 11:34:23.893", "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.977ms] [rows:5] SELECT * FROM `results` WHERE (recordsummary_start_time, id) < ("2025-06-25 11:34:18.893", "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.407ms] [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.061ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_end_time, id) > ("2025-06-25 11:35:17.893", "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.104ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_end_time, id) > ("2025-06-25 11:35:22.893", "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.009ms] [rows:5] SELECT * FROM `results` WHERE (recordsummary_end_time, id) > ("2025-06-25 11:35:27.893", "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.156ms] [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 [1.625ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_end_time, id) < ("2025-06-25 11:35:28.893", "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.112ms] [rows:6] SELECT * FROM `results` WHERE (recordsummary_end_time, id) < ("2025-06-25 11:35:23.893", "11") AND parent = "foo" ORDER BY recordsummary_end_time DESC,id DESC LIMIT 6 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.398ms] [rows:5] SELECT * FROM `results` WHERE (recordsummary_end_time, id) < ("2025-06-25 11:35:18.893", "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.069ms] [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.362ms] [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.122ms] [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 [0.762ms] [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.94s) --- PASS: TestListResults/list_all_results (0.04s) --- 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.08s) --- PASS: TestListResults/paginate_results_sorting_by_create_time_asc (0.06s) --- PASS: TestListResults/paginate_results_sorting_by_create_time_desc (0.07s) --- PASS: TestListResults/paginate_results_sorting_by_update_time_asc (0.07s) --- PASS: TestListResults/paginate_results_sorting_by_update_time_desc (0.10s) --- PASS: TestListResults/paginate_results_sorting_by_summary.start_time_asc (0.06s) --- PASS: TestListResults/paginate_results_sorting_by_summary.start_time_desc (0.05s) --- PASS: TestListResults/paginate_results_sorting_by_summary.end_time_asc (0.05s) --- PASS: TestListResults/paginate_results_sorting_by_summary.end_time_desc (0.06s) --- PASS: TestListResults/paginate_results_using_filter (0.05s) PASS ok github.com/tektoncd/results/pkg/api/server/v1alpha2 5.975s === RUN TestRBAC rbac_test.go:93: test database: /tmp/testdb3632314827 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.057ms] [rows:0] PRAGMA foreign_keys = ON; db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.158ms] [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 [77.814ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [14.615ms] [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.127ms] [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 [21.542ms] [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.499ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851219.5314407,"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 [5.684ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("foo","5fd4fd5e-debb-41b2-8c5f-d99bfbe814a0","bar","null","","",NULL,NULL,0,"null","5fd4fd5e-debb-41b2-8c5f-d99bfbe814a0-1750851219541154601","2025-06-25 11:33:39.541","2025-06-25 11:33:39.541") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.822ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`name` = "bar" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/lister/lister.go:110 [1.008ms] [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.572ms] [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.672ms] [rows:1] UPDATE `results` SET `name`="bar",`annotations`="null",`created_time`="2025-06-25 11:33:39.541",`updated_time`="2025-06-25 11:33:39.556",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="5fd4fd5e-debb-41b2-8c5f-d99bfbe814a0-1750851219556362321" WHERE `parent` = "foo" AND `id` = "5fd4fd5e-debb-41b2-8c5f-d99bfbe814a0" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.789ms] [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.971ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","5fd4fd5e-debb-41b2-8c5f-d99bfbe814a0","bar","b05b3d29-0090-49fe-9fb6-22d79257eb13","baz","","","b05b3d29-0090-49fe-9fb6-22d79257eb13-1750851219572136422","2025-06-25 11:33:39.572","2025-06-25 11:33:39.572") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.857ms] [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.873ms] [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.612ms] [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.664ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz",`type`="",`data`="",`created_time`="2025-06-25 11:33:39.572",`updated_time`="2025-06-25 11:33:39.586",`etag`="b05b3d29-0090-49fe-9fb6-22d79257eb13-1750851219586118405" WHERE `parent` = "foo" AND `result_id` = "5fd4fd5e-debb-41b2-8c5f-d99bfbe814a0" AND `id` = "b05b3d29-0090-49fe-9fb6-22d79257eb13" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.777ms] [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.433ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "5fd4fd5e-debb-41b2-8c5f-d99bfbe814a0" AND `records`.`result_name` = "bar" AND `records`.`id` = "b05b3d29-0090-49fe-9fb6-22d79257eb13" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-25 11:33:39.572" AND `records`.`updated_time` = "2025-06-25 11:33:39.586" AND `records`.`etag` = "b05b3d29-0090-49fe-9fb6-22d79257eb13-1750851219586118405" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [0.858ms] [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.750ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "5fd4fd5e-debb-41b2-8c5f-d99bfbe814a0" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-25 11:33:39.541" AND `results`.`updated_time` = "2025-06-25 11:33:39.556" AND `results`.`etag` = "5fd4fd5e-debb-41b2-8c5f-d99bfbe814a0-1750851219556362321" === RUN TestRBAC/unauthorized_user === RUN TestRBAC/authorized_group === NAME TestRBAC db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [12.988ms] [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","655144f3-9522-429b-8f75-4ff572e1bde5","bar","null","","",NULL,NULL,0,"null","655144f3-9522-429b-8f75-4ff572e1bde5-1750851219620095985","2025-06-25 11:33:39.62","2025-06-25 11:33:39.62") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.789ms] [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.857ms] [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.651ms] [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.768ms] [rows:1] UPDATE `results` SET `name`="bar",`annotations`="null",`created_time`="2025-06-25 11:33:39.62",`updated_time`="2025-06-25 11:33:39.641",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="655144f3-9522-429b-8f75-4ff572e1bde5-1750851219641577635" WHERE `parent` = "foo" AND `id` = "655144f3-9522-429b-8f75-4ff572e1bde5" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.465ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "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.831ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","655144f3-9522-429b-8f75-4ff572e1bde5","bar","2d14b139-1552-45d8-a150-d5440bce3e29","baz","","","2d14b139-1552-45d8-a150-d5440bce3e29-1750851219648861104","2025-06-25 11:33:39.648","2025-06-25 11:33:39.648") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.760ms] [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.839ms] [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.570ms] [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.611ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz",`type`="",`data`="",`created_time`="2025-06-25 11:33:39.648",`updated_time`="2025-06-25 11:33:39.662",`etag`="2d14b139-1552-45d8-a150-d5440bce3e29-1750851219662922390" WHERE `parent` = "foo" AND `result_id` = "655144f3-9522-429b-8f75-4ff572e1bde5" AND `id` = "2d14b139-1552-45d8-a150-d5440bce3e29" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.435ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_name` = "bar" AND `records`.`name` = "baz" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:246 [14.819ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "655144f3-9522-429b-8f75-4ff572e1bde5" AND `records`.`result_name` = "bar" AND `records`.`id` = "2d14b139-1552-45d8-a150-d5440bce3e29" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-25 11:33:39.648" AND `records`.`updated_time` = "2025-06-25 11:33:39.662" AND `records`.`etag` = "2d14b139-1552-45d8-a150-d5440bce3e29-1750851219662922390" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [0.679ms] [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.255ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "655144f3-9522-429b-8f75-4ff572e1bde5" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-25 11:33:39.62" AND `results`.`updated_time` = "2025-06-25 11:33:39.641" AND `results`.`etag` = "655144f3-9522-429b-8f75-4ff572e1bde5-1750851219641577635" === 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.533ms] [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","e983d682-d634-40ec-8007-dbdb716547cc","bar","null","","",NULL,NULL,0,"null","e983d682-d634-40ec-8007-dbdb716547cc-1750851219706434945","2025-06-25 11:33:39.706","2025-06-25 11:33:39.706") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.712ms] [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.918ms] [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.540ms] [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.587ms] [rows:1] UPDATE `results` SET `name`="bar",`annotations`="null",`created_time`="2025-06-25 11:33:39.706",`updated_time`="2025-06-25 11:33:39.721",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="e983d682-d634-40ec-8007-dbdb716547cc-1750851219721593619" WHERE `parent` = "foo" AND `id` = "e983d682-d634-40ec-8007-dbdb716547cc" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.641ms] [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.742ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","e983d682-d634-40ec-8007-dbdb716547cc","bar","3f9a01fe-3bb6-4b25-ba34-fbf321a47cca","baz","","","3f9a01fe-3bb6-4b25-ba34-fbf321a47cca-1750851219733786756","2025-06-25 11:33:39.733","2025-06-25 11:33:39.733") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.751ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "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.845ms] [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.643ms] [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.702ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz",`type`="",`data`="",`created_time`="2025-06-25 11:33:39.733",`updated_time`="2025-06-25 11:33:39.747",`etag`="3f9a01fe-3bb6-4b25-ba34-fbf321a47cca-1750851219747325308" WHERE `parent` = "foo" AND `result_id` = "e983d682-d634-40ec-8007-dbdb716547cc" AND `id` = "3f9a01fe-3bb6-4b25-ba34-fbf321a47cca" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.686ms] [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.279ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "e983d682-d634-40ec-8007-dbdb716547cc" AND `records`.`result_name` = "bar" AND `records`.`id` = "3f9a01fe-3bb6-4b25-ba34-fbf321a47cca" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-25 11:33:39.733" AND `records`.`updated_time` = "2025-06-25 11:33:39.747" AND `records`.`etag` = "3f9a01fe-3bb6-4b25-ba34-fbf321a47cca-1750851219747325308" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [0.819ms] [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.785ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "e983d682-d634-40ec-8007-dbdb716547cc" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-25 11:33:39.706" AND `results`.`updated_time` = "2025-06-25 11:33:39.721" AND `results`.`etag` = "e983d682-d634-40ec-8007-dbdb716547cc-1750851219721593619" === 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 [5.935ms] [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","c62fab79-9fb6-4d31-bf6a-0dbe5e997331","bar","null","","",NULL,NULL,0,"null","c62fab79-9fb6-4d31-bf6a-0dbe5e997331-1750851219795842886","2025-06-25 11:33:39.795","2025-06-25 11:33:39.795") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.576ms] [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.582ms] [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.662ms] [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.741ms] [rows:1] UPDATE `results` SET `name`="bar",`annotations`="null",`created_time`="2025-06-25 11:33:39.795",`updated_time`="2025-06-25 11:33:39.809",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="c62fab79-9fb6-4d31-bf6a-0dbe5e997331-1750851219809377652" WHERE `parent` = "foo" AND `id` = "c62fab79-9fb6-4d31-bf6a-0dbe5e997331" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.452ms] [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.144ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","c62fab79-9fb6-4d31-bf6a-0dbe5e997331","bar","ca75057e-21c4-4964-8864-bbbdeab973f3","baz","","","ca75057e-21c4-4964-8864-bbbdeab973f3-1750851219818692680","2025-06-25 11:33:39.818","2025-06-25 11:33:39.818") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.598ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "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.643ms] [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.907ms] [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.695ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz",`type`="",`data`="",`created_time`="2025-06-25 11:33:39.818",`updated_time`="2025-06-25 11:33:39.831",`etag`="ca75057e-21c4-4964-8864-bbbdeab973f3-1750851219831910599" WHERE `parent` = "foo" AND `result_id` = "c62fab79-9fb6-4d31-bf6a-0dbe5e997331" AND `id` = "ca75057e-21c4-4964-8864-bbbdeab973f3" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.609ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "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.933ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "c62fab79-9fb6-4d31-bf6a-0dbe5e997331" AND `records`.`result_name` = "bar" AND `records`.`id` = "ca75057e-21c4-4964-8864-bbbdeab973f3" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-25 11:33:39.818" AND `records`.`updated_time` = "2025-06-25 11:33:39.831" AND `records`.`etag` = "ca75057e-21c4-4964-8864-bbbdeab973f3-1750851219831910599" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [0.615ms] [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 [9.542ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "c62fab79-9fb6-4d31-bf6a-0dbe5e997331" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-25 11:33:39.795" AND `results`.`updated_time` = "2025-06-25 11:33:39.809" AND `results`.`etag` = "c62fab79-9fb6-4d31-bf6a-0dbe5e997331-1750851219809377652" === 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.224ms] [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","5ddccdb1-a440-49e5-a190-827cb44a85da","bar","null","","",NULL,NULL,0,"null","5ddccdb1-a440-49e5-a190-827cb44a85da-1750851219874507835","2025-06-25 11:33:39.874","2025-06-25 11:33:39.874") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.531ms] [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.644ms] [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.670ms] [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.773ms] [rows:1] UPDATE `results` SET `name`="bar",`annotations`="null",`created_time`="2025-06-25 11:33:39.874",`updated_time`="2025-06-25 11:33:39.888",`recordsummary_record`="",`recordsummary_type`="",`recordsummary_start_time`=NULL,`recordsummary_end_time`=NULL,`recordsummary_status`=0,`recordsummary_annotations`="null",`etag`="5ddccdb1-a440-49e5-a190-827cb44a85da-1750851219888480621" WHERE `parent` = "foo" AND `id` = "5ddccdb1-a440-49e5-a190-827cb44a85da" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.590ms] [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.727ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","5ddccdb1-a440-49e5-a190-827cb44a85da","bar","68ea5618-ce73-48bd-a02f-7a01a37f5b3e","baz","","","68ea5618-ce73-48bd-a02f-7a01a37f5b3e-1750851219896030596","2025-06-25 11:33:39.896","2025-06-25 11:33:39.896") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.744ms] [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.795ms] [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.671ms] [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.528ms] [rows:1] UPDATE `records` SET `result_name`="bar",`name`="baz",`type`="",`data`="",`created_time`="2025-06-25 11:33:39.896",`updated_time`="2025-06-25 11:33:39.911",`etag`="68ea5618-ce73-48bd-a02f-7a01a37f5b3e-1750851219911702420" WHERE `parent` = "foo" AND `result_id` = "5ddccdb1-a440-49e5-a190-827cb44a85da" AND `id` = "68ea5618-ce73-48bd-a02f-7a01a37f5b3e" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.465ms] [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.210ms] [rows:1] DELETE FROM `records` WHERE `records`.`parent` = "foo" AND `records`.`result_id` = "5ddccdb1-a440-49e5-a190-827cb44a85da" AND `records`.`result_name` = "bar" AND `records`.`id` = "68ea5618-ce73-48bd-a02f-7a01a37f5b3e" AND `records`.`name` = "baz" AND `records`.`created_time` = "2025-06-25 11:33:39.896" AND `records`.`updated_time` = "2025-06-25 11:33:39.911" AND `records`.`etag` = "68ea5618-ce73-48bd-a02f-7a01a37f5b3e-1750851219911702420" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:168 [0.648ms] [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.470ms] [rows:1] DELETE FROM `results` WHERE `results`.`parent` = "foo" AND `results`.`id` = "5ddccdb1-a440-49e5-a190-827cb44a85da" AND `results`.`name` = "bar" AND `results`.`created_time` = "2025-06-25 11:33:39.874" AND `results`.`updated_time` = "2025-06-25 11:33:39.888" AND `results`.`etag` = "5ddccdb1-a440-49e5-a190-827cb44a85da-1750851219888480621" === RUN TestRBAC/unauthorized_impersonated_group --- PASS: TestRBAC (0.56s) --- PASS: TestRBAC/authorized_user (0.07s) --- PASS: TestRBAC/unauthorized_user (0.01s) --- PASS: TestRBAC/authorized_group (0.07s) --- 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.07s) --- 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.834s === 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.157s === 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.03s) --- 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.03s) --- PASS: TestFilterBuild/more_complex_filter (0.00s) === RUN TestLimitBuild === RUN TestLimitBuild/limit_clause limit_test.go:43: Want "LIMIT 11", but got "LIMIT ?" === RUN TestLimitBuild/invalid_page_size_-_negative_value === RUN TestLimitBuild/invalid_page_size_-_too_large_value --- FAIL: TestLimitBuild (0.00s) --- FAIL: 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 lister_test.go:94: Want "WHERE (created_time, id) < (?, ?) AND parent = ? AND (recordsummary_status = 1) ORDER BY created_time DESC,id DESC LIMIT 16", but got "WHERE (created_time, id) < (?, ?) AND parent = ? AND (recordsummary_status = 1) ORDER BY created_time DESC,id DESC LIMIT ?" lister_test.go:99: Mismatch in the statement's vars:   []any{    s"2025-06-25 11:33:39.349442469 +0000 UTC",    string("bar"),    string("foo"), +  int(16),   } === RUN TestBuildQuery/return_an_error_if_the_provided_page_token_is_invalid --- FAIL: TestBuildQuery (0.01s) --- FAIL: 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) FAIL FAIL github.com/tektoncd/results/pkg/api/server/v1alpha2/lister 0.241s === 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 (1.09s) === RUN TestGCSWriteTo gcs_test.go:77: Replaying GCS API responses from replay file testdata/TestGCSWriteTo.replay --- PASS: TestGCSWriteTo (0.04s) === RUN TestGCSDelete gcs_test.go:77: Replaying GCS API responses from replay file testdata/TestGCSDelete.replay --- PASS: TestGCSDelete (0.05s) === 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.01s) === 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 2.320s === RUN TestLogPluginServer_GetLog plugin_logs_test.go:108: test database: /tmp/testdb3270037148 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.141ms] [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 [70.887ms] [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 [30.080ms] [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.160ms] [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.525ms] [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 [25.067ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"info","ts":1750851219.529287,"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 [7.618ms] [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","1d54439c-281a-4746-9553-e2cc7164101b","bar","null","","",NULL,NULL,0,"null","1d54439c-281a-4746-9553-e2cc7164101b-1750851219530901817","2025-06-25 11:33:39.53","2025-06-25 11:33:39.53") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [2.705ms] [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.602ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","1d54439c-281a-4746-9553-e2cc7164101b","bar","80589cf6-e066-43a6-a680-97d89140b15d","baz","tekton.dev/v1.PipelineRun","{""metadata"":{""creationTimestamp"":null},""spec"":{""taskRunTemplate"":{}},""status"":{""startTime"":""2025-06-25T11:33:39Z"",""completionTime"":""2025-06-25T11:33:39Z""}}","80589cf6-e066-43a6-a680-97d89140b15d-1750851219558258858","2025-06-25 11:33:39.558","2025-06-25 11:33:39.558") 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.450ms] [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=1750851219&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=1750851219 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.24s) === RUN TestMergeLogParts === RUN TestMergeLogParts/Test_with_matching_regexp === RUN TestMergeLogParts/Test_with_empty_regexp === RUN TestMergeLogParts/Test_with_not_matching_regexp --- PASS: TestMergeLogParts (0.01s) --- PASS: TestMergeLogParts/Test_with_matching_regexp (0.00s) --- PASS: TestMergeLogParts/Test_with_empty_regexp (0.01s) --- PASS: TestMergeLogParts/Test_with_not_matching_regexp (0.00s) === RUN TestSplunkLogs plugin_logs_test.go:319: test database: /tmp/testdb120950523 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.152ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [6.064ms] [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.215ms] [rows:0] CREATE UNIQUE INDEX `results_by_name` ON `results`(`parent`,`name`) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.135ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [4.374ms] [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.521ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"info","ts":1750851219.653163,"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 [7.460ms] [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","6d907a3c-ccdd-4d9d-8c3c-3513f6001f97","test-result","null","","",NULL,NULL,0,"null","6d907a3c-ccdd-4d9d-8c3c-3513f6001f97-1750851219653699178","2025-06-25 11:33:39.653","2025-06-25 11:33:39.653") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [3.364ms] [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 [6.970ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("rh-acs-tenant","6d907a3c-ccdd-4d9d-8c3c-3513f6001f97","test-result","ff7c1181-31e2-44f2-b3bd-eb92c90c025d","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-25T10:33:39Z"",""completionTime"":""2025-06-25T11:33:39Z""}}","ff7c1181-31e2-44f2-b3bd-eb92c90c025d-1750851219668030521","2025-06-25 11:33:39.668","2025-06-25 11:33:39.668") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin/plugin_logs.go:768 [1.073ms] [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.10s) PASS ok github.com/tektoncd/results/pkg/api/server/v1alpha2/plugin 6.597s === RUN TestParseName === RUN TestParseName/simple === RUN TestParseName/resource_name_reuse === RUN TestParseName/missing_name === RUN TestParseName/missing_name,_no_slash === RUN TestParseName/missing_parent === RUN TestParseName/missing_parent,_no_slash === RUN TestParseName/wrong_resource === RUN TestParseName/result_resource === RUN TestParseName/invalid_parent === RUN TestParseName/invalid_name --- PASS: TestParseName (0.01s) --- PASS: TestParseName/simple (0.00s) --- PASS: TestParseName/resource_name_reuse (0.00s) --- PASS: TestParseName/missing_name (0.00s) --- PASS: TestParseName/missing_name,_no_slash (0.00s) --- PASS: TestParseName/missing_parent (0.00s) --- PASS: TestParseName/missing_parent,_no_slash (0.00s) --- PASS: TestParseName/wrong_resource (0.00s) --- PASS: TestParseName/result_resource (0.00s) --- PASS: TestParseName/invalid_parent (0.00s) --- PASS: TestParseName/invalid_name (0.00s) === RUN TestToStorage === RUN TestToStorage/full === RUN TestToStorage/missing_data === RUN TestToStorage/deprecated_fields === RUN TestToStorage/invalid_type === RUN TestToStorage/invalid_data --- PASS: TestToStorage (0.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.220s === 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.00s) === 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/25 11:33:39 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.225s === RUN TestStoreLoadWithContext logger.go:146: 2025-06-25T11:33:39.333Z 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.208s === 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.050s === RUN TestListRecords === RUN TestListRecords/successful_list === RUN TestListRecords/error_response 2025/06/25 11:33:39 RoundTripper returned a response & error; ignoring response --- PASS: TestListRecords (0.01s) --- PASS: TestListRecords/successful_list (0.01s) --- PASS: TestListRecords/error_response (0.00s) PASS ok github.com/tektoncd/results/pkg/cli/client/records 1.058s === 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-25 11:33:42 +0000 UTC 2025-06-25 11:33:42 +0000 UTC] === RUN TestPrintProto_Tab/*results_go_proto.ListRecordsResponse [Name Type Start Update] [a tacocat 2025-06-25 11:33:42 +0000 UTC 2025-06-25 11:33:42 +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.174s ? 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.160s === 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.03s) --- 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.208s === RUN TestDescribeTaskRun === RUN TestDescribeTaskRun/success === RUN TestDescribeTaskRun/not_found === RUN TestDescribeTaskRun/multiple_found === RUN TestDescribeTaskRun/error_from_client === RUN TestDescribeTaskRun/invalid_arguments === RUN TestDescribeTaskRun/UID_lookup === RUN TestDescribeTaskRun/complex_output === RUN TestDescribeTaskRun/output_yaml === RUN TestDescribeTaskRun/output_json --- PASS: TestDescribeTaskRun (0.02s) --- PASS: TestDescribeTaskRun/success (0.02s) --- PASS: TestDescribeTaskRun/not_found (0.00s) --- PASS: TestDescribeTaskRun/multiple_found (0.00s) --- PASS: TestDescribeTaskRun/error_from_client (0.00s) --- PASS: TestDescribeTaskRun/invalid_arguments (0.00s) --- PASS: TestDescribeTaskRun/UID_lookup (0.00s) --- PASS: TestDescribeTaskRun/complex_output (0.00s) --- PASS: TestDescribeTaskRun/output_yaml (0.00s) --- PASS: TestDescribeTaskRun/output_json (0.00s) === RUN TestListCommand === RUN TestListCommand/successful_list_with_default_options === RUN TestListCommand/list_with_task_name_filter === RUN TestListCommand/list_with_single_label_filter === RUN TestListCommand/list_with_multiple_label_filters === RUN TestListCommand/list_with_invalid_label_format === RUN TestListCommand/list_with_empty_label_value === RUN TestListCommand/list_with_empty_label_key === RUN TestListCommand/list_with_task_name_and_label_filter === RUN TestListCommand/list_with_pipelinerun_filter === RUN TestListCommand/list_with_pipelinerun_and_label_filters === RUN TestListCommand/list_with_pipelinerun_and_name_filters --- PASS: TestListCommand (0.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.238s === RUN TestNewConfig === RUN TestNewConfig/valid_params --- PASS: TestNewConfig (0.01s) --- PASS: TestNewConfig/valid_params (0.01s) === RUN TestSet --- PASS: TestSet (0.01s) === RUN TestReset --- PASS: TestReset (0.01s) === 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.02s) === RUN TestSetVersion --- PASS: TestSetVersion (0.01s) === RUN TestHost --- PASS: TestHost (0.04s) === 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.08s) --- PASS: TestGetRoutes/no_services_found (0.01s) --- 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.350s === 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.18s) PASS ok github.com/tektoncd/results/pkg/cli/dev/client 1.325s === RUN TestDescribeResult --- PASS: TestDescribeResult (0.00s) PASS ok github.com/tektoncd/results/pkg/cli/dev/cmd/result 1.052s === 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.057s ? 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.106s === RUN TestClearOutputOnly --- PASS: TestClearOutputOnly (0.01s) PASS ok github.com/tektoncd/results/pkg/internal/protoutil 1.058s === 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.036s === RUN TestRecorder_DurationAndCountDeleted === RUN TestRecorder_DurationAndCountDeleted/for_succeed_pipeline logger.go:146: 2025-06-25T11:33:50.476Z DEBUG pipelinerunmetrics/metrics.go:78 unregistering pipelinerun metrics view logger.go:146: 2025-06-25T11:33:50.477Z DEBUG pipelinerunmetrics/metrics.go:73 registering pipelinerun metrics view === RUN TestRecorder_DurationAndCountDeleted/for_canceled_pipeline_(without_completion_time) logger.go:146: 2025-06-25T11:33:50.478Z DEBUG pipelinerunmetrics/metrics.go:78 unregistering pipelinerun metrics view logger.go:146: 2025-06-25T11:33:50.478Z DEBUG pipelinerunmetrics/metrics.go:73 registering pipelinerun metrics view === RUN TestRecorder_DurationAndCountDeleted/for_failed_pipeline_(without_completion_time) logger.go:146: 2025-06-25T11:33:50.484Z DEBUG pipelinerunmetrics/metrics.go:78 unregistering pipelinerun metrics view logger.go:146: 2025-06-25T11:33:50.484Z DEBUG pipelinerunmetrics/metrics.go:73 registering pipelinerun metrics view --- PASS: TestRecorder_DurationAndCountDeleted (0.01s) --- PASS: TestRecorder_DurationAndCountDeleted/for_succeed_pipeline (0.00s) --- PASS: TestRecorder_DurationAndCountDeleted/for_canceled_pipeline_(without_completion_time) (0.01s) --- PASS: TestRecorder_DurationAndCountDeleted/for_failed_pipeline_(without_completion_time) (0.00s) PASS ok github.com/tektoncd/results/pkg/pipelinerunmetrics 1.117s ? 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-25 11:33:53.501350039 +0000 UTC m=+0.192192139, deleting data older than 2025-06-24 11:33:53.501349031 +0000 UTC m=-86399.807808868, retention policy: { 24h0m0s}"} {"level":"info","msg":"retention job finished at: 2025-06-25 11:33:53.502187038 +0000 UTC m=+0.193029137"} --- PASS: TestAgent_job (0.02s) PASS ok github.com/tektoncd/results/pkg/retention 1.242s === RUN TestRecorder_DurationAndCountDeleted === RUN TestRecorder_DurationAndCountDeleted/for_succeeded_taskrun logger.go:146: 2025-06-25T11:33:53.397Z DEBUG taskrunmetrics/metrics.go:89 unregistering taskrun metrics view logger.go:146: 2025-06-25T11:33:53.397Z DEBUG taskrunmetrics/metrics.go:84 registering taskrun metrics view === RUN TestRecorder_DurationAndCountDeleted/for_failed_taskrun logger.go:146: 2025-06-25T11:33:53.398Z DEBUG taskrunmetrics/metrics.go:89 unregistering taskrun metrics view logger.go:146: 2025-06-25T11:33:53.399Z DEBUG taskrunmetrics/metrics.go:84 registering taskrun metrics view === RUN TestRecorder_DurationAndCountDeleted/for_succeeded_taskrun_in_pipelinerun logger.go:146: 2025-06-25T11:33:53.403Z DEBUG taskrunmetrics/metrics.go:89 unregistering taskrun metrics view logger.go:146: 2025-06-25T11:33:53.403Z DEBUG taskrunmetrics/metrics.go:84 registering taskrun metrics view === RUN TestRecorder_DurationAndCountDeleted/for_failed_taskrun_in_pipelinerun logger.go:146: 2025-06-25T11:33:53.403Z DEBUG taskrunmetrics/metrics.go:89 unregistering taskrun metrics view logger.go:146: 2025-06-25T11:33:53.404Z 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.139s ? 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.22s) --- PASS: TestToProto/string (0.13s) --- PASS: TestToProto/string/*v1.TaskRun (0.06s) --- PASS: TestToProto/string/*unstructured.Unstructured (0.04s) --- PASS: TestToProto/string#01 (0.10s) --- PASS: TestToProto/string#01/*v1.PipelineRun (0.04s) --- PASS: TestToProto/string#01/*unstructured.Unstructured (0.04s) --- 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.425s === RUN TestGetDisableAnnotationUpdate --- PASS: TestGetDisableAnnotationUpdate (0.00s) === RUN TestCompletedResourceGracePeriod --- PASS: TestCompletedResourceGracePeriod (0.00s) === RUN TestController logger.go:146: 2025-06-25T11:34:03.242Z INFO cache/cacheclient.go:42 CACHE CLIENT &{lru:0xc000d76a00 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/testdb494586077 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.056ms] [rows:0] PRAGMA foreign_keys = ON; db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.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 [82.109ms] [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 [90.816ms] [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 [57.004ms] [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 [55.612ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851243.552584,"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-25T11:34:03.557Z 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-25T11:34:03.558Z 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-25T11:34:03.559Z 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-25T11:34:03.559Z 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-25T11:34:03.559Z 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-25T11:34:03.559Z 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-25T11:34:03.561Z 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-25T11:34:03.561Z 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-25T11:34:03.587Z 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.528ms] [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-25T11:34:03.590Z 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": "04220d30-0f16-4ece-81a4-97c053ef4ca2", "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 [89.333ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("ns","ecfe519d-2c0a-4e02-a38f-299ed0fc876d","pr-id","null","","",NULL,NULL,0,"null","ecfe519d-2c0a-4e02-a38f-299ed0fc876d-1750851243592122850","2025-06-25 11:34:03.592","2025-06-25 11:34:03.592") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.480ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "pr-id" AND `records`.`name` = "tr-id" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:03.684Z 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": "04220d30-0f16-4ece-81a4-97c053ef4ca2", "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.502ms] [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 [64.783ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","ecfe519d-2c0a-4e02-a38f-299ed0fc876d","pr-id","e9a5c841-66f3-418e-980c-26b05d99f21a","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"":""""}}","e9a5c841-66f3-418e-980c-26b05d99f21a-1750851243688938598","2025-06-25 11:34:03.688","2025-06-25 11:34:03.688") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-25T11:34:03.754Z 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": "04220d30-0f16-4ece-81a4-97c053ef4ca2", "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": 168} logger.go:146: 2025-06-25T11:34:03.756Z 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": "04220d30-0f16-4ece-81a4-97c053ef4ca2", "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-25T11:34:03.756Z 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-25T11:34:03.757Z 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": "04220d30-0f16-4ece-81a4-97c053ef4ca2", "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-25T11:34:03.757Z 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": "04220d30-0f16-4ece-81a4-97c053ef4ca2", "knative.dev/key": "ns/taskrun", "duration": "196.328658ms"} logger.go:146: 2025-06-25T11:34:03.757Z 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-25T11:34:03.758Z 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.711ms] [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-25T11:34:03.761Z 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": "f22531dd-b047-48e2-bb78-b2beaab8c434", "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.584ms] [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-25T11:34:03.780Z 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": "f22531dd-b047-48e2-bb78-b2beaab8c434", "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.503ms] [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.722ms] [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-25 11:34:03.688",`updated_time`="2025-06-25 11:34:03.782",`etag`="e9a5c841-66f3-418e-980c-26b05d99f21a-1750851243782723081" WHERE `parent` = "ns" AND `result_id` = "ecfe519d-2c0a-4e02-a38f-299ed0fc876d" AND `id` = "e9a5c841-66f3-418e-980c-26b05d99f21a" logger.go:146: 2025-06-25T11:34:03.831Z 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": "f22531dd-b047-48e2-bb78-b2beaab8c434", "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": 72} logger.go:146: 2025-06-25T11:34:03.831Z 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": "f22531dd-b047-48e2-bb78-b2beaab8c434", "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-25T11:34:03.832Z 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": "f22531dd-b047-48e2-bb78-b2beaab8c434", "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-25T11:34:03.832Z 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": "f22531dd-b047-48e2-bb78-b2beaab8c434", "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-25T11:34:03.832Z 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": "f22531dd-b047-48e2-bb78-b2beaab8c434", "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-25T11:34:03.832Z 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": "f22531dd-b047-48e2-bb78-b2beaab8c434", "knative.dev/key": "ns/taskrun", "duration": "73.565939ms"} === 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-25T11:34:04.560Z 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-25T11:34:04.560Z 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-25T11:34:04.567Z 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": "a980ca59-927c-4775-9ac5-743e56fdc420", "knative.dev/key": "ns/pr", "results.tekton.dev/kind": "PipelineRun"} logger.go:146: 2025-06-25T11:34:04.568Z DEBUG TestController controller/controller.go:418 Adding to queue ns/pr (depth: 1) {"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun", "knative.dev/key": "ns/pr"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.732ms] [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.511ms] [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.576ms] [rows:1] UPDATE `results` SET `name`="pr-id",`annotations`="{""object.metadata.name"":""pr""}",`created_time`="2025-06-25 11:34:03.592",`updated_time`="2025-06-25 11:34:04.574",`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`="ecfe519d-2c0a-4e02-a38f-299ed0fc876d-1750851244574440834" WHERE `parent` = "ns" AND `id` = "ecfe519d-2c0a-4e02-a38f-299ed0fc876d" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found [0.409ms] [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-25T11:34:04.583Z 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": "a980ca59-927c-4775-9ac5-743e56fdc420", "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.437ms] [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.049ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","ecfe519d-2c0a-4e02-a38f-299ed0fc876d","pr-id","2e23f6f7-26da-4e27-ac1a-99c8cf5f3358","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"":{}}","2e23f6f7-26da-4e27-ac1a-99c8cf5f3358-1750851244585113111","2025-06-25 11:34:04.585","2025-06-25 11:34:04.585") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-25T11:34:04.591Z 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": "a980ca59-927c-4775-9ac5-743e56fdc420", "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": 23} logger.go:146: 2025-06-25T11:34:04.592Z 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": "a980ca59-927c-4775-9ac5-743e56fdc420", "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-25T11:34:04.592Z 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-25T11:34:04.593Z 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": "a980ca59-927c-4775-9ac5-743e56fdc420", "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-25T11:34:04.593Z 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-25T11:34:04.593Z 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": "a980ca59-927c-4775-9ac5-743e56fdc420", "knative.dev/key": "ns/pr", "duration": "32.6409ms"} logger.go:146: 2025-06-25T11:34:04.594Z 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-25T11:34:04.594Z 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": "53995853-3285-4c1f-b70b-6f92fd882e83", "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.528ms] [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-25T11:34:04.597Z 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": "53995853-3285-4c1f-b70b-6f92fd882e83", "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.528ms] [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-25T11:34:04.608Z 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": "53995853-3285-4c1f-b70b-6f92fd882e83", "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.572ms] [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.552ms] [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-25 11:34:04.585",`updated_time`="2025-06-25 11:34:04.61",`etag`="2e23f6f7-26da-4e27-ac1a-99c8cf5f3358-1750851244610630904" WHERE `parent` = "ns" AND `result_id` = "ecfe519d-2c0a-4e02-a38f-299ed0fc876d" AND `id` = "2e23f6f7-26da-4e27-ac1a-99c8cf5f3358" logger.go:146: 2025-06-25T11:34:04.616Z 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": "53995853-3285-4c1f-b70b-6f92fd882e83", "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": 21} logger.go:146: 2025-06-25T11:34:04.616Z 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": "53995853-3285-4c1f-b70b-6f92fd882e83", "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-25T11:34:04.616Z 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": "53995853-3285-4c1f-b70b-6f92fd882e83", "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-25T11:34:04.616Z 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": "53995853-3285-4c1f-b70b-6f92fd882e83", "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-25T11:34:04.616Z 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": "53995853-3285-4c1f-b70b-6f92fd882e83", "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-25T11:34:04.617Z 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": "53995853-3285-4c1f-b70b-6f92fd882e83", "knative.dev/key": "ns/pr", "duration": "22.93046ms"} === 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-25T11:34:05.561Z 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"} logger.go:146: 2025-06-25T11:34:05.561Z 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"} --- PASS: TestController (2.32s) --- PASS: TestController/taskrun (1.00s) --- PASS: TestController/pipelinerun (1.00s) PASS ok github.com/tektoncd/results/pkg/watcher/reconciler 3.877s === 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.080s ? 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-25T11:34:08.526Z INFO cache/cacheclient.go:42 CACHE CLIENT &{lru:0xc000f228a0 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/testdb3562653052 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.129ms] [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 [3.571ms] [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.700ms] [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.374ms] [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 [25.743ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851248.5861404,"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.444ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.595Z 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 [7.643ms] [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","01b45c73-e44d-4d27-86fe-d922e1875447","12345","{""object.metadata.name"":""taskrun""}","ns/results/12345/records/12345","tekton.dev/v1.TaskRun",NULL,"0000-00-00 00:00:00",1,"null","01b45c73-e44d-4d27-86fe-d922e1875447-1750851248598949146","2025-06-25 11:34:08.598","2025-06-25 11:34:08.598") 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 [9.107ms] [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-25T11:34:08.635Z 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.812ms] [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 [26.609ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","01b45c73-e44d-4d27-86fe-d922e1875447","12345","622af41e-4f32-4372-a5cc-5dc2450e9e85","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"":""""}}","622af41e-4f32-4372-a5cc-5dc2450e9e85-1750851248640793566","2025-06-25 11:34:08.64","2025-06-25 11:34:08.64") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.815ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.672Z 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.507ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "a11552ce-1b67-3922-ae74-d861842797b6" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.655ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.678Z 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.351ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "a11552ce-1b67-3922-ae74-d861842797b6" 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.414ms] [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 [6.383ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","01b45c73-e44d-4d27-86fe-d922e1875447","12345","fb1066e8-8f53-4af2-83e3-bdd6e23da8df","a11552ce-1b67-3922-ae74-d861842797b6","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""ns"",""uid"":""a11552ce-1b67-3922-ae74-d861842797b6"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""ns"",""name"":""taskrun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","fb1066e8-8f53-4af2-83e3-bdd6e23da8df-1750851248682710639","2025-06-25 11:34:08.682","2025-06-25 11:34:08.682") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-25T11:34:08.690Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:289 Skipping CRD annotation patch: annotation update is disabled logger.go:146: 2025-06-25T11:34:08.690Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:472 Streaming log started {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-25T11:34:08.691Z 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-25T11:34:08.691Z 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 [1.167ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.696Z 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.458ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e8b063d4-7b65-309e-883e-cae1d23af37f" 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.616ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.702Z 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.487ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e8b063d4-7b65-309e-883e-cae1d23af37f" 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.403ms] [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 [6.767ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","01b45c73-e44d-4d27-86fe-d922e1875447","12345","deeec95f-b947-43ab-8216-d8214eccbe74","e8b063d4-7b65-309e-883e-cae1d23af37f","results.tekton.dev/v1.EventList","{""metadata"":{},""items"":null}","deeec95f-b947-43ab-8216-d8214eccbe74-1750851248705632328","2025-06-25 11:34:08.705","2025-06-25 11:34:08.705") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-25T11:34:08.713Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:289 Skipping CRD annotation patch: annotation update is disabled logger.go:146: 2025-06-25T11:34:08.713Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-25T11:34:08.713Z 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": 76} logger.go:146: 2025-06-25T11:34:08.714Z 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-25T11:34:08.714Z 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-25T11:34:08.714Z 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.790ms] [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 [1.164ms] [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.592ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e8b063d4-7b65-309e-883e-cae1d23af37f" 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.662ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e8b063d4-7b65-309e-883e-cae1d23af37f" 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.530ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.734Z 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` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.750Z 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.691ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.754Z 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.670ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "a11552ce-1b67-3922-ae74-d861842797b6" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.681ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.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.673ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e8b063d4-7b65-309e-883e-cae1d23af37f" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.778Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-25T11:34:08.778Z 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": 19} logger.go:146: 2025-06-25T11:34:08.779Z 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-25T11:34:08.780Z 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.688ms] [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.623ms] [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.550ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "a11552ce-1b67-3922-ae74-d861842797b6" 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.535ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e8b063d4-7b65-309e-883e-cae1d23af37f" 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.401ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.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.428ms] [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-25T11:34:08.804Z 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.578ms] [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.614ms] [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-25T11:34:08Z""}}",`created_time`="2025-06-25 11:34:08.64",`updated_time`="2025-06-25 11:34:08.807",`etag`="622af41e-4f32-4372-a5cc-5dc2450e9e85-1750851248807220453" WHERE `parent` = "ns" AND `result_id` = "01b45c73-e44d-4d27-86fe-d922e1875447" AND `id` = "622af41e-4f32-4372-a5cc-5dc2450e9e85" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.720ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.817Z DEBUG TestReconcile_TaskRun results/results.go:210 No further actions to be done on the Result: no differences found {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.604ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "a11552ce-1b67-3922-ae74-d861842797b6" 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.585ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.825Z 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.507ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e8b063d4-7b65-309e-883e-cae1d23af37f" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.829Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-25T11:34:08.829Z 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": 23} logger.go:146: 2025-06-25T11:34:08.831Z 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-25T11:34:08.832Z 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.622ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.835Z 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` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.855Z 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.635ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.859Z 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.633ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "a11552ce-1b67-3922-ae74-d861842797b6" 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.471ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.866Z 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.522ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e8b063d4-7b65-309e-883e-cae1d23af37f" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.869Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-25T11:34:08.869Z 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": 23} logger.go:146: 2025-06-25T11:34:08.871Z 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-25T11:34:08.871Z 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-25T11:34:08.871Z 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.742ms] [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.680ms] [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.711ms] [rows:1] UPDATE `results` SET `name`="12345",`annotations`="{""object.metadata.name"":""taskrun""}",`created_time`="2025-06-25 11:34:08.598",`updated_time`="2025-06-25 11:34:08.877",`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`="01b45c73-e44d-4d27-86fe-d922e1875447-1750851248877320791" WHERE `parent` = "ns" AND `id` = "01b45c73-e44d-4d27-86fe-d922e1875447" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.715ms] [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-25T11:34:08.902Z 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.599ms] [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-25T11:34:08Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-25T11:34:08Z"",""completionTime"":""2025-06-25T11:34:10Z""}}",`created_time`="2025-06-25 11:34:08.64",`updated_time`="2025-06-25 11:34:08.904",`etag`="622af41e-4f32-4372-a5cc-5dc2450e9e85-1750851248904664981" WHERE `parent` = "ns" AND `result_id` = "01b45c73-e44d-4d27-86fe-d922e1875447" AND `id` = "622af41e-4f32-4372-a5cc-5dc2450e9e85" 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 logger.go:146: 2025-06-25T11:34:08.913Z 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` = "a11552ce-1b67-3922-ae74-d861842797b6" 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.562ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.919Z 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.570ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e8b063d4-7b65-309e-883e-cae1d23af37f" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.923Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-25T11:34:08.923Z 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": 38} logger.go:146: 2025-06-25T11:34:08.924Z 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-25T11:34:08.924Z 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-25T11:34:08.925Z 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.457ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.927Z 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.495ms] [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-25T11:34:08.941Z 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.526ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.944Z 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.617ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "a11552ce-1b67-3922-ae74-d861842797b6" 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` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.951Z 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.444ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e8b063d4-7b65-309e-883e-cae1d23af37f" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.954Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-25T11:34:08.954Z 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-25T11:34:08.955Z 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-25T11:34:08.956Z 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.423ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.959Z 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.459ms] [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-25T11:34:08.974Z 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.662ms] [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.610ms] [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-25T11:34:08Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-25T11:34:08Z"",""completionTime"":""2025-06-25T11:34:10Z""}}",`created_time`="2025-06-25 11:34:08.64",`updated_time`="2025-06-25 11:34:08.976",`etag`="622af41e-4f32-4372-a5cc-5dc2450e9e85-1750851248976882970" WHERE `parent` = "ns" AND `result_id` = "01b45c73-e44d-4d27-86fe-d922e1875447" AND `id` = "622af41e-4f32-4372-a5cc-5dc2450e9e85" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.459ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.985Z 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.432ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "a11552ce-1b67-3922-ae74-d861842797b6" 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.435ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.992Z 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` = "e8b063d4-7b65-309e-883e-cae1d23af37f" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.996Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-25T11:34:08.996Z 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": 26} logger.go:146: 2025-06-25T11:34:08.997Z 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-25T11:34:08.997Z 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-25T11:34:08.997Z 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.426ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.000Z 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.608ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.021Z 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.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-25T11:34:09.024Z 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.623ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "a11552ce-1b67-3922-ae74-d861842797b6" 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.430ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.031Z 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` = "e8b063d4-7b65-309e-883e-cae1d23af37f" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.035Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-25T11:34:09.035Z 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": 23} logger.go:146: 2025-06-25T11:34:09.037Z 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.521ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.040Z 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.610ms] [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-25T11:34:09.063Z 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.656ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.068Z 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.779ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "a11552ce-1b67-3922-ae74-d861842797b6" 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.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-25T11:34:09.077Z DEBUG TestReconcile_TaskRun results/results.go:210 No further actions to be done on the Result: no differences found {"results.tekton.dev/result": "ns/results/12345", "results.tekton.dev/record": "ns/results/12345/records/12345", "results.tekton.dev/top-level-record": true} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.576ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e8b063d4-7b65-309e-883e-cae1d23af37f" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.081Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-25T11:34:09.081Z 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-25T11:34:09.083Z 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.569ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.087Z 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.590ms] [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-25T11:34:09.109Z 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.467ms] [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.490ms] [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-25T11:34:08Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-25T11:34:08Z"",""completionTime"":""2025-06-25T11:34:10Z""}}",`created_time`="2025-06-25 11:34:08.64",`updated_time`="2025-06-25 11:34:09.112",`etag`="622af41e-4f32-4372-a5cc-5dc2450e9e85-1750851249112183300" WHERE `parent` = "ns" AND `result_id` = "01b45c73-e44d-4d27-86fe-d922e1875447" AND `id` = "622af41e-4f32-4372-a5cc-5dc2450e9e85" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.537ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.120Z 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.463ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "a11552ce-1b67-3922-ae74-d861842797b6" 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.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-25T11:34:09.126Z 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` = "e8b063d4-7b65-309e-883e-cae1d23af37f" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.130Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-25T11:34:09.131Z 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": 33} logger.go:146: 2025-06-25T11:34:09.133Z 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-25T11:34:09.133Z 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-25T11:34:09.133Z 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.452ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.136Z 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.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-25T11:34:09.154Z 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.475ms] [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.474ms] [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-25T11:34:08Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-25T11:34:08Z"",""completionTime"":""2025-06-25T11:34:10Z""}}",`created_time`="2025-06-25 11:34:08.64",`updated_time`="2025-06-25 11:34:09.156",`etag`="622af41e-4f32-4372-a5cc-5dc2450e9e85-1750851249156437134" WHERE `parent` = "ns" AND `result_id` = "01b45c73-e44d-4d27-86fe-d922e1875447" AND `id` = "622af41e-4f32-4372-a5cc-5dc2450e9e85" 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-25T11:34:09.164Z 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.732ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "a11552ce-1b67-3922-ae74-d861842797b6" 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.542ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.171Z 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.633ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e8b063d4-7b65-309e-883e-cae1d23af37f" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.174Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-25T11:34:09.174Z 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-25T11:34:09.176Z 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-25T11:34:09.176Z 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-25T11:34:09.176Z 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.349ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "48b84bf3-74f0-4178-9d1a-0958c9566270" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.178Z DEBUG TestReconcile_TaskRun results/results.go:188 Result doesn't exist yet - creating {"results.tekton.dev/result": "ns/results/48b84bf3-74f0-4178-9d1a-0958c9566270", "results.tekton.dev/record": "ns/results/48b84bf3-74f0-4178-9d1a-0958c9566270/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 [7.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 ("ns","1b40b364-4426-48ad-87d7-fac47d5ebbf5","48b84bf3-74f0-4178-9d1a-0958c9566270","null","","",NULL,NULL,0,"null","1b40b364-4426-48ad-87d7-fac47d5ebbf5-1750851249179788894","2025-06-25 11:34:09.179","2025-06-25 11:34:09.179") 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.394ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "48b84bf3-74f0-4178-9d1a-0958c9566270" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.190Z DEBUG TestReconcile_TaskRun results/results.go:334 Record doesn't exist yet - creating {"results.tekton.dev/record": "ns/results/48b84bf3-74f0-4178-9d1a-0958c9566270/records/12345"} db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [0.359ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "48b84bf3-74f0-4178-9d1a-0958c9566270" 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.030ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","1b40b364-4426-48ad-87d7-fac47d5ebbf5","48b84bf3-74f0-4178-9d1a-0958c9566270","6f29faa5-cdfe-48aa-a576-e82844faf1d5","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"":""48b84bf3-74f0-4178-9d1a-0958c9566270""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-06-25T11:34:08Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-25T11:34:08Z"",""completionTime"":""2025-06-25T11:34:10Z""}}","6f29faa5-cdfe-48aa-a576-e82844faf1d5-1750851249192184505","2025-06-25 11:34:09.192","2025-06-25 11:34:09.192") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.498ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "48b84bf3-74f0-4178-9d1a-0958c9566270" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.200Z 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/48b84bf3-74f0-4178-9d1a-0958c9566270", "results.tekton.dev/record": "ns/results/48b84bf3-74f0-4178-9d1a-0958c9566270/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.418ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "48b84bf3-74f0-4178-9d1a-0958c9566270" AND `records`.`name` = "0bbdefc3-6100-37f9-8508-c4cfe9d75686" 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.567ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "48b84bf3-74f0-4178-9d1a-0958c9566270" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.204Z 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/48b84bf3-74f0-4178-9d1a-0958c9566270", "results.tekton.dev/record": "ns/results/48b84bf3-74f0-4178-9d1a-0958c9566270/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.343ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "48b84bf3-74f0-4178-9d1a-0958c9566270" AND `records`.`name` = "0bbdefc3-6100-37f9-8508-c4cfe9d75686" 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.338ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "48b84bf3-74f0-4178-9d1a-0958c9566270" 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.465ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","1b40b364-4426-48ad-87d7-fac47d5ebbf5","48b84bf3-74f0-4178-9d1a-0958c9566270","d7b11ebc-88f3-4a3a-8f51-e1a1dececcd0","0bbdefc3-6100-37f9-8508-c4cfe9d75686","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""ns"",""uid"":""0bbdefc3-6100-37f9-8508-c4cfe9d75686"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""ns"",""name"":""taskrun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","d7b11ebc-88f3-4a3a-8f51-e1a1dececcd0-1750851249208031176","2025-06-25 11:34:09.208","2025-06-25 11:34:09.208") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-25T11:34:09.215Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:472 Streaming log started {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-25T11:34:09.216Z 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-25T11:34:09.216Z 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.473ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "48b84bf3-74f0-4178-9d1a-0958c9566270" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.218Z 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/48b84bf3-74f0-4178-9d1a-0958c9566270", "results.tekton.dev/record": "ns/results/48b84bf3-74f0-4178-9d1a-0958c9566270/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.309ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "48b84bf3-74f0-4178-9d1a-0958c9566270" AND `records`.`name` = "8a8bcdca-ea60-3f72-84bf-c5785fbc754c" 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.509ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "48b84bf3-74f0-4178-9d1a-0958c9566270" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.222Z 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/48b84bf3-74f0-4178-9d1a-0958c9566270", "results.tekton.dev/record": "ns/results/48b84bf3-74f0-4178-9d1a-0958c9566270/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.399ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "48b84bf3-74f0-4178-9d1a-0958c9566270" AND `records`.`name` = "8a8bcdca-ea60-3f72-84bf-c5785fbc754c" 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.435ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "48b84bf3-74f0-4178-9d1a-0958c9566270" 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.803ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","1b40b364-4426-48ad-87d7-fac47d5ebbf5","48b84bf3-74f0-4178-9d1a-0958c9566270","c5f6ad51-3a3b-4b1c-9313-c23094da9c50","8a8bcdca-ea60-3f72-84bf-c5785fbc754c","results.tekton.dev/v1.EventList","{""metadata"":{},""items"":null}","c5f6ad51-3a3b-4b1c-9313-c23094da9c50-1750851249225889724","2025-06-25 11:34:09.225","2025-06-25 11:34:09.225") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-25T11:34:09.233Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-25T11:34:09.233Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:259 Record has been successfully upserted into API server {"results.tekton.dev/result": "ns/results/48b84bf3-74f0-4178-9d1a-0958c9566270", "results.tekton.dev/record": "ns/results/48b84bf3-74f0-4178-9d1a-0958c9566270/records/12345", "results.tekton.dev/time-taken-ms": 21} logger.go:146: 2025-06-25T11:34:09.234Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:334 Resource is owned by a PipelineRun, deferring deletion to parent PipelineRun {"results.tekton.dev/result": "ns/results/48b84bf3-74f0-4178-9d1a-0958c9566270", "results.tekton.dev/record": "ns/results/48b84bf3-74f0-4178-9d1a-0958c9566270/records/12345", "results.tekton.dev/gracePeriod": "1s", "tekton.dev/PipelineRun": "test-pipelinerun"} logger.go:146: 2025-06-25T11:34:09.235Z WARN TestReconcile_TaskRun dynamic/dynamic.go:120 Leaving dynamic Reconciler somehow but the context channel is not closed {"results.tekton.dev/result": "ns/results/48b84bf3-74f0-4178-9d1a-0958c9566270", "results.tekton.dev/record": "ns/results/48b84bf3-74f0-4178-9d1a-0958c9566270/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.498ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.237Z 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.604ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.255Z 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.469ms] [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.746ms] [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"":""976ae240-72df-4479-9713-39331a8dfa29""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2025-06-25T11:34:08Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2025-06-25T11:34:08Z"",""completionTime"":""2025-06-25T11:34:10Z""}}",`created_time`="2025-06-25 11:34:08.64",`updated_time`="2025-06-25 11:34:09.257",`etag`="622af41e-4f32-4372-a5cc-5dc2450e9e85-1750851249257559215" WHERE `parent` = "ns" AND `result_id` = "01b45c73-e44d-4d27-86fe-d922e1875447" AND `id` = "622af41e-4f32-4372-a5cc-5dc2450e9e85" 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-25T11:34:09.269Z 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.494ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "a11552ce-1b67-3922-ae74-d861842797b6" 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.656ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.275Z 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.551ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e8b063d4-7b65-309e-883e-cae1d23af37f" ORDER BY `records`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.279Z DEBUG TestReconcile_TaskRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "TaskRun", "name": "taskrun"} logger.go:146: 2025-06-25T11:34:09.279Z 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": 32} logger.go:146: 2025-06-25T11:34:09.280Z 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":"976ae240-72df-4479-9713-39331a8dfa29"}]} logger.go:146: 2025-06-25T11:34:09.281Z 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.76s) --- PASS: TestReconcile_TaskRun/disabled_annotations (0.01s) --- PASS: TestReconcile_TaskRun/enabled_annotations (0.06s) --- 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.07s) --- 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.05s) === RUN TestReconcile_PipelineRun logger.go:146: 2025-06-25T11:34:09.283Z INFO cache/cacheclient.go:42 CACHE CLIENT &{lru:0xc00136be60 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/testdb3738525336 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.160ms] [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 [47.721ms] [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.055ms] [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.093ms] [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.448ms] [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.255ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851249.3611107,"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.316ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.365Z 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 [4.723ms] [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","cbf34880-2a47-4157-965b-a616425f0662","12345","{""object.metadata.name"":""pipelinerun""}","ns/results/12345/records/12345","tekton.dev/v1.PipelineRun",NULL,"0000-00-00 00:00:00",1,"null","cbf34880-2a47-4157-965b-a616425f0662-1750851249366820154","2025-06-25 11:34:09.366","2025-06-25 11:34:09.366") 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.625ms] [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-25T11:34:09.377Z 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 [1.904ms] [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.539ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","cbf34880-2a47-4157-965b-a616425f0662","12345","c2bd591b-edd7-4d20-90b2-42aad6db1bce","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""}]}}","c2bd591b-edd7-4d20-90b2-42aad6db1bce-1750851249380848126","2025-06-25 11:34:09.38","2025-06-25 11:34:09.38") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.805ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.390Z 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.505ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "ff03c28a-5d66-3b3d-abf4-8b21905c5660" 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.530ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.395Z 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.479ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "ff03c28a-5d66-3b3d-abf4-8b21905c5660" 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.390ms] [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.860ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","cbf34880-2a47-4157-965b-a616425f0662","12345","b0221917-c133-417f-83b3-8121a22cd4c1","ff03c28a-5d66-3b3d-abf4-8b21905c5660","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""pipelinerun-log"",""namespace"":""ns"",""uid"":""ff03c28a-5d66-3b3d-abf4-8b21905c5660"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""PipelineRun"",""namespace"":""ns"",""name"":""pipelinerun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","b0221917-c133-417f-83b3-8121a22cd4c1-1750851249399332211","2025-06-25 11:34:09.399","2025-06-25 11:34:09.399") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-25T11:34:09.408Z DEBUG TestReconcile_PipelineRun dynamic/dynamic.go:472 Streaming log started {"namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun"} logger.go:146: 2025-06-25T11:34:09.409Z 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-25T11:34:09.409Z 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.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-25T11:34:09.412Z 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.342ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e89aaf00-58a4-3da9-85c2-51a5274be907" 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.538ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:09.416Z 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.290ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e89aaf00-58a4-3da9-85c2-51a5274be907" 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.357ms] [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.731ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","cbf34880-2a47-4157-965b-a616425f0662","12345","fe6bdfa2-4f99-4a76-ba73-b86c14afedcf","e89aaf00-58a4-3da9-85c2-51a5274be907","results.tekton.dev/v1.EventList","{""metadata"":{},""items"":null}","fe6bdfa2-4f99-4a76-ba73-b86c14afedcf-1750851249419630194","2025-06-25 11:34:09.419","2025-06-25 11:34:09.419") RETURNING `created_time`,`updated_time` logger.go:146: 2025-06-25T11:34:09.426Z DEBUG TestReconcile_PipelineRun dynamic/dynamic.go:251 Successfully store eventlist {"namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun"} logger.go:146: 2025-06-25T11:34:09.427Z 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": 22} logger.go:146: 2025-06-25T11:34:09.429Z 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-25T11:34:09.429Z 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.492ms] [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.578ms] [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.407ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "ff03c28a-5d66-3b3d-abf4-8b21905c5660" 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.394ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "e89aaf00-58a4-3da9-85c2-51a5274be907" ORDER BY `records`.`id` LIMIT 1 --- PASS: TestReconcile_PipelineRun (0.16s) --- 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.666s === 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-25T11:34:08.505Z 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-25T11:34:08.505Z 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-25T11:34:08.506Z DEBUG pipelinerun test-ns/test-pr is still running === RUN TestFinalize/store_deadline_passed_-_proceed_with_deletion logger.go:146: 2025-06-25T11:34:08.506Z DEBUG store deadline: 2025-06-25 10:34:08.506116519 +0000 UTC now: 2025-06-25 11:34:08.506658615 +0000 UTC, completion time: 2025-06-25 09:34:08.506116519 +0000 UTC logger.go:146: 2025-06-25T11:34:08.506Z DEBUG store deadline has passed for pipelinerun test-ns/test-pr logger.go:146: 2025-06-25T11:34:08.506Z ERROR pipelinerun not stored: test-ns/test-pr, uid: , === RUN TestFinalize/missing_annotations_-_requeue logger.go:146: 2025-06-25T11:34:08.507Z DEBUG pipelinerun test-ns/test-pr annotations are missing, now: 2025-06-25 11:34:08.507185968 +0000 UTC, storeDeadline: 2025-06-25 12:34:08.506117183 +0000 UTC === RUN TestFinalize/stored_annotation_missing_-_requeue logger.go:146: 2025-06-25T11:34:08.507Z DEBUG stored annotation is missing on pipelinerun test-ns/test-pr, now: 2025-06-25 11:34:08.507706469 +0000 UTC, storeDeadline: 2025-06-25 12:34:08.50611757 +0000 UTC === RUN TestFinalize/stored_annotation_not_true_-_requeue logger.go:146: 2025-06-25T11:34:08.508Z DEBUG stored annotation is not true on pipelinerun test-ns/test-pr, now: 2025-06-25 11:34:08.508138956 +0000 UTC, storeDeadline: 2025-06-25 12:34:08.506117784 +0000 UTC === RUN TestFinalize/reconcile_error_-_requeue logger.go:146: 2025-06-25T11:34:08.508Z DEBUG stored annotation is not true on pipelinerun test-ns/test-pr, now: 2025-06-25 11:34:08.508646578 +0000 UTC, storeDeadline: 2025-06-25 12:34:08.506118026 +0000 UTC === RUN TestFinalize/successful_finalization === RUN TestFinalize/verify_finalizer_requeue_interval logger.go:146: 2025-06-25T11:34:08.509Z 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.725s === RUN TestFinalize === RUN TestFinalize/taskrun_still_running_-_skip_finalization logger.go:146: 2025-06-25T11:34:08.488Z DEBUG taskrun test-ns/test-pr is still running === RUN TestFinalize/store_deadline_passed_-_proceed_with_deletion logger.go:146: 2025-06-25T11:34:08.488Z DEBUG store deadline: 2025-06-25 10:34:08.487973391 +0000 UTC now: 2025-06-25 11:34:08.488845616 +0000 UTC, completion time: 2025-06-25 09:34:08.487973391 +0000 UTC logger.go:146: 2025-06-25T11:34:08.489Z DEBUG store deadline has passed for taskrun test-ns/test-pr logger.go:146: 2025-06-25T11:34:08.489Z ERROR taskrun not stored: test-ns/test-pr, uid: , === RUN TestFinalize/missing_annotations_-_requeue logger.go:146: 2025-06-25T11:34:08.489Z DEBUG taskrun test-ns/test-pr annotations are missing, now: 2025-06-25 11:34:08.48945719 +0000 UTC, storeDeadline: 2025-06-25 12:34:08.487974017 +0000 UTC === RUN TestFinalize/stored_annotation_missing_-_requeue logger.go:146: 2025-06-25T11:34:08.489Z DEBUG stored annotation is missing on taskrun test-ns/test-pr, now: 2025-06-25 11:34:08.489814073 +0000 UTC, storeDeadline: 2025-06-25 12:34:08.48797455 +0000 UTC === RUN TestFinalize/stored_annotation_not_true_-_requeue logger.go:146: 2025-06-25T11:34:08.490Z DEBUG stored annotation is not true on taskrun test-ns/test-pr, now: 2025-06-25 11:34:08.490197186 +0000 UTC, storeDeadline: 2025-06-25 12:34:08.487974853 +0000 UTC === RUN TestFinalize/reconcile_error_-_requeue logger.go:146: 2025-06-25T11:34:08.490Z DEBUG stored annotation is not true on taskrun test-ns/test-pr, now: 2025-06-25 11:34:08.49055518 +0000 UTC, storeDeadline: 2025-06-25 12:34:08.487975212 +0000 UTC === RUN TestFinalize/successful_finalization === RUN TestFinalize/verify_finalizer_requeue_interval logger.go:146: 2025-06-25T11:34:08.491Z DEBUG taskrun test-ns/test-pr annotations are missing, now: 2025-06-25 11:34:08.491125097 +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.706s === RUN TestClient_PutLog logs_test.go:15: test database: /tmp/testdb2511076220 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.056ms] [rows:0] PRAGMA foreign_keys = ON; db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [0.167ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [49.946ms] [rows:0] CREATE TABLE `results` (`parent` text,`id` text,`name` text,`annotations` jsonb,`created_time` datetime DEFAULT current_timestamp,`updated_time` datetime DEFAULT current_timestamp,`recordsummary_record` text,`recordsummary_type` text,`recordsummary_start_time` datetime,`recordsummary_end_time` datetime,`recordsummary_status` integer,`recordsummary_annotations` jsonb,`etag` text,PRIMARY KEY (`parent`,`id`)) db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [8.764ms] [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.123ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [8.205ms] [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.476ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851248.1253817,"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.463ms] [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.460ms] [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","6ee77b69-83ab-440a-9827-9cce76273661","taskrun-id","{""object.metadata.name"":""taskrun""}","test/results/taskrun-id/records/taskrun-id","tekton.dev/v1.TaskRun",NULL,NULL,0,"null","6ee77b69-83ab-440a-9827-9cce76273661-1750851248135965845","2025-06-25 11:34:08.135","2025-06-25 11:34:08.135") 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.487ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "73b4a91a-b8c8-3d9f-a14a-b7f8fea8d0e2" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102 [3.477ms] [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 [4.885ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","6ee77b69-83ab-440a-9827-9cce76273661","taskrun-id","fb2c5c16-0bd1-48eb-b406-606f6f7f3e35","73b4a91a-b8c8-3d9f-a14a-b7f8fea8d0e2","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""test"",""uid"":""73b4a91a-b8c8-3d9f-a14a-b7f8fea8d0e2"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""test"",""name"":""taskrun"",""uid"":""taskrun-id""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","fb2c5c16-0bd1-48eb-b406-606f6f7f3e35-1750851248151879234","2025-06-25 11:34:08.151","2025-06-25 11:34:08.151") 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.569ms] [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.776ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "73b4a91a-b8c8-3d9f-a14a-b7f8fea8d0e2" ORDER BY `records`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.700ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.688ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "taskrun-id" AND `records`.`name` = "73b4a91a-b8c8-3d9f-a14a-b7f8fea8d0e2" 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.331ms] [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.325ms] [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","d56cf658-ecc1-4cb2-af5f-075821737af9","pipelinerun-id","{""object.metadata.name"":""pipelinerun""}","test/results/pipelinerun-id/records/pipelinerun-id","tekton.dev/v1.PipelineRun",NULL,NULL,0,"null","d56cf658-ecc1-4cb2-af5f-075821737af9-1750851248174569219","2025-06-25 11:34:08.174","2025-06-25 11:34:08.174") 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.557ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "17dce980-46cf-3b92-82d7-dfe963c07cdd" 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.425ms] [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 [6.051ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","d56cf658-ecc1-4cb2-af5f-075821737af9","pipelinerun-id","62d2e9ac-7406-4127-823c-d0b857201eab","17dce980-46cf-3b92-82d7-dfe963c07cdd","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""pipelinerun-log"",""namespace"":""test"",""uid"":""17dce980-46cf-3b92-82d7-dfe963c07cdd"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""PipelineRun"",""namespace"":""test"",""name"":""pipelinerun"",""uid"":""pipelinerun-id""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","62d2e9ac-7406-4127-823c-d0b857201eab-1750851248186295909","2025-06-25 11:34:08.186","2025-06-25 11:34:08.186") 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.706ms] [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.671ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "17dce980-46cf-3b92-82d7-dfe963c07cdd" 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.615ms] [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.783ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "test" AND `records`.`result_name` = "pipelinerun-id" AND `records`.`name` = "17dce980-46cf-3b92-82d7-dfe963c07cdd" ORDER BY `records`.`id` LIMIT 1 --- PASS: TestClient_PutLog (0.18s) --- PASS: TestClient_PutLog/taskrun (0.04s) --- PASS: TestClient_PutLog/taskrun/create (0.03s) --- PASS: TestClient_PutLog/taskrun/update (0.01s) --- PASS: TestClient_PutLog/pipelinerun (0.03s) --- PASS: TestClient_PutLog/pipelinerun/create (0.02s) --- PASS: TestClient_PutLog/pipelinerun/update (0.01s) === RUN TestDefaultName === RUN TestDefaultName/*v1.TaskRun === RUN TestDefaultName/*v1.PipelineRun --- PASS: TestDefaultName (0.00s) --- PASS: TestDefaultName/*v1.TaskRun (0.00s) --- PASS: TestDefaultName/*v1.PipelineRun (0.00s) === RUN TestResultName === RUN TestResultName/object_name === RUN TestResultName/pipeline_run === RUN TestResultName/trigger_event === RUN TestResultName/result --- PASS: TestResultName (0.00s) --- PASS: TestResultName/object_name (0.00s) --- PASS: TestResultName/pipeline_run (0.00s) --- PASS: TestResultName/trigger_event (0.00s) --- PASS: TestResultName/result (0.00s) === RUN TestRecordName === RUN TestRecordName/derive_the_record_name_from_the_parent_name_and_the_record's_default_name === RUN TestRecordName/read_the_record_name_from_the_record_annotation === RUN TestRecordName/do_not_read_the_record_annotation_if_the_object_is_owned_by_another_object --- PASS: TestRecordName (0.00s) --- PASS: TestRecordName/derive_the_record_name_from_the_parent_name_and_the_record's_default_name (0.00s) --- PASS: TestRecordName/read_the_record_name_from_the_record_annotation (0.00s) --- PASS: TestRecordName/do_not_read_the_record_annotation_if_the_object_is_owned_by_another_object (0.00s) === RUN TestParentName === RUN TestParentName/default_to_the_object's_namespace_when_the_results_annotation_is_unset === RUN TestParentName/extract_the_parent_name_from_the_result_annotation --- PASS: TestParentName (0.00s) --- PASS: TestParentName/default_to_the_object's_namespace_when_the_results_annotation_is_unset (0.00s) --- PASS: TestParentName/extract_the_parent_name_from_the_result_annotation (0.00s) === RUN TestEnsureResult results_test.go:236: test database: /tmp/testdb3956468688 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.068ms] [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 [5.788ms] [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.928ms] [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.148ms] [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.432ms] [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.472ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851248.255798,"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.409ms] [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.370ms] [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-25T11:34:08.262Z 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.885ms] [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","2da099ca-675b-4a05-be45-e5fe71a8a782","taskrun-id","{""object.metadata.name"":""foo""}","test/results/taskrun-id/records/taskrun-id","tekton.dev/v1.TaskRun",NULL,NULL,0,"null","2da099ca-675b-4a05-be45-e5fe71a8a782-1750851248264408552","2025-06-25 11:34:08.264","2025-06-25 11:34:08.264") 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-25T11:34:08.277Z 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.385ms] [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.478ms] [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-25T11:34:08.284Z 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.290ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("test","cd5d48ca-a7eb-494d-a4ff-a3f9b3dc3874","pipelinerun-id","{""object.metadata.name"":""foo""}","test/results/pipelinerun-id/records/pipelinerun-id","tekton.dev/v1.PipelineRun",NULL,NULL,0,"null","cd5d48ca-a7eb-494d-a4ff-a3f9b3dc3874-1750851248285279720","2025-06-25 11:34:08.285","2025-06-25 11:34:08.285") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.682ms] [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-25T11:34:08.299Z 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.09s) --- PASS: TestEnsureResult/foo (0.02s) --- PASS: TestEnsureResult/foo#01 (0.02s) === RUN TestEnsureResult_RecordSummaryUpdate results_test.go:305: test database: /tmp/testdb4119324466 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59 [0.060ms] [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 [5.951ms] [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.789ms] [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.109ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [7.917ms] [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.818ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851248.351,"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.387ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "default" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.356Z 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 [9.364ms] [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","92ce6200-32cf-4fa4-98df-9a8809896869","1","null","","",NULL,NULL,0,"null","92ce6200-32cf-4fa4-98df-9a8809896869-1750851248357454853","2025-06-25 11:34:08.357","2025-06-25 11:34:08.357") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208 [0.736ms] [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.688ms] [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 [1.006ms] [rows:1] UPDATE `results` SET `name`="1",`annotations`="{""object.metadata.name"":""foo""}",`created_time`="2025-06-25 11:34:08.357",`updated_time`="2025-06-25 11:34:08.379",`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`="92ce6200-32cf-4fa4-98df-9a8809896869-1750851248379181683" WHERE `parent` = "default" AND `id` = "92ce6200-32cf-4fa4-98df-9a8809896869" --- PASS: TestEnsureResult_RecordSummaryUpdate (0.09s) === RUN TestAnnotations results_test.go:353: test database: /tmp/testdb3674107085 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.160ms] [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.876ms] [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.980ms] [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.109ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records" db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:96 [4.193ms] [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.158ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851248.434989,"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.376ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "default" AND `results`.`name` = "1" ORDER BY `results`.`id` LIMIT 1 logger.go:146: 2025-06-25T11:34:08.440Z 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 [5.496ms] [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","34ca6ccd-f198-46d0-bb33-c9cb6bbfecec","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""}","34ca6ccd-f198-46d0-bb33-c9cb6bbfecec-1750851248441762021","2025-06-25 11:34:08.441","2025-06-25 11:34:08.441") RETURNING `created_time`,`updated_time` --- PASS: TestAnnotations (0.06s) === RUN TestUpsertRecord results_test.go:387: test database: /tmp/testdb3859311350 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.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 [7.347ms] [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 [9.914ms] [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.145ms] [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.032ms] [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.484ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851248.4933553,"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.445ms] [rows:0] SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72 [8.051ms] [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","71473719-c240-486a-95de-ed85eb3bcf85","taskrun-id","{""object.metadata.name"":""taskrun""}","test/results/taskrun-id/records/taskrun-id","tekton.dev/v1.TaskRun",NULL,NULL,0,"null","71473719-c240-486a-95de-ed85eb3bcf85-1750851248500200163","2025-06-25 11:34:08.5","2025-06-25 11:34:08.5") 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.468ms] [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.476ms] [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.583ms] [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.654ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","71473719-c240-486a-95de-ed85eb3bcf85","taskrun-id","199b4689-1829-4482-bea8-c038bd0de13a","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""}]}}","199b4689-1829-4482-bea8-c038bd0de13a-1750851248535837899","2025-06-25 11:34:08.535","2025-06-25 11:34:08.535") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.586ms] [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.682ms] [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.681ms] [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.480ms] [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.476ms] [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-25 11:34:08.535",`updated_time`="2025-06-25 11:34:08.612",`etag`="199b4689-1829-4482-bea8-c038bd0de13a-1750851248612540269" WHERE `parent` = "test" AND `result_id` = "71473719-c240-486a-95de-ed85eb3bcf85" AND `id` = "199b4689-1829-4482-bea8-c038bd0de13a" === 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.337ms] [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.721ms] [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","60e4a974-909d-4227-ba59-4e2f624e6f72","pipelinerun-id","{""object.metadata.name"":""pipelinerun""}","test/results/pipelinerun-id/records/pipelinerun-id","tekton.dev/v1.PipelineRun",NULL,NULL,0,"null","60e4a974-909d-4227-ba59-4e2f624e6f72-1750851248676449768","2025-06-25 11:34:08.676","2025-06-25 11:34:08.676") 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.423ms] [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.482ms] [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.330ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "pipelinerun-id" ORDER BY `results`.`id` LIMIT 1 db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 [8.951ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","60e4a974-909d-4227-ba59-4e2f624e6f72","pipelinerun-id","5057ad86-8d0a-4557-979f-cb742c510da6","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""}]}}","5057ad86-8d0a-4557-979f-cb742c510da6-1750851248691306095","2025-06-25 11:34:08.691","2025-06-25 11:34:08.691") RETURNING `created_time`,`updated_time` db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 [0.690ms] [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.527ms] [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.586ms] [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.614ms] [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.676ms] [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-25 11:34:08.691",`updated_time`="2025-06-25 11:34:08.758",`etag`="5057ad86-8d0a-4557-979f-cb742c510da6-1750851248758555141" WHERE `parent` = "test" AND `result_id` = "60e4a974-909d-4227-ba59-4e2f624e6f72" AND `id` = "5057ad86-8d0a-4557-979f-cb742c510da6" --- PASS: TestUpsertRecord (0.32s) --- PASS: TestUpsertRecord/taskrun (0.18s) --- PASS: TestUpsertRecord/taskrun/create (0.07s) --- PASS: TestUpsertRecord/taskrun/no-op (0.02s) --- PASS: TestUpsertRecord/taskrun/update (0.07s) --- PASS: TestUpsertRecord/pipelinerun (0.10s) --- PASS: TestUpsertRecord/pipelinerun/create (0.05s) --- PASS: TestUpsertRecord/pipelinerun/no-op (0.01s) --- PASS: TestUpsertRecord/pipelinerun/update (0.02s) === RUN TestPut results_test.go:557: test database: /tmp/testdb2724563878 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 [7.884ms] [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.949ms] [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 [3.735ms] [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.482ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`) {"level":"warn","ts":1750851248.8083923,"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.289ms] [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.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 ("test","3ed6c49c-3d2d-451b-8f52-ad8332a48a57","taskrun-id","{""object.metadata.name"":""taskrun""}","test/results/taskrun-id/records/taskrun-id","tekton.dev/v1.TaskRun",NULL,NULL,0,"null","3ed6c49c-3d2d-451b-8f52-ad8332a48a57-1750851248814266060","2025-06-25 11:34:08.814","2025-06-25 11:34:08.814") 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.420ms] [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 [1.662ms] [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 [4.681ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","3ed6c49c-3d2d-451b-8f52-ad8332a48a57","taskrun-id","eca12fd5-242b-474f-a4ce-2cd7b0d7d6a0","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"":""""}}","eca12fd5-242b-474f-a4ce-2cd7b0d7d6a0-1750851248825885249","2025-06-25 11:34:08.825","2025-06-25 11:34:08.825") 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.683ms] [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.788ms] [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.485ms] [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.621ms] [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.228ms] [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.130ms] [rows:1] INSERT INTO `results` (`parent`,`id`,`name`,`annotations`,`recordsummary_record`,`recordsummary_type`,`recordsummary_start_time`,`recordsummary_end_time`,`recordsummary_status`,`recordsummary_annotations`,`etag`,`created_time`,`updated_time`) VALUES ("test","6c8d96d5-1827-48fa-8eca-dc2ff260eba6","pipelinerun-id","{""object.metadata.name"":""pipelinerun""}","test/results/pipelinerun-id/records/pipelinerun-id","tekton.dev/v1.PipelineRun",NULL,NULL,0,"null","6c8d96d5-1827-48fa-8eca-dc2ff260eba6-1750851248850462038","2025-06-25 11:34:08.85","2025-06-25 11:34:08.85") 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.465ms] [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.422ms] [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 [9.488ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("test","6c8d96d5-1827-48fa-8eca-dc2ff260eba6","pipelinerun-id","59f7d776-09c0-4c4a-bd7a-56df789eb3c8","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"":{}}","59f7d776-09c0-4c4a-bd7a-56df789eb3c8-1750851248861220410","2025-06-25 11:34:08.861","2025-06-25 11:34:08.861") 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.525ms] [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.627ms] [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.578ms] [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.638ms] [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.11s) --- PASS: TestPut/taskrun (0.04s) --- PASS: TestPut/taskrun/create (0.02s) --- PASS: TestPut/taskrun/update (0.01s) --- PASS: TestPut/pipelinerun (0.04s) --- PASS: TestPut/pipelinerun/create (0.02s) --- PASS: TestPut/pipelinerun/update (0.01s) PASS ok github.com/tektoncd/results/pkg/watcher/results 2.116s testing: warning: no tests to run PASS ok github.com/tektoncd/results/tools/postgres-migrate 1.103s [no tests to run] FAIL unit_tests returning =========================== ==== UNIT TESTS FAILED ==== =========================== + EXIT_VALUE=1 + set +o xtrace