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

Enforcing go vet -copylocks and fixing current violations #5967

Merged
merged 3 commits into from
May 8, 2024

Conversation

Groxx
Copy link
Member

@Groxx Groxx commented May 3, 2024

Thankfully this all appears to be test-related and not any real risks,
but I realized while writing some other code that go test doesn't check this.

I'm really not sure what scenarios it might be wrong in, but it catches loads
of incorrect concurrent code in my experience. So now it's required.

Copy link

codecov bot commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.97%. Comparing base (4db60d9) to head (758139b).
Report is 1 commits behind head on master.

❗ Current head 758139b differs from pull request most recent head 9d5ab22. Consider uploading reports for the commit 9d5ab22 to get more accurate results

Additional details and impacted files

see 14 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update da5107b...9d5ab22. Read the comment docs.

Copy link
Member

@Shaddoll Shaddoll left a comment

Choose a reason for hiding this comment

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

nice!

@Groxx
Copy link
Member Author

Groxx commented May 8, 2024

Currently blocked on #5967 due to test flakiness.

@Groxx Groxx disabled auto-merge May 8, 2024 04:39
@Groxx Groxx enabled auto-merge (squash) May 8, 2024 04:40
@Groxx Groxx merged commit cb79fcc into cadence-workflow:master May 8, 2024
18 checks passed
agautam478 pushed a commit to agautam478/cadence that referenced this pull request May 8, 2024
…rkflow#5967)

Thankfully this all appears to be test-related and not any real risks,
but I realized while writing some other code that `go test` doesn't check this.

I'm really not sure what scenarios it might be wrong in, but it catches loads
of incorrect concurrent code in my experience.  So now it's required.
@Groxx Groxx deleted the copylock branch May 8, 2024 20:09
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