Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

add gofmt to makefile #1368

Merged
merged 1 commit into from
Nov 30, 2016

Conversation

andyxning
Copy link
Contributor

@andyxning andyxning commented Nov 6, 2016

This PR add gofmt to Makefile.

fmt:
	find . -type f -name "*.go" | grep -v "./vendor*" | xargs gofmt -s -w

build: clean deps fmt
	GOOS=linux GOARCH=amd64 CGO_ENABLED=0 godep go build -o heapster k8s.io/heapster/metrics
	GOOS=linux GOARCH=amd64 CGO_ENABLED=0 godep go build -o eventer k8s.io/heapster/events

  • run make fmt to gofmt the code
  • fmt will be run automatically when make build

This change is Reviewable

@k8s-ci-robot
Copy link
Contributor

Can a kubernetes member verify that this patch is reasonable to test? If so, please reply with "@k8s-bot ok to test" on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands will still work. Regular contributors should join the org to skip this step.

If you have questions or suggestions related to this bot's behavior, please file an issue against the kubernetes/test-infra repository.

@andyxning
Copy link
Contributor Author

andyxning commented Nov 6, 2016

@piosz @AlmogBaku @huangyuqi

@AlmogBaku
Copy link
Contributor

Hey,
That's looks okay, however I'm not sure why is that required? anyway PRs
fails in case the code isn't gofmtted..

On Sun, Nov 6, 2016 at 1:46 PM, Ning Xie [email protected] wrote:

@piosz https://github.com/piosz @AlmogBaku
https://github.com/AlmogBaku


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1368 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGCpqWCRKACloufHu2cTbhpitXrcTbpks5q7b4zgaJpZM4KqfIQ
.

http://www.rimoto.net/

www.rimoto.com http://www.rimoto.net/

Almog Baku

CTO & Cofounder *
Mobile: +972.50.2288.744
Social: * http://www.facebook.com/AlmogBaku
http://www.linkedin.com/in/almogbaku

@andyxning
Copy link
Contributor Author

@AlmogBaku yes one of my pr is reported failed with gofmt error. After gofmt them, everthing is good. 😂

@andyxning
Copy link
Contributor Author

andyxning commented Nov 7, 2016

see the first and the second commit in #1367 to learn more info about this.

@piosz
Copy link
Contributor

piosz commented Nov 23, 2016

@k8s-bot ok to test

@piosz piosz self-assigned this Nov 23, 2016
@piosz
Copy link
Contributor

piosz commented Nov 23, 2016

LGTM, will merge on green

@piosz piosz added the lgtm Indicates that a PR is ready to be merged. label Nov 23, 2016
@k8s-ci-robot
Copy link
Contributor

@andyxning: you can't request testing unless you are a kubernetes member.

In response to this comment:

@k8s-bot test this

If you have questions or suggestions related to this bot's behavior, please file an issue against the kubernetes/test-infra repository.

@andyxning
Copy link
Contributor Author

@piosz Can you please take a look at the Jenkins GCE e2e test fail message. I have no idea about how to fix it.

@piosz
Copy link
Contributor

piosz commented Nov 24, 2016

Bumped cluster version in #1394. Let's see whether it will help

@piosz
Copy link
Contributor

piosz commented Nov 25, 2016

@k8s-bot test this

@piosz
Copy link
Contributor

piosz commented Nov 25, 2016

@kubernetes/test-infra-maintainers e2e tests are failing due to some infra problems. Could you please take a look?

@ixdy
Copy link
Contributor

ixdy commented Nov 28, 2016

@piosz it looks more like a broken test than broken infra to me, but I'm not familiar with the heapster integration test.

@piosz
Copy link
Contributor

piosz commented Nov 28, 2016

@k8s-bot test this

@piosz
Copy link
Contributor

piosz commented Nov 28, 2016

@ixdy thanks. It's weird, because I updated Kubernetes version in #1394 and the method was invoked with
godep go test -v --timeout=60m ./integration/... --vmodule=*=2 --namespace=heapster-e2e-tests --kube_versions="1.3.6"

@piosz piosz closed this Nov 28, 2016
@piosz piosz reopened this Nov 28, 2016
@piosz
Copy link
Contributor

piosz commented Nov 28, 2016

@k8s-bot test this

@piosz
Copy link
Contributor

piosz commented Nov 28, 2016

@ixdy is test bot working correctly?

@ixdy
Copy link
Contributor

ixdy commented Nov 28, 2016

@piosz Jenkins got pretty DOS'd with the code freeze unthawing. We're restarting it now.

@piosz
Copy link
Contributor

piosz commented Nov 28, 2016

@ixdy thanks for the info!

@ixdy
Copy link
Contributor

ixdy commented Nov 28, 2016

@k8s-bot test this

@andyxning
Copy link
Contributor Author

@piosz Maybe this PR can be merged with no worries. The Travis CI failure is about OOM which should be addressed by merging #1364 .

@piosz piosz closed this Nov 29, 2016
@piosz piosz reopened this Nov 29, 2016
@piosz
Copy link
Contributor

piosz commented Nov 29, 2016

@andyxning could you please rebase the PR?

@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA.

Once you've signed, please reply here (e.g. "I signed it!") and we'll verify. Thanks.


If you have questions or suggestions related to this bot's behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Nov 30, 2016
@k8s-ci-robot
Copy link
Contributor

Jenkins GCE e2e failed for commit 06c1aa1. Full PR test history.

The magic incantation to run this job again is @k8s-bot test this. Please help us cut down flakes by linking to an open flake issue when you hit one in your PR.

@googlebot
Copy link

CLAs look good, thanks!

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Nov 30, 2016
@andyxning
Copy link
Contributor Author

@piosz Done.

@piosz
Copy link
Contributor

piosz commented Nov 30, 2016

@andyxning thanks!

@piosz piosz merged commit 5ce4698 into kubernetes-retired:master Nov 30, 2016
@andyxning andyxning deleted the add_gofmt_to_makefile branch November 30, 2016 06:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants