Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add install SDK goal to make #458

Merged
merged 3 commits into from
Jun 5, 2019

Conversation

pavolloffay
Copy link
Member

Signed-off-by: Pavol Loffay [email protected]

Signed-off-by: Pavol Loffay <[email protected]>
@pavolloffay pavolloffay requested a review from jpkrohling June 4, 2019 10:14
@codecov
Copy link

codecov bot commented Jun 4, 2019

Codecov Report

Merging #458 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #458   +/-   ##
=======================================
  Coverage   91.59%   91.59%           
=======================================
  Files          64       64           
  Lines        3142     3142           
=======================================
  Hits         2878     2878           
  Misses        184      184           
  Partials       80       80

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f67fd4...f6fa24e. Read the comment docs.

@codecov
Copy link

codecov bot commented Jun 4, 2019

Codecov Report

Merging #458 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #458   +/-   ##
=======================================
  Coverage   91.59%   91.59%           
=======================================
  Files          64       64           
  Lines        3142     3142           
=======================================
  Hits         2878     2878           
  Misses        184      184           
  Partials       80       80

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f67fd4...b00efda. Read the comment docs.

Copy link
Contributor

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please paste the output for the new targets?

@pavolloffay
Copy link
Member Author

It should be available in travis output.

@jpkrohling
Copy link
Contributor

It should be available in travis output.

Travis sets the -x flag, which prints out more than what it would print locally.

@pavolloffay
Copy link
Member Author

The output in travis is the same as locally. What are your concerns with output? Could you be more specific please?

locally:

make install-sdk install-tools                                                                                                                    4:39 
curl https://github.com/operator-framework/operator-sdk/releases/download/v0.8.1/operator-sdk-v0.8.1-x86_64-linux-gnu -sLo /home/ploffay/projects/golang/bin/operator-sdk
chmod +x /home/ploffay/projects/golang/bin/operator-sdk
go get -u golang.org/x/lint/golint
go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;
	ignoring go.mod;
	see 'go help modules'
go get github.com/securego/gosec/cmd/gosec/...
go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;
	ignoring go.mod;
	see 'go help modules'

travis: https://travis-ci.org/jaegertracing/jaeger-operator/jobs/541164268#L230

$ make install-sdk install-tools
curl https://github.com/operator-framework/operator-sdk/releases/download/v0.8.1/operator-sdk-v0.8.1-x86_64-linux-gnu -sLo /home/travis/gopath/bin/operator-sdk
chmod +x /home/travis/gopath/bin/operator-sdk
go get -u golang.org/x/lint/golint
go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;
	ignoring go.mod;
	see 'go help modules'
go get github.com/securego/gosec/cmd/gosec/...
go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;
	ignoring go.mod;
	see 'go help modules'

@jpkrohling
Copy link
Contributor

Interesting, I thought Travis was more verbose. My concern is that all our targets are silent, and these new targets are verbose. Instead of showing the commands (curl, chmod, go get...), omit them and their outputs, unless a failure happens.

@pavolloffay
Copy link
Member Author

I don't really care this is one-time command folks run when start with the project.

Do you want to add @ before the commands?

Signed-off-by: Pavol Loffay <[email protected]>
Copy link
Contributor

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just need to print out something like "Installing SDK..." at the beginning of the task, like the other tasks in the Makefile. Like:

@echo Installing SDK...

Signed-off-by: Pavol Loffay <[email protected]>
@jpkrohling jpkrohling merged commit df59446 into jaegertracing:master Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants