question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Collect method "psi": should it throw "Chrome installation not found"?

See original GitHub issue

As far as I understood, while using the PageSpeed API (--collect.method=psi), the tests would run in Google’s cloud instead of trying to find an instance of Chrome on my local environment and run (which motivated me to generate an API token in my Google Cloud account and favour this method, so I don’t need to run it on my CI, implying I don’t need to have Chrome installed on my CI environments).

Did I miss something or this is indeed a bug?

NOTE: Not even using LHCITEST_IGNORE_CHROME_INSTALLATIONS (an option I found being used in an automated test for the healthcheck script made the check to be skipped (but maybe it just works if I call healthcheck explicitly, which is not the case - using autorun)

Context:

  • Relates to: #340
  • Version used: 0.4.4
  • Command used: lhci autorun --config=./lighthouse-ci.config.json --collect.url=https://some/url/with/index.html --collect.numberOfRuns=1 --collect.settings.chromeFlags=--no-sandbox --collect.settings.emulatedFormFactor=desktop --collect.settings.onlyCategories=["performance", "accessibility", "best-practices"] --collect.method=psi --collect.psiApiKey=some-token
  • Config used:
{
  "ci": {
    "assert": {
      "assertions": {
        "resource-summary:document:size": ["error", {"maxNumericValue": 2200}],
        "resource-summary:stylesheet:size": ["error", {"maxNumericValue": 15000}],
        "resource-summary:font:size": ["error", {"maxNumericValue": 105000}],
        "resource-summary:image:size": ["error", {"maxNumericValue": 377006}],
        "resource-summary:script:size": ["error", {"maxNumericValue": 500000}]
      }
    },
    "upload": {
      "ignoreDuplicateBuildFailure": true,
      "urlReplacementPatterns": ["s#/[a-f0-9]+/#/#"],
      "serverBaseUrl": "http://some/server:9001/",
      "githubApiHost": "https://github.com/api/v3"
    }
  }
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Kosai106commented, May 11, 2022

Here’s what the CircleCI job looks like currently, including the workaround.

frontend-lighthouse-check:
    <<: *defaults
    docker:
      - image: cimg/node:16.13.0
    parallelism: 5
    steps:
      - checkout
      - inject-bash-helpers
      - *inject-yarn-deps
      # -- Chrome install needed to prevent error
      - browser-tools/install-chrome
      - browser-tools/install-chromedriver
      # -- End Chrome install
      - run:
          name: Run Lighthouse CI
          command: |
            yarn global add @lhci/cli@0.9.x
            lhci autorun --collect.method=psi --collect.psiApiKey=${GOOGLE_PSI_KEY} --collect.settings.emulatedFormFactor=desktop --headful=false
1reaction
patrickhulcecommented, Aug 17, 2020

Ah, you’re right @yuriteixeira the Chrome installation healthcheck shouldn’t apply when you’re using the PSI collect method 👍

It’s a bug we’ll fix thanks very much for filing! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix problems installing Chrome - Google Chrome Help
Start menu or Start menu . Open the Windows Settings app. In the "Find a setting" search box, type Firewall. Click Allow an...
Read more >
Forcing garbage collection in Google Chrome - Stack Overflow
Start with checking if 'Collect Garbage' button at the bottom of this panel really does its job, if not - you probably have...
Read more >
Release Notes - Play services - Google Developers
December 15, 2022. The latest update to the Google Play services Matter library upgrades the APIs from beta status to generally available.
Read more >
Bottled - Message in a Bottle - Apps on Google Play
Release what's on your mind * Write your message, place it in a bottle and launch it into the sunset * Meeting new...
Read more >
Troubleshooting Amazon OpenSearch Service
If your cluster does not use dedicated master nodes, quorum loss occurs when ... the OpenSearch process crashing due to a continuous heavy...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found