browsertime 16.16.0 → 16.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Browsertime changelog (we do [semantic versioning](https://semver.org))
2
2
 
3
+ ## 16.17.0 - 2022-09-27
4
+ ### Added
5
+ * Add ability to ignore shutdown failures on android, thank you [Gregory Mierzwinski](https://github.com/gmierz) for PR [#1850](https://github.com/sitespeedio/browsertime/pull/1850).
6
+ * Updated to Firefox 105 and Edge 105 in the Docker container.
7
+
8
+ ### Fixed
9
+ * Fix so we collect battery temperature statistics on Android (again) [#1851](https://github.com/sitespeedio/browsertime/pull/1851).
10
+
3
11
  ## 16.16.0 - 2022-09-20
4
12
  ### Added
5
13
  * Chrome 105, Firefox 104 and Chromedriver 105 [#1843](https://github.com/sitespeedio/browsertime/pull/1843).
@@ -184,6 +184,9 @@ class Collector {
184
184
 
185
185
  if (allData.batteryTemperature) {
186
186
  results.android.batteryTemperature.push(allData.batteryTemperature);
187
+ statistics.addDeep({
188
+ android: { batteryTemperature: allData.batteryTemperature }
189
+ });
187
190
  }
188
191
 
189
192
  if (allData.markedAsFailure) {
@@ -259,7 +259,17 @@ class Iteration {
259
259
  if (options.browser === 'firefox' && options.debug) {
260
260
  log.info('Firefox is kept open in debug mode');
261
261
  } else {
262
- await browser.stop();
262
+ if (isAndroidConfigured(options) && options.ignoreShutdownFailures) {
263
+ try {
264
+ log.info('Ignoring shutdown failures on android...');
265
+ await browser.stop();
266
+ } catch (e) {
267
+ // Ignore shutdown failures on android
268
+ log.info('Shutdown problem hit, ignoring...');
269
+ }
270
+ } else {
271
+ await browser.stop();
272
+ }
263
273
  }
264
274
  // Give the browsers some time to stop
265
275
  await delay(2000);
@@ -682,6 +682,11 @@ module.exports.parseCommandLine = function parseCommandLine() {
682
682
  describe:
683
683
  'Specify browser. Safari only works on OS X/iOS. Edge only work on OS that supports Edge.'
684
684
  })
685
+ .option('ignoreShutdownFailures', {
686
+ type: 'boolean',
687
+ default: false,
688
+ describe: 'If set, shutdown failures will be ignored on Android.'
689
+ })
685
690
  .option('android', {
686
691
  type: 'boolean',
687
692
  default: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "description": "Browsertime",
3
- "version": "16.16.0",
3
+ "version": "16.17.0",
4
4
  "bin": "./bin/browsertime.js",
5
5
  "dependencies": {
6
6
  "@cypress/xvfb": "1.2.4",