Code Monkey home page Code Monkey logo

Comments (4)

foray1010 avatar foray1010 commented on June 8, 2024

I was going to open a similar issue! I think the config is not ignored, it doesn't throw error even if you pass the budget via config-path, it is just because the code doesn't implement performance-budget checking (see https://github.com/andreasonny83/lighthouse-ci/blob/master/bin/cli#L181-L202)

lighthouse just response result in json format, but it is up to lighthouse-ci to parse it and response to user

from lighthouse-ci.

andreasonny83 avatar andreasonny83 commented on June 8, 2024

Thanks, both @grebenyuksv-preply and @foray1010 .
I'm sorry about the unexpected behaviour. I'll try to have a look as soon as I have time and release a patch for the cli.
Alternatively, if you can create a PR with that fix, I'll be more than happy to review it. That will speed up the releasing process for sure.

Thanks again

from lighthouse-ci.

asmagin avatar asmagin commented on June 8, 2024

@grebenyuksv-preply

--budget-pass is passed to lighthouse npm module, but is it does not look like it is processed when you are using lighthouse from code.
As of now, you can pass budget configurations as a part of configs like:

{
  "extends": "lighthouse:default",
  "settings": {
    "budgets": [
      {
        "resourceCounts": [
          { "resourceType": "total", "budget": 10 }
          
        ],
        "resourceSizes": [
          { "resourceType": "total", "budget": 100 }
        ]
      }
    ]
  }
}

from lighthouse-ci.

grebenyuksv-preply avatar grebenyuksv-preply commented on June 8, 2024

@asmagin fantastic, it worked! I didn't manage to figure that way out from LH docs.

Feel free to close the issue if it makes sense to you.

from lighthouse-ci.

Related Issues (20)

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.