Skip to content

Commit

Permalink
Merge branch 'main' into new-network-idle
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Jul 22, 2023
2 parents 5e91731 + ea9a2df commit cf9b1fd
Show file tree
Hide file tree
Showing 8 changed files with 97 additions and 45 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ body:
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
label: Log output
description: Please copy and paste the full log output from your test (please DO NOT take a screenshot of the log output). This will be automatically formatted into code, so no need for backticks. If the log output is large please use a [gist](https://gist.github.com)!
render: shell
validations:
required: false
37 changes: 37 additions & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: OSX Chrome, Firefox and Edge
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: macos-13
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install browsertime
run: npm ci
- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
brew update
brew install google-chrome
brew install --cask firefox
brew install --cask microsoft-edge
- name: Test Chrome
run: ./bin/browsertime.js -b chrome -n 1 https://www.sitespeed.io/
- name: Test Firefox
run: ./bin/browsertime.js -b firefox -n 1 https://www.sitespeed.io/
- name: Test Edge
run: ./bin/browsertime.js -b edge -n 1 https://www.sitespeed.io/

26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Browsertime changelog (we do [semantic versioning](https://semver.org))

## 17.13.1 - 2022-07-22

### Tech
* Internal fix how the render blocking result is added [#1972](https://github.com/sitespeedio/browsertime/pull/1972).


## 17.13.0 - 2022-07-21
### Fixed
* Fix for Chromedriver 115 so that it works on Mac again [#1971](https://github.com/sitespeedio/browsertime/pull/1971).

### Added
* Edgedriver 114 [#1969](https://github.com/sitespeedio/browsertime/pull/1969)

### Tech
* Run tests on Chrome/Firefox/Edge on Mac OS on our GitHub Actions to catch the next time Chromedriver is broken on Mac [#1970](https://github.com/sitespeedio/browsertime/pull/1970)

## 17.12.1 - 2022-07-19
### Fixed
* Hmm, Chromedriver 115 doesn't seems to work on Mac so reverted to 114.

## 17.12.0 - 2022-07-19
### Added
* Chrome and Chromedriver 115. The Chrome team has changed the hosting of Chromedriver, so the logic for downloading Chromedriver has changed [#1967](https://github.com/sitespeedio/browsertime/pull/1967).

* If you collect the Chrome devtools trace using `--cpu` we will now also collect the number of elements that needs recalculate styles before FCP/LCP.[#1964](https://github.com/sitespeedio/browsertime/pull/1964).

## 17.11.2 - 2022-06-19
### Fixed
* Fix --debug mode. Thank you [Gregory Mierzwinski](https://github.com/gmierz) for PR [#1959](https://github.com/sitespeedio/browsertime/pull/1959).
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM sitespeedio/webbrowsers:chrome-114.0-firefox-115.0-edge-114.0
FROM sitespeedio/webbrowsers:chrome-115.0-firefox-115.0-edge-114.0

ARG TARGETPLATFORM=linux/amd64

Expand Down
9 changes: 9 additions & 0 deletions lib/chrome/webdriver/setupChromiumOptions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { readFileSync } from 'node:fs';
import { platform } from 'node:os';
import intel from 'intel';
import { chromeDesktopOptions as defaultChromeOptions } from '../settings/chromeDesktopOptions.js';
import { chromeAndroidOptions as defaultAndroidChromeOptions } from '../settings/chromeAndroidOptions.js';
Expand Down Expand Up @@ -188,6 +189,14 @@ export function setupChromiumOptions(

if (browserOptions.binaryPath) {
seleniumOptions.setChromeBinaryPath(browserOptions.binaryPath);
} else {
// Fix for https://github.com/sitespeedio/browsertime/issues/1968
// Same settings for Chrome/Edge
if (options.browser === 'chrome' && platform() === 'darwin') {
seleniumOptions.setChromeBinaryPath(
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
);
}
}

if (browserOptions.mobileEmulation) {
Expand Down
4 changes: 1 addition & 3 deletions lib/core/engine/collector.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function getNewResult(url, options) {
fullyLoaded: [],
mainDocumentTimings: [],
errors: [],
renderBlocking: [],
server: { processesAtStart: [] }
};
}
Expand Down Expand Up @@ -400,9 +401,6 @@ export class Collector {
}

if (data.renderBlocking) {
if (!results.renderBlocking) {
results.renderBlocking = [];
}
results.renderBlocking.push(data.renderBlocking);

statistics.addDeep({
Expand Down
54 changes: 18 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "browsertime",
"description": "Get performance metrics from your web page using Browsertime.",
"version": "17.11.2",
"version": "17.13.1",
"bin": "./bin/browsertime.js",
"type": "module",
"dependencies": {
"@cypress/xvfb": "1.2.4",
"@devicefarmer/adbkit": "2.11.3",
"@sitespeed.io/chromedriver": "114.0.5735-90",
"@sitespeed.io/edgedriver": "113.0.1774-9b",
"@sitespeed.io/chromedriver": "115.0.5790-98b",
"@sitespeed.io/edgedriver": "114.0.1823-82",
"@sitespeed.io/geckodriver": "0.33.0",
"@sitespeed.io/throttle": "5.0.0",
"@sitespeed.io/tracium": "0.3.3",
Expand Down

0 comments on commit cf9b1fd

Please sign in to comment.