-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Fix a logic-changing typo in getRecursionIdentity #54321
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
Fix a logic-changing typo in getRecursionIdentity #54321
Conversation
@typescript-bot test this |
Heya @jakebailey, I've started to run the diff-based top-repos suite on this PR at 8e185f5. You can monitor the build here. Update: The results are in! |
Heya @jakebailey, I've started to run the extended test suite on this PR at 8e185f5. You can monitor the build here. |
Heya @jakebailey, I've started to run the abridged perf test suite on this PR at 8e185f5. You can monitor the build here. Update: The results are in! |
Heya @jakebailey, I've started to run the parallelized Definitely Typed test suite on this PR at 8e185f5. You can monitor the build here. Update: The results are in! |
Heya @jakebailey, I've started to run the diff-based user code test suite on this PR at 8e185f5. You can monitor the build here. Update: The results are in! |
@jakebailey Here they are:Comparison Report - main..54321
System
Hosts
Scenarios
Developer Information: |
@jakebailey Here are the results of running the user test suite comparing There were infrastructure failures potentially unrelated to your change:
Otherwise... Everything looks good! |
Of course this is a bug either way, but ideally there would be a regression test… does this observably change the behavior of any TS code? |
@jakebailey Here are the results of running the top-repos suite comparing Everything looks good! |
The problem is that I stumbled upon this completely by accident while reading the source trying to understand how the infinite recursion prevention mechanism works (because my fork was infinitely recursing 😅). In other words I currently do not understand this part of the code base well enough to know with certainty what functionality this bug may affect. If there is a noticeable effect for the end user then it was in any case not covered by existing unit tests as these pass without any modification. I can tell you however that the bug is currently mostly masked by the additional condition right after it:
The first 2 are obviously fine as they are the types that are supposed to end up in that branch, just the last one needs to be verified. |
Hey @jakebailey, the results of running the DT tests are ready. |
There is currently a typo bug in the
getRecursionIdentity
function that changes the logic of the function in an unexpected way. This PR fixes that bug.Please verify that:
Backlog
milestone (required)main
branchhereby runtests
locallyFixes #54320