-
Notifications
You must be signed in to change notification settings - Fork 1.4k
#903: added vet flag to resolve race issue #2595
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
Conversation
Hi @vanshaj ! Thanks for your PR. Could you please provide more details about the race issue? Maybe an output? 🤔 Cheers! |
yess, Kindly have a look at below image |
In #903, I believe @mstoykov meant, first of all, the CI, but we don't run However, I believe it's also essential to have a |
@@ -1,30 +1,30 @@ | |||
GOLANGCI_LINT_VERSION = $(shell head -n 1 .golangci.yml | tr -d '\# ') |
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 see that, for some reason, the change affected whole formatting. Is it possible to keep only the actual change(s)?
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.
Sure I will make the formatting correct.
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.
Hi @vanshaj
It seems like the whole file formatting is still affected. It shows that 30 lines were removed and 30 added:
golangci-lint run --out-format=tab --new-from-rev master ./... | ||
|
||
tests : | ||
go test -race -timeout 210s ./... -vet=off |
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.
Just a small note here that this affects runs for all operation systems which isn't good, but I guess in that case it's fine as long as we have the linter altogether (make check
)
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.
@olegbespalov Do you want me to add some check related to underlying OS?
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.
No, I guess in the current case, it will be over. Just share the opinion that in some cases we can do that.
Codecov Report
@@ Coverage Diff @@
## master #2595 +/- ##
==========================================
- Coverage 75.59% 75.36% -0.24%
==========================================
Files 202 205 +3
Lines 15992 16287 +295
==========================================
+ Hits 12089 12274 +185
- Misses 3151 3248 +97
- Partials 752 765 +13
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Hey @oleiade. Could you please share your thoughts about the PR? Thanks. |
Once again, thanks for your contribution @vanshaj, we really appreciate and value that you took the time and put in the effort to propose an improvement to k6. Unfortunately, we discussed it internally, and experimented around this issue internally, and came to the conclusion we would not merge this PR in I hope this makes sense, and that you understand. Please don't hesitate to contribute again in the future 🙇🏻 |
As per the last comment in issue : golang/go#27089
I have turned off the vet flag and "make tests" worked fine on my windows machine.
Kindly review