Skip to content

Commit

Permalink
Merge branch 'main' into userTimingAllowList
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Dec 27, 2024
2 parents 1cf8e61 + a512956 commit e274dd9
Show file tree
Hide file tree
Showing 24 changed files with 455 additions and 182 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
!LICENSE
!npm-shrinkwrap.json
!docker
!tools/postinstall.js
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# CHANGELOG - sitespeed.io (we use [semantic versioning](https://semver.org))

## 35.7.5 - 2024-12-23
### Fixed
* Update to faststat 0.0.7 [#4347](https://github.com/sitespeedio/sitespeed.io/pull/4347).
* Update dev dependencies [#4345](https://github.com/sitespeedio/sitespeed.io/pull/4345).
* Let analysisstorer know about webpagereplay so that correct information is displayed [#4349](https://github.com/sitespeedio/sitespeed.io/pull/4349).
* Pass on webpagereplay flag to browsertime [#4350](https://github.com/sitespeedio/sitespeed.io/pull/4350).
* Update to Browsertime 23.5.0 [#4351](https://github.com/sitespeedio/sitespeed.io/pull/4351)

## 35.7.4 - 2024-12-20
### Fixed
* Updated to Browsertime 23.4.5 that have a fix for visual metrics running videos from mobile [#4343](https://github.com/sitespeedio/sitespeed.io/pull/4343).
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ COPY docker/webpagereplay/wpr_key.pem /webpagereplay/certs/
COPY docker/webpagereplay/deterministic.js /webpagereplay/scripts/deterministic.js
COPY docker/webpagereplay/LICENSE /webpagereplay/


RUN sudo apt-get update && sudo apt-get install libnss3-tools python2 \
net-tools \
build-essential \
Expand All @@ -28,7 +27,8 @@ WORKDIR /usr/src/app

COPY package.json /usr/src/app/
COPY npm-shrinkwrap.json /usr/src/app/
RUN npm install --production && npm cache clean --force
COPY tools/postinstall.js /usr/src/app/tools/postinstall.js
RUN DOWNLOAD_URL2GREEN=true npm install --production && npm cache clean --force
COPY . /usr/src/app

COPY docker/scripts/start.sh /start.sh
Expand Down
14 changes: 8 additions & 6 deletions Dockerfile-slim
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ FROM node:20.9.0-bookworm-slim

ARG TARGETPLATFORM=linux/amd64

ENV SITESPEED_IO_BROWSERTIME__DOCKER true
ENV SITESPEED_IO_BROWSERTIME__VIDEO false
ENV SITESPEED_IO_BROWSERTIME__BROWSER firefox
ENV SITESPEED_IO_BROWSERTIME__VISUAL_METRICS false
ENV SITESPEED_IO_BROWSERTIME__HEADLESS true
ENV SITESPEED_IO_BROWSERTIME__DOCKER=true
ENV SITESPEED_IO_BROWSERTIME__VIDEO=false
ENV SITESPEED_IO_BROWSERTIME__BROWSER=firefox
ENV SITESPEED_IO_BROWSERTIME__VISUAL_METRICS=false
ENV SITESPEED_IO_BROWSERTIME__HEADLESS=true

ENV PATH="/usr/local/bin:${PATH}"

Expand All @@ -21,7 +21,9 @@ RUN echo "deb http://deb.debian.org/debian/ unstable main contrib non-free" >> /
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN CHROMEDRIVER_SKIP_DOWNLOAD=true EGDEDRIVER_SKIP_DOWNLOAD=true npm install --production && npm cache clean --force && npm uninstall npm -g
COPY tools/postinstall.js /usr/src/app/tools/postinstall.js
RUN CHROMEDRIVER_SKIP_DOWNLOAD=true EGDEDRIVER_SKIP_DOWNLOAD=true npm install --production && npm cache clean --force && npm uninstall npm npx -g

WORKDIR /usr/src/app
COPY docker/scripts/start-slim.sh /start.sh

Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/version/browsertime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
23.4.5
23.5.0
2 changes: 1 addition & 1 deletion docs/_includes/version/sitespeed.io.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
35.7.4
35.7.5
1 change: 1 addition & 0 deletions docs/documentation/browsertime/configuration/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ Options:
--preURL, --warmLoad A URL that will be accessed first by the browser before the URL that you wanna analyze. Use it to fill the browser cache.
--preURLDelay, --warmLoadDealy Delay between preURL and the URL you want to test (in milliseconds) [default: 1500]
--userTimingAllowList All userTimings are captured by default this option takes a regex that will allow which userTimings to capture in the results.
--userTimingBlockList All userTimings are captured by default this option takes a regex that will block some usertimings in the results.
--headless Run the browser in headless mode. Works for Firefox and Chrome. [boolean] [default: false]
--extension Path to a WebExtension to be installed in the browser. Note that --extension can be passed multiple times.
--cjs Load scripting files that ends with .js as common js. Default (false) loads files as esmodules. [boolean] [default: false]
Expand Down
8 changes: 7 additions & 1 deletion docs/documentation/onlinetest/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ twitterdescription:
{:toc}

## Introduction
The online test is the simplest way to deploy your own version of sitespeed.io. You can add tests through a web GUI or by using the sitespeed.io command line, which can pass the tests to your test server. This means that you can use your dedicated test machines both for monitoring and one off performance tests.
The online test is the simplest way to deploy your own version of sitespeed.io. You can add tests through a web GUI or by using the sitespeed.io command line, which pass the tests to your test server. This means that you can use your dedicated test machines both for monitoring and one off performance tests.

![Add your tests]({{site.baseurl}}/img/onlinestartscreen.png)
{: .img-thumbnail}

![Search]({{site.baseurl}}/img/onlinesearch.png)
{: .img-thumbnail}

This method is ideal for small, medium, and large companies and organizations that also wants a GUI for running performance tests.

Expand Down
10 changes: 10 additions & 0 deletions docs/documentation/sitespeed.io/docker/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ docker pull sitespeedio/sitespeed.io:X.Y.Z

Then change your start script (or where you start your container) to use the new version number.

You can also pin sitespeed.io to stable versions. Say for example that you want to pin your version to version 35. Then you can use the following version:

```bash
docker pull sitespeedio/sitespeed.io:35
```

Then when we continously release new 35 version, you can just run `docker pull sitespeedio/sitespeed.io:35` and you will get the latest released version of 35.



## Tags and version

In the real world you should always specify the exact version (tag) of the Docker container to make sure you use the same version for every run. If you use the latest tag you will download newer version of the container as they become available, meaning you can have major changes between test runs (version upgrades, dependencies updates, browser versions, etc). So you should always specify a tag after the container name(X.Y.Z). This is important for sitespeed.io/browsertime/Graphite/Grafana containers. It's important for all containers you use. Never use the *latest* tag!
Expand Down
97 changes: 62 additions & 35 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>2024-12-20T00:00:00.000Z</updated>
<updated>2024-12-23T00:00:00.000Z</updated>
<generator>https://github.com/jpmonette/feed</generator>
<author>
<name>Peter Hedenskog</name>
Expand All @@ -15,6 +15,67 @@
<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 35.7.5]]></title>
<id>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#35.7.5</id>
<link href="https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#35.7.5"/>
<updated>2024-12-23T00:00:00.000Z</updated>
<summary type="html"><![CDATA[<h3>Fixed</h3>
<ul>
<li>Update to faststat 0.0.7 <a href="https://github.com/sitespeedio/sitespeed.io/pull/4347">#4347</a>.</li>
</ul>
<ul>
<li>Update dev dependencies <a href="https://github.com/sitespeedio/sitespeed.io/pull/4345">#4345</a>.</li>
</ul>
<ul>
<li>Let analysisstorer know about webpagereplay so that correct information is displayed <a href="https://github.com/sitespeedio/sitespeed.io/pull/4349">#4349</a>.</li>
</ul>
<ul>
<li>Pass on webpagereplay flag to browsertime <a href="https://github.com/sitespeedio/sitespeed.io/pull/4350">#4350</a>.</li>
</ul>
<ul>
<li>Update to Browsertime 23.5.0 <a href="https://github.com/sitespeedio/sitespeed.io/pull/4351">#4351</a></li>
</ul>
]]></summary>
<author>
<name>Sitespeed.io</name>
<uri>https://www.sitespeed.io</uri>
</author>
</entry>
<entry>
<title type="html"><![CDATA[browsertime 23.5.0]]></title>
<id>https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#23.5.0</id>
<link href="https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#23.5.0"/>
<updated>2024-12-23T00:00:00.000Z</updated>
<summary type="html"><![CDATA[<h3>Added</h3>
<ul>
<li>Added <code>--userTimingBlockList</code> <a href="https://github.com/sitespeedio/browsertime/pull/2227">#2227</a>.</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Updated to webdriver 4.28 <a href="https://github.com/sitespeedio/browsertime/pull/2226">#2226</a>.</li>
</ul>
<ul>
<li>Updated dev dependencies <a href="https://github.com/sitespeedio/browsertime/pull/2228">#2228</a>.</li>
</ul>
<ul>
<li>Fix so the check for gnirehtet always use --android.gnirehtet to fix problens setting it in sitespeed.io <a href="https://github.com/sitespeedio/browsertime/pull/2229">#2229</a>.</li>
</ul>
<ul>
<li>Update to execa 9.5.2 <a href="https://github.com/sitespeedio/browsertime/pull/2231">#2231</a>.</li>
</ul>
<ul>
<li>Update to adbkit 3.3.8 <a href="https://github.com/sitespeedio/browsertime/pull/2232">#2232</a>.</li>
</ul>
<ul>
<li>Fix so you cannot use gnirehtet with webpagereplay <a href="https://github.com/sitespeedio/browsertime/pull/2230">#2230</a>.</li>
</ul>
]]></summary>
<author>
<name>Sitespeed.io</name>
<uri>https://www.sitespeed.io</uri>
</author>
</entry>
<entry>
<title type="html"><![CDATA[sitespeed.io 35.7.4]]></title>
<id>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#35.7.4</id>
Expand Down Expand Up @@ -368,25 +429,6 @@
<ul>
<li>Disable security warning in Firefox 132 <a href="https://github.com/sitespeedio/browsertime/pull/2208">#2208</a> that fixes <a href="https://github.com/sitespeedio/browsertime/issues/2207">#2207</a>.</li>
</ul>
]]></summary>
<author>
<name>Sitespeed.io</name>
<uri>https://www.sitespeed.io</uri>
</author>
</entry>
<entry>
<title type="html"><![CDATA[browsertime 23.3.0]]></title>
<id>https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#23.3.0</id>
<link href="https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#23.3.0"/>
<updated>2024-11-12T00:00:00.000Z</updated>
<summary type="html"><![CDATA[<h3>Added</h3>
<ul>
<li>Updated to Chrome and Chromedriver 131 <a href="https://github.com/sitespeedio/browsertime/pull/2203">#2209</a></li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Updated to ff-test-bidi-har-export to 0.0.17 <a href="https://github.com/sitespeedio/browsertime/pull/2204">#2204</a></li>
</ul>
]]></summary>
<author>
<name>Sitespeed.io</name>
Expand Down Expand Up @@ -417,21 +459,6 @@
<ul>
<li>It seems to be a <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1930110">problem</a> with Firefox 132 inside of Docker. Lets return to 131 for some time <a href="https://github.com/sitespeedio/sitespeed.io/pull/4313">#4313</a>.</li>
</ul>
]]></summary>
<author>
<name>Sitespeed.io</name>
<uri>https://www.sitespeed.io</uri>
</author>
</entry>
<entry>
<title type="html"><![CDATA[sitespeed.io 35.4.0]]></title>
<id>https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#35.4.0</id>
<link href="https://github.com/sitespeedio/sitespeed.io/blob/main/CHANGELOG.md#35.4.0"/>
<updated>2024-11-08T00:00:00.000Z</updated>
<summary type="html"><![CDATA[<h3>Added</h3>
<ul>
<li>Firefox 132 <a href="https://github.com/sitespeedio/sitespeed.io/pull/4309">#4309</a>.</li>
</ul>
]]></summary>
<author>
<name>Sitespeed.io</name>
Expand Down
55 changes: 35 additions & 20 deletions docs/feed/browsertime.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>browsertime-release-feed</id>
<title>browsertime release feed</title>
<updated>2024-12-20T08:09:01.350Z</updated>
<updated>2024-12-23T21:17:07.404Z</updated>
<generator>https://github.com/jpmonette/feed</generator>
<author>
<name>Peter Hedenskog</name>
Expand All @@ -16,6 +16,40 @@
<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[browsertime 23.5.0]]></title>
<id>https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#23.5.0</id>
<link href="https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#23.5.0"/>
<updated>2024-12-23T00:00:00.000Z</updated>
<summary type="html"><![CDATA[<h3>Added</h3>
<ul>
<li>Added <code>--userTimingBlockList</code> <a href="https://github.com/sitespeedio/browsertime/pull/2227">#2227</a>.</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Updated to webdriver 4.28 <a href="https://github.com/sitespeedio/browsertime/pull/2226">#2226</a>.</li>
</ul>
<ul>
<li>Updated dev dependencies <a href="https://github.com/sitespeedio/browsertime/pull/2228">#2228</a>.</li>
</ul>
<ul>
<li>Fix so the check for gnirehtet always use --android.gnirehtet to fix problens setting it in sitespeed.io <a href="https://github.com/sitespeedio/browsertime/pull/2229">#2229</a>.</li>
</ul>
<ul>
<li>Update to execa 9.5.2 <a href="https://github.com/sitespeedio/browsertime/pull/2231">#2231</a>.</li>
</ul>
<ul>
<li>Update to adbkit 3.3.8 <a href="https://github.com/sitespeedio/browsertime/pull/2232">#2232</a>.</li>
</ul>
<ul>
<li>Fix so you cannot use gnirehtet with webpagereplay <a href="https://github.com/sitespeedio/browsertime/pull/2230">#2230</a>.</li>
</ul>
]]></summary>
<author>
<name>Sitespeed.io</name>
<uri>https://www.sitespeed.io</uri>
</author>
</entry>
<entry>
<title type="html"><![CDATA[browsertime 23.4.5]]></title>
<id>https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#23.4.5</id>
Expand Down Expand Up @@ -158,25 +192,6 @@
<ul>
<li>Disable security warning in Firefox 132 <a href="https://github.com/sitespeedio/browsertime/pull/2208">#2208</a> that fixes <a href="https://github.com/sitespeedio/browsertime/issues/2207">#2207</a>.</li>
</ul>
]]></summary>
<author>
<name>Sitespeed.io</name>
<uri>https://www.sitespeed.io</uri>
</author>
</entry>
<entry>
<title type="html"><![CDATA[browsertime 23.3.0]]></title>
<id>https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#23.3.0</id>
<link href="https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#23.3.0"/>
<updated>2024-11-12T00:00:00.000Z</updated>
<summary type="html"><![CDATA[<h3>Added</h3>
<ul>
<li>Updated to Chrome and Chromedriver 131 <a href="https://github.com/sitespeedio/browsertime/pull/2203">#2209</a></li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Updated to ff-test-bidi-har-export to 0.0.17 <a href="https://github.com/sitespeedio/browsertime/pull/2204">#2204</a></li>
</ul>
]]></summary>
<author>
<name>Sitespeed.io</name>
Expand Down
49 changes: 32 additions & 17 deletions docs/feed/browsertime.rss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>browsertime release feed</title>
<link>https://www.sitespeed.io</link>
<description>New releases and changelog feed of browsertime</description>
<lastBuildDate>Fri, 20 Dec 2024 08:09:01 GMT</lastBuildDate>
<lastBuildDate>Mon, 23 Dec 2024 21:17:07 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,37 @@
<copyright>All rights reserved 2022, Peter Hedenskog and team</copyright>
<category>Web Performance</category>
<atom:link href="https://www.sitespeed.io/feed/browsertime.rss" rel="self" type="application/rss+xml"/>
<item>
<title><![CDATA[browsertime 23.5.0]]></title>
<link>https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#23.5.0</link>
<guid>https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#23.5.0</guid>
<pubDate>Mon, 23 Dec 2024 00:00:00 GMT</pubDate>
<description><![CDATA[<h3>Added</h3>
<ul>
<li>Added <code>--userTimingBlockList</code> <a href="https://github.com/sitespeedio/browsertime/pull/2227">#2227</a>.</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Updated to webdriver 4.28 <a href="https://github.com/sitespeedio/browsertime/pull/2226">#2226</a>.</li>
</ul>
<ul>
<li>Updated dev dependencies <a href="https://github.com/sitespeedio/browsertime/pull/2228">#2228</a>.</li>
</ul>
<ul>
<li>Fix so the check for gnirehtet always use --android.gnirehtet to fix problens setting it in sitespeed.io <a href="https://github.com/sitespeedio/browsertime/pull/2229">#2229</a>.</li>
</ul>
<ul>
<li>Update to execa 9.5.2 <a href="https://github.com/sitespeedio/browsertime/pull/2231">#2231</a>.</li>
</ul>
<ul>
<li>Update to adbkit 3.3.8 <a href="https://github.com/sitespeedio/browsertime/pull/2232">#2232</a>.</li>
</ul>
<ul>
<li>Fix so you cannot use gnirehtet with webpagereplay <a href="https://github.com/sitespeedio/browsertime/pull/2230">#2230</a>.</li>
</ul>
]]></description>
<enclosure url="https://www.sitespeed.io/img/logos/browsertime.png" length="0" type="image/png"/>
</item>
<item>
<title><![CDATA[browsertime 23.4.5]]></title>
<link>https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#23.4.5</link>
Expand Down Expand Up @@ -134,22 +165,6 @@
<ul>
<li>Disable security warning in Firefox 132 <a href="https://github.com/sitespeedio/browsertime/pull/2208">#2208</a> that fixes <a href="https://github.com/sitespeedio/browsertime/issues/2207">#2207</a>.</li>
</ul>
]]></description>
<enclosure url="https://www.sitespeed.io/img/logos/browsertime.png" length="0" type="image/png"/>
</item>
<item>
<title><![CDATA[browsertime 23.3.0]]></title>
<link>https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#23.3.0</link>
<guid>https://github.com/sitespeedio/browsertime/blob/main/CHANGELOG.md#23.3.0</guid>
<pubDate>Tue, 12 Nov 2024 00:00:00 GMT</pubDate>
<description><![CDATA[<h3>Added</h3>
<ul>
<li>Updated to Chrome and Chromedriver 131 <a href="https://github.com/sitespeedio/browsertime/pull/2203">#2209</a></li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Updated to ff-test-bidi-har-export to 0.0.17 <a href="https://github.com/sitespeedio/browsertime/pull/2204">#2204</a></li>
</ul>
]]></description>
<enclosure url="https://www.sitespeed.io/img/logos/browsertime.png" length="0" type="image/png"/>
</item>
Expand Down
Loading

0 comments on commit e274dd9

Please sign in to comment.