Skip to content

Conversation

@onurtemizkan
Copy link
Collaborator

@onurtemizkan onurtemizkan commented Apr 19, 2022

Removes warnings that we can't address at the moment from Jest logs.

1 - MaxEventListener warning is about a potential memory leak when more than 10 event listeners are assigned inside a single thread. As we're running all our integration tests on a single Jest thread, after 10th Sentry initialization, this warning starts polluting logs. Still, it's not great to have unregistered handles around. But we know it's limited to the number of test scenarios here. So IMO this workaround is safe to use for these tests.

2 - detectOpenHandles warns about uncleared intervals from session tests (where we're hackily replacing flush interval), which we are eventually clearing but can't set a reliable timeout, and we're also using --forceExit that does that on exit. (Also today I learned it should be debugging only)

@github-actions
Copy link
Contributor

github-actions bot commented Apr 19, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 20.2 KB (+0.66% 🔺)
@sentry/browser - ES5 CDN Bundle (minified) 64.33 KB (-0.34% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.84 KB (+0.35% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 57.94 KB (-0.03% 🔽)
@sentry/browser - Webpack (gzipped + minified) 23.41 KB (+0.86% 🔺)
@sentry/browser - Webpack (minified) 81.21 KB (-1.52% 🔽)
@sentry/react - Webpack (gzipped + minified) 23.46 KB (+0.88% 🔺)
@sentry/nextjs Client - Webpack (gzipped + minified) 47.96 KB (-0.07% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 26.04 KB (+0.25% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.42 KB (+0.05% 🔺)

@AbhiPrasad
Copy link
Member

Can we add some detail (in both the PR description and as a code comment), about why we can't address this at the moment?

@AbhiPrasad AbhiPrasad merged commit a5ef02c into 7.x Apr 19, 2022
@AbhiPrasad AbhiPrasad deleted the onur/improve-test-logs branch April 19, 2022 15:24
@AbhiPrasad AbhiPrasad added this to the 7.0.0 milestone Apr 25, 2022
Lms24 pushed a commit that referenced this pull request Apr 26, 2022
#4951)

Removes warnings that we can't address at the moment from Jest logs. 

1 - `MaxEventListener` warning is about a potential memory leak when more than 10 event listeners are assigned inside a single thread. As we're running all our integration tests on a single Jest thread, after 10th Sentry initialization, this warning starts polluting logs. Still, it's not great to have unregistered handles around. But we know it's limited to the number of test scenarios here. So IMO this workaround is safe to use for these tests.

2 - `detectOpenHandles` warns about uncleared intervals from `session` tests (where we're hackily replacing flush interval), which we are eventually clearing but can't set a reliable timeout, and we're also using `--forceExit` that does that on exit.
lobsterkatie pushed a commit that referenced this pull request Apr 26, 2022
#4951)

Removes warnings that we can't address at the moment from Jest logs. 

1 - `MaxEventListener` warning is about a potential memory leak when more than 10 event listeners are assigned inside a single thread. As we're running all our integration tests on a single Jest thread, after 10th Sentry initialization, this warning starts polluting logs. Still, it's not great to have unregistered handles around. But we know it's limited to the number of test scenarios here. So IMO this workaround is safe to use for these tests.

2 - `detectOpenHandles` warns about uncleared intervals from `session` tests (where we're hackily replacing flush interval), which we are eventually clearing but can't set a reliable timeout, and we're also using `--forceExit` that does that on exit.
lobsterkatie pushed a commit that referenced this pull request Apr 26, 2022
#4951)

Removes warnings that we can't address at the moment from Jest logs. 

1 - `MaxEventListener` warning is about a potential memory leak when more than 10 event listeners are assigned inside a single thread. As we're running all our integration tests on a single Jest thread, after 10th Sentry initialization, this warning starts polluting logs. Still, it's not great to have unregistered handles around. But we know it's limited to the number of test scenarios here. So IMO this workaround is safe to use for these tests.

2 - `detectOpenHandles` warns about uncleared intervals from `session` tests (where we're hackily replacing flush interval), which we are eventually clearing but can't set a reliable timeout, and we're also using `--forceExit` that does that on exit.
AbhiPrasad pushed a commit that referenced this pull request May 30, 2022
#4951)

Removes warnings that we can't address at the moment from Jest logs. 

1 - `MaxEventListener` warning is about a potential memory leak when more than 10 event listeners are assigned inside a single thread. As we're running all our integration tests on a single Jest thread, after 10th Sentry initialization, this warning starts polluting logs. Still, it's not great to have unregistered handles around. But we know it's limited to the number of test scenarios here. So IMO this workaround is safe to use for these tests.

2 - `detectOpenHandles` warns about uncleared intervals from `session` tests (where we're hackily replacing flush interval), which we are eventually clearing but can't set a reliable timeout, and we're also using `--forceExit` that does that on exit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants