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

Update golangci-lint to v1.63.4 #733

Merged
merged 3 commits into from
Jan 25, 2025
Merged

Update golangci-lint to v1.63.4 #733

merged 3 commits into from
Jan 25, 2025

Conversation

bgentry
Copy link
Contributor

@bgentry bgentry commented Jan 25, 2025

This is a regular upgrade of golangci-lint along with required fixes. The new version of vet seems to detect potentially leaked context around workCtx / workCancel. This may or may not matter in practice, but rather than ignore the lint error I fixed it by ensuring it's always called after a failed start or on shutdown after the producers have shut down, which should make it generally a no-op.

@bgentry bgentry requested a review from brandur January 25, 2025 19:08
@@ -905,12 +905,12 @@ func Exercise[TTx any](ctx context.Context, t *testing.T,
require.Nil(t, job.AttemptedAt)
require.Empty(t, job.AttemptedBy)
require.WithinDuration(t, now, job.CreatedAt, 2*time.Second)
require.Equal(t, []byte(`{"encoded": "args"}`), job.EncodedArgs)
require.JSONEq(t, `{"encoded": "args"}`, string(job.EncodedArgs))
Copy link
Contributor

Choose a reason for hiding this comment

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

I can already tell it's going to drive me crazy that they didn't called this JSONEqual to match all the other existing Equal helpers.

@bgentry bgentry merged commit 4cea55a into master Jan 25, 2025
10 checks passed
@bgentry bgentry deleted the bg-update-golangci-lint branch January 25, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants