Code Monkey home page Code Monkey logo

autowebperf's People

Contributors

adamread avatar antoinebisch avatar davidmaarek avatar dependabot[bot] avatar elisameyer avatar ellemit avatar gilbertococchi avatar jonchenn avatar ptim avatar stigkj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

autowebperf's Issues

NPM package

Hello everyone! First of all, thank you for creating this framework, you have done amazing work!

I was trying to use the framework with different gatherers and it looks great for me so I started thinking about deploying it on the production to make it running regularly.

Is this framework already exist on the NPM? It would be so great to be able to install it globally where I needed without cloning the repository itself.

I am happy to help and create PR if it makes sense.
@jonchenn

Error when running test after first install

Run completed for 1 tests with errors: [ [psi] Unable to assign json.lighthouseResult.audits["service-worker"].score to metrics: Cannot read properties of undefined (reading 'score') ] TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received an instance of Array at process.set [as exitCode] (node:internal/bootstrap/node:123:9) at exit (node:internal/process/per_thread:187:24) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { code: 'ERR_INVALID_ARG_TYPE' }

Sheets Connector TypeError: doc.useServiceAccountAuth is not a function

My last measurement using the sheets connector was on 2024-04-01

TypeError: doc.useServiceAccountAuth is not a function
    at SheetsConnector.getSheet (AutoWebPerf/src/connectors/sheets-connector.js:47:15)
    at SheetsConnector.getTestsSheet (AutoWebPerf/src/connectors/sheets-connector.js:56:32)
    at SheetsConnector.getTestList (AutoWebPerf/src/connectors/sheets-connector.js:236:53)
    at AutoWebPerf.run (AutoWebPerf/src/awp-core.js:315:38)
    at Object.begin (AutoWebPerf/src/cli.js:193:17)
    at Object.<anonymous> (AutoWebPerf/awp:8:7)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)

Apparently, it's now required to instantiate the auth separately.
https://stackoverflow.com/a/76981493

Problem to get lighthouse score "works-offline"

Hi,
When I run script I get some results but I have error
[psi] Unable to assign json.lighthouseResult.audits["works-offline"].score to metrics: Cannot read property 'score' of undefined
Has anyone have similar problem ?

PSI gatherer returns #NUM! when locale is not en-us (e.g. de-de)

When the locale set to "de-de" in the PSI gatherer, the following fields return #NUM! instead of values:

psi.metrics.lighthouse.Images
psi.metrics.lighthouse.Fonts
psi.metrics.lighthouse.Javascript
psi.metrics.lighthouse.ThirdParty
psi.metrics.lighthouse.HTML

Error upon running tests

While running the sample test, I've gotten error below:

[ec2-user@ AutoWebPerf]$ ./awp run url:https://www.thinkwithgoogle.com/ json:output/results.json
Run with 1 test(s)
Run completed for 1 tests with errors:
[
[psi] Unable to assign json.lighthouseResult.audits["uses-webp-images"].details.overallSavingsBytes to metrics: Cannot read property 'details' of undefined
]

Anything can be done?

Required env vars for WPT?

I like the idea of this project, but am confused about how to start using it with my private instance of webpagetest.

The docs/webpagetest.md file notes:

## Required Environmental Variables

- `GCP_PROJECT_ID` - The project unique ID in the Google Cloud Platform. 
- `SERVICE_ACCOUNT_CREDENTIALS` - The path to the Service Account json file.

... where I would've expected to see maybe optional env vars for WEBPAGETEST_SERVER or WPT_API_KEY or similar.
Is there really a dependency on GCP and a "Service Account json file"?

Method for throttling

Hi, love the tool.

I have a list of somewhere around ~5k URLs to fetch from the CrUX API per day. When I run AWP on full blast, I blow through the 150 req/minute quota for the CrUX API and get Quota exceeded errors for the majority of requests. Is there any way to throttle the request rate down?

Create Google Spreadsheet API Connector

  • Support PSI first as connector to use.
  • Input should be a JSON via CLI mode.
  • Output should be a Spreadsheet ID and Tab to send data via a defined API Key.

Select Lighthouse version / master branch preview

It would super awesome to enable generating reports using the current Lighthouse version as well as previewing upcoming scores from the Lighthouse master branch so you can get an idea of what your scores will be in the next release and take action accordingly.

"awp-config" example is not working

When excute command ./awp --help
./awp run --config=examples/awp-config.json command shown in the below.

I think this is not workiing because of not giving mandatory arguments.

This example should be revised.

image

Pass test URL from CLI without json file

It would be great to be able to run AWP from the CLI by just passing a single URL via the CLI like the lighthouse-ci, rather than a JSON file.

Ex.

./awp run url

The test would be run with default values (mimicking the examples/tests.json file parameters)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.