-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(typing): add possibly-undefined-check to issues team / error ingestion critical code #68283
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
Closed
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
62206bb
feat(typing): add possibly undefined check to mypy
JoshFerge 8ff247c
remove unrelated change, remove comment
JoshFerge a2ca47a
:knife: regenerate mypy module blocklist
getsantry[bot] 575cfbe
add fix script
JoshFerge f25f148
one more file to ignore list
JoshFerge 19701d1
feat(typing): add possibly undefined check to mypy
JoshFerge ea49f24
remove unrelated change, remove comment
JoshFerge fa49fef
:knife: regenerate mypy module blocklist
getsantry[bot] 5fc38a6
feat(typing): add possibly undefined check for issues team code
JoshFerge a74be6e
remove stuff from old pr
JoshFerge 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
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1068,6 +1068,7 @@ def _get_replay_id(event): | |
kafka_payload = transform_event_for_linking_payload(replay_id, group_event) | ||
except ValueError: | ||
metrics.incr("post_process.process_replay_link.id_invalid") | ||
return | ||
|
||
publisher.publish( | ||
"ingest-replay-events", | ||
Comment on lines
+1071
to
1074
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. slightly more correct / less error prone would be to use |
||
|
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.
if we're going to do this (I still don't think this is the right way to land this change and doesn't prevent this issue from happening in general) let's just add this to the
stronger
list aboveThere 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.
#65589 (comment) -- on the previous PR, you asked me to make changes, i made the changes, and you still did not approve it, and when i made follow up comments, you did not address them or respond to them.
Here, can you please inform me that if i make these changes, you will approve the PR?
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.
Yes, let's do that.
It may also be easier to reduce the number of modules you want to adjust.
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.
We will be unable to cover all of our code here without a lot of effort -- 267 errors would need to be fixed.
Unless we get dedicated time to try and address all of this, we will have to add a much smaller subset of these files, if any of them at the moment.
Why are we so against preventing incidents with mypy checks?
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.
Was possibly undefined a case missed which caused an incident?
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 actually think it would be less work to enable this check for the whole codebase, than to try and add all of the issues / error ingestion code to the strict typing check set.