Skip to content

Commit

Permalink
Merge branch 'main' into remove-webpagetest
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Dec 29, 2023
2 parents 8e1d651 + d8e8586 commit 0e8aa77
Show file tree
Hide file tree
Showing 16 changed files with 126 additions and 70 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/windowsFull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Example to run sitespeed.io on Windows
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install sitespeed.io
run: npm install sitespeed.io -g
shell: bash
- name: Install dependencies
run: |
choco install ffmpeg
choco outdated
choco install python
choco install googlechrome
python -m pip install --upgrade --user pip
python -m pip install --upgrade --user setuptools
python -m pip install --user pyssim OpenCV-Python Numpy scipy
python -m pip --version
python -m pip show Pillow
python -m pip show pyssim
shell: cmd
- name: Example running test on Windows
run: sitespeed.io -n 1 --video --visualMetrics --viewPort 1024x768 https://www.sitespeed.io/
shell: bash
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG - sitespeed.io (we use [semantic versioning](https://semver.org))

## 31.0.1 - 2023-12-28
### Fixed
* Hopefully removing "rsd" metrics in InfluxDB see [#4039](https://github.com/sitespeedio/sitespeed.io/pull/4039).
* Fix showing sustainable metrics in pages page [#4042](https://github.com/sitespeedio/sitespeed.io/pull/4042).

## 31.0.0 - 2023-12-22
### Breaking
* Updated to [Browsertime 20](https://github.com/sitespeedio/browsertime/releases/tag/v20.0.0). The new version of Browsertime renames `--userTimingWhitelist` to `--userTimingAllowList` so if you use that functionality you need to change the name before you upgrade!
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/version/sitespeed.io.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
31.0.0
31.0.1
5 changes: 2 additions & 3 deletions docs/documentation/sitespeed.io/bug-report/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,13 @@ If you make your issue reproducible, the issue is the cream of the crop and will

## How we prioritise bugs

When we groom issues we will add a tag with the prioritization. We have three prio tags: **prio:1**, **prio:3** and **prio:5**.

If a issue is bug that breaks functionality for many users or is a feature request that will help many users and its something we can implement, we gonna give it **prio:1**. If the issue is a bug that we plan to fix, it will have **prio:3**. If your bug/issue gets **prio:5** we maybe will fix it sometimes in the future. Also scripting issues related to how you use scripting on your site always gets **prio:5** but we will try to help you the best we can.
If a issue is bug that breaks functionality for many users and you make a *reproducable* test case/show us exactly how you run, we will try to fix that bug.

If you do not agree with our prioritization you can:
* Explain the issue better and make sure we can reproduce your issue
* Do the PR yourself. We can help you test and verify it.
* Support us at [Open Collective](https://opencollective.com/sitespeedio). We can not promise we will fix your issue but it will increase the chance of getting it fixed.
s
## How to make sure we try fix the bug as soon as possible

Here's dos and don'ts if you want your bug fixed:
Expand Down
2 changes: 1 addition & 1 deletion docs/documentation/sitespeed.io/configuration/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Grafana
--grafana.host The Grafana host used when sending annotations.
--grafana.port The Grafana port used when sending annotations to Grafana. [default: 80]
--grafana.auth The Grafana auth/bearer value used when sending annotations to Grafana. If you do not set Bearer/Auth, Bearer is automatically set. See http://docs.grafana.org/http_api/auth/#authentication-api
--grafana.annotationTitle
--grafana.annotationTitle Add a title to the annotation sent for a run.
--grafana.annotationMessage Add an extra message that will be attached to the annotation sent for a run. The message is attached after the default message and can contain HTML.
--grafana.annotationTag Add a extra tag to the annotation sent for a run. Repeat the --grafana.annotationTag option for multiple tags. Make sure they do not collide with the other tags.
--grafana.annotationScreenshot Include screenshot (from Browsertime/WebPageTest) in the annotation. You need to specify a --resultBaseURL for this to work. [boolean] [default: false]
Expand Down
2 changes: 1 addition & 1 deletion docs/documentation/sitespeed.io/configure-metrics/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ docker run --rm -v "$(pwd):/sitespeed.io" sitespeedio/sitespeed.io:{% include ve


## Configure/filter metrics
You can add/change/remove filters with **\-\-metrics.filter**.
You can add/change/remove filters with **\-\-metrics.filter**. We use yargs to pass on parameters and complicated parameters like metrics.filter works best if you use a configuration json file.

### Add a metric
If you want to add metrics, start by looking at the generated metrics file, so you can see what you would send.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ docker run -v ${WORKSPACE}:/sitespeed.io sitespeedio/sitespeed.io --outputFolder
The HTML result pages runs JavaScript, so you need to change the [Jenkins Content Security Policy](https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy) for them to work with the plugin.
When you start Jenkins make sure to set the environment variable <code>-Dhudson.model.DirectoryBrowserSupport.CSP="sandbox allow-scripts; style-src 'unsafe-inline' *;script-src 'unsafe-inline' *;"</code>.
When you start Jenkins make sure to set the environment variable <code>-Dhudson.model.DirectoryBrowserSupport.CSP="default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' 'unsafe-inline' data:;"</code>.
* If you want to break your build, you should generate a JUnit XML and use the built-in post task *Publish JUnit test result report*. Make sure to make the budget file available inside the Docker container. In this example we have it inside the Jenkins workspace.
Expand Down
2 changes: 1 addition & 1 deletion docs/documentation/sitespeed.io/installation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ sitespeed.io -n 5 -b edge https://www.sitespeed.io --video --visualMetrics --xvf

### Windows

Checkout [our GitHub action running in Windows](https://github.com/sitespeedio/browsertime/blob/main/.github/workflows/windows.yml) to see how to install the dependencies needed.
Checkout [our GitHub action running in Windows](https://github.com/sitespeedio/sitespeed.io/blob/main/.github/workflows/windowsFull.yml) to see how to install the dependencies needed.

If you run on Windows you can run tests on Firefox, Chrome and Edge.

Expand Down
35 changes: 19 additions & 16 deletions docs/feed/atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>sitespeed.io-release-feed</id>
<title>sitespeed.io release feed</title>
<updated>2023-12-22T00:00:00.000Z</updated>
<updated>2023-12-28T00:00:00.000Z</updated>
<generator>https://github.com/jpmonette/feed</generator>
<author>
<name>Peter Hedenskog</name>
Expand All @@ -15,6 +15,24 @@
<logo>https://www.sitespeed.io/img/logos/sitespeed.io.png</logo>
<icon>http://www.sitespeed.io/favicon.ico</icon>
<rights>All rights reserved 2022, Peter Hedenskog and team</rights>
<entry>
<title type="html"><![CDATA[sitespeed.io 31.0.1]]></title>
<id>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#31.0.1</id>
<link href="https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#31.0.1"/>
<updated>2023-12-28T00:00:00.000Z</updated>
<summary type="html"><![CDATA[<h3>Fixed</h3>
<ul>
<li>Hopefully removing &quot;rsd&quot; metrics in InfluxDB see <a href="https://github.com/sitespeedio/sitespeed.io/pull/4039">#4039</a>.</li>
</ul>
<ul>
<li>Fix showing sustainable metrics in pages page <a href="https://github.com/sitespeedio/sitespeed.io/pull/4042">#4042</a>.</li>
</ul>
]]></summary>
<author>
<name>Sitespeed.io</name>
<uri>https://www.sitespeed.io</uri>
</author>
</entry>
<entry>
<title type="html"><![CDATA[sitespeed.io 31.0.0]]></title>
<id>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#31.0.0</id>
Expand Down Expand Up @@ -244,21 +262,6 @@
<ul>
<li>The new compare plugin can now run without an id. The id will then be generated from the URL. If you don&#39;t give it an id, yoiu can only compare pages with the exact same URL <a href="https://github.com/sitespeedio/sitespeed.io/pull/4013">#4013</a>.</li>
</ul>
]]></summary>
<author>
<name>Sitespeed.io</name>
<uri>https://www.sitespeed.io</uri>
</author>
</entry>
<entry>
<title type="html"><![CDATA[sitespeed.io 30.4.1]]></title>
<id>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#30.4.1</id>
<link href="https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#30.4.1"/>
<updated>2023-11-28T00:00:00.000Z</updated>
<summary type="html"><![CDATA[<h3>Fixed</h3>
<ul>
<li>Fix for Firefox when generating the result HTML. It was broken since we where missing CPU data.</li>
</ul>
]]></summary>
<author>
<name>Sitespeed.io</name>
Expand Down
29 changes: 16 additions & 13 deletions docs/feed/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>sitespeed.io release feed</title>
<link>https://www.sitespeed.io</link>
<description>New releases and changelog feed of sitespeed.io</description>
<lastBuildDate>Fri, 22 Dec 2023 00:00:00 GMT</lastBuildDate>
<lastBuildDate>Thu, 28 Dec 2023 00:00:00 GMT</lastBuildDate>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<generator>https://github.com/jpmonette/feed</generator>
<language>en</language>
Expand All @@ -15,6 +15,21 @@
</image>
<copyright>All rights reserved 2022, Peter Hedenskog and team</copyright>
<atom:link href="https://www.sitespeed.io/feed/rss.xml" rel="self" type="application/rss+xml"/>
<item>
<title><![CDATA[sitespeed.io 31.0.1]]></title>
<link>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#31.0.1</link>
<guid>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#31.0.1</guid>
<pubDate>Thu, 28 Dec 2023 00:00:00 GMT</pubDate>
<description><![CDATA[<h3>Fixed</h3>
<ul>
<li>Hopefully removing &quot;rsd&quot; metrics in InfluxDB see <a href="https://github.com/sitespeedio/sitespeed.io/pull/4039">#4039</a>.</li>
</ul>
<ul>
<li>Fix showing sustainable metrics in pages page <a href="https://github.com/sitespeedio/sitespeed.io/pull/4042">#4042</a>.</li>
</ul>
]]></description>
<enclosure url="https://www.sitespeed.io/img/logos/sitespeed.io.png" length="0" type="image/png"/>
</item>
<item>
<title><![CDATA[sitespeed.io 31.0.0]]></title>
<link>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#31.0.0</link>
Expand Down Expand Up @@ -208,18 +223,6 @@
<ul>
<li>The new compare plugin can now run without an id. The id will then be generated from the URL. If you don&#39;t give it an id, yoiu can only compare pages with the exact same URL <a href="https://github.com/sitespeedio/sitespeed.io/pull/4013">#4013</a>.</li>
</ul>
]]></description>
<enclosure url="https://www.sitespeed.io/img/logos/sitespeed.io.png" length="0" type="image/png"/>
</item>
<item>
<title><![CDATA[sitespeed.io 30.4.1]]></title>
<link>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#30.4.1</link>
<guid>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#30.4.1</guid>
<pubDate>Tue, 28 Nov 2023 00:00:00 GMT</pubDate>
<description><![CDATA[<h3>Fixed</h3>
<ul>
<li>Fix for Firefox when generating the result HTML. It was broken since we where missing CPU data.</li>
</ul>
]]></description>
<enclosure url="https://www.sitespeed.io/img/logos/sitespeed.io.png" length="0" type="image/png"/>
</item>
Expand Down
35 changes: 19 additions & 16 deletions docs/feed/sitespeed.io.atom
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>sitespeed.io-release-feed</id>
<title>sitespeed.io release feed</title>
<updated>2023-12-22T05:08:07.023Z</updated>
<updated>2023-12-28T15:51:22.965Z</updated>
<generator>https://github.com/jpmonette/feed</generator>
<author>
<name>Peter Hedenskog</name>
Expand All @@ -16,6 +16,24 @@
<icon>http://www.sitespeed.io/favicon.ico</icon>
<rights>All rights reserved 2022, Peter Hedenskog and team</rights>
<category term="Web Performance"/>
<entry>
<title type="html"><![CDATA[sitespeed.io 31.0.1]]></title>
<id>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#31.0.1</id>
<link href="https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#31.0.1"/>
<updated>2023-12-28T00:00:00.000Z</updated>
<summary type="html"><![CDATA[<h3>Fixed</h3>
<ul>
<li>Hopefully removing &quot;rsd&quot; metrics in InfluxDB see <a href="https://github.com/sitespeedio/sitespeed.io/pull/4039">#4039</a>.</li>
</ul>
<ul>
<li>Fix showing sustainable metrics in pages page <a href="https://github.com/sitespeedio/sitespeed.io/pull/4042">#4042</a>.</li>
</ul>
]]></summary>
<author>
<name>Sitespeed.io</name>
<uri>https://www.sitespeed.io</uri>
</author>
</entry>
<entry>
<title type="html"><![CDATA[sitespeed.io 31.0.0]]></title>
<id>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#31.0.0</id>
Expand Down Expand Up @@ -168,21 +186,6 @@
<ul>
<li>The new compare plugin can now run without an id. The id will then be generated from the URL. If you don&#39;t give it an id, yoiu can only compare pages with the exact same URL <a href="https://github.com/sitespeedio/sitespeed.io/pull/4013">#4013</a>.</li>
</ul>
]]></summary>
<author>
<name>Sitespeed.io</name>
<uri>https://www.sitespeed.io</uri>
</author>
</entry>
<entry>
<title type="html"><![CDATA[sitespeed.io 30.4.1]]></title>
<id>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#30.4.1</id>
<link href="https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#30.4.1"/>
<updated>2023-11-28T00:00:00.000Z</updated>
<summary type="html"><![CDATA[<h3>Fixed</h3>
<ul>
<li>Fix for Firefox when generating the result HTML. It was broken since we where missing CPU data.</li>
</ul>
]]></summary>
<author>
<name>Sitespeed.io</name>
Expand Down
29 changes: 16 additions & 13 deletions docs/feed/sitespeed.io.rss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>sitespeed.io release feed</title>
<link>https://www.sitespeed.io</link>
<description>New releases and changelog feed of sitespeed.io</description>
<lastBuildDate>Fri, 22 Dec 2023 05:08:07 GMT</lastBuildDate>
<lastBuildDate>Thu, 28 Dec 2023 15:51:22 GMT</lastBuildDate>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<generator>https://github.com/jpmonette/feed</generator>
<language>en</language>
Expand All @@ -16,6 +16,21 @@
<copyright>All rights reserved 2022, Peter Hedenskog and team</copyright>
<category>Web Performance</category>
<atom:link href="https://www.sitespeed.io/feed/rss.xml" rel="self" type="application/rss+xml"/>
<item>
<title><![CDATA[sitespeed.io 31.0.1]]></title>
<link>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#31.0.1</link>
<guid>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#31.0.1</guid>
<pubDate>Thu, 28 Dec 2023 00:00:00 GMT</pubDate>
<description><![CDATA[<h3>Fixed</h3>
<ul>
<li>Hopefully removing &quot;rsd&quot; metrics in InfluxDB see <a href="https://github.com/sitespeedio/sitespeed.io/pull/4039">#4039</a>.</li>
</ul>
<ul>
<li>Fix showing sustainable metrics in pages page <a href="https://github.com/sitespeedio/sitespeed.io/pull/4042">#4042</a>.</li>
</ul>
]]></description>
<enclosure url="https://www.sitespeed.io/img/logos/sitespeed.io.png" length="0" type="image/png"/>
</item>
<item>
<title><![CDATA[sitespeed.io 31.0.0]]></title>
<link>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#31.0.0</link>
Expand Down Expand Up @@ -144,18 +159,6 @@
<ul>
<li>The new compare plugin can now run without an id. The id will then be generated from the URL. If you don&#39;t give it an id, yoiu can only compare pages with the exact same URL <a href="https://github.com/sitespeedio/sitespeed.io/pull/4013">#4013</a>.</li>
</ul>
]]></description>
<enclosure url="https://www.sitespeed.io/img/logos/sitespeed.io.png" length="0" type="image/png"/>
</item>
<item>
<title><![CDATA[sitespeed.io 30.4.1]]></title>
<link>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#30.4.1</link>
<guid>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#30.4.1</guid>
<pubDate>Tue, 28 Nov 2023 00:00:00 GMT</pubDate>
<description><![CDATA[<h3>Fixed</h3>
<ul>
<li>Fix for Firefox when generating the result HTML. It was broken since we where missing CPU data.</li>
</ul>
]]></description>
<enclosure url="https://www.sitespeed.io/img/logos/sitespeed.io.png" length="0" type="image/png"/>
</item>
Expand Down
3 changes: 2 additions & 1 deletion lib/plugins/influxdb/data-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ function getFieldAndSeriesName(key) {
'p90',
'p99',
'mdev',
'stddev'
'stddev',
'rsd'
];
const keyArray = key.split('.');
const end = keyArray.pop();
Expand Down
4 changes: 4 additions & 0 deletions lib/support/friendlynames.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,21 +504,25 @@ export default {
sustainable: {
sustainable: {
totalCO2: {
path: 'totalCO2.median',
summaryPath: 'totalCO2',
name: 'Total CO2',
format: co2.format
},
co2PerPageView: {
path: 'co2PerPageView.median',
summaryPath: 'co2PerPageView',
name: 'CO2 per page view',
format: co2.format
},
co2FirstParty: {
path: 'co2FirstParty.median',
summaryPath: 'co2FirstParty',
name: 'CO2 per first parties',
format: co2.format
},
co2ThirdParty: {
path: 'co2ThirdParty.median',
summaryPath: 'co2ThirdParty',
name: 'CO2 per third parties',
format: co2.format
Expand Down
4 changes: 2 additions & 2 deletions npm-shrinkwrap.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"sitespeed.io": "./bin/sitespeed.js",
"sitespeed.io-wpr": "./bin/browsertimeWebPageReplay.js"
},
"version": "31.0.0",
"version": "31.0.1",
"description": "sitespeed.io is an open-source tool for comprehensive web performance analysis, enabling you to test, monitor, and optimize your website’s speed using real browsers in various environments.",
"keywords": [
"performance",
Expand Down

0 comments on commit 0e8aa77

Please sign in to comment.