-
Notifications
You must be signed in to change notification settings - Fork 489
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
network: Ignore invalid tags #4517
Merged
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
0346b11
don't queue messages with unrecognized tags
cce 0b0f37c
Merge remote-tracking branch 'upstream/master' into ignore-invalid-tags
cce 0e2fe4c
update and add debug logging for bad tags
cce 1b5595b
switch to setting telemetry field
cce 9df1d0c
skip dropping message
cce 06f5c56
add allowCustomTags
cce bfb3ca1
Merge remote-tracking branch 'upstream/master' into ignore-invalid-tags
cce ce2af33
turn OutOfProtocol into a counter
cce 5e04cb8
Merge remote-tracking branch 'upstream/master' into ignore-invalid-tags
cce b7719f7
merge count test
cce 0e702e4
update metric name
cce 18ace9d
update OutOfProtocol to Unknown
cce ccd5f37
remove drop check behind dedupSafeTag
cce 0c6f169
add test for wsPeer.readLoop to make sure the switch statement checks…
cce 936e568
fix lint
cce 5f0cd15
add protocol.TagList completeness check test
cce c91c1a4
remove UniCatchupReqTag
cce ceba110
add license to tags_test.go
cce 12dbc02
add partitiontest for linter
cce a7dd7a7
add strconv.Unquote to TestTagList
cce 0346817
add TestWebsocketNetworkBasicInvalidTags
cce e390c9a
update TestTagList
cce 4fbc0f6
add TestHashIDPrefix and a few more comments
cce 4a780fd
Update network/wsNetwork_test.go
algorandskiy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
merge count test
- Loading branch information
commit b7719f78cbc9b14ce194e55130edcaff0d4fbf39
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this is great and why don't we have this for everything we
sync/atomic
access?#5001
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.
looks like can be done as a custom linter similar to part test, by using fieldalignment as an example
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 tried the fieldalignment linter and it didn't work ... it requires being run on a 32-bit platform to work (!!) and I even tried it using a 32-bit docker image inside qemu and it didn't catch everything. However in Go 1.19 we can switch to the new automatically aligned atomic types and not need to worry about this anymore.