Skip to content

Enable Speedometer to use an external config.json file #515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

flashdesignory
Copy link
Contributor

@flashdesignory flashdesignory commented Jun 2, 2025

This pr sets up Speedometer to use an optional config url param, to assign different workloads / tests to use with the benchmark.

The initial config.json enables the news site next workload, which is currently the only workload that opted into the postMessage api for it's experimental version. The test name in the config is optional, if the default tests are targeted.

The new `data-provider' checks an allowed list of external urls that the workloads can be pulled in from. Currently this just houses the netlify preview folder.

Other changes:
the suites and tags are not global anymore and the data-provider is the source of truth. This is to ensure that the data-provider can process the suites / tests, prior to running speedometer in any mode.

news-site dist folder changed, since I had to run the build again, after updating shared files from the benchmark.

Preview with config assigned:
https://deploy-preview-515--webkit-speedometer-preview.netlify.app/?config=https://deploy-preview-515--webkit-speedometer-preview.netlify.app/resources/config.json

Copy link

netlify bot commented Jun 2, 2025

Deploy Preview for webkit-speedometer-preview ready!

Name Link
🔨 Latest commit 6f08e6f
🔍 Latest deploy log https://app.netlify.com/projects/webkit-speedometer-preview/deploys/686087b344a1c0000861ff09
😎 Deploy Preview https://deploy-preview-515--webkit-speedometer-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@julienw julienw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't test fully locally and I think I don't get the full picture yet, but here is a first set of comments.

@flashdesignory flashdesignory requested a review from julienw June 29, 2025 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants