ResultFAILURE
Tests 0 failed / 0 succeeded
Started2024-10-21 18:18
Elapsed14m51s
Revision9f113bad805dcec8261c9878bfeafe15cacb3b00
Refs 852

No Test Failures!


Error lines from build-log.txt

... skipping 180 lines ...
============================
/home/prow/go/src/github.com/tektoncd/results /home/prow/go/src/github.com/tektoncd/results
Using overridden unit_tests
?   	github.com/tektoncd/results/cmd/cli-docs	[no test files]
?   	github.com/tektoncd/results/cmd/retention-policy-agent	[no test files]
?   	github.com/tektoncd/results/cmd/tkn-results	[no test files]
2024/10/21 18:27:44 maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined
=== RUN   Test_determineAuth
=== RUN   Test_determineAuth/missing_token
=== RUN   Test_determineAuth/invalid_token
=== RUN   Test_determineAuth/valid_token
--- PASS: Test_determineAuth (0.01s)
    --- PASS: Test_determineAuth/missing_token (0.00s)
... skipping 9 lines ...
=== RUN   TestParseFilter/success/#00
=== RUN   TestParseFilter/success/result
=== RUN   TestParseFilter/success/result.id
=== RUN   TestParseFilter/success/result.id_==_"1"
=== RUN   TestParseFilter/success/result.id_==_"1"_||_result.name_==_"2"
=== RUN   TestParseFilter/success/result.id.startsWith("tacocat")
=== RUN   TestParseFilter/error
=== RUN   TestParseFilter/error/asdf
=== RUN   TestParseFilter/error/result.id_==_1
=== RUN   TestParseFilter/error/result.ID
--- PASS: TestParseFilter (0.06s)
    --- PASS: TestParseFilter/success (0.03s)
        --- PASS: TestParseFilter/success/#00 (0.00s)
        --- PASS: TestParseFilter/success/result (0.01s)
        --- PASS: TestParseFilter/success/result.id (0.00s)
        --- PASS: TestParseFilter/success/result.id_==_"1" (0.00s)
        --- PASS: TestParseFilter/success/result.id_==_"1"_||_result.name_==_"2" (0.00s)
        --- PASS: TestParseFilter/success/result.id.startsWith("tacocat") (0.00s)
    --- PASS: TestParseFilter/error (0.01s)
        --- PASS: TestParseFilter/error/asdf (0.00s)
        --- PASS: TestParseFilter/error/result.id_==_1 (0.00s)
        --- PASS: TestParseFilter/error/result.ID (0.01s)
PASS
ok  	github.com/tektoncd/results/pkg/api/server/cel	1.157s
=== RUN   TestConvertRecordExpressions
=== RUN   TestConvertRecordExpressions/simple_expression
    convert_test.go:170: want: (name = 'foo')
    convert_test.go:171: got:  (name = 'foo')
... skipping 350 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:352
        [0.864ms] [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":1729535509.3433676,"caller":"v1alpha2/logs.go:268","msg":"rpc error: code = InvalidArgument desc = name must match (^[a-z0-9_-]{1,63})/results/([a-z0-9_-]{1,63}$)","stacktrace":"github.com/tektoncd/results/pkg/api/server/v1alpha2.(*Server).ListLogs\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs.go:268\ngithub.com/tektoncd/results/pkg/api/server/v1alpha2.TestListLogs.func1\n\t/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/logs_test.go:569\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1689"}
=== RUN   TestListLogs/invalid_order_by_clause
=== RUN   TestListLogs/invalid_sort_direction
--- PASS: TestListLogs (27.27s)
    --- PASS: TestListLogs/all (0.18s)
    --- PASS: TestListLogs/list_all_records_without_knowing_the_result_name (0.10s)
    --- PASS: TestListLogs/list_all_records_without_knowing_the_parent_and_the_result_name (0.05s)
... skipping 196 lines ...
=== RUN   TestCreateRecord/missing_name
=== RUN   TestCreateRecord/result_used_as_name
=== RUN   TestCreateRecord/already_exists
=== NAME  TestCreateRecord
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [0.369ms] [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.731ms] [rows:0] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","27","bar","29","baz","TaskRun","{""metadata"":{""name"":""tacocat"",""creationTimestamp"":null},""spec"":{""serviceAccountName"":""""},""status"":{""podName"":""""}}","29-1729535432873391105","2024-10-21 18:30:32.873","2024-10-21 18:30:32.873") RETURNING `created_time`,`updated_time`
--- PASS: TestCreateRecord (6.64s)
    --- PASS: TestCreateRecord/success (0.86s)
    --- PASS: TestCreateRecord/mismatched_parent (0.00s)
    --- PASS: TestCreateRecord/parent_does_not_exist (0.00s)
    --- PASS: TestCreateRecord/missing_name (0.00s)
... skipping 12 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:129
        [0.125ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="records"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:129
        [641.920ms] [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:129
        [219.300ms] [rows:0] CREATE UNIQUE INDEX `records_by_name` ON `records`(`parent`,`result_name`,`name`)
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82 FOREIGN KEY constraint failed
        [47.735ms] [rows:0] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("foo","deleted","deleted","30","baz","","","30-1729535432873391105","2024-10-21 18:30:32.873","2024-10-21 18:30:32.873") RETURNING `created_time`,`updated_time`
--- PASS: TestCreateRecord_ConcurrentDelete (2.48s)
=== RUN   TestGetRecord
    records_test.go:185: test database:  /tmp/testdb1055992550
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59
        [0.077ms] [rows:0] PRAGMA foreign_keys = ON;
... skipping 433 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.868ms] [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
        [1.069ms] [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-1729535457873391105","2024-10-21 18:30:57.873","2024-10-21 18:30:57.873") RETURNING `created_time`,`updated_time`
=== RUN   TestCreateResult/large_name
=== RUN   TestCreateResult/large_result_summary_type
--- PASS: TestCreateResult (0.62s)
    --- PASS: TestCreateResult/success (0.04s)
    --- PASS: TestCreateResult/mismatched_parent (0.00s)
... skipping 865 lines ...
=== RUN   TestMatch/no_filter
=== RUN   TestMatch/matching_condition
=== RUN   TestMatch/non-matching_condition
=== RUN   TestMatch/nil_result
=== RUN   TestMatch/non-bool_output
=== RUN   TestMatch/wrong_resource_type
2024/10/21 18:30:29 failed to evaluate the expression: no such attribute(s): record
--- PASS: TestMatch (0.03s)
    --- PASS: TestMatch/no_filter (0.00s)
    --- PASS: TestMatch/matching_condition (0.02s)
    --- PASS: TestMatch/non-matching_condition (0.00s)
    --- PASS: TestMatch/nil_result (0.00s)
    --- PASS: TestMatch/non-bool_output (0.00s)
... skipping 225 lines ...
    logger.go:146: 2024-10-21T18:31:35.912Z	INFO	TestController	controller/controller.go:498	Shutting down workers	{"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.pipelinerun.Reconciler", "knative.dev/kind": "tekton.dev.PipelineRun"}
=== NAME  TestController/taskrun
    reconciler_test.go:148: timed out. Last seen object: &{TypeMeta:{Kind:TaskRun APIVersion:tekton.dev/v1} ObjectMeta:{Name:taskrun GenerateName: Namespace:ns SelfLink: UID:tr-id ResourceVersion: Generation:0 CreationTimestamp:0001-01-01 00:00:00 +0000 UTC DeletionTimestamp:<nil> DeletionGracePeriodSeconds:<nil> Labels:map[] Annotations:map[demo:demo tekton.dev/pipelineRun:pr] OwnerReferences:[{APIVersion:tekton.dev/v1 Kind:PipelineRun Name: UID:pr-id Controller:<nil> BlockOwnerDeletion:<nil>}] Finalizers:[results.tekton.dev/taskrun] ManagedFields:[]} Spec:{Debug:<nil> Params:[] ServiceAccountName: TaskRef:<nil> TaskSpec:<nil> Status: StatusMessage: Retries:0 Timeout:nil PodTemplate:<nil> Workspaces:[] StepSpecs:[] SidecarSpecs:[] ComputeResources:nil} Status:{Status:{ObservedGeneration:0 Conditions:[] Annotations:map[]} TaskRunStatusFields:{PodName: StartTime:<nil> CompletionTime:<nil> Steps:[] RetriesStatus:[] Results:[] Sidecars:[] TaskSpec:<nil> Provenance:<nil> SpanContext:map[]}}}
=== RUN   TestController/pipelinerun
    reconciler_test.go:148: timed out. Last seen object: <nil>
=== NAME  TestController
    logger.go:146: 2024-10-21T18:31:35.915Z	DEBUG	TestController	dynamic/dynamic.go:165	Error upserting record to API server	{"knative.dev/controller": "github.com.tektoncd.results.pkg.watcher.reconciler.taskrun.Reconciler", "knative.dev/kind": "tekton.dev.TaskRun", "knative.dev/traceid": "8bbdb614-96ea-4b43-a7e5-32c091dfb3bd", "knative.dev/key": "ns/taskrun", "results.tekton.dev/kind": "TaskRun", "error": "rpc error: code = Unavailable desc = error reading from server: EOF", "results.tekton.dev/time-taken-ms": 10454}
--- FAIL: TestController (30.01s)
    --- FAIL: TestController/taskrun (10.51s)
    --- FAIL: TestController/pipelinerun (0.00s)
FAIL
FAIL	github.com/tektoncd/results/pkg/watcher/reconciler	32.642s
=== RUN   TestPatch
=== RUN   TestPatch/create_a_patch_containing_only_the_result_and_record_identifiers_since_the_object_is_a_PipelineRun
=== RUN   TestPatch/create_a_patch_containing_only_the_result_and_record_identifiers_since_the_TaskRun_isn't_owned_by_a_PipelineRun
=== RUN   TestPatch/create_a_patch_containing_only_the_result_and_record_identifiers_since_the_TaskRun_isn't_done_yet
=== RUN   TestPatch/mark_the_TaskRun_as_ready_for_deletion_since_it's_owned_by_a_PipelineRun_and_is_done
--- PASS: TestPatch (0.00s)
... skipping 57 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [0.527ms] [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
        [1551.702ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","dbcd5b94-b4d9-4aeb-a077-c5f71f86cd77","12345","c8ad32fc-833c-455f-a932-a3071aba7ea2","8d81b944-1888-3771-b4ca-b3e8504debd9","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""ns"",""uid"":""8d81b944-1888-3771-b4ca-b3e8504debd9"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""ns"",""name"":""taskrun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","c8ad32fc-833c-455f-a932-a3071aba7ea2-1729535510952890411","2024-10-21 18:31:50.952","2024-10-21 18:31:50.952") RETURNING `created_time`,`updated_time`
    logger.go:146: 2024-10-21T18:31:52.506Z	DEBUG	TestReconcile_TaskRun	dynamic/dynamic.go:289	Skipping CRD annotation patch: annotation update is disabled
    logger.go:146: 2024-10-21T18:31:52.506Z	DEBUG	TestReconcile_TaskRun	dynamic/dynamic.go:472	Streaming log started	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun"}
    logger.go:146: 2024-10-21T18:31:52.604Z	ERROR	TestReconcile_TaskRun	dynamic/dynamic.go:480	Error streaming log	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun", "error": "failed to create tkn reader: Parsing kubeconfig failed: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable"}
    logger.go:146: 2024-10-21T18:31:52.604Z	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
        [25.638ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-10-21T18:31:52.634Z	DEBUG	TestReconcile_TaskRun	results/results.go:184	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.457ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "b728298d-bd5f-3087-ad52-3f2b692caabb" ORDER BY `records`.`id` LIMIT 1
... skipping 110 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.720ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2024-10-21T18:31:55.938Z	DEBUG	TestReconcile_TaskRun	results/results.go:300	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.591ms] [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
        [41.999ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""annotations"":{""demo"":""demo""}},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2024-10-21T18:31:55Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-10-21T18:31:55Z"",""completionTime"":""2024-10-21T18:31:49Z""}}",`created_time`="2024-10-21 18:31:48.773",`updated_time`="2024-10-21 18:31:55.941",`etag`="4842728e-6142-4411-b3f3-66cd1b92b0db-1729535515941398354" WHERE `parent` = "ns" AND `result_id` = "dbcd5b94-b4d9-4aeb-a077-c5f71f86cd77" AND `id` = "4842728e-6142-4411-b3f3-66cd1b92b0db"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.697ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-10-21T18:31:56.867Z	DEBUG	TestReconcile_TaskRun	results/results.go:184	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` = "8d81b944-1888-3771-b4ca-b3e8504debd9" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 34 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [1.282ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2024-10-21T18:31:56.989Z	DEBUG	TestReconcile_TaskRun	results/results.go:300	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.601ms] [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
        [93.266ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""labels"":{""x"":""foo""},""annotations"":{""demo"":""demo""}},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2024-10-21T18:31:55Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-10-21T18:31:55Z"",""completionTime"":""2024-10-21T18:31:49Z""}}",`created_time`="2024-10-21 18:31:48.773",`updated_time`="2024-10-21 18:31:56.991",`etag`="4842728e-6142-4411-b3f3-66cd1b92b0db-1729535516991859971" WHERE `parent` = "ns" AND `result_id` = "dbcd5b94-b4d9-4aeb-a077-c5f71f86cd77" AND `id` = "4842728e-6142-4411-b3f3-66cd1b92b0db"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.688ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-10-21T18:31:58.241Z	DEBUG	TestReconcile_TaskRun	results/results.go:184	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.710ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "8d81b944-1888-3771-b4ca-b3e8504debd9" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 52 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.635ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2024-10-21T18:31:58.360Z	DEBUG	TestReconcile_TaskRun	results/results.go:300	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.584ms] [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
        [54.166ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""labels"":{""x"":""foo""},""annotations"":{""x"":""foo""}},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2024-10-21T18:31:55Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-10-21T18:31:55Z"",""completionTime"":""2024-10-21T18:31:49Z""}}",`created_time`="2024-10-21 18:31:48.773",`updated_time`="2024-10-21 18:31:58.362",`etag`="4842728e-6142-4411-b3f3-66cd1b92b0db-1729535518362950777" WHERE `parent` = "ns" AND `result_id` = "dbcd5b94-b4d9-4aeb-a077-c5f71f86cd77" AND `id` = "4842728e-6142-4411-b3f3-66cd1b92b0db"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [0.701ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-10-21T18:31:59.223Z	DEBUG	TestReconcile_TaskRun	results/results.go:184	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.629ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "8d81b944-1888-3771-b4ca-b3e8504debd9" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 14 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.643ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2024-10-21T18:31:59.290Z	DEBUG	TestReconcile_TaskRun	results/results.go:300	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.635ms] [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.678ms] [rows:1] UPDATE `records` SET `result_name`="12345",`name`="12345",`type`="tekton.dev/v1.TaskRun",`data`="{""kind"":""TaskRun"",""apiVersion"":""tekton.dev/v1"",""metadata"":{""name"":""taskrun"",""namespace"":""ns"",""uid"":""12345"",""creationTimestamp"":null,""labels"":{""x"":""foo""},""annotations"":{""x"":""foo""},""ownerReferences"":[{""apiVersion"":""v1"",""kind"":""test"",""name"":""test-owner"",""uid"":""""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2024-10-21T18:31:55Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-10-21T18:31:55Z"",""completionTime"":""2024-10-21T18:31:49Z""}}",`created_time`="2024-10-21 18:31:48.773",`updated_time`="2024-10-21 18:31:59.293",`etag`="4842728e-6142-4411-b3f3-66cd1b92b0db-1729535519293544052" WHERE `parent` = "ns" AND `result_id` = "dbcd5b94-b4d9-4aeb-a077-c5f71f86cd77" AND `id` = "4842728e-6142-4411-b3f3-66cd1b92b0db"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [3.501ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-10-21T18:32:00.126Z	DEBUG	TestReconcile_TaskRun	results/results.go:176	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.610ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "8d81b944-1888-3771-b4ca-b3e8504debd9" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 16 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135 record not found
        [0.885ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "dd06be56-bf45-4989-9b03-3c2bb0984c31" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2024-10-21T18:32:00.665Z	DEBUG	TestReconcile_TaskRun	results/results.go:308	Record doesn't exist yet - creating	{"results.tekton.dev/record": "ns/results/dd06be56-bf45-4989-9b03-3c2bb0984c31/records/12345"}
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:102
        [0.544ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "dd06be56-bf45-4989-9b03-3c2bb0984c31" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [357.695ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","24047fd3-1161-4260-9e59-ba6996d84d71","dd06be56-bf45-4989-9b03-3c2bb0984c31","ef793dc5-5b5d-4005-aa9a-46d635cfdc31","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"":""dd06be56-bf45-4989-9b03-3c2bb0984c31""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2024-10-21T18:31:55Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-10-21T18:31:55Z"",""completionTime"":""2024-10-21T18:31:49Z""}}","ef793dc5-5b5d-4005-aa9a-46d635cfdc31-1729535520667535529","2024-10-21 18:32:00.667","2024-10-21 18:32:00.667") RETURNING `created_time`,`updated_time`
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [26.373ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "dd06be56-bf45-4989-9b03-3c2bb0984c31" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-10-21T18:32:01.055Z	DEBUG	TestReconcile_TaskRun	results/results.go:176	No further actions to be done on the Result: the object is not a top level record	{"results.tekton.dev/result": "ns/results/dd06be56-bf45-4989-9b03-3c2bb0984c31", "results.tekton.dev/record": "ns/results/dd06be56-bf45-4989-9b03-3c2bb0984c31/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.491ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "dd06be56-bf45-4989-9b03-3c2bb0984c31" AND `records`.`name` = "354d1565-7b98-3f71-b372-cf8d6bd98acb" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 3 lines ...
        [0.415ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "dd06be56-bf45-4989-9b03-3c2bb0984c31" AND `records`.`name` = "354d1565-7b98-3f71-b372-cf8d6bd98acb" 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.522ms] [rows:1] SELECT `results`.`name`,`results`.`id` FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "dd06be56-bf45-4989-9b03-3c2bb0984c31" ORDER BY `results`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:82
        [402.761ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","24047fd3-1161-4260-9e59-ba6996d84d71","dd06be56-bf45-4989-9b03-3c2bb0984c31","8186d884-6ff0-4a12-a70c-876c391c26a2","354d1565-7b98-3f71-b372-cf8d6bd98acb","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""taskrun-log"",""namespace"":""ns"",""uid"":""354d1565-7b98-3f71-b372-cf8d6bd98acb"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""TaskRun"",""namespace"":""ns"",""name"":""taskrun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","8186d884-6ff0-4a12-a70c-876c391c26a2-1729535521065513079","2024-10-21 18:32:01.065","2024-10-21 18:32:01.065") RETURNING `created_time`,`updated_time`
    logger.go:146: 2024-10-21T18:32:01.473Z	DEBUG	TestReconcile_TaskRun	dynamic/dynamic.go:472	Streaming log started	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun"}
    logger.go:146: 2024-10-21T18:32:01.475Z	ERROR	TestReconcile_TaskRun	dynamic/dynamic.go:480	Error streaming log	{"namespace": "ns", "kind": "TaskRun", "name": "taskrun", "error": "failed to create tkn reader: Parsing kubeconfig failed: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable"}
    logger.go:146: 2024-10-21T18:32:01.475Z	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
        [42.764ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "dd06be56-bf45-4989-9b03-3c2bb0984c31" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-10-21T18:32:01.521Z	DEBUG	TestReconcile_TaskRun	results/results.go:176	No further actions to be done on the Result: the object is not a top level record	{"results.tekton.dev/result": "ns/results/dd06be56-bf45-4989-9b03-3c2bb0984c31", "results.tekton.dev/record": "ns/results/dd06be56-bf45-4989-9b03-3c2bb0984c31/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.489ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "dd06be56-bf45-4989-9b03-3c2bb0984c31" AND `records`.`name` = "5f01791d-5c2f-3f68-8b9a-e235ce334abf" ORDER BY `records`.`id` LIMIT 1
... skipping 18 lines ...
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/records.go:135
        [0.695ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "12345" ORDER BY `records`.`id` LIMIT 1
    logger.go:146: 2024-10-21T18:32:02.072Z	DEBUG	TestReconcile_TaskRun	results/results.go:300	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.613ms] [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
        [74.567ms] [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"":""aa3f6b9c-b6cb-47d2-a311-a4f7432b9cd4""}]},""spec"":{""serviceAccountName"":"""",""taskSpec"":{""steps"":[{""name"":"""",""computeResources"":{},""script"":""echo hello world!""}]}},""status"":{""conditions"":[{""type"":""Succeeded"",""status"":""False"",""lastTransitionTime"":""2024-10-21T18:31:55Z"",""reason"":""Failed"",""message"":""Failed""}],""podName"":"""",""startTime"":""2024-10-21T18:31:55Z"",""completionTime"":""2024-10-21T18:31:49Z""}}",`created_time`="2024-10-21 18:31:48.773",`updated_time`="2024-10-21 18:32:02.074",`etag`="4842728e-6142-4411-b3f3-66cd1b92b0db-1729535522074856873" WHERE `parent` = "ns" AND `result_id` = "dbcd5b94-b4d9-4aeb-a077-c5f71f86cd77" AND `id` = "4842728e-6142-4411-b3f3-66cd1b92b0db"
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
        [25.822ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-10-21T18:32:02.626Z	DEBUG	TestReconcile_TaskRun	results/results.go:176	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.662ms] [rows:1] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "8d81b944-1888-3771-b4ca-b3e8504debd9" ORDER BY `records`.`id` LIMIT 1
    db.go:69: /home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
... skipping 56 lines ...
        [0.465ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "6007bbab-761e-3d7d-8596-9baadadf7999" 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.544ms] [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
        [398.135ms] [rows:1] INSERT INTO `records` (`parent`,`result_id`,`result_name`,`id`,`name`,`type`,`data`,`etag`,`created_time`,`updated_time`) VALUES ("ns","e0368973-685c-4b0b-9ff9-ff613fc0ba74","12345","4898ef6f-d3a1-4ae1-a022-71978291e9e6","6007bbab-761e-3d7d-8596-9baadadf7999","results.tekton.dev/v1alpha3.Log","{""kind"":""Log"",""apiVersion"":""results.tekton.dev/v1alpha3"",""metadata"":{""name"":""pipelinerun-log"",""namespace"":""ns"",""uid"":""6007bbab-761e-3d7d-8596-9baadadf7999"",""creationTimestamp"":null},""spec"":{""resource"":{""kind"":""PipelineRun"",""namespace"":""ns"",""name"":""pipelinerun"",""uid"":""12345""},""type"":""File""},""status"":{""size"":0,""isStored"":false,""errorOnStoreMsg"":"""",""isRetryableErr"":false}}","4898ef6f-d3a1-4ae1-a022-71978291e9e6-1729535526764598086","2024-10-21 18:32:06.764","2024-10-21 18:32:06.764") RETURNING `created_time`,`updated_time`
    logger.go:146: 2024-10-21T18:32:07.170Z	DEBUG	TestReconcile_PipelineRun	dynamic/dynamic.go:472	Streaming log started	{"namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun"}
    logger.go:146: 2024-10-21T18:32:07.171Z	ERROR	TestReconcile_PipelineRun	dynamic/dynamic.go:480	Error streaming log	{"namespace": "ns", "kind": "PipelineRun", "name": "pipelinerun", "error": "failed to create tkn reader: Parsing kubeconfig failed: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable"}
    logger.go:146: 2024-10-21T18:32:07.171Z	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.820ms] [rows:1] SELECT * FROM `results` WHERE `results`.`parent` = "ns" AND `results`.`name` = "12345" ORDER BY `results`.`id` LIMIT 1
    logger.go:146: 2024-10-21T18:32:07.176Z	DEBUG	TestReconcile_PipelineRun	results/results.go:184	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.564ms] [rows:0] SELECT * FROM `records` WHERE `records`.`parent` = "ns" AND `records`.`result_name` = "12345" AND `records`.`name` = "d571d89e-9fc4-3e16-9f9e-73fb0d433dab" ORDER BY `records`.`id` LIMIT 1
... skipping 393 lines ...
        --- PASS: TestPut/pipelinerun/update (0.01s)
PASS
ok  	github.com/tektoncd/results/pkg/watcher/results	48.884s
testing: warning: no tests to run
PASS
ok  	github.com/tektoncd/results/tools/postgres-migrate	1.149s [no tests to run]
FAIL
unit_tests returning 
===========================
==== UNIT TESTS FAILED ====
===========================
+ EXIT_VALUE=1
+ set +o xtrace