Error lines from build-log.txt
... skipping 4 lines ...
2024/11/11 08:12:31 mkdir -p /logs/artifacts
2024/11/11 08:12:31 artifacts dir=/logs/artifacts
2024/11/11 08:12:31 covTargets = [./...]
2024/11/11 08:12:31
Starts calc.runProfiling(...)
2024/11/11 08:12:31 go cmdArgs=[test ./... -covermode=count -coverprofile /logs/artifacts/coverage_profile.txt]
2024/11/11 08:18:44 Error running 'go test -coverprofile ': error='exit status 1'; combined output=' github.com/tektoncd/results/cmd/cli-docs coverage: 0.0% of statements
ok github.com/tektoncd/results/cmd/api 0.115s coverage: 8.3% of statements
github.com/tektoncd/results/cmd/retention-policy-agent coverage: 0.0% of statements
github.com/tektoncd/results/cmd/tkn-results coverage: 0.0% of statements
github.com/tektoncd/results/cmd/watcher coverage: 0.0% of statements
github.com/tektoncd/results/pkg/api/server/db/errors coverage: 0.0% of statements
github.com/tektoncd/results/pkg/api/server/config coverage: 0.0% of statements
... skipping 47 lines ...
github.com/tektoncd/results/test/e2e/client coverage: 0.0% of statements
github.com/tektoncd/results/proto/v1alpha3/results_go_proto coverage: 0.0% of statements
github.com/tektoncd/results/tools/simpleui coverage: 0.0% of statements
github.com/tektoncd/results/proto/pipeline/v1/pipeline_go_proto coverage: 0.0% of statements
ok github.com/tektoncd/results/pkg/watcher/reconciler/dynamic 20.349s coverage: 50.8% of statements
ok github.com/tektoncd/results/pkg/watcher/reconciler/pipelinerun 0.650s coverage: 23.7% of statements
--- FAIL: TestEnsureResult (6.01s)
results_test.go:236: test database: /tmp/testdb3711921945
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/test/db.go:59
[0m[33m[0.016ms] [34;1m[rows:0][0m PRAGMA foreign_keys = ON;
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:129
[0m[33m[0.087ms] [34;1m[rows:-][0m SELECT count(*) FROM sqlite_master WHERE type='table' AND name="results"
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/server.go:129
... skipping 13 lines ...
logger.go:146: 2024-11-11T08:18:19.657Z 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[970.478ms] [34;1m[rows:1][0m 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","cda95b4d-f414-4feb-b811-e619c8c1de38","taskrun-id","{""object.metadata.name"":""taskrun""}","test/results/taskrun-id/records/taskrun-id","tekton.dev/v1.TaskRun",NULL,NULL,0,"null","cda95b4d-f414-4feb-b811-e619c8c1de38-1731313099658464661","2024-11-11 08:18:19.658","2024-11-11 08:18:19.658") RETURNING `created_time`,`updated_time`
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
[0m[33m[0.464ms] [34;1m[rows:1][0m SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "taskrun-id" ORDER BY `results`.`id` LIMIT 1
logger.go:146: 2024-11-11T08:18:20.631Z 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}
--- FAIL: TestEnsureResult/taskrun (0.98s)
results_test.go:286: Create Result diff (-want, +got):
(*results_go_proto.Result)(Inverse(protocmp.Transform, protocmp.Message{
"@type": s"tekton.results.v1alpha2.Result",
- "annotations": map[string]string{"object.metadata.name": "pipelinerun"},
+ "annotations": map[string]string{"object.metadata.name": "taskrun"},
... // 7 ignored and 2 identical entries
... skipping 5 lines ...
logger.go:146: 2024-11-11T08:18:20.635Z 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: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:72
[0m[33m[801.402ms] [34;1m[rows:1][0m 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","3e605f0e-2442-4008-8735-5fbbf805758e","pipelinerun-id","{""object.metadata.name"":""pipelinerun""}","test/results/pipelinerun-id/records/pipelinerun-id","tekton.dev/v1.PipelineRun",NULL,NULL,0,"null","3e605f0e-2442-4008-8735-5fbbf805758e-1731313100635514297","2024-11-11 08:18:20.635","2024-11-11 08:18:20.635") RETURNING `created_time`,`updated_time`
db.go:69: [32m/home/prow/go/src/github.com/tektoncd/results/pkg/api/server/v1alpha2/results.go:208
[0m[33m[1.114ms] [34;1m[rows:1][0m SELECT * FROM `results` WHERE `results`.`parent` = "test" AND `results`.`name` = "pipelinerun-id" ORDER BY `results`.`id` LIMIT 1
logger.go:146: 2024-11-11T08:18:21.440Z 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}
FAIL
coverage: 59.9% of statements
FAIL github.com/tektoncd/results/pkg/watcher/results 30.828s
ok github.com/tektoncd/results/tools/postgres-migrate 0.116s coverage: [no statements] [no tests to run]
FAIL
'
2024/11/11 08:18:44 coverage profile created @ '/logs/artifacts/coverage_profile.txt'
2024/11/11 08:18:44 Created file:/logs/artifacts/profile-completed
2024/11/11 08:18:44 No content to be written to file 'profile-completed'
2024/11/11 08:18:44 Created marker file 'profile-completed'
2024/11/11 08:18:44 stdout of test coverage stored in /logs/artifacts/stdout.txt
... skipping 669 lines ...