Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

RE: ARCHITECTURE #148

Merged
merged 135 commits into from
Jan 5, 2019
Merged

RE: ARCHITECTURE #148

merged 135 commits into from
Jan 5, 2019

Conversation

duck8823
Copy link
Owner

fix #145

@duck8823 duck8823 added enhancement New feature or request maintenance Refactoring code or infrastructure labels Nov 28, 2018
@duck8823 duck8823 self-assigned this Nov 28, 2018
@coveralls
Copy link

coveralls commented Nov 28, 2018

Pull Request Test Coverage Report for Build 882

  • 939 of 1032 (90.99%) changed or added relevant lines in 36 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.7%) to 91.36%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/container/container.go 50 51 98.04%
application/context.go 11 13 84.62%
application/service/job/service_impl.go 57 59 96.61%
domain/model/job/job.go 13 15 86.67%
domain/model/job/target/git/git.go 17 19 89.47%
domain/model/job/target/github.go 15 17 88.24%
domain/model/runner/helper.go 36 38 94.74%
infrastructure/job/data_source.go 26 28 92.86%
application/initialize.go 17 21 80.95%
presentation/controller/job/handler.go 34 38 89.47%
Totals Coverage Status
Change from base Build 834: -1.7%
Covered Lines: 1068
Relevant Lines: 1169

💛 - Coveralls

}

// runtimeOptions parses a config.yml and returns a docker runtime options
func runtimeOptions(workDir string) (docker.RuntimeOptions, error) {

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)

s := &struct {
Stream string `json:"stream"`
}{}
json.NewDecoder(bytes.NewReader(line)).Decode(s)

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)


// prevent to CR
progress := bytes.Split(messages, []byte{'\r'})
return &job.LogLine{Timestamp: now(), Message: string(progress[0])}, readErr

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()

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)


// prevent to CR
progress := bytes.Split(messages, []byte{'\r'})
return &LogLine{Timestamp: now(), Message: string(progress[0])}, readErr

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)

@duck8823
Copy link
Owner Author

duck8823 commented Jan 4, 2019

ci build

@duck8823
Copy link
Owner Author

duck8823 commented Jan 5, 2019

ci test

@duck8823 duck8823 changed the title [WIP] RE: ARCHITECTURE RE: ARCHITECTURE Jan 5, 2019
@duck8823 duck8823 merged commit 97d6737 into master Jan 5, 2019
@duck8823 duck8823 deleted the rearchitecture branch January 5, 2019 09:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request maintenance Refactoring code or infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

プラガブルなアーキテクチャにしたい
3 participants