Skip to content

testground build task produces errors in the daemon #1320

@laurentsenta

Description

@laurentsenta

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:

result := decodeResult(t.Result)

Because we expect task.result to contain a Runner result:

type Result struct {

This is not the case for build jobs, we store an artifact path:

result = artifactPaths

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions