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

Use golangci-lint #42

Merged
merged 4 commits into from
Mar 9, 2022
Merged

Use golangci-lint #42

merged 4 commits into from
Mar 9, 2022

Conversation

vancanhuit
Copy link
Contributor

@vancanhuit vancanhuit commented Dec 11, 2021

Changes

Closes #35

Submitter Checklist

  • Includes tests if functionality changed/was added
  • Includes docs if changes are user-facing
  • Set a kind label on this PR
  • Release notes block has been filled in, or marked NONE

See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.

Release Notes

NONE

@vancanhuit
Copy link
Contributor Author

/assign @adambkaplan

@SaschaSchwarze0 SaschaSchwarze0 added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Dec 13, 2021
Copy link
Member

@SaschaSchwarze0 SaschaSchwarze0 left a comment

Choose a reason for hiding this comment

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

Correcting the repository name and adding the timeout like in the CLI.

.github/workflows/ci.yml Outdated Show resolved Hide resolved
Copy link
Member

@SaschaSchwarze0 SaschaSchwarze0 left a comment

Choose a reason for hiding this comment

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

@vancanhuit golintci-lint ran. A few findings to be fixed.

@vancanhuit
Copy link
Contributor Author

Do we need to temporarily disable some rules to make it pass?

@SaschaSchwarze0
Copy link
Member

Do we need to temporarily disable some rules to make it pass?

I'd say no. None of the findings sounds complicated to be addressed. Let us know if you find one where you need help.

@vancanhuit
Copy link
Contributor Author

Is there an environmental issue in the e2e run?

Copy link
Member

@adambkaplan adambkaplan left a comment

Choose a reason for hiding this comment

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

@vancanhuit I also noticed that you used a merge commit to bring in changes from main. If possible, can you try rebasing instead?

.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@vancanhuit
Copy link
Contributor Author

@vancanhuit I also noticed that you used a merge commit to bring in changes from main. If possible, can you try rebasing instead?

Yes, I will try.

@adambkaplan
Copy link
Member

@vancanhuit this PR is failing tests for the same reason I outlined in #41 (comment). Unfortunately you are stuck until #52 merges (and you will need to rebase afterwards 😿).

@adambkaplan
Copy link
Member

@vancanhuit #52 has now merged. Please rebase this pull request on top of the current main branch, then I think the e2e tests will be fixed.

@vancanhuit
Copy link
Contributor Author

vancanhuit commented Feb 4, 2022

@adambkaplan I rebased this PR. Please check if it is ok. The same with #41.

Copy link
Member

@adambkaplan adambkaplan left a comment

Choose a reason for hiding this comment

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

/approve

Looks good to merge. Ideally we have a make target that lets contributors run this locally - we can follow up in a separate pull request.

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 8, 2022
@adambkaplan
Copy link
Member

Verify failed:

Verify check failed - run `make generate` and commit the resulting changes to git.
+ echo 'Verify check failed - run `make generate` and commit the resulting changes to git.'
+ exit 1
make: *** [Makefile:124: verify-generate] Error 1

@vancanhuit
Copy link
Contributor Author

CI now is green @adambkaplan 👍

Copy link
Member

@adambkaplan adambkaplan left a comment

Choose a reason for hiding this comment

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

/approve

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 9, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 9, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adambkaplan

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

@adambkaplan adambkaplan added this to the release-v0.9.0 milestone Mar 9, 2022
@openshift-merge-robot openshift-merge-robot merged commit 168868e into shipwright-io:main Mar 9, 2022
@vancanhuit vancanhuit deleted the ci/golangci-lint branch March 9, 2022 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use golangci-lint for static scanning
4 participants