Commit Graph

128 Commits

Author SHA1 Message Date
Peter Hedenskog dec8a89c82
Set the filename as HTML name instead of full path for scripting (#4477) 2025-03-11 09:06:32 +01:00
Peter Hedenskog 8af2110858
Make sure we try/catch everything and log the root cause (#4424) 2025-01-31 17:23:37 +01:00
Peter Hedenskog 95971402ae
Replace lodash.pullAll and lodash.union (#4386) 2025-01-07 18:54:46 +01:00
Peter Hedenskog b9456eef6e
Replace intel with sitespeed.io/log (#4381)
* Replace intel with sitespeed.io/log
2025-01-07 08:53:48 +01:00
Peter Hedenskog 3741366d45
Upgrade to eslint/unicorn 54 (#4213) 2024-07-08 08:19:41 +02:00
Peter Hedenskog e9022e913a
Upgrade to Eslint 9.6 (#4211) 2024-07-08 06:38:46 +02:00
Peter Hedenskog d5eff7794c
Include a timestamp in the result json (#4147) 2024-05-03 15:39:25 +02:00
Peter Hedenskog fddb73e382
Add HAR file to the result (#3871) 2023-06-07 12:14:05 +02:00
Peter Hedenskog 03e9c83264
Add experimental support for passing on BT data. (#3846) 2023-05-17 11:56:49 +02:00
Peter Hedenskog 97c9a7ff5d
api: Fix so we can handle scripting in the API (#3840)
* handle multi in api

* fix page summary URL
2023-05-10 21:07:59 +02:00
soulgalore 6c58002130 More robust way to read package.json 2023-02-25 12:53:27 +01:00
Peter Hedenskog 631271126f
New plugins structure and esmodule (#3769)
* New plugins structure and esmodule
2023-02-25 11:16:58 +01:00
Peter Hedenskog 4d528a7ae0
Fix the error introduced in "Include page summary URL in the result JSON " (#3525) 2021-12-23 09:47:43 +01:00
Peter Hedenskog 75f570404a
Include page summary URL (#3523) 2021-12-09 10:08:11 +01:00
Peter Hedenskog e452fb532d
Add option --open/-o to open the result in your default browser. (#3493)
https://github.com/sitespeedio/sitespeed.io/issues/3492
2021-10-29 08:42:52 +02:00
soulgalore 0713520e04 Pass on result URL 2021-05-03 19:15:48 +02:00
Peter Hedenskog ec29d8e401
S3/GCS need index.html for paths so use a direct link. (#3260) 2021-01-18 08:22:12 +01:00
Peter Hedenskog f2da17f92c
Budget should also collect errors. (#3181) 2020-11-03 13:35:10 +01:00
Peter Hedenskog eb20768e2f
Prepare for using options down to result storage (#3058) 2020-06-23 13:59:35 +02:00
soulgalore 440713350d lint 2020-03-16 19:52:48 +01:00
Peter Hedenskog da6f9f2383
Change order of remove/add plugins. (#2926)
This means that removes always runs last and that fixes the problem
in the plus1 container that automatically adds lighthouse/gpsi
and you cannot remove them.
2020-03-16 13:10:57 +01:00
Peter Hedenskog 68b1512cad
Use coach-core instead of webcoach directly (#2912)
* Use coach-core instead of webcoach directly

* use latest coach core
2020-03-11 13:01:36 +01:00
Peter Hedenskog e07ba6b8a8
Make it easy to use tcpdump. (#2862) 2020-02-06 08:24:18 +01:00
Peter Hedenskog 155fabfcbf
Log the options object the same way as Browsertime, just add --verbose (#2588) 2019-08-21 18:39:36 +02:00
Peter Hedenskog 08a3924ae7
Wait on all Promises on open/close #2433. (#2434) 2019-04-23 19:32:52 +02:00
Peter Hedenskog 8bd8c67033
use official dayjs utc #2365 (#2370) 2019-03-10 21:12:22 +01:00
Peter Hedenskog b62d93194a
Use Browsertime 4.0 (alpha) (#2236)
* Use Browsertime 4.0 (alpha)

With support for testing multiple pages.
2018-12-30 15:57:55 +01:00
Peter Hedenskog 471458b4fa
use extended dayjs until dayjs supports utc (#2233) 2018-12-19 21:06:03 +01:00
Peter Hedenskog 7cc5562204
Remove Bluebird promises and use await/sync where we can. (#2205) 2018-11-20 09:14:05 +01:00
Peter Hedenskog 8703133374
Use dayjs instead of moment (#2200) 2018-11-05 06:12:46 +01:00
Peter Hedenskog 964a8e9212
Make it easy for people that use # in the URL and want to keep it. (#2142)
* Make it easy for people that use # in the URL and want to keep it.

We have been old and conservative in how we use # when creating URLs:
From the beginning (5+ years ago) we always left out # from URLs when
we decided if a URL is unique or not. Now you can choose yourself
with --useHash (is there a better name out there?).
2018-10-07 21:24:37 +02:00
soulgalore e4bb762e76 log the options readable 2018-08-09 07:26:06 +02:00
soulgalore 68d8877840 log options in verbose 2018-02-11 08:46:55 +01:00
Peter Hedenskog c543e7fe93
pass on raw log (intel) and a easy way to make stats (#1800) 2017-11-18 22:12:34 +01:00
Tobias Lidskog 56bfc48bac Simplify storagemanager (#1799)
* Remove unused gzip parameter for writing html.

* Simplify storagemanager.

* Simplify how promises are handled, and directories created.
* Move out gzip handling to the plugins that use it, so storagemanager just writes strings and buffers unmodified.
* Make argument order consistent for write methods.
2017-11-18 21:52:53 +01:00
Tobias Lidskog dce7ed094a
Pass additional BT config from plugins via message (#1766)
Push knowledge about config dependencies between plugins out to the plugins themselves. This reduces centralized knowledge.

This is not a way to specify dependencies on plugins that have to be loaded. We’ll see when (and if) we’ll tackle that.
2017-10-29 15:35:29 +01:00
Tobias Lidskog 5f79721548
Remove duplicated config logic. (#1763)
Default configuration for plugins are handled within the plugins themselves. No need to duplicate this outside.
2017-10-29 14:23:57 +01:00
Peter Hedenskog a12e4016af Feed plugins with filterRegistry (#1761) 2017-10-29 10:41:06 +01:00
Tobias Lidskog d1b376e2ca
Split out code that’s never accessed from plugins. (#1762) 2017-10-29 09:54:22 +01:00
Peter Hedenskog e81be5d689
Feed plugins with messageMaker (#1760) 2017-10-29 09:22:27 +01:00
Peter Hedenskog 9d18533579
Remove hooks and use messages instead (#1758)
* remove hooks and use messages instead
* remove hooks

* fix the ifs

* send
2017-10-29 08:24:18 +01:00
Tobias Lidskog 10def76541 Extract variable for better readability. 2017-10-28 17:55:19 +02:00
Peter Hedenskog 800c42a127 Switch from hooks to messages (#1732)
* Switch from hooks to messages

This is the first step to get rid off hooks:
* Introduce two new messages: setup and final
* Logs a warning messages for all plugins that uses old hooks

The setup message will make it possible for plugins to pass
configuration to each other (send pugs to the HTML plugin,
send javascript (that collects metrics) to Browsertime and can
hopefully remove the post/preOpen hooks. The final message
replaces the postClose and final hook (or do we need more messages?).

Keep the hoosk deperecated through 6 and remove them in 7.0.

* lint

* more messages, let take of hooks later

* renaming

* rename summarize to sitespeedio.summarize
2017-10-28 16:28:50 +02:00
Tobias Lidskog 09dd984624 Better syntax for adding and removing plugins. (#1754) 2017-10-26 14:50:32 +02:00
Peter Hedenskog 5ba847882e Log the result URL #1744 (#1745) 2017-10-17 06:19:04 +02:00
Peter Hedenskog cadea2b305 Let every plugin collect the data it needs. (#1731)
Don't use global state to collect data for plugins.
2017-10-10 09:06:06 +02:00
Peter Hedenskog f0f0aef7b5 Add the screenshot to each attachment #1653 (#1658)
* add the screenshot to each attachement #1653
2017-08-20 12:54:04 +02:00
Tobias Lidskog 3debfec0b4 Format code using the Prettier formatter. (#1677) 2017-07-20 21:24:12 +02:00
Tobias Lidskog 29fbcaa2db Refactor result storage/url handling, and tweak S3 (#1552)
* Allow S3 upload even when using custom outputFolder.
* Add new s3.path option, to override the default storage path in the S3 bucket.
* Change the default storage path in the S3 bucket to no longer include the prefix 'sitespeed-result’.
* Remove broken/not useful progress load for S3 upload (was producing 100000+ log lines.
* Extract result url building into separate module that’s made available to plugins via context.resultUrls.
2017-03-28 15:12:30 +02:00
Peter Hedenskog 1e528f65fd set sitespeedio as root name of all loggers (#1545) 2017-03-23 12:21:11 +01:00