Giter Site home page Giter Site logo

Comments (9)

rsdcastro avatar rsdcastro commented on June 15, 2024

From @vaibhavsingh97 on February 16, 2018 12:15

Hi @krousey Can I take this issue? Any resources to fix this issue will be a great help :)

from cluster-api.

rsdcastro avatar rsdcastro commented on June 15, 2024

From @krousey on February 16, 2018 17:42

@vaibhavsingh97 Sure! go vet and go fmt would be the easiest to start with, and they cover areas that aren't someone protected against by our current CI build and test.

I started a CI scripts directory here: https://github.com/kubernetes/kube-deploy/tree/master/scripts

Here are the PRs I submitted to turn on build and testing in CI and on PRs. Hopefully that will be instructive enough.

Also, if you're running the scripts locally, I would recommend Go 1.9+ because they changed the way go tools handle the vendor directory to make it easier.

from cluster-api.

roberthbailey avatar roberthbailey commented on June 15, 2024

@alvaroaleman did some of this in #589 and go vet is taken care of by the migration to kubebuilder.

from cluster-api.

alvaroaleman avatar alvaroaleman commented on June 15, 2024

@roberthbailey Regarding a Verify vendor dependencies are correct, there is still kubernetes/test-infra#9874 open.

When that is done I think the only missing part is the gofmt, we execute it in the presubmits but we don't fail a presubmit if it creates a diff

from cluster-api.

justinsb avatar justinsb commented on June 15, 2024

Spell checkers would probably be handy - other k repos use misspell https://github.com/kubernetes/kubernetes/blob/master/hack/verify-spelling.sh

misspell is good at not having false positives, but only detects common misspellings. Other ones suggested in the meeting: aspell

from cluster-api.

dlipovetsky avatar dlipovetsky commented on June 15, 2024

Some linting would be useful. For example, to ensure errors aren't ignored.

@randomvariable suggested the "meta-linter" https://github.com/golangci/golangci-lint, which is currently used in the AWS provider.

from cluster-api.

egopher avatar egopher commented on June 15, 2024

@roberthbailey @rsdcastro Will take this. I think meta-linter is a good approach for that as it's runs a lot of checks including go vet, fmt.

from cluster-api.

randomvariable avatar randomvariable commented on June 15, 2024

@egopher

Will take this.

Cool.

From the AWS set up, there's this in our build.bazel:
https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/master/BUILD.bazel#L67

and https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/master/.golangci.yml defines our current linters.

I tried a whole bunch of linters, this came out best because it's a singularly compiled binary, and some of the other metalinters shell out, and it's difficult to control versioning and installation of dependencies in a CI context when they do that.

from cluster-api.

vincepri avatar vincepri commented on June 15, 2024

I think now that we have vendor and bazel verification, this issue is almost there to be closed. The only thing missing is gometalinter.

from cluster-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.