Skip to content

fix: Incorrect detection of open ZLIB handles - #12022

Merged
SimenB merged 1 commit into
jestjs:mainfrom
oliversalzburg:fix/11542
Nov 2, 2021
Merged

SimenB merged 1 commit into
jestjs:mainfrom
oliversalzburg:fix/11542

Conversation

@oliversalzburg

Copy link
Copy Markdown
Contributor

Summary

It appears that some calls into zlib are detected as incorrectly being open. This change ignores open handles in the ZLIB context.

Fixes #11542

Test plan

I added a test for this specific scenario. Before this change is applied, the test fails as expected. With this change applied, the test passes.

image

@codecov-commenter

codecov-commenter commented Nov 2, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #12022 (4ea625d) into main (10d9580) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #12022   +/-   ##
=======================================
  Coverage   68.77%   68.77%           
=======================================
  Files         324      324           
  Lines       16669    16670    +1     
  Branches     4813     4814    +1     
=======================================
+ Hits        11464    11465    +1     
  Misses       5172     5172           
  Partials       33       33           
Impacted Files Coverage Δ
packages/jest-core/src/collectHandles.ts 73.52% <100.00%> (+0.39%) ⬆️

Continue to review full report at Codecov.

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

@SimenB SimenB left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks! could you add a changelog entry as well? 🙂

It appears that some calls into `zlib` are detected as incorrectly being open. This change ignores open handles in the ZLIB context.

Fixes #11542
@oliversalzburg

Copy link
Copy Markdown
Contributor Author

Sorry for missing that. I assumed the changelog is automatically generated from git changes. I hope it's good now.

@github-actions

github-actions Bot commented Dec 4, 2021

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--detectOpenHandles reports open handles in ZLIB, but exits cleanly

4 participants