From d45004a6ec1fa959e6e3e63ab91f1ddf02d577aa Mon Sep 17 00:00:00 2001 From: tehw0lf Date: Mon, 13 Jul 2026 20:37:38 +0200 Subject: [PATCH] Use multi-run median for lighthouse performance score Single-run performance scores are noisy due to GitHub-hosted runner CPU jitter, causing flaky CI failures unrelated to actual regressions. numberOfRuns now defaults to 3 so lighthouse-ci reports the median score instead of a single sample. Claude-Session: https://claude.ai/code/session_01YXxxzAa9Mk67SjBqHwrmqm --- .github/workflows/lighthouse-scan.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/lighthouse-scan.yml b/.github/workflows/lighthouse-scan.yml index d9ba544..4b3c155 100644 --- a/.github/workflows/lighthouse-scan.yml +++ b/.github/workflows/lighthouse-scan.yml @@ -32,6 +32,11 @@ on: default: 80 required: false type: number + num_runs: + description: "number of lighthouse runs per url; median is used (reduces CI runner jitter/flakiness)" + default: 3 + required: false + type: number runner: description: "workflow-runner" default: "ubuntu-latest" @@ -108,6 +113,7 @@ jobs: with: urls: ${{ steps.urls.outputs.urls }} configPath: .lighthouserc.json + numberOfRuns: ${{ inputs.num_runs }} uploadArtifacts: true temporaryPublicStorage: true