Skip to content
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

Disable tab throttling #137

Closed
gregberge opened this issue Sep 23, 2018 · 0 comments · Fixed by #144
Closed

Disable tab throttling #137

gregberge opened this issue Sep 23, 2018 · 0 comments · Fixed by #144

Comments

@gregberge
Copy link
Member

As suggested in #121 and in this article, Chromium throttling behaviour can cause flakiness in tests.

To avoid that, we have to add these flags in default config.

https://github.com/smooth-code/jest-puppeteer/blob/3fcbaf86efb94f764c0b53deb859c746d285732c/packages/jest-environment-puppeteer/src/readConfig.js#L15

'--disable-background-timer-throttling'
'--disable-backgrounding-occluded-windows'
'--disable-renderer-backgrounding'
gregberge pushed a commit that referenced this issue Sep 30, 2018
aslushnikov added a commit to aslushnikov/puppeteer that referenced this issue Nov 1, 2018
- The "IPC flooding protection" was added in https://crrev.com/604305
and should be disabled for our automation usescases.
- The other two flags are coming from argos-ci/jest-puppeteer#137
aslushnikov added a commit to puppeteer/puppeteer that referenced this issue Nov 1, 2018
- The "IPC flooding protection" was added in https://crrev.com/604305
and should be disabled for our automation usescases.
- The other two flags are coming from argos-ci/jest-puppeteer#137
d-fence added a commit to odoo-dev/odoo that referenced this issue Aug 21, 2019
* disable background networking like GoogleUrlTracker ...
  see https://codereview.chromium.org/3312014

* disable backgrounding occluded windows is a CLI swith that was
specifically written for tests to avoid non deterministic behavior.  To
avoid test flakiness, it should come with disable renderer-backgrounding
and disable background-throttling as stated here:
argos-ci/jest-puppeteer#137

* disable breakpad is used to disable crash reporting, the difference
with disable crash-reporter is not clear.
see https://peter.sh/experiments/chromium-command-line-switches/

* disable defaults-apps, prevent installation of default apps on the
first run

* disable dev-shm usage that may cause crashes
robodoo pushed a commit to odoo/odoo that referenced this issue Aug 23, 2019
* disable background networking like GoogleUrlTracker ...
  see https://codereview.chromium.org/3312014

* disable backgrounding occluded windows is a CLI swith that was
specifically written for tests to avoid non deterministic behavior.  To
avoid test flakiness, it should come with disable renderer-backgrounding
and disable background-throttling as stated here:
argos-ci/jest-puppeteer#137

* disable breakpad is used to disable crash reporting, the difference
with disable crash-reporter is not clear.
see https://peter.sh/experiments/chromium-command-line-switches/

* disable defaults-apps, prevent installation of default apps on the
first run

* disable dev-shm usage that may cause crashes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant