sitespeed.io 23.7.0 → 24.0.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 +12 -0
- package/Dockerfile +1 -1
- package/lib/cli/cli.js +6 -0
- package/lib/plugins/budget/junit.js +12 -7
- package/lib/plugins/html/metricHelper.js +3 -1
- package/npm-shrinkwrap.json +17 -17
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# CHANGELOG - sitespeed.io (we use [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
## 24.0.0 - 2022-04-06
|
|
5
|
+
|
|
6
|
+
### Changed
|
|
7
|
+
* Upgraded to [Browsertime 16.0.0](https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#1600---2022-04-05) that changed how the DNS is flushed. You need to add `--flushDNS` to your conifguration to flush the DNS between runs.
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
* Use Firefox 99 and Edge/Edgedriver 100 in the Dockker container.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
* Better catch if Visual Metrics fails [#3619](https://github.com/sitespeedio/sitespeed.io/pull/3619)
|
|
14
|
+
* Fixed JUnit/alias bug [#3620](https://github.com/sitespeedio/sitespeed.io/pull/3620)
|
|
3
15
|
## 23.7.0 - 2022-03-31
|
|
4
16
|
### Added
|
|
5
17
|
* Updated to Chrome/Chromedriver 100 and [Browsertime 15.4.0](https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#1540---2022-03-30).
|
package/Dockerfile
CHANGED
package/lib/cli/cli.js
CHANGED
|
@@ -991,6 +991,12 @@ module.exports.parseCommandLine = function parseCommandLine() {
|
|
|
991
991
|
describe: 'Https proxy (host:port)',
|
|
992
992
|
group: 'proxy'
|
|
993
993
|
})
|
|
994
|
+
.option('browsertime.flushDNS', {
|
|
995
|
+
alias: 'flushDNS',
|
|
996
|
+
describe:
|
|
997
|
+
'Flush the DNS between runs (works on Mac OS and Linux). The user needs sudo rights to flush the DNS.',
|
|
998
|
+
group: 'Browser'
|
|
999
|
+
})
|
|
994
1000
|
.option('browsertime.headless', {
|
|
995
1001
|
alias: 'headless',
|
|
996
1002
|
type: 'boolean',
|
|
@@ -11,24 +11,29 @@ exports.writeJunit = function (results, dir, options) {
|
|
|
11
11
|
const urls = Object.keys(merge({}, results.failing, results.working));
|
|
12
12
|
|
|
13
13
|
for (const url of urls) {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
// The URL can be an alias
|
|
15
|
+
let name = url;
|
|
16
|
+
if (url.startsWith('http')) {
|
|
17
|
+
const parsedUrl = urlParser.parse(url);
|
|
18
|
+
name = url.startsWith('http') ? url : url;
|
|
16
19
|
parsedUrl.hostname.replace(/\./g, '_') +
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
'.' +
|
|
21
|
+
parsedUrl.path.replace(/\./g, '_').replace(/\//g, '_');
|
|
22
|
+
}
|
|
23
|
+
|
|
19
24
|
const suite = builder
|
|
20
25
|
.testSuite()
|
|
21
26
|
.name(
|
|
22
27
|
options.budget.friendlyName
|
|
23
28
|
? options.budget.friendlyName
|
|
24
|
-
: 'sitespeed.io' + '.' +
|
|
29
|
+
: 'sitespeed.io' + '.' + name
|
|
25
30
|
);
|
|
26
31
|
|
|
27
32
|
if (results.failing[url]) {
|
|
28
33
|
for (const result of results.failing[url]) {
|
|
29
34
|
suite
|
|
30
35
|
.testCase()
|
|
31
|
-
.className(
|
|
36
|
+
.className(name)
|
|
32
37
|
.name(result.type + '.' + result.metric)
|
|
33
38
|
.failure(
|
|
34
39
|
result.metric + ' is ' + result.friendlyValue ||
|
|
@@ -46,7 +51,7 @@ exports.writeJunit = function (results, dir, options) {
|
|
|
46
51
|
for (const result of results.working[url]) {
|
|
47
52
|
suite
|
|
48
53
|
.testCase()
|
|
49
|
-
.className(
|
|
54
|
+
.className(name)
|
|
50
55
|
.name(result.type + '.' + result.metric)
|
|
51
56
|
.standardOutput(
|
|
52
57
|
result.metric + ' is ' + result.friendlyValue ||
|
|
@@ -4,7 +4,7 @@ module.exports = {
|
|
|
4
4
|
pickMedianRun(runs, pageInfo) {
|
|
5
5
|
// Choose the median run. Early first version, in the future we can make
|
|
6
6
|
// this configurable through the CLI
|
|
7
|
-
// If we have SpeedIndex use that else backup with
|
|
7
|
+
// If we have SpeedIndex use that else backup with loadEventEnd
|
|
8
8
|
|
|
9
9
|
const speedIndexMedian = get(
|
|
10
10
|
pageInfo,
|
|
@@ -17,6 +17,8 @@ module.exports = {
|
|
|
17
17
|
if (speedIndexMedian) {
|
|
18
18
|
for (let run of runs) {
|
|
19
19
|
if (
|
|
20
|
+
// https://github.com/sitespeedio/sitespeed.io/issues/3618
|
|
21
|
+
run.data.browsertime.run.visualMetrics &&
|
|
20
22
|
speedIndexMedian === run.data.browsertime.run.visualMetrics.SpeedIndex
|
|
21
23
|
) {
|
|
22
24
|
return {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sitespeed.io",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.0.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "sitespeed.io",
|
|
9
|
-
"version": "
|
|
9
|
+
"version": "24.0.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@google-cloud/storage": "5.8.3",
|
|
13
13
|
"@tgwf/co2": "0.8.0",
|
|
14
14
|
"aws-sdk": "2.882.0",
|
|
15
15
|
"axe-core": "4.4.1",
|
|
16
|
-
"browsertime": "
|
|
16
|
+
"browsertime": "16.0.1",
|
|
17
17
|
"cli-color": "2.0.0",
|
|
18
18
|
"coach-core": "7.1.0",
|
|
19
19
|
"concurrent-queue": "7.0.2",
|
|
@@ -921,9 +921,9 @@
|
|
|
921
921
|
}
|
|
922
922
|
},
|
|
923
923
|
"node_modules/@sitespeed.io/edgedriver": {
|
|
924
|
-
"version": "
|
|
925
|
-
"resolved": "https://registry.npmjs.org/@sitespeed.io/edgedriver/-/edgedriver-
|
|
926
|
-
"integrity": "sha512-
|
|
924
|
+
"version": "100.0.1185-29",
|
|
925
|
+
"resolved": "https://registry.npmjs.org/@sitespeed.io/edgedriver/-/edgedriver-100.0.1185-29.tgz",
|
|
926
|
+
"integrity": "sha512-vqOVE14qTgINA9hWDhVl4M7pKwMnP71FUofaIaHMx2H2x/VHhlJ/b4EqfIxSYghoFs/vZYDmMwawiQoNSAnPJg==",
|
|
927
927
|
"hasInstallScript": true,
|
|
928
928
|
"dependencies": {
|
|
929
929
|
"node-downloader-helper": "1.0.18",
|
|
@@ -1461,14 +1461,14 @@
|
|
|
1461
1461
|
}
|
|
1462
1462
|
},
|
|
1463
1463
|
"node_modules/browsertime": {
|
|
1464
|
-
"version": "
|
|
1465
|
-
"resolved": "https://registry.npmjs.org/browsertime/-/browsertime-
|
|
1466
|
-
"integrity": "sha512-
|
|
1464
|
+
"version": "16.0.1",
|
|
1465
|
+
"resolved": "https://registry.npmjs.org/browsertime/-/browsertime-16.0.1.tgz",
|
|
1466
|
+
"integrity": "sha512-Tj4o5m9PnXV2RHi0LbHnErbf3pIXmL+n+LNF1fcNqcmYjxJCuQJgSs+LyESuAjYRqiH+2zeGHOXWZDTYj66DEQ==",
|
|
1467
1467
|
"dependencies": {
|
|
1468
1468
|
"@cypress/xvfb": "1.2.4",
|
|
1469
1469
|
"@devicefarmer/adbkit": "2.11.3",
|
|
1470
1470
|
"@sitespeed.io/chromedriver": "100.0.4896-20",
|
|
1471
|
-
"@sitespeed.io/edgedriver": "
|
|
1471
|
+
"@sitespeed.io/edgedriver": "100.0.1185-29",
|
|
1472
1472
|
"@sitespeed.io/geckodriver": "0.30.0",
|
|
1473
1473
|
"@sitespeed.io/throttle": "3.0.0",
|
|
1474
1474
|
"@sitespeed.io/tracium": "0.3.3",
|
|
@@ -8179,9 +8179,9 @@
|
|
|
8179
8179
|
}
|
|
8180
8180
|
},
|
|
8181
8181
|
"@sitespeed.io/edgedriver": {
|
|
8182
|
-
"version": "
|
|
8183
|
-
"resolved": "https://registry.npmjs.org/@sitespeed.io/edgedriver/-/edgedriver-
|
|
8184
|
-
"integrity": "sha512-
|
|
8182
|
+
"version": "100.0.1185-29",
|
|
8183
|
+
"resolved": "https://registry.npmjs.org/@sitespeed.io/edgedriver/-/edgedriver-100.0.1185-29.tgz",
|
|
8184
|
+
"integrity": "sha512-vqOVE14qTgINA9hWDhVl4M7pKwMnP71FUofaIaHMx2H2x/VHhlJ/b4EqfIxSYghoFs/vZYDmMwawiQoNSAnPJg==",
|
|
8185
8185
|
"requires": {
|
|
8186
8186
|
"node-downloader-helper": "1.0.18",
|
|
8187
8187
|
"node-stream-zip": "1.15.0"
|
|
@@ -8616,14 +8616,14 @@
|
|
|
8616
8616
|
}
|
|
8617
8617
|
},
|
|
8618
8618
|
"browsertime": {
|
|
8619
|
-
"version": "
|
|
8620
|
-
"resolved": "https://registry.npmjs.org/browsertime/-/browsertime-
|
|
8621
|
-
"integrity": "sha512-
|
|
8619
|
+
"version": "16.0.1",
|
|
8620
|
+
"resolved": "https://registry.npmjs.org/browsertime/-/browsertime-16.0.1.tgz",
|
|
8621
|
+
"integrity": "sha512-Tj4o5m9PnXV2RHi0LbHnErbf3pIXmL+n+LNF1fcNqcmYjxJCuQJgSs+LyESuAjYRqiH+2zeGHOXWZDTYj66DEQ==",
|
|
8622
8622
|
"requires": {
|
|
8623
8623
|
"@cypress/xvfb": "1.2.4",
|
|
8624
8624
|
"@devicefarmer/adbkit": "2.11.3",
|
|
8625
8625
|
"@sitespeed.io/chromedriver": "100.0.4896-20",
|
|
8626
|
-
"@sitespeed.io/edgedriver": "
|
|
8626
|
+
"@sitespeed.io/edgedriver": "100.0.1185-29",
|
|
8627
8627
|
"@sitespeed.io/geckodriver": "0.30.0",
|
|
8628
8628
|
"@sitespeed.io/throttle": "3.0.0",
|
|
8629
8629
|
"@sitespeed.io/tracium": "0.3.3",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"sitespeed.io": "./bin/sitespeed.js",
|
|
5
5
|
"sitespeed.io-wpr": "./bin/browsertimeWebPageReplay.js"
|
|
6
6
|
},
|
|
7
|
-
"version": "
|
|
7
|
+
"version": "24.0.0",
|
|
8
8
|
"description": "Analyze the web performance of your site",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"performance",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@tgwf/co2": "0.8.0",
|
|
76
76
|
"aws-sdk": "2.882.0",
|
|
77
77
|
"axe-core": "4.4.1",
|
|
78
|
-
"browsertime": "
|
|
78
|
+
"browsertime": "16.0.1",
|
|
79
79
|
"coach-core": "7.1.0",
|
|
80
80
|
"cli-color": "2.0.0",
|
|
81
81
|
"concurrent-queue": "7.0.2",
|