-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
Pull Request Test Coverage Report for Build 882
💛 - Coveralls |
56542ff
to
f4429f7
Compare
f4429f7
to
53db3bb
Compare
application/service/runner/helper.go
Outdated
} | ||
|
||
// runtimeOptions parses a config.yml and returns a docker runtime options | ||
func runtimeOptions(workDir string) (docker.RuntimeOptions, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
runtimeOptions
is unused (from deadcode
)
domain/model/docker/log.go
Outdated
s := &struct { | ||
Stream string `json:"stream"` | ||
}{} | ||
json.NewDecoder(bytes.NewReader(line)).Decode(s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of (*encoding/json.Decoder).Decode
is not checked (from errcheck
)
domain/model/docker/log.go
Outdated
|
||
// prevent to CR | ||
progress := bytes.Split(messages, []byte{'\r'}) | ||
return &job.LogLine{Timestamp: now(), Message: string(progress[0])}, readErr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the surrounding loop is unconditionally terminated (from megacheck
)
if err != nil { | ||
return errors.WithStack(err) | ||
} | ||
defer cleanup() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of cleanup
is not checked (from errcheck
)
domain/model/docker/log.go
Outdated
|
||
// prevent to CR | ||
progress := bytes.Split(messages, []byte{'\r'}) | ||
return &LogLine{Timestamp: now(), Message: string(progress[0])}, readErr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the surrounding loop is unconditionally terminated (from megacheck
)
ci build |
9fbed8c
to
8580b25
Compare
ci test |
fix #145