Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

only print failed verfiy outputs #36

Merged
merged 1 commit into from
Jul 17, 2019

Conversation

chuckha
Copy link
Contributor

@chuckha chuckha commented Jul 17, 2019

Signed-off-by: Chuck Ha [email protected]

What this PR does / why we need it:
This PR makes the output of hack/verify-all.sh more useful by only showing the output of the failed files.

Related to #35

NONE

/assign @neolit123

The output

chuckh-a02:cluster-api-bootstrap-provider-kubeadm cha$ ./hack/verify-all.sh 
[*] Verifying whitespace...
[*] Verifying spelling...
[*] Verifying boilerplate...
[*] Verifying gofmt...
[*] Verifying golint...
[*] Verifying govet...
[*] Verifying deps...
[*] Verifying gotest...
[*] Verifying build...

Some of the verify scripts failed:
- verify-boilerplate.sh:
skipping ".github/ISSUE_TEMPLATE/bug_report.md": unsupported file type
skipping ".github/ISSUE_TEMPLATE/feature_request.md": unsupported file type
skipping ".github/PULL_REQUEST_TEMPLATE.md": unsupported file type
skipping ".gitignore": unsupported file type
skipping "CONTRIBUTING.md": unsupported file type
skipping "Dockerfile": unsupported file type
skipping "LICENSE": unsupported file type
skipping "Makefile": unsupported file type
skipping "OWNERS": unsupported file type
skipping "OWNERS_ALIASES": unsupported file type
skipping "PROJECT": unsupported file type
skipping "README.md": unsupported file type
skipping "RELEASE.md": unsupported file type
skipping "SECURITY_CONTACTS": unsupported file type
skipping "code-of-conduct.md": unsupported file type
skipping "config/certmanager/certificate.yaml": unsupported file type
skipping "config/certmanager/kustomization.yaml": unsupported file type
skipping "config/certmanager/kustomizeconfig.yaml": unsupported file type
skipping "config/crd/bases/kubeadm.bootstrap.cluster.sigs.k8s.io_kubeadmbootstrapconfigs.yaml": unsupported file type
skipping "config/crd/kustomization.yaml": unsupported file type
skipping "config/crd/kustomizeconfig.yaml": unsupported file type
skipping "config/crd/patches/cainjection_in_kubeadmbootstrapconfigs.yaml": unsupported file type
skipping "config/crd/patches/webhook_in_kubeadmbootstrapconfigs.yaml": unsupported file type
skipping "config/default/kustomization.yaml": unsupported file type
skipping "config/default/manager_auth_proxy_patch.yaml": unsupported file type
skipping "config/default/manager_image_patch.yaml": unsupported file type
skipping "config/default/manager_prometheus_metrics_patch.yaml": unsupported file type
skipping "config/default/manager_webhook_patch.yaml": unsupported file type
skipping "config/default/webhookcainjection_patch.yaml": unsupported file type
skipping "config/manager/kustomization.yaml": unsupported file type
skipping "config/manager/manager.yaml": unsupported file type
skipping "config/rbac/auth_proxy_role.yaml": unsupported file type
skipping "config/rbac/auth_proxy_role_binding.yaml": unsupported file type
skipping "config/rbac/auth_proxy_service.yaml": unsupported file type
skipping "config/rbac/kustomization.yaml": unsupported file type
skipping "config/rbac/leader_election_role.yaml": unsupported file type
skipping "config/rbac/leader_election_role_binding.yaml": unsupported file type
skipping "config/rbac/role.yaml": unsupported file type
skipping "config/rbac/role_binding.yaml": unsupported file type
skipping "config/samples/kubeadm_v1alpha1_kubeadmbootstrapconfig.yaml": unsupported file type
skipping "config/webhook/kustomization.yaml": unsupported file type
skipping "config/webhook/kustomizeconfig.yaml": unsupported file type
skipping "config/webhook/manifests.yaml": unsupported file type
skipping "config/webhook/service.yaml": unsupported file type
error validating "controllers/control_plane_init_locker.go": boilerplate line 2 does not match
expected: ""
got: "Licensed under the Apache License, Version 2.0 (the \"License\");"
error validating "controllers/control_plane_init_locker_test.go": boilerplate line 2 does not match
expected: ""
got: "Licensed under the Apache License, Version 2.0 (the \"License\");"
skipping "go.mod": unsupported file type
skipping "go.sum": unsupported file type
skipping "hack/boilerplate.go.txt": unsupported file type
skipping "kubeadm/README.md": unsupported file type
exit status 1

- verify-golint.sh:
Cloning http://github.com/golang/lint in /var/folders/2p/tnmjv6hn1ws2lv1bdfh8v6zr0000gq/T/tmp.GeOQ62zM...
Building golint...
Running golint...
api/v1alpha1/kubeadmbootstrapconfig_types.go:35:6: exported type KubeadmBootstrapConfigSpec should have comment or be unexported
Found 1 lint suggestions; failing.
cloudinit/cloudinit.go:32:6: exported type BaseUserData should have comment or be unexported
Found 1 lint suggestions; failing.
cloudinit/controlplane_certs.go:21:6: exported type Certificates should have comment or be unexported
Found 1 lint suggestions; failing.
Cleaning up...

@chuckha chuckha requested a review from neolit123 July 17, 2019 16:23
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 17, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chuckha

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 17, 2019
@chuckha
Copy link
Contributor Author

chuckha commented Jul 17, 2019

Copy link
Contributor

@neolit123 neolit123 left a comment

Choose a reason for hiding this comment

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

i think the changes in hack/verify-all.sh that this project introduced, became kind of messy.
but no strong opinions.

@neolit123
Copy link
Contributor

/assign @ashish-amarnath
for LGTM

@chuckha
Copy link
Contributor Author

chuckha commented Jul 17, 2019

@neolit123 what do you mean by messy? I don't want to introduce mess. Do you have suggestions for how to improve it?

@ashish-amarnath
Copy link

/lgtm
I like this output more. 🙏

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 17, 2019
@k8s-ci-robot k8s-ci-robot merged commit 7a638d0 into kubernetes-retired:master Jul 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants