-
Notifications
You must be signed in to change notification settings - Fork 97
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
Wrangler CI #270
Wrangler CI #270
Conversation
.drone.yml
Outdated
image: registry.suse.com/bci/golang:1.19 | ||
commands: | ||
- zypper -n install tar gzip | ||
- "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.49.0;" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest release of golangci-lint is 1.51.1. Why not use a newer version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just pulled this from what Rancher was using I will update it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to do it now but, we should move this to a GitHub Action (one exists). Then we can have dependabot manage the dependency to keep that up to date.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't spent much time looking into actions. How do you decide what should use actions and what should be validated via drone?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drone MUST be used for builds and for tests that go across multiple architectures. s390x isn't something that GitHub Actions can do.
I think other things are just fine in GitHub Actions. Linting is something that doesn't matter per os/arch, for example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also waiting on golangci-lint update to newer version as mentioned by @mattfarina.
.drone.yml
Outdated
image: registry.suse.com/bci/golang:1.19 | ||
commands: | ||
- zypper -n install tar gzip | ||
- "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.49.0;" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to do this for ARM as well? It's redundant afaik; I believe rancher only does it for AMD. If there's no benefit then remove. CI script has check for binary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
699659e
to
707ef06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you for doing this 😄.
Issue: #210
Fixed the apply unit test to stop panicking due to the use of an empty schema.
Adds validation and unit test to drone pipeline.
I had to fix the following golangci-lint errors as well.