Skip to content
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

Run a sitespeed check for arbitrary url passed POST in to an endpoint. #1

Open
mrchrisadams opened this issue Mar 10, 2020 · 0 comments
Assignees

Comments

@mrchrisadams
Copy link
Member

We want to make it possible to run a sitespeed check as a service, but we want to make it scale to zero using as open and green a stack as possible.

To begin with, we're using google cloud run, because:

  • it works with containers which a v popular
  • runs on knative, meaning we're not locking ourselves too much into one company
  • it scales to zero
  • there's a bunch of decent instrumentation and billing already set up.

To begin with, greenspeed needs to run as a service where it will accept a POST with data sent along the lines of this handler.

https://cloud.google.com/run/docs/tutorials/pubsub#run_pubsub_handler-nodejs

If this is a valid url, we pass the url to sitespeed with the following parameters:

./bin/sitespeed.js https://PROVIDED_URL --headless -n 1 --sustainable.enable  --sustainable.co2PerDomain --sustainable.dirtiestResources  --sustainable.pageViews 1000000 --

### Acceptance criteria

We can close this issue when we have a HTTP service that:

  • accepts a url
  • checks that it's valid
  • runs sitespeed if valid
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

No branches or pull requests

2 participants