-
Notifications
You must be signed in to change notification settings - Fork 75
testground build task produces errors in the daemon #1320
Copy link
Copy link
Closed
Labels
area/coreArea: CoreArea: Coregood first issueGood for newcomersGood for newcomerskind/bugKind: BugKind: Bug
Description
Version information:
Using current master 08bdb03a8736218dfb24d5ec18b3a0416dba7434 on Intel
Description:
When I run testground build ...,
then open the daemon's tasks list: http://localhost:8042/tasks
Build jobs are shown with a status FAILED (even if successful), and the daemon logs the following error:
Apr 22 10:08:05.615628 ERROR error while decoding result {"err": "'' expected a map, got 'slice'"}
Solution
Error is produced by this code:
testground/pkg/daemon/tasks.go
Line 86 in 08bdb03
| result := decodeResult(t.Result) |
Because we expect task.result to contain a Runner result:
testground/pkg/runner/cluster_k8s.go
Line 139 in 08bdb03
| type Result struct { |
This is not the case for build jobs, we store an artifact path:
testground/pkg/engine/supervisor.go
Line 135 in 08bdb03
| result = artifactPaths |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/coreArea: CoreArea: Coregood first issueGood for newcomersGood for newcomerskind/bugKind: BugKind: Bug