TravisBuddy commented on pull request #173: URL: https://github.com/apache/incubator-yunikorn-core/pull/173#issuecomment-648614503
## Travis tests have failed Hey @yangwwei, Please read the following log in order to understand the failure reason. It'll be awesome if you fix what's wrong and commit the changes. ### 1st Build <a href="https://travis-ci.org/apache/incubator-yunikorn-core/jobs/701526849">View build log</a> <details> <summary> <strong> curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.22.2 </strong> </summary> ``` golangci/golangci-lint info checking GitHub for tag 'v1.22.2' golangci/golangci-lint info found version: 1.22.2 for v1.22.2/linux/amd64 golangci/golangci-lint info installed /home/travis/gopath/bin/golangci-lint ``` </details> <details> <summary> <strong> make lint </strong> </summary> ``` running golangci-lint pkg/plugins/plugins_test.go:29: File is not `gofmt`-ed with `-s` (gofmt) type fakePredicatePluginImpl struct {} pkg/scheduler/scheduling_application.go:458: File is not `gofmt`-ed with `-s` (gofmt) "non of the nodes can satisfy both conditions: " + "1) node has enough resources; 2) node satisfies all placement constraints") pkg/scheduler/scheduling_queue_test.go:701: File is not `gofmt`-ed with `-s` (gofmt) if !resources.Equals(res, headRoom) || !resources.Equals(res, maxHeadRoom) { pkg/scheduler/tests/scheduler_plugin_test.go:142: File is not `gofmt`-ed with `-s` (gofmt) err = common.WaitFor(100 * time.Millisecond, 3000 * time.Millisecond, func() bool { pkg/scheduler/scheduling_queue_test.go:706: Function 'TestMaxHeadroom' has too many statements (174 > 80) (funlen) func TestMaxHeadroom(t *testing.T) { pkg/scheduler/tests/scheduler_plugin_test.go:74:11: string `app-1` has 16 occurrences, make it a constant (goconst) appID := "app-1" ^ pkg/scheduler/tests/scheduler_plugin_test.go:73:14: string `root.singleleaf` has 3 occurrences, make it a constant (goconst) leafName := "root.singleleaf" ^ pkg/scheduler/tests/scheduler_plugin_test.go:126:2: ineffectual assignment to `err` (ineffassign) err = ms.proxy.Update(&si.UpdateRequest{ ^ pkg/scheduler/tests/scheduler_plugin_test.go:25: File is not `goimports`-ed with -local github.com/apache/incubator-yunikorn (goimports) Makefile:45: recipe for target 'lint' failed make: *** [lint] Error 1 ``` </details> ###### TravisBuddy Request Identifier: 0ffb8680-b5e2-11ea-8cfa-25e523bed74d ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org