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

chore(lint): enable testifylint #13467

Merged
merged 1 commit into from
Aug 14, 2024
Merged

chore(lint): enable testifylint #13467

merged 1 commit into from
Aug 14, 2024

Conversation

Joibel
Copy link
Member

@Joibel Joibel commented Aug 14, 2024

This commit enables testifylint and fixes the 5 changes that have crept in since the beginning of trying to enable it.

This is part of a series which aimed to get this enabled as a useful linter.

The version of golangci-lint we use is a bit old (1.55.1), and isn't catching all the things I was expecting. Once this is merged I'll do a follow up to bump golangci-lint to latest (1.60.1) as well.

Signed-off-by: Alan Clucas [email protected]

This commit enables testifylint and fixes the 5 changes that have
crept in since the beginning of trying to enable it.

Signed-off-by: Alan Clucas <[email protected]>
@Joibel Joibel assigned Joibel and unassigned Joibel Aug 14, 2024
@Joibel Joibel added the area/build Build or GithubAction/CI issues label Aug 14, 2024
@terrytangyuan terrytangyuan enabled auto-merge (squash) August 14, 2024 09:48
@terrytangyuan terrytangyuan merged commit 89f2ed1 into main Aug 14, 2024
29 checks passed
@terrytangyuan terrytangyuan deleted the testifylint-enable branch August 14, 2024 09:52
MasonM added a commit to MasonM/argo-workflows that referenced this pull request Nov 2, 2024
Every PR has been failing the `make lint` checked with the following
error since argoproj#12960 was merged:
```
 			assert.Equal(t, 1, len(status.Outputs.Parameters))
			^
Error: test/e2e/suspend_test.go:124:4: len: use assert.Len (testifylint)
			assert.Equal(t, 1, len(status.Inputs.Parameters))
			^
make: *** [Makefile:466: lint] Error 1
```

This is happening due to a conflict between that PR and
argoproj#13467. The latter PR was
merged on August 14th, but the latest CI run for the former
(https://github.com/argoproj/argo-workflows/actions/runs/9191558853/job/25278229097)
was on May 22nd.

Signed-off-by: Mason Malone <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build or GithubAction/CI issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants