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

Only uploading single report for multiple runs #113

Open
dmattia opened this issue Oct 28, 2022 · 0 comments
Open

Only uploading single report for multiple runs #113

dmattia opened this issue Oct 28, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@dmattia
Copy link

dmattia commented Oct 28, 2022

I am attempting to run multiple tests on a site and get a summary of the performance across all runs. I am seeing output indicating that multiple runs happen, and when I view the stored artifacts on Github actions, I see multiple .html reports, but the uploaded reports (like https://storage.googleapis.com/lighthouse-infrastructure.appspot.com/reports/1666985268269-5098.report.html) are just from one of the three runs, not a summary across all runs.

Screen Shot 2022-10-28 at 12 45 17 PM

Is this expected?

To Reproduce

I have a basic CI workflow that looks like:

name: Perf testing

on:
  pull_request:

jobs:
  test:
    runs-on: ubuntu-22.04
    timeout-minutes: 10
    steps:
      - uses: actions/checkout@v2
      - uses: actions/[email protected]
        with:
          node-version: '14.17.3'
      - name: Run Lighthouse on urls with lighthouserc
        uses: treosh/lighthouse-ci-action@v9
        with:
          urls: '<some_url>'
          uploadArtifacts: true
          temporaryPublicStorage: true
          runs: 3
          configPath: '${{ github.workspace }}/lighthouse/lighthouserc.json'

The referenced lighthouserc.json contains:

{
  "ci": {
    "collect": {
      "numberOfRuns": 3,
      "settings": {
        "configPath": "./lighthouse/lighthouse-config.js"
      }
    }
  }
}

and the config file contains:

module.exports = {
  extends: 'lighthouse:default',
  settings: {
    emulatedFormFactor: 'desktop',
    onlyCategories: ['performance'],
    throttlingMethod: 'provided',
    // You can find audit names here:
    // https://github.com/GoogleChrome/lighthouse/blob/eba2a4d19c5786dc37e993858ff4b663181f81e5/lighthouse-core/config/default-config.js#L174
    onlyAudits: [
      'metrics/first-contentful-paint',
      'metrics/first-meaningful-paint',
      'metrics/speed-index',
      'critical-request-chains',
    ],
  },
};
@alekseykulikov alekseykulikov added the help wanted Extra attention is needed label Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants