instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
GoogleChrome__chromium-dashboard__5430
GoogleChrome/chromium-dashboard
5,430
defect
f61261a375fcb4804d570425958a326c1350fb2f
10b865c0818f3203ec95a44e572b106bc1938a3c
Migrate the `rollout_milestone` field
Part of #3767, #4498, and #4988 A number of issues are being caused by the `rollout_milestone` field being stored in its own field, rather than in the `milestones` stage field. A lot of Chromestatus logic relies on checking for milestones in the `milestones` field, so this separate storage of a milestone has uninten...
diff --git a/api/features_api.py b/api/features_api.py index 1c00f31241fb..634d1c3beb82 100644 --- a/api/features_api.py +++ b/api/features_api.py @@ -188,6 +188,8 @@ def _patch_update_stages( changed_fields: CHANGED_FIELDS_LIST_TYPE ) -> list[Stage]: """Update stage fields with changes provided in the...
5
2
1
[{"id": "G0", "claim": "Writing every changed stage with a single ndb.put_multi call may hit the limit on how many entities can be set at one time, so the migration should write in batches like the other scripts in this file.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},...
null
GoogleChrome__chromium-dashboard__5538
GoogleChrome/chromium-dashboard
5,538
defect
7a6d8bc6673a0b9df7ff805ce0b9c623353ed70a
71c1864d87b4234bf2f1fb105a16811ff546fd78
Shipping Features endpoint fix
Part of #5498 This change adds two changes to the shipping features endpoint: - Changes the URL to send requests to the endpoint so the milestone argument is not redundantly provided twice. - Reduces the feature information provided in the response to only include the URL to the feature. After trying this endpo...
diff --git a/api/shipping_features_api.py b/api/shipping_features_api.py index 6d960e9e361c..2e5dec7708ac 100644 --- a/api/shipping_features_api.py +++ b/api/shipping_features_api.py @@ -25,12 +25,11 @@ ) from internals.core_models import FeatureEntry, Stage from internals.review_models import Gate, Vote -from inter...
1
1
0
[{"id": "G0", "claim": "The still-present feature_dict = converters.feature_entry_to_json_verbose(feature) call in the PSA code-change branch is no longer needed now that the endpoint returns only URLs, and dropping it would avoid more NDB operations.", "category": "performance", "verdict": "supported", "priority": "P2...
null
GoogleChrome__chromium-dashboard__5576
GoogleChrome/chromium-dashboard
5,576
defect
a3176d599e99a64fdb71bd7ef603dc444f94c2df
59b753f78f5b0647fa12e490eeb7ed8d53dca5fc
Display enterprise milestones on the estimated milestones table
Fixes #4498 Enterprise stages with milestones now display in the estimated milestones table, in emails and intents.
diff --git a/internals/stage_helpers.py b/internals/stage_helpers.py index f0d53efd66d0..5fe792f6cf32 100644 --- a/internals/stage_helpers.py +++ b/internals/stage_helpers.py @@ -23,6 +23,7 @@ from internals.core_enums import ( INTENT_NONE, INTENT_STAGES_BY_STAGE_TYPE, + STAGE_ENT_ROLLOUT, STAGE_TYPE...
1
1
0
[{"id": "G0", "claim": "The 'Origin trial Android first' <tr> line should be indented under the if-statement instead of the shallower indentation this PR gave it.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
GoogleChrome__chromium-dashboard__5655
GoogleChrome/chromium-dashboard
5,655
defect
7940078883c3d91ac3bfe8ef6b3685c45dc3a962
8754186c58f21b3495cb33f09fba939650649356
New FeatureEntry fields for AI WPT coverage evaluation
Adds the basic required fields, as described in [the design doc](https://docs.google.com/document/d/17ZU8dTKMRIiOme2MGdnyRCoJGx5A4_SgFWmy-eDEccQ/edit?resourcekey=0-Nj7Mx73Sat0-CTjTHU17lA&tab=t.0#heading=h.nkshwck5hr8y). None of these new fields will be mutable by the user, and only one will be surfaced in the UI, so re...
diff --git a/.gitignore b/.gitignore index ac9f4fa857b1..9eb9b41a8ebb 100644 --- a/.gitignore +++ b/.gitignore @@ -42,6 +42,7 @@ test-results/ # API Key for local development ot_api_key.txt +gemini_api_key.txt github_token.txt # Typescript incremental build diff --git a/api/converters.py b/api/converters.py ind...
2
2
0
[{"id": "G0", "claim": "FeatureEntry should model the AI evaluation run state with an enumeration (COMPLETE | IN_PROGRESS | FAILED) instead of a plain boolean ai_test_eval_in_progress flag.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The timestamp fie...
null
GoogleChrome__chromium-dashboard__5689
GoogleChrome/chromium-dashboard
5,689
defect
7b1e6e014e99240e079c947df76884b1d979fe36
bcd761889c143e899f93f0a46702b1e91ea8985f
Pull GEMINI_API_KEY and GITHUB_TOKEN from settings
This PR ensures that the GEMINI_API_KEY and GITHUB_TOKEN are populated by the GCP Secret Manager the first time they are referenced. (I missed this after exclusively testing locally 😅)
diff --git a/framework/gemini_client.py b/framework/gemini_client.py index 6f19396bf827..b68947b5770a 100644 --- a/framework/gemini_client.py +++ b/framework/gemini_client.py @@ -13,11 +13,12 @@ # limitations under the License. import asyncio -import logging import time +import logging from google import genai f...
1
1
1
[{"id": "G0", "claim": "If these secrets are mandatory, they should be populated at start-up time (e.g. in main.py, or another file that runs at start-up) so the app fails fast when a dependency is missing.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleChrome__chromium-dashboard__5950
GoogleChrome/chromium-dashboard
5,950
defect
69233600bb43801ac06bebd6632d71fd0f6d79f7
0f810f1654b9b23453b53fe12ad792f34ce6a1bd
Add a token count check for unified prompt
Fixes #5949
diff --git a/framework/gemini_client.py b/framework/gemini_client.py index 3471cba5890e..1634d34140e6 100644 --- a/framework/gemini_client.py +++ b/framework/gemini_client.py @@ -67,6 +67,22 @@ def __del__(self): if hasattr(self, 'client') and self.client: self.client.close() + @utils.retry(MAX_RETRIES, ...
2
2
1
[{"id": "G0", "claim": "The hard-coded MAX_UNIFIED_PROMPT_TOKEN_COUNT should instead dynamically compare the token count against the model's own input_token_count limit.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Now that tokens are counted, the...
null
GoogleChrome__chromium-dashboard__6157
GoogleChrome/chromium-dashboard
6,157
defect
16c41a82591b47c2a2d92736c21b2eff9e0a7dfc
beefdf30c35beecc5448bd159133445b6967a50f
Hide `NEEDS_WORK` gates from /myfeatures/review
Fixes #4675. Changes the default query for `/myfeatures/review` to `pending-review-by:me` which excludes `NEEDS_WORK` states. Also adds `awaiting-review-by:me` to query gates including `NEEDS_WORK` states.
diff --git a/client-src/elements/chromedash-app.ts b/client-src/elements/chromedash-app.ts index 045028697c4e..04420b1d49b6 100644 --- a/client-src/elements/chromedash-app.ts +++ b/client-src/elements/chromedash-app.ts @@ -334,7 +334,7 @@ export class ChromedashApp extends LitElement { if (!this.setupNewPage(ctx...
1
1
0
[{"id": "G0", "claim": "The new `awaiting-review-by:me` query term is unneeded because it produces the exact same results as the existing `pending-approval-by:me` term, and should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleChrome__chromium-dashboard__6276
GoogleChrome/chromium-dashboard
6,276
defect
10e9da527ab851e5abbaad11e51e11535ffc9ff2
a33d2934b177aea00e887706dab4795daa81d07a
Fix information leakage of confidential features in Search API
Fixes an information leakage vulnerability in the Search API where `total_count` was calculated before filtering out confidential features. ## Root Cause / Motivation During a security review, it was discovered that the `total_count` property of the Search API response was calculating the total number of features mat...
diff --git a/internals/search.py b/internals/search.py index 00b7a58643a9..9dcc3ac5c38f 100644 --- a/internals/search.py +++ b/internals/search.py @@ -21,10 +21,11 @@ import re from typing import Any, Optional, Self, Union +from google.cloud import ndb from google.cloud.ndb import Key from google.cloud.ndb.taskle...
2
2
0
[{"id": "G0", "claim": "The code logs the list of feature IDs as clear text in _resolve_promise_to_id_list ('got list %r'), which CodeQL flags as clear-text logging of sensitive information.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The code log...
null
GoogleChrome__lighthouse-ci__118
GoogleChrome/lighthouse-ci
118
defect
5d82544f71111957912b03f55ab340dcbbc67aa9
8f056b39d22b8e516b1aec68d69bd0a8735eb591
feat(cli): add --puppeteer-script flag to collect
closes #89 Usage looks like: ``` lhci collect \ --start-server-command="yarn serve" \ --url=http://localhost:8080/ \ --puppeteer-script=./path/to/login-with-puppeteer.js ``` **Example `login-with-puppeteer.js`** ```js /** * @param {puppeteer.Browser} browser * @param {{url: string, options:...
diff --git a/docs/cli.md b/docs/cli.md index 745357d5f..ddd778767 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -114,6 +114,10 @@ Options: URLs by adding this flag multiple times. --staticDistDir The build directory where your HTML files to run Lighthouse on ar...
4
2
0
[{"id": "G0", "claim": "The docs should link to the project's existing authentication documentation too.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The dockerhub update script should determine the next version with a node call like the CURRENT_V...
null
GoogleChrome__lighthouse-ci__136
GoogleChrome/lighthouse-ci
136
defect
93658876a9eea85846869096924aff2ddec84cbf
78e480e66fb19ab28cfdc8e7e138c66f6a032e01
Feat/111 add yml support config file
Add yaml support for config file. Closes #111
diff --git a/.gitignore b/.gitignore index db01a0027..b0abe9ed7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ .lighthouseci/ .cache/ dist/ +node_modules/ diff --git a/docs/configuration.md b/docs/configuration.md index e5ee6d69f..c0e555dd2 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ ...
7
7
0
[{"id": "G0", "claim": "The docs should use bold regular text (e.g. **`lighthouserc.json`:**) for filenames within a section, as the rest of the docs do, instead of the added `#####` heading.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docs...
null
GoogleChrome__lighthouse-ci__140
GoogleChrome/lighthouse-ci
140
defect
b26fe670994d81ab3a5931bb2bcc98cc25f0f207
5c02eaee75ae53148ae6756017c25a836d278869
feat(collect): support custom listening pattern for startServerCommand
This PR introduces the changes to support custom listening pattern for `startServerCommand` through the new collect option `startServerReadyPattern`. Closes https://github.com/GoogleChrome/lighthouse-ci/issues/134
diff --git a/docs/cli.md b/docs/cli.md index 4d9564227..0595e24f2 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -110,25 +110,27 @@ lhci collect --help Run Lighthouse and save the results to a local folder Options: - --help Show help [boolean] - --version ...
4
3
0
[{"id": "G0", "claim": "The timeout-warning block in startServerAndDetermineUrls is hard to read because of the prettier-forced indentation; hoist the pattern into a variable (e.g. `const pattern = new RegExp(...)`) and build the message so the write stays on one clear line.", "category": "maintainability", "verdict": ...
null
GoogleChrome__lighthouse-ci__159
GoogleChrome/lighthouse-ci
159
defect
3a34a7b0a9f57b78ec1d5c1be5263262408c61fa
dff680f7d54d613dba785c4393f746319871acfb
feat(collect): Make it easy to use with SPA
Now we can't set both `startServerCommand` and `staticDistDir`. ref: https://github.com/GoogleChrome/lighthouse-ci/blob/master/packages/cli/src/collect/collect.js#L100-L102 So server return 404 not found at sub-page in SPA. I think `isSinglePageApplication` flag is very useful. (When using no SPA, 404 informa...
diff --git a/packages/cli/src/collect/collect.js b/packages/cli/src/collect/collect.js index 085612261..2ca790100 100644 --- a/packages/cli/src/collect/collect.js +++ b/packages/cli/src/collect/collect.js @@ -31,6 +31,10 @@ function buildCommand(yargs) { staticDistDir: { description: 'The build directory wh...
2
2
1
[{"id": "G0", "claim": "Simplify the guard to `if (isSinglePageApplication)` since undefined and null are falsy values.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add test cases for the isSinglePageApplication flag — preferably two, one ensu...
null
GoogleChrome__lighthouse-ci__181
GoogleChrome/lighthouse-ci
181
defect
af9cdddfd7c87ef8d48a706c96193a72b132aefe
2a7950a7da02064c5f4dd8f30088970c46c24ffc
feat(cli): support custom github API hosts
closes #92 @thedaviddias or anyone else with a github enterprise server would you be able to give this a try? I don't actually have access to a GH enterprise server to test for realz :)
diff --git a/docs/cli.md b/docs/cli.md index db24af1c5..c7cec66f4 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -194,6 +194,8 @@ Save the results to the server Options: --help Show help [boolean] --version Show version number ...
2
1
1
[{"id": "G0", "claim": "getGitHubRepoSlug() returns undefined for custom (non-github.com) GitHub API hosts because runGithubStatusCheck does not pass the githubApiHost option to it, forcing users to set the LHCI_BUILD_CONTEXT__GITHUB_REPO_SLUG env var manually.", "category": "correctness", "verdict": "supported", "prio...
null
GoogleChrome__lighthouse-ci__200
GoogleChrome/lighthouse-ci
200
defect
2fe16195dab6a8e84995bdc66397d5efc39a4917
61d577f076382519dfeb4d71e75351e8544c4ea5
NEW add configuration argument to wizard command
Hi, i created the pr because we're running the `lhci server` behind a reverse proxy with authentication. Now it's not possible to the the `lhci wizard` on a local machine because the wizard can't reach the server (missing authentication headers). To fix that issue I changed the wizard command that a user can pas...
diff --git a/packages/cli/src/wizard/wizard.js b/packages/cli/src/wizard/wizard.js index cdfdb228f..2b5ec3a9e 100644 --- a/packages/cli/src/wizard/wizard.js +++ b/packages/cli/src/wizard/wizard.js @@ -7,13 +7,21 @@ const inquirer = require('inquirer'); const ApiClient = require('@lhci/utils/src/api-client.js'); +co...
7
6
1
[{"id": "G0", "claim": "The wizard's own `config` yargs option is unnecessary because `--config` should already be set in src/cli.js for all commands and should be removed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The wizard should not manuall...
null
GoogleChrome__lighthouse-ci__254
GoogleChrome/lighthouse-ci
254
defect
5e8ef6ad14b4387d75bb9001ddb4f9f2bce0f147
5a370b3ca792e295a7a01257697b2fb34257061b
fix(server): use friendly error message for statistic computation
closes #248
diff --git a/packages/cli/test/cli.test.js b/packages/cli/test/cli.test.js index da928a103..8b2d609ec 100644 --- a/packages/cli/test/cli.test.js +++ b/packages/cli/test/cli.test.js @@ -341,11 +341,9 @@ describe('Lighthouse CI CLI', () => { it('should have written links to a file', () => { const linksFile = ...
1
1
0
[{"id": "G0", "claim": "The fallback error heading should say \"Lighthouse CI Server Error\" instead of \"Lighthouse Error\" to help people understand the source.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleChrome__lighthouse-ci__389
GoogleChrome/lighthouse-ci
389
defect
b7a906d282043ad385081cf1753157b0ec2aa11b
d977e6283bdd29aa1f0c912c8ec04b4756107030
feat(server): support socket path in server config
Fixes https://github.com/GoogleChrome/lighthouse-ci/issues/385 - [x] Add `sqlSocketPath` option support in the config - [x] Validate config UX with project maintainers - [x] Add tests for new socket path option in config (Looking for guidance here 😄 ) - [x] Mention `sqlSocketPath` in `docs/configuration.md` A...
diff --git a/docs/configuration.md b/docs/configuration.md index dbfd63450..3a3a10a5a 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -306,7 +306,7 @@ module.exports = async (browser, context) => { await page.click('[type="submit"]'); await page.waitForNavigation(); // close session for next ...
4
4
1
[{"id": "G0", "claim": "A complete example configuration for the socket path option should be added in the examples section of the docs and linked to.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The throw statement guarding the socket path opti...
null
GoogleChrome__lighthouse-ci__434
GoogleChrome/lighthouse-ci
434
defect
12619d25f461604814b19c23679eaa51668eaba1
381b0b20225fbede87f3b9dd6b4353ce14494cdf
Add flag to set the limit of files to be tested.
This would fix #95 Right now lhci will only test 5 files. With this PR you can specify the limit to any number or even remove it. Example: ``` lhci autorun -> Will test 5 files lhci autorun --collect.numberOfFiles=10 -> Will test 10 files lhci autorun --collect.numberOfFiles=0 ...
diff --git a/packages/cli/src/collect/collect.js b/packages/cli/src/collect/collect.js index eabcd8b86..8ac4f8b15 100644 --- a/packages/cli/src/collect/collect.js +++ b/packages/cli/src/collect/collect.js @@ -80,6 +80,12 @@ function buildCommand(yargs) { default: 3, type: 'number', }, + numberOfFi...
5
5
1
[{"id": "G0", "claim": "Remove the `-f` alias because it is too prominent for a fallback option that few people will use.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rewrite the flag description to 'The maximum number of pages to collect when using th...
null
GoogleChrome__lighthouse-ci__452
GoogleChrome/lighthouse-ci
452
defect
56f6062522dd275a4d4f7b1eeda0710921c209a8
f7a6b476af8bec9aee977d74a1e75c060df5c2f5
feat(utils): add build context env for author email (#446)
Adds `LHCI_BUILD_CONTEXT__AUTHOR_EMAIL` environment variable to override getting the commit author's email from git, and uses this to get the gravatar URL when `LHCI_BUILD_CONTEXT__AVATAR_URL` is not specified. Resolves #446
diff --git a/docs/configuration.md b/docs/configuration.md index b7fa27331..8d4e1d0ec 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -610,6 +610,7 @@ The following environment variables override the inferred build context settings | `LHCI_BUILD_CONTEXT__CURRENT_BRANCH` | `dev_branch_1234` ...
1
1
0
[{"id": "G0", "claim": "getAvatarUrl should first try to extract the email from the author string returned by getAuthor (the <user@example.com> bit) before falling back to git log again.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleChrome__lighthouse-ci__468
GoogleChrome/lighthouse-ci
468
defect
01e397b866e40b4aa9dda506bc2736c41a29c45a
d88b34a4c043e1cbd1f054e648a211fcd63fed68
Add flag to filter out URLs you don't want to be tested
This PR allows you to filter out certain URLs that you would like to be skipped over during testing. This is used alongside staticDistDir and is not functional with url (Not sure how exactly that would end up working).
diff --git a/docs/configuration.md b/docs/configuration.md index a966f27ee..3c2885201 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -207,6 +207,8 @@ Options: multiple URLs. --staticDistDir The build directory where your HTML files to run Lighthouse on are ...
3
3
2
[{"id": "G0", "claim": "The flag should be renamed away from `filterUrl` (e.g. to `skipAutodiscoverUrl` or `autodiscoverUrlBlocklist`) because the name reads like a regex allow-list and, together with its description, fails to convey that it only affects autodiscovered URLs.", "category": "design", "verdict": "supporte...
null
GoogleChrome__lighthouse-ci__471
GoogleChrome/lighthouse-ci
471
defect
bf6a83de7e06454ae471c596c88a9d64b2691d48
239ff4d94155a272cb04a802ebdb7ac8448aa948
feat(server): Server should periodically delete old builds
I add cron task that delete old builds on sql to the server. fixes: https://github.com/GoogleChrome/lighthouse-ci/issues/463
diff --git a/packages/server/src/api/storage/sql/sql.js b/packages/server/src/api/storage/sql/sql.js index fb252ef50..d851ccbed 100644 --- a/packages/server/src/api/storage/sql/sql.js +++ b/packages/server/src/api/storage/sql/sql.js @@ -456,6 +456,19 @@ class SqlStorageMethod { } } + /** + * @param {Date} ...
10
10
1
[{"id": "G0", "claim": "Rename the newly added `findOldBuilds` storage method to something like `findBuildsBeforeTimestamp`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the `setDate(now.getDate() + range)` date arithmetic (which relie...
null
GoogleChrome__lighthouse-ci__541
GoogleChrome/lighthouse-ci
541
defect
44c4e7dd15877d32073c15f7f4084918eb14e9b5
b4f8176b2c0fc10fa2d8f766693ce379a8bfab53
feat(server) add ability to configure multiple cron tasks and specify which branches should be excluded or included during deletion.
Sometimes it would be extremely helpful to have some additional configuration options to describe logic, like: I want to keep master builds for a year and all other branches for a short period of time
diff --git a/.gitignore b/.gitignore index bd09021a9..44c99e8d9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,5 @@ .cache/ dist/ node_modules/ - +.idea storybook-static diff --git a/docs/configuration.md b/docs/configuration.md index 29e34eb90..67d84c696 100644 --- a/docs/configuration.md +++ b/docs/configura...
2
2
0
[{"id": "G0", "claim": "The branch-exclusion option should be named `skipBranches` instead of `filterOutBranches` to match the Lighthouse nomenclature of `onlyAudits`/`skipAudits`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The validation er...
null
GoogleChrome__lighthouse-ci__595
GoogleChrome/lighthouse-ci
595
defect
c31cea34e1fd883879b545458c6a9fff27d2af48
311ecc32cb625038a843d57ae570eb89136f2c43
fix(cli/upload): Fix GitHub status check
Related to #575 Just getting it over the line (hopefully) Took inspiration from the psi tests and set a mock server for github status check.
diff --git a/packages/cli/src/autorun/autorun.js b/packages/cli/src/autorun/autorun.js index cc7db5800..6752b207d 100644 --- a/packages/cli/src/autorun/autorun.js +++ b/packages/cli/src/autorun/autorun.js @@ -1,5 +1,5 @@ /** - * @license Copyright 2019 Google Inc. All Rights Reserved. + * @license Copyright 2021 Googl...
1
1
0
[{"id": "G0", "claim": "Revert the license copyright year in packages/cli/src/autorun/autorun.js back to 2019 since it did not need to be bumped.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
GoogleChrome__lighthouse-ci__613
GoogleChrome/lighthouse-ci
613
defect
ab9f5c3f6c3704f67cf94ef749d9c28f1652f9a0
aefab8d2ed8a382991dac1b08fcb6c04e0d971d6
Update debug messages when checking hash uniqueness
Based on the thread in the attached ticket, I've clarified the debug messages when LHCI checks commit hash uniqueness. Close #612
diff --git a/packages/cli/src/healthcheck/healthcheck.js b/packages/cli/src/healthcheck/healthcheck.js index e0393b763..b4ebae79c 100644 --- a/packages/cli/src/healthcheck/healthcheck.js +++ b/packages/cli/src/healthcheck/healthcheck.js @@ -124,8 +124,8 @@ const checks = [ }, { id: 'lhciServer', - label: ...
1
1
1
[{"id": "G0", "claim": "The expected healthcheck output snapshot in packages/cli/test/autorun-start-server.test.js still shows the old label and should be updated to the new one.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleChrome__lighthouse-ci__650
GoogleChrome/lighthouse-ci
650
defect
543b142fb2b09e0586c01d01ed564d5bb713933d
e40dc655ef5ea712b863152a8c5b6fdb536c1105
feat: support cjs config file extension
This allows users to use Lighthouse CI in a project which has `"type": "module"` in their `package.json` file. I also looked into supporting ESM configuration files, but since `import()` is asynchronous, this is a lot more work than just supporting `.cjs` files in a code base I’m not very familiar with.
diff --git a/packages/utils/src/lighthouserc.js b/packages/utils/src/lighthouserc.js index 4f0ae6e72..1fb0f692e 100644 --- a/packages/utils/src/lighthouserc.js +++ b/packages/utils/src/lighthouserc.js @@ -11,6 +11,8 @@ const yaml = require('js-yaml'); const _ = require('./lodash.js'); const RC_FILE_NAMES = [ + '.l...
2
1
0
[{"id": "G0", "claim": "A test case should be added covering the new .cjs config file support, unless it is prohibitively difficult to set up.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "docs/getting-started.md is missing an update to document the .c...
null
GoogleChrome__lighthouse-ci__653
GoogleChrome/lighthouse-ci
653
defect
31e731a338ee50d241ea9ae40400748bd3901c4b
d32f465bb6cda08ded4ce25c88c43a3103e4940a
feat: add support for sequlize migration options
For suggestion from https://github.com/GoogleChrome/lighthouse-ci/issues/652
diff --git a/docs/configuration.md b/docs/configuration.md index 83541b127..3d75c180e 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -891,17 +891,18 @@ Starts the LHCI server. This command is unique in that it is likely run on infra Run Lighthouse CI server Options: - --logLevel ...
2
2
2
[{"id": "G0", "claim": "Add an extra `it('should use the renamed table')` test that manually queries the DB to verify the `sequelize_meta` table is actually used, since the existing tests would pass even without implementing `sqlMigrationOptions` support.", "category": "testing", "verdict": "supported", "priority": "P1...
null
GoogleChrome__lighthouse-ci__696
GoogleChrome/lighthouse-ci
696
defect
ddfac21d652d53d3577249fedb9057279adb6fe6
663c44a76cb14a1d8de47e528b8e6b9b25d60731
Allow for further configuration of psiCollectCron
closes #695
diff --git a/docs/configuration.md b/docs/configuration.md index 65cc48da9..6bf297d49 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -1000,6 +1000,18 @@ _Optional_ The human friendly label for this set of URLs to use when logging sta _Optional_ The "branch" on which to report the results. Defaults...
3
3
0
[{"id": "G0", "claim": "psiCollectForProject should not default `categories` locally so the value can fall back to the default in psi-client.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documentation should capitalize 'PageSpeed Insights API' inst...
null
GoogleChrome__lighthouse-ci__835
GoogleChrome/lighthouse-ci
835
defect
75f4bb8f66d5042989f3882683c0e843677dda06
8f4e5056d2dd338a7ba662fb25dd5122ddc2378e
feat(cli): Added url hash to differentiate between urls
### ADDED: - `hash` parameter, while generating reports for apps using #/ - Test case added for the same ### NOTE: - This change is in reference to [this](https://github.com/GoogleChrome/lighthouse-ci/discussions/834) thread, as per discussion with @patrickhulce.
diff --git a/packages/cli/src/upload/upload.js b/packages/cli/src/upload/upload.js index 7aeeae659..9c739cd97 100644 --- a/packages/cli/src/upload/upload.js +++ b/packages/cli/src/upload/upload.js @@ -542,7 +542,7 @@ async function runFilesystemTarget(options) { const fetchTimeDate = new Date(new Date(lhr.fetchTim...
2
2
2
[{"id": "G0", "claim": "The upload context should not merge the URL hash into pathname; keep pathname and hash as separate fields.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a test case covering the upload behaviour changed by this pull request."...
null
GoogleChrome__lighthouse-ci__849
GoogleChrome/lighthouse-ci
849
defect
3560e81da9a298323aaf63d117bbd9f77126e2a0
940c8df70d3726956d2c4173a341c754e451daaf
feat(cli): use requestedUrl instead of finalUrl for upload context naming
**CHANGED**: - Using `requestedUrl` instead of `finalUrl` for `runFilesystemTarget ` function. - Updated the test cases for `target=filesystem` in `upload.test.js` - Updated the test cases for `upload-url-hash.test.js` **SUPPORTING INFO**: - This in relation to the ongoing discussion [here](https://github.com/...
diff --git a/packages/cli/src/upload/upload.js b/packages/cli/src/upload/upload.js index ad8b85740..107fc3721 100644 --- a/packages/cli/src/upload/upload.js +++ b/packages/cli/src/upload/upload.js @@ -527,7 +527,9 @@ async function runFilesystemTarget(options) { /** @type {Array<LH.Result>} */ const lhrs = loadSa...
1
1
0
[{"id": "G0", "claim": "Revert the copyright year change (2019 to 2022) in the license header of packages/cli/test/upload-url-hash.test.js, as project policy is not to update these years.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleChrome__lighthouse__12377
GoogleChrome/lighthouse
12,377
defect
e2c9e2db7a729ff391cb2f46eba9649e9252480b
aa5782fe12f2447cd0d134b30692ad26b800bb48
core(unsized-images): pass with explicit aspect-ratio
Fixes https://github.com/GoogleChrome/lighthouse/issues/12218 ---- We consider the image "sized" (thus passing) if `aspect-ratio` is used in conjunction with either a width or a height: https://github.com/GoogleChrome/lighthouse/blob/f212b1fb5d0cbb52f50695557c4f882281f1c117/core/audits/unsized-images.js#L...
diff --git a/lighthouse-core/audits/unsized-images.js b/lighthouse-core/audits/unsized-images.js index 1306665c65c7..4f0e7cb630c0 100644 --- a/lighthouse-core/audits/unsized-images.js +++ b/lighthouse-core/audits/unsized-images.js @@ -86,13 +86,17 @@ class UnsizedImages extends Audit { const attrHeight = image.att...
4
4
2
[{"id": "G0", "claim": "The return expression combining explicit width/height with aspect-ratio should be parenthesized for readability (or restructured as (explicitWidth && explicitHeight) || ((explicitWidth || explicitHeight) && explicitAspectRatio)), since AND/OR precedence is not intuitive.", "category": "maintaina...
null
GoogleChrome__lighthouse__12478
GoogleChrome/lighthouse
12,478
defect
bc951c1a429c6ada106e1beac52c199f261ffa3e
8adf812145b2b4ba4ddda95290a4706fb90e2f84
core(fr): align navigation-runner with legacy gather-runner
**Summary** ~~Won't work until #12469 is merged, but~~ this brings fraggle rock up to snuff with gather runner and makes use of all the refactoring over the past month! 🎉 **Related Issues/PRs** ref #11313
diff --git a/lighthouse-core/fraggle-rock/config/default-config.js b/lighthouse-core/fraggle-rock/config/default-config.js index 5774c4f981e0..af5e41a3cccd 100644 --- a/lighthouse-core/fraggle-rock/config/default-config.js +++ b/lighthouse-core/fraggle-rock/config/default-config.js @@ -91,6 +91,10 @@ const defaultConfi...
6
3
0
[{"id": "G0", "claim": "The legacy gather-runner check that throws when a service worker is controlling the page is left out of the new runner, and the reviewer asks whether it is being dropped or is still TBD.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
GoogleChrome__lighthouse__13185
GoogleChrome/lighthouse
13,185
defect
bab68cacd485031dd3168f35794beca8a214ffc4
23e097c7c11a9ae1a630d1199a089b48a11edb08
core: reduce image hotlinking in the report
fixes #12923 * Replaces `thumbnail` detail types in all audits with `node` * Skip rendering of nodeLabel and snippet if tagName is `img` and is visible (not a tracking pixel...) EDIT: images are a tad old: now they all show HTML snippets. will hide in some cases in a followup PR. see https://github.com/GoogleC...
diff --git a/lighthouse-core/audits/byte-efficiency/modern-image-formats.js b/lighthouse-core/audits/byte-efficiency/modern-image-formats.js index 770407efcdb4..4e4aae89a466 100644 --- a/lighthouse-core/audits/byte-efficiency/modern-image-formats.js +++ b/lighthouse-core/audits/byte-efficiency/modern-image-formats.js @...
4
3
1
[{"id": "G0", "claim": "The new `Audit.makeNodeItem` calls should follow the current codebase style and use the subclass instead (`ByteEfficiencyAudit.makeNodeItem`), across this and the rest of the edited byte-efficiency audits.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro...
null
GoogleChrome__lighthouse__13193
GoogleChrome/lighthouse
13,193
defect
ae75e0279a5eb091da3b9588eaedcae4e46112fa
b03db747c8f4434d1bd38563796f56c627dbca37
core(a11y): add relatedNodes to accessibility audits
Fixes #10396 Grabs the `relatedNodes` from axe's CheckResults, and displays them as subitems for every axe audit. Demo: https://googlechrome.github.io/lighthouse/viewer/?gist=8c8747c376d7b592427ee5da8c954f19 Duplicate id audits: ![image](https://user-images.githubusercontent.com/4071474/136476719-be23adbd-e24...
diff --git a/lighthouse-core/audits/accessibility/axe-audit.js b/lighthouse-core/audits/accessibility/axe-audit.js index 2cac0ab1a7d1..16aedffb8892 100644 --- a/lighthouse-core/audits/accessibility/axe-audit.js +++ b/lighthouse-core/audits/accessibility/axe-audit.js @@ -79,12 +79,18 @@ class AxeAudit extends Audit { ...
8
5
1
[{"id": "G0", "claim": "It is not settled that relatedNodes should be collected from all of node.any, node.all and node.none, and the choice should be confirmed with the axe experts before relying on it.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
GoogleChrome__lighthouse__13385
GoogleChrome/lighthouse
13,385
defect
b7f09e69e5b3f8e480dad79602bef3ad498e6000
bc735b626ac587c86e2c984f95a1ed20954a2cc9
core(hreflang): remove eval, import axe valid-langs.js directly
Fixes #13205
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5236c7da0eca..2fa4fdd1d198 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,6 +50,7 @@ jobs: - run: yarn i18n:checks - run: yarn dogfood-lhci - run: bash lighthouse-core/scripts/copy-util-commonjs.sh + - ...
7
6
1
[{"id": "G0", "claim": "The sed expression in copy-axe-valid-langs.sh should read 's/String/string/' instead of 's/Sting/string/' so the copied axe file gets the misspelling corrected.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Skip introducing ...
null
GoogleChrome__lighthouse__13590
GoogleChrome/lighthouse
13,590
defect
62848fb75ff419e6da1d0c103680dc58a1e7f6d9
3cd1441145ca766fa4f59e0cef9161d30e50ba04
deps(yargs): upgrade to 17.3.1
Fixes #13589 Not sure on the root cause, but I noticed that the bug didn't happen with the latest yargs. https://github.com/yargs/yargs/blob/main/CHANGELOG.md Only necessary changes were for: > coerce: coerce is now applied before validation. Which required having coerce fns return `null` (or `undefined`...
diff --git a/lighthouse-cli/cli-flags.js b/lighthouse-cli/cli-flags.js index 57b29a3f57d2..368f79fca55f 100644 --- a/lighthouse-cli/cli-flags.js +++ b/lighthouse-cli/cli-flags.js @@ -343,7 +343,7 @@ function getFlags(manualArgv, options = {}) { // Augmenting yargs type with auto-camelCasing breaks in tsc@4.1.2 and...
3
3
2
[{"id": "G0", "claim": "The duplicated isDeepEqual loop in runner.js is redundant with the whole-object check and needs a comment explaining why both exist (\"First one checks equality of keys, second one checks for missing keys\").", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "in...
null
GoogleChrome__lighthouse__13673
GoogleChrome/lighthouse
13,673
defect
e3fdffc69c45a3401f67888d17c2818050bd08cf
39de7e9a30089ce458db6f25483833905abe7e98
tests(devtools): navigation web test
Compairson between this test and `lighthouse-successful-run-expected` is useful: ```sh diff third-party/chromium-webtests/webtests/http/tests/devtools/lighthouse/lighthouse-successful-run-expected.txt third-party/chromium-webtests/webtests/http/tests/devtools/lighthouse/lighthouse-successful-navigation-expected.txt...
diff --git a/third-party/chromium-webtests/webtests/http/tests/devtools/lighthouse/lighthouse-successful-navigation-expected.txt b/third-party/chromium-webtests/webtests/http/tests/devtools/lighthouse/lighthouse-successful-navigation-expected.txt new file mode 100644 index 000000000000..992e9647727e --- /dev/null +++ b...
1
1
0
[{"id": "G0", "claim": "The test's opening message should say \"Tests that navigation mode works correctly.\" instead of \"Tests that FR navigation mode works correctly.\" (a nit on wording).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
GoogleChrome__lighthouse__13737
GoogleChrome/lighthouse
13,737
defect
ff52c9d56107695b30419ce453d3ba6da1cff632
1e9d9b4548b6dfd186e08c86c44e4940882f9034
core(unsized-images): ignore non-network SVGs
**Summary** This fixes a bug when detecting non-network SVG images. In PR #12120, there was a fix added for inline SVG but only base64. Since then, Next.js changed [from base64 to text data url](https://github.com/vercel/next.js/pull/33218) so it was no longer detected properly by Lighthouse. <!-- Link any ...
diff --git a/lighthouse-core/lib/url-shim.js b/lighthouse-core/lib/url-shim.js index 2ce5cc944e62..716d2feb4894 100644 --- a/lighthouse-core/lib/url-shim.js +++ b/lighthouse-core/lib/url-shim.js @@ -236,7 +236,7 @@ class URLShim extends URL { } if (url.protocol === 'data:') { - const match = url.pathna...
4
3
1
[{"id": "G0", "claim": "The positive lookahead in the data-URL mime regex can be replaced with a character-class check plus `match[1]` to make the regex more readable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The method is misleadingly nam...
null
GoogleChrome__lighthouse__13848
GoogleChrome/lighthouse
13,848
defect
586d4a2db6d6d98b8ca97c226651866b55728709
9b14255b7fa78529b453609c8087031e2497f3b4
core(trace-processor): ignore `navigationStart` with falsy document url
Based on the description for https://github.com/GoogleChrome/lighthouse/pull/5917, it seems like we should be ignoring nav starts with falsy document url but the condition doesn't do that. This fixed the third item in #13847 for me locally. ~Will land after #13844~
diff --git a/.github/workflows/devtools.yml b/.github/workflows/devtools.yml index c8b98110d983..f070b9c48c69 100644 --- a/.github/workflows/devtools.yml +++ b/.github/workflows/devtools.yml @@ -125,7 +125,7 @@ jobs: # e.g. if set 1 fails, continue with set 2 anyway fail-fast: false runs-on: macos-la...
3
3
1
[{"id": "G0", "claim": "Rewrite the dense boolean condition in `_isNavigationStartOfInterest` in longhand (multiple returns), which would read friendlier than the `&&` chain.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rewritten `_isNavig...
null
GoogleChrome__lighthouse__13867
GoogleChrome/lighthouse
13,867
defect
4bc0b052c187aea0f23ffd704606fa5c0581a7c5
8e053a0af94451dda847848c471b2453f6ed8913
core(fr): index test parity
Follow up to #13865 I never copied some of the index tests for the new FR runner. This would have caught a few differences between the legacy runner and FR runner including #13863. This PR brings back those tests for the FR runner.
diff --git a/lighthouse-core/fraggle-rock/config/filters.js b/lighthouse-core/fraggle-rock/config/filters.js index c1166dbb7081..9a086b5d9a5f 100644 --- a/lighthouse-core/fraggle-rock/config/filters.js +++ b/lighthouse-core/fraggle-rock/config/filters.js @@ -293,6 +293,8 @@ function filterConfigByExplicitFilters(config...
3
2
0
[{"id": "G0", "claim": "Modify the newly added index-test.js error tests (or at least some of them) to use expect(...).toThrow(...) instead of the .then(resolve/reject) style.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rewrite the added else-if cond...
null
GoogleChrome__lighthouse__13887
GoogleChrome/lighthouse
13,887
defect
f2db965f75a4f9d2a84614a3cd5a1466a41e99bc
815de68e1874113c85f3041cb6d976d4d01ec18e
core(css-usage): fetch stylesheet contents immediately after discovery
Fixes https://github.com/GoogleChrome/lighthouse/issues/13882 Dropping stylesheets on `CSS.styleSheetRemoved` doesn't seem to protect us from "sheet not found" errors. Even if they did protect us, a big stylesheet could negatively impact performance and be removed later on during the run. I think it's better to i...
diff --git a/lighthouse-core/gather/gatherers/css-usage.js b/lighthouse-core/gather/gatherers/css-usage.js index 4802c64d7eab..15b6aac30d65 100644 --- a/lighthouse-core/gather/gatherers/css-usage.js +++ b/lighthouse-core/gather/gatherers/css-usage.js @@ -13,21 +13,19 @@ const FRGatherer = require('../../fraggle-rock/ga...
4
3
1
[{"id": "G0", "claim": "The bookkeeping of awaiting all sheet promises under Promise.all and then re-associating them with their ids by parallel arrays could be simplified by iterating over _sheetPromises directly and awaiting each item one at a time.", "category": "maintainability", "verdict": "supported", "priority":...
null
GoogleChrome__lighthouse__13912
GoogleChrome/lighthouse
13,912
defect
6ba8dc883eb5fb355c92a8f236ee5003b305da37
68ea3b8b550bb53019360703b59ebc35e0e0a53a
tests: default to chrome-launcher path
If you don't have `CHROME_PATH` set locally, running `api-test-pptr` and `disconnect-test-pptr` fails because a Chrome can't be found for puppeteer to use. Using `chrome-launcher`'s `getChromePath()` will let a Chrome already installed on the system be used, and it still defaults to `CHROME_PATH` if it's set.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1faef28ac8d3..ddefd6131f6a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,12 +31,6 @@ jobs: - run: yarn install --frozen-lockfile --network-timeout 1000000 - run: yarn build-all - - name: Define ToT chrome...
2
2
1
[{"id": "G0", "claim": "Removing the ToT Chrome installation blocks from the CI and unit workflows drops Chrome ToT from CI tests, losing the early catching of Chrome regressions that ToT provided.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
GoogleChrome__lighthouse__13913
GoogleChrome/lighthouse
13,913
defect
6ba8dc883eb5fb355c92a8f236ee5003b305da37
492031492d8cfdeb34a3e616626ac54347f4ff5d
core(trace): use tracing-started event for frame tree info
Part of the responsiveness in timespans implementation. We've previously relied on `FrameCommittedEvent`s to generate our knowledge of the frame tree, but for traces without navigations (like in a timespan), there typically aren't any `FrameCommittedEvent`s generated because all the frames are already around. As a r...
diff --git a/lighthouse-core/lib/tracehouse/trace-processor.js b/lighthouse-core/lib/tracehouse/trace-processor.js index 9c3c5bb0d616..6e49c877d1fa 100644 --- a/lighthouse-core/lib/tracehouse/trace-processor.js +++ b/lighthouse-core/lib/tracehouse/trace-processor.js @@ -612,21 +612,41 @@ class TraceProcessor { // ...
2
1
0
[{"id": "G0", "claim": "The fallback warning about FrameCommittedInBrowser events can be removed now that TracingStartedInBrowser also supplies frame tree info.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adding `|| []` to the TracingStartedI...
null
GoogleChrome__lighthouse__13921
GoogleChrome/lighthouse
13,921
defect
3aa4400cd5a9ff02ddc13c6ce5857a8398d3dc71
51804a55c0e744cd195b84e5aca6448db053bb3d
core(plugins): allow `supportedModes` in category
Should unblock https://github.com/googleads/publisher-ads-lighthouse-plugin/pull/339 once this makes it to LHCI
diff --git a/lighthouse-core/config/config-plugin.js b/lighthouse-core/config/config-plugin.js index bf2cd374716f..2d88d8111571 100644 --- a/lighthouse-core/config/config-plugin.js +++ b/lighthouse-core/config/config-plugin.js @@ -124,6 +124,7 @@ class ConfigPlugin { description, manualDescription, ...
2
2
1
[{"id": "G0", "claim": "The new supportedModes check only uses Array.isArray(), which yields Array<any> and lets invalid gather-mode strings through, so each array item also needs to be validated.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The t...
null
GoogleChrome__lighthouse__13961
GoogleChrome/lighthouse
13,961
defect
5786b794b26a90012d2c671cb9cd190e5752b58c
7d5649e4782ffdfde2ee20b98ce9238e0380d77c
core(deprecations): use translated strings from devtools repo
Fixes #13895 Putting this up, open question about what to do with all the missing translator strings. Wait, or fill them out ourselves?
diff --git a/lighthouse-cli/test/smokehouse/test-definitions/dobetterweb.js b/lighthouse-cli/test/smokehouse/test-definitions/dobetterweb.js index f68d0f940a19..b5325696c0bf 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/dobetterweb.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/dobetterweb.js @...
5
2
0
[{"id": "G0", "claim": "Translators may attempt to translate these deprecation strings without context, because many carry only a placeholder '@description TODO(...): Description needed for translation' instead of a real description.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "intro...
null
GoogleChrome__lighthouse__14004
GoogleChrome/lighthouse
14,004
defect
544144df00dd3ca21732a5657472982c97d328e3
8b6aeb22c2486cf41e6fa0d2bc3fd261a3c77ad0
misc: remove `createCommonjsRefs`
Fixes #13953 - Removes `createCommonjsRefs` - Adds `getModulePath` and `getModuleDirectory` - Uses `module` directly for creating a require function
diff --git a/build/build-bundle.js b/build/build-bundle.js index ee7695e5d7fa..7429ed64da91 100644 --- a/build/build-bundle.js +++ b/build/build-bundle.js @@ -12,6 +12,7 @@ import fs from 'fs'; import path from 'path'; import {execSync} from 'child_process'; +import {createRequire} from 'module'; import esMain fr...
1
1
0
[{"id": "G0", "claim": "If the function always returns a file path, it should be renamed to `getModulePath`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleChrome__lighthouse__14141
GoogleChrome/lighthouse
14,141
defect
16a4ccf6c18e0738ce695a52785966a0365538ab
98d4cc491977566d14468d647a1878f8b5c2541f
tests(smoke): print multiple differences
Fixes #14128 Brendan mentioned [here](https://github.com/GoogleChrome/lighthouse/pull/14138#issuecomment-1159073385) that presenting all the differences in a smoke test may be noisy. This PR doesn't take any of that into account (I did first try to limit the amount of differences as determined [here](https://github....
diff --git a/lighthouse-cli/test/smokehouse/__snapshots__/report-assert-test.js.snap b/lighthouse-cli/test/smokehouse/__snapshots__/report-assert-test.js.snap new file mode 100644 index 000000000000..c8b00839fece --- /dev/null +++ b/lighthouse-cli/test/smokehouse/__snapshots__/report-assert-test.js.snap @@ -0,0 +1,60 @...
3
3
2
[{"id": "G0", "claim": "Rename the local accumulator `diff` (and the function `findDifference`) to `diffs`/`findDifferences` since it is an array of `Difference`s.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the `_excludes` block, the matc...
null
GoogleChrome__lighthouse__14202
GoogleChrome/lighthouse
14,202
defect
e1b4cf8c3a00f0e4822bae98798c75b0198f75bb
123cd582d808ed7609c226cbd3fd91d4e9ee03ab
tests: fix mocha test runner and mocks on windows
Fixes #14171 I'm using my fork from my PR to quibble: https://github.com/testdouble/quibble/pull/71 Also fix a couple things ~related to windows paths~ (done in #14464).
diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 1299e407d86a..0b3b0f29aee3 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -91,8 +91,7 @@ jobs: - run: yarn install --frozen-lockfile --network-timeout 1000000 - run: yarn build-report - # TODO: fix run...
1
1
0
[{"id": "G0", "claim": "Invoking mocha through its JS API instead of shelling out to its CLI might fix the Windows command-length splitting, and would also bring back node --inspect support.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
GoogleChrome__lighthouse__14205
GoogleChrome/lighthouse
14,205
defect
e1b4cf8c3a00f0e4822bae98798c75b0198f75bb
3b69f42fcc9be7e30fc195cee72d3935cfb2c7d8
tests(smoke): use DevTools runner through node directly
Split out from https://github.com/GoogleChrome/lighthouse/pull/14199 since this should benefit our smokes on macos as well. See my comments in https://github.com/GoogleChrome/lighthouse/pull/14199#pullrequestreview-1034763811 for the highlights.
diff --git a/lighthouse-cli/test/smokehouse/lighthouse-runners/devtools.js b/lighthouse-cli/test/smokehouse/lighthouse-runners/devtools.js index c4fd7998583c..f0a803165934 100644 --- a/lighthouse-cli/test/smokehouse/lighthouse-runners/devtools.js +++ b/lighthouse-cli/test/smokehouse/lighthouse-runners/devtools.js @@ -1...
13
9
3
[{"id": "G0", "claim": "Switch to execFileSync, since wrapping execFile in a promise and awaiting it anyway loses nothing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The explicit stdout/stderr piping looks like the default 'inherit' behavior...
null
GoogleChrome__lighthouse__14224
GoogleChrome/lighthouse
14,224
defect
d956ec929d2b67028279f5e40d7e9a515a0b7404
fbac078583d0c99983e7a405551832cf08d06927
tests(smoke): enable more DevTools tests
I went through and enabled as many smoke tests as I could for DevTools. All of the ones I could not enable should now have an explanation.
diff --git a/.github/workflows/devtools.yml b/.github/workflows/devtools.yml index 28a863d4b7fe..7123a89f7534 100644 --- a/.github/workflows/devtools.yml +++ b/.github/workflows/devtools.yml @@ -162,10 +162,14 @@ jobs: working-directory: ${{ github.workspace }}/lighthouse - name: yarn smoke --runner devtool...
1
1
0
[{"id": "G0", "claim": "The comment in .github/workflows/devtools.yml listing disabled smoke tests should state why the dbw page is disabled (e.g. `dbw (dialog prompt)`), since the generic explanation is self-evident for errors-expired-ssl and errors-infinite-loop but not for dbw.", "category": "documentation", "verdic...
null
GoogleChrome__lighthouse__14241
GoogleChrome/lighthouse
14,241
defect
adc3aa77aba21f5ac990d9b632c7022fb2cd11a6
b0af07282ad29fdd5c0a3fff1ee4c0fc6c2b7bd5
misc: re-enable pubads after esm migration
This PR converted to ESM: https://github.com/googleads/publisher-ads-lighthouse-plugin/pull/354
diff --git a/build/build-bundle.js b/build/build-bundle.js index e3e6fbe0f298..16b7b1319fda 100644 --- a/build/build-bundle.js +++ b/build/build-bundle.js @@ -16,9 +16,8 @@ import {createRequire} from 'module'; import esMain from 'es-main'; import {rollup} from 'rollup'; -// TODO(esmodules): convert pubads to esm -...
2
2
0
[{"id": "G0", "claim": "The commented-out ConditionalExpression handling in build/plugins/inline-fs.js is unused dead code and should be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The lighthouse-plugin-publisher-ads dependency shoul...
null
GoogleChrome__lighthouse__14316
GoogleChrome/lighthouse
14,316
defect
f7c51c3a76c87b045850fb2c87864901663e84ce
f0a8113573992e9070362140d41184668b70b252
core(smoke): support a per-runner test exclusion list
Fixes #14127.
diff --git a/cli/test/smokehouse/config/config.js b/cli/test/smokehouse/config/config.js new file mode 100644 index 000000000000..bca9a77c6106 --- /dev/null +++ b/cli/test/smokehouse/config/config.js @@ -0,0 +1,10 @@ +/** @type {Record<string, Array<string>>} */ +const exclusions = { + // runner: ['excluded1', 'exclud...
5
4
1
[{"id": "G0", "claim": "The exclusions list should be filled out from the GH actions .yml files instead of being left as an empty placeholder.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new file cli/test/smokehouse/config/config.js is missing the...
null
GoogleChrome__lighthouse__14374
GoogleChrome/lighthouse
14,374
defect
fb97394be2ec26e315b31aac39decd8800519406
502f2df2bf044f95352038bf0c9a14966bdef42b
core(page-functions): remove all `*String` exports
All but one of these can be dropped just by using their function directly. `getNodeDetails` is special because it has a number of other page-functions that must be included to work, which was solved by making its `*String` export wrap those deps (so callers wouldn't have to remember to). Instead, ~I introduce `Execu...
diff --git a/core/gather/driver/execution-context.js b/core/gather/driver/execution-context.js index e344ad59be96..c26597b8d6e8 100644 --- a/core/gather/driver/execution-context.js +++ b/core/gather/driver/execution-context.js @@ -110,7 +110,7 @@ class ExecutionContext { return new Promise(function (resolve) {...
1
1
0
[{"id": "G0", "claim": "Instead of tacking a magic `.dependencies` array property onto `getNodeDetails` (with a serializeDependencies mechanism), shadow the function's own `toString` so it serializes together with its dependencies, since that is the only place it would be needed.", "category": "design", "verdict": "sup...
null
GoogleChrome__lighthouse__14402
GoogleChrome/lighthouse
14,402
defect
c2b6a0dd3603f08655ae3ca8144224ee90abd63c
d86ee7f861e3f17048ba21968a5d6e814d330949
core(cls): ignore `had_recent_input` by timing window
Proposal that helps with https://github.com/GoogleChrome/lighthouse/issues/14396 for our use cases. We should wait on a chromium fix before closing though. See my comments for #14396 for the reasoning.
diff --git a/core/computed/metrics/cumulative-layout-shift.js b/core/computed/metrics/cumulative-layout-shift.js index 8b585a95b973..48e9d6cfbbe8 100644 --- a/core/computed/metrics/cumulative-layout-shift.js +++ b/core/computed/metrics/cumulative-layout-shift.js @@ -9,16 +9,18 @@ import {ProcessedTrace} from '../proces...
5
2
2
[{"id": "G0", "claim": "Consider the alternative approach of doing the emulation resize and waiting 500ms before navigating to the page, instead of ignoring had_recent_input by a timing window.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The delta the c...
null
GoogleChrome__lighthouse__14419
GoogleChrome/lighthouse
14,419
defect
bf8df465bcdc4126d5f4ad49f85b1fb33a24b465
12a6770e6259a353d39de2f970b2e08417d1dea5
tests: use --headless=new for all smoketests
I've wanted to use headless for CLI smoketests to avoid windows popping up and stealing focus. But as we know, some test assertions fail. The `--headless=chrome` flag provides something much more like Chrome than what the `--headless` flag launches. And it now has support across windows/linux/mac. edit: feb 2023...
diff --git a/cli/test/smokehouse/lighthouse-runners/cli.js b/cli/test/smokehouse/lighthouse-runners/cli.js index a29e8c38cdfe..d183cfde4f4f 100644 --- a/cli/test/smokehouse/lighthouse-runners/cli.js +++ b/cli/test/smokehouse/lighthouse-runners/cli.js @@ -61,6 +61,8 @@ async function internalRun(url, tmpPath, configJson...
3
3
1
[{"id": "G0", "claim": "The PR updates only the CLI runner to native headless; the bundled runner cli/test/smokehouse/lighthouse-runners/bundle.js also needs updating.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "docs/headless-chrome.md should men...
null
GoogleChrome__lighthouse__14435
GoogleChrome/lighthouse
14,435
defect
944a2cfc71b86339aaf80b41eb3985570e8339e2
d2df4fcc003efa77f044935dba51d644ccebc5f0
core(types): use union of `puppeteer` and `puppeteer-core`
The types between these two packages are independent https://github.com/puppeteer/puppeteer/issues/9018 If we want to support both, we should use the union between them to ensure proper type safety. Some scripts import puppeteer themselves but use the types in `LH.Puppeteer`. These scripts should now be using the...
diff --git a/core/scripts/benchmark-plus-extras.js b/core/scripts/benchmark-plus-extras.js index 57c7a56d0284..8e36861b9943 100644 --- a/core/scripts/benchmark-plus-extras.js +++ b/core/scripts/benchmark-plus-extras.js @@ -16,9 +16,9 @@ import {getChromePath} from 'chrome-launcher'; import {pageFunctions} from '../l...
1
1
0
[{"id": "G0", "claim": "The new types/puppeteer.d.ts file should have the standard Lighthouse copyright header added at the top.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleChrome__lighthouse__14459
GoogleChrome/lighthouse
14,459
defect
872d816e172de6380d1664e224315e8d11898c6a
eea4cf5f181fe5188133f50083e243f40c44ce90
core(user-flow): add base flags option
Sorry for the churn, we did have this option before #14388. However, the step flags object would completely override the flow flags even if there were settings defined on the flow flags that were not defined on the step flags. This PR should handle the flow flags and step flags properly, by merging them together wit...
diff --git a/core/test/user-flow-test.js b/core/test/user-flow-test.js index c0c3a25d7b71..72c63b95d6e8 100644 --- a/core/test/user-flow-test.js +++ b/core/test/user-flow-test.js @@ -99,6 +99,29 @@ describe('UserFlow', () => { ]); }); + it('should merge flow flags with step flags', async () => { + ...
2
1
0
[{"id": "G0", "claim": "nit: the `if (!flags) return clonedFlowFlags;` early return could be the first statement of `_getNextFlags`.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "nit: rename `newStepFlags` in `_getNextNavigationFlags`, or put the...
null
GoogleChrome__lighthouse__14490
GoogleChrome/lighthouse
14,490
defect
38cce6a863b3452cee3b28e97a50df3031dfcb34
1dd0b4d9a286e5d0084ecc45eb6814461a980053
core(csp-xss): prevent meta warning if header CSPs are secure
Fixes #14489
diff --git a/core/audits/csp-xss.js b/core/audits/csp-xss.js index 0eb9f8610d89..14086d375ed7 100644 --- a/core/audits/csp-xss.js +++ b/core/audits/csp-xss.js @@ -139,8 +139,11 @@ class CspXss extends Audit { ...warnings.map(f => this.findingToTableItem(f, str_(i18n.UIStrings.itemSeverityMedium))), ]; - ...
1
1
0
[{"id": "G0", "claim": "The meta-tag warning UIString (\"Consider defining the CSP in an HTTP header if you can.\") should be changed now that the warning is only shown when header CSPs are insecure on their own.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleChrome__lighthouse__14550
GoogleChrome/lighthouse
14,550
defect
8fc393459ed7697272552346115bdde1dcb6c56b
bb2bff7f5fd665919adefac2f55e05af9b3bba43
core(is-crawlable): only warn if some bots are blocked
ref #5329 (can't close until we update docs) This audit will no longer fail if some known crawler is explicitly allowed while others are blocked. Instead, it will emit a warning say which user agents have been blocked. Details items are only present when the audit is failing, and only show blocking directives wrt a ...
diff --git a/core/audits/seo/is-crawlable.js b/core/audits/seo/is-crawlable.js index 0792b6d731d2..b14a7daf6513 100644 --- a/core/audits/seo/is-crawlable.js +++ b/core/audits/seo/is-crawlable.js @@ -10,6 +10,14 @@ import {Audit} from '../audit.js'; import {MainResource} from '../../computed/main-resource.js'; import ...
4
3
0
[{"id": "G0", "claim": "The doc-comment summary for getUserAgentFromHeaderDirectives still says 'Returns true if robots header specifies user agent' even though the pull request changed the function to return the user agent string, so it should be reworded to 'Returns user agent if specified in robots header'.", "categ...
null
GoogleChrome__lighthouse__14576
GoogleChrome/lighthouse
14,576
defect
9c90f20a27b98b775e37b6c10e4eb85438838d27
ac2f932043ec0a8b527d81c9289b1bb5abf32a23
core(doctype): check for limited quirks mode
fixes #14570 We can't determine limited-quirks-mode without doing a bunch of work ourselves; and the only protocol is via inspector issues which is not snapshot friendly but given this is a very minor edge case, it seems ok to use an optional artifact here. FR doesn't know how to schedule such artifacts, but the run...
diff --git a/core/audits/dobetterweb/doctype.js b/core/audits/dobetterweb/doctype.js index cdd1d3a9e311..7607d73ee812 100644 --- a/core/audits/dobetterweb/doctype.js +++ b/core/audits/dobetterweb/doctype.js @@ -20,6 +20,8 @@ const UIStrings = { explanationNoDoctype: 'Document must contain a doctype', /** Explanat...
4
3
1
[{"id": "G0", "claim": "The rewritten success test that asserts a pass regardless of doctype values is not very realistic, and the reviewer suggests using the doctype case from the reported issue instead.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
GoogleChrome__lighthouse__14590
GoogleChrome/lighthouse
14,590
defect
2f67fbc489fe871054633413622620a794414350
7c31499839b50d1cc3c51ae0173bd945e738ac79
core: remove trace-of-tab references
<!-- Thank you for submitting a pull request! See CONTRIBUTING.MD for help in getting a change landed. https://github.com/GoogleChrome/lighthouse/blob/main/CONTRIBUTING.md --> **Summary** <!-- What kind of change does this PR introduce? --> <!-- Is this a bugfix, feature, refactoring, build related change, e...
diff --git a/core/lib/tracehouse/trace-processor.js b/core/lib/tracehouse/trace-processor.js index 0e1d6786e588..ff17dfc129f6 100644 --- a/core/lib/tracehouse/trace-processor.js +++ b/core/lib/tracehouse/trace-processor.js @@ -662,7 +662,6 @@ class TraceProcessor { // define the frame tree. Unfortunately, many t...
2
2
1
[{"id": "G0", "claim": "Instead of removing the module tag from the log.verbose statements, the code should keep one renamed to 'TraceProcessor' to match other log statements.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR's purge of 'tra...
null
GoogleChrome__lighthouse__14672
GoogleChrome/lighthouse
14,672
defect
e9fd78a4991577e39e7f0a6c1de929331021dc62
17a6a1f260d1314b620e09928346a338e07ae4ed
report(devtools): fix wrong emulation string in meta block
Fixes #14671
diff --git a/core/util.cjs b/core/util.cjs index dc5efface9a4..d0521fc1b4fd 100644 --- a/core/util.cjs +++ b/core/util.cjs @@ -516,8 +516,15 @@ class Util { summary = cpuThrottling = networkThrottling = Util.i18n.strings.runtimeUnknown; } + // devtools-entry.js always sets `screenEmulation.disabled` ...
1
1
1
[{"id": "G0", "claim": "In devtools the emulation meta block should defer to `formFactor` instead of `screenEmulation.mobile`, since `screenEmulation: {disabled: true, mobile: false}` can never occur there (`mobile` is always true when the config extends the default), so the new logic and its test assert a scenario tha...
null
GoogleChrome__lighthouse__14694
GoogleChrome/lighthouse
14,694
defect
f212b1fb5d0cbb52f50695557c4f882281f1c117
d39d9f3eaed0f63de7651e4f7b3128a1a5d3b658
core(bf-cache-failures): pause on the temporary page
Unfortunately, this is the best solution I could get to while investigating the recent e2e test failures. I haven't seen it fail with this timeout yet but obviously not a guarantee. IMO this should at least reduce the flakiness. I experimented with `waitForCPUIdle` instead but `Runtime.evaluate` will throw an error ...
diff --git a/core/gather/gatherers/bf-cache-failures.js b/core/gather/gatherers/bf-cache-failures.js index 461476193e12..68cc4c345dda 100644 --- a/core/gather/gatherers/bf-cache-failures.js +++ b/core/gather/gatherers/bf-cache-failures.js @@ -9,6 +9,7 @@ import {waitForFrameNavigated, waitForLoadEvent} from '../driver/...
2
2
0
[{"id": "G0", "claim": "The newly added arbitrary-pause line needs an explanatory comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The separate setTimeout pause could be folded into `waitForLoadEvent`'s `pauseAfterLoadMs` parameter instead....
null
GoogleChrome__lighthouse__14697
GoogleChrome/lighthouse
14,697
defect
49a8f12d43e91b8e3a8028e703230e19fc502f52
31c41aef64d9c4162a963bfe17aa1e8794ef7571
report: use entity classification to filter third-parties
Report changes split from #14622. This PR rewires third-parties filter checkbox on reports to use `LHR.entities` entity classification. For legacy reports, it will continue falling back to the origin string match based filter. - [x] Change PR base to `main` after #14622 lands.
diff --git a/core/util.cjs b/core/util.cjs new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/report/renderer/details-renderer.js b/report/renderer/details-renderer.js index 893f863b25f9..5831faf84781 100644 --- a/report/renderer/details-renderer.js +++ b/report/renderer/details-renderer.js @@ -65,8 +65...
13
9
2
[{"id": "G0", "claim": "The double-negative condition in classifyEntities should be rewritten as `audit.details?.type !== 'opportunity' && audit.details?.type !== 'table'`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment above the `ge...
null
GoogleChrome__lighthouse__14711
GoogleChrome/lighthouse
14,711
defect
49a8f12d43e91b8e3a8028e703230e19fc502f52
b1a526e44beac167687c5fc798487ffbc47bb38e
core(network-request): add rendererStartTime
With #14574 temporarily in limbo, this PR adds only `rendererStartTime` to network requests. Needed for #13738 and to maintain current 9.x functionality introduced in #14481.
diff --git a/core/audits/network-requests.js b/core/audits/network-requests.js index 477e74eb5505..51249124067b 100644 --- a/core/audits/network-requests.js +++ b/core/audits/network-requests.js @@ -31,8 +31,8 @@ class NetworkRequests extends Audit { static async audit(artifacts, context) { const devtoolsLog = ...
2
1
0
[{"id": "G0", "claim": "The PR doesn't solve the `timing` issue, it only sidesteps it by not having any tests that set `rendererStartTime`.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The variable in core/audits/network-requests.js should be named `e...
null
GoogleChrome__lighthouse__14744
GoogleChrome/lighthouse
14,744
defect
b245ca350c1e01de0302d46ae31c918714366224
bb40949581803a6dfdb7d76656f3d1f2c7ffc577
core: refactor out entity-classification lookup tables
Drops the two lookup tables and `firstParty`: `string` from entity classification, rendering it to be a flat list of entities. Origins are now packed in `entity.origins`: `Array<string>`.
diff --git a/core/runner.js b/core/runner.js index 5b1dacdcdec9..e889c6a42dad 100644 --- a/core/runner.js +++ b/core/runner.js @@ -154,37 +154,21 @@ class Runner { /** @type {Array<LH.Result.LhrEntity>} */ const entities = []; - /** @type {Record<string, number>} */ - const entityIndexByOrigin = {}; -...
3
3
0
[{"id": "G0", "claim": "The comment on `origins` should be amended to clarify that it lists only the origins seen in network records rather than all possible origins for the entity.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `entity` varia...
null
GoogleChrome__lighthouse__14749
GoogleChrome/lighthouse
14,749
defect
9b800e035811a716ad3d88eb95429737463e4c71
f887da7b4451fb7bc3c326fc9ad9f221d6c2aef5
core(third-party-summary): change item.entity from link to text
Extracted out Third-Party-Summary deprecation changes from #14655, if we need to defer grouping changes to 10.1. The audit uses a `LinkValue` data type on its `entity` column. This deprecates the usage of that `valueType` and converts it into `text`. The value will be the name of the entity, correlatable to entity n...
diff --git a/core/audits/third-party-summary.js b/core/audits/third-party-summary.js index 1f00a44c24f7..0a8bf141a009 100644 --- a/core/audits/third-party-summary.js +++ b/core/audits/third-party-summary.js @@ -217,11 +217,7 @@ class ThirdPartySummary extends Audit { return { ...stats, - ...
2
2
0
[{"id": "G0", "claim": "Rendering existing LHRs as links for this audit should be ok, so the PR should not unconditionally downgrade the entity column to text in the LHR upgrade path (asked as a question about the idea behind the change).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "intro...
null
GoogleChrome__lighthouse__14800
GoogleChrome/lighthouse
14,800
defect
610b897bfc93068f1cf97449730e136599dce9e0
4e2ac0cb248246f83dceefbe6886e79ebe4469b6
core(tracing): handle FrameCommittedInBrowser with processPseudoId
fixes #14798 There are some traces where the pid isnt available when the frame is created. In these situations, the `FrameCommittedInBrowser` event has an undefined `processId` prop, and empty string `name` prop, and a hexadecimal `processPseudoId`. Later a `ProcessReadyInBrowser` event provides the processId. I...
diff --git a/core/lib/tracehouse/trace-processor.js b/core/lib/tracehouse/trace-processor.js index eff4c6f0d22f..7553501f29ce 100644 --- a/core/lib/tracehouse/trace-processor.js +++ b/core/lib/tracehouse/trace-processor.js @@ -489,20 +489,22 @@ class TraceProcessor { */ static findMainFramePidTids(mainFrameInfo,...
6
4
0
[{"id": "G0", "claim": "The new processPseudoId scenario should be a separate test of its own rather than an inline block inside the shared cross-process test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "frameCommittedEvts no longer holds only FrameC...
null
GoogleChrome__lighthouse__14804
GoogleChrome/lighthouse
14,804
defect
610b897bfc93068f1cf97449730e136599dce9e0
3b5d4aafebfe984da7621afdd16bd8eb4b8ddebd
core(prioritize-lcp-image): better identify lcp request
Addresses the third and fourth bullet points of #14300 (though image redirects still need work, see below). Currently the LCP image network request is the first request found with a matching URL. This PR adds a more in-depth search for the request, also matching frame, resource type, if the timing is possible, etc. ...
diff --git a/cli/test/fixtures/dobetterweb/dbw_tester.css b/cli/test/fixtures/dobetterweb/dbw_tester.css index 66cf3db8a716..df421ee81f0e 100644 --- a/cli/test/fixtures/dobetterweb/dbw_tester.css +++ b/cli/test/fixtures/dobetterweb/dbw_tester.css @@ -10,10 +10,10 @@ body { .doesnotapply { display: flexbox; /* FAIL ...
2
2
1
[{"id": "G0", "claim": "The change to the dbw_tester.css fixture (redirected LCP image) should be accompanied by updating the associated artifact fixtures.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A real trace should be added as a test case for th...
null
GoogleChrome__lighthouse__14911
GoogleChrome/lighthouse
14,911
defect
91d457b0abc44d5adea547b815ec02498d8859df
de6a3944ae73a6b27b12e23059728461f214b642
core: correctly truncate unicode strings
In various places, we truncate web strings using `.slice`, which can result in eliding in the middle of a grapheme (visual character). This is typically fine for JSON serialization (it just won't look great), but in PSI there is a serialization step that breaks under this input. This PR improves all the places (but ...
diff --git a/cli/test/smokehouse/test-definitions/byte-efficiency.js b/cli/test/smokehouse/test-definitions/byte-efficiency.js index 50a06a1593d7..240dd78d6d00 100644 --- a/cli/test/smokehouse/test-definitions/byte-efficiency.js +++ b/cli/test/smokehouse/test-definitions/byte-efficiency.js @@ -192,12 +192,12 @@ const e...
14
9
2
[{"id": "G0", "claim": "The `dirty ||= truncatedString !== attributeValue;` line in getOuterHTMLSnippet is hard to understand and should be written as a plain if statement.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new import in unminif...
null
GoogleChrome__lighthouse__14920
GoogleChrome/lighthouse
14,920
defect
5bc35bea2f06c84b95dc2f91b2cbbb382f27e259
854fab1001d58c06ddedc808d2f5c35a5acf8a91
core(full-page-screenshot): revise logic for determining dimensions
Fixes #14824. More details on the issue. - Fixes the issue that resulted in full height of the page being clipped in some cases. - Fixes discrepancy in dimensions due to horizontal overflow (overflow-x) of elements on the page. - Simplifies the calculation a bit by relying solely on DevTools metrics API.
diff --git a/core/gather/gatherers/full-page-screenshot.js b/core/gather/gatherers/full-page-screenshot.js index f7c6113db75c..cc19136976f7 100644 --- a/core/gather/gatherers/full-page-screenshot.js +++ b/core/gather/gatherers/full-page-screenshot.js @@ -46,17 +46,6 @@ function getObservedDeviceMetrics() { }; } -...
5
3
3
[{"id": "G0", "claim": "The pull request should add a smoke test covering the horizontal overflow case.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The full-page-screenshot unit test file should be removed in favour of smoke tests, since it effective...
null
GoogleChrome__lighthouse__14963
GoogleChrome/lighthouse
14,963
defect
1e6c0acb637fbb3d23829c79e4146fb232d7989d
36f79ca892a912344cc981e5cd679976d1d63dfc
core(driver): warn about remaining inflight requests urls
<!-- Thank you for submitting a pull request! See CONTRIBUTING.MD for help in getting a change landed. https://github.com/GoogleChrome/lighthouse/blob/main/CONTRIBUTING.md --> **Summary** <!-- What kind of change does this PR introduce? --> <!-- Is this a bugfix, feature, refactoring, build related change, e...
diff --git a/core/gather/driver/wait-for-condition.js b/core/gather/driver/wait-for-condition.js index 08340b946cbd..c4860346c851 100644 --- a/core/gather/driver/wait-for-condition.js +++ b/core/gather/driver/wait-for-condition.js @@ -487,6 +487,18 @@ async function waitForFullyLoaded(session, networkMonitor, options) ...
4
2
1
[{"id": "G0", "claim": "The variable holding the inflight request URLs should be named `inflightRequestUrls` (plural) instead of `inflightRequestsUrl`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The log message should read \"Remaining inflig...
null
GoogleChrome__lighthouse__15017
GoogleChrome/lighthouse
15,017
defect
d5ab42f7f85da96feddcbeed3564a399de5ecb0f
2671ab8be245f6c807d9fb88d72a055c6c21be41
core(entity-classification): classify chrome extensions into separate entities
Fixes #15014. Level 2 implementation as described on #15014. `URL.origin` returns `"null"` for `chrome-extension://` so we reconstruct an origin via `protocol + '://' + host` portion of the URL. /cc @brendankenny
diff --git a/core/computed/entity-classification.js b/core/computed/entity-classification.js index eeaa7ee017a3..829157868376 100644 --- a/core/computed/entity-classification.js +++ b/core/computed/entity-classification.js @@ -20,11 +20,13 @@ class EntityClassification { */ static makeUpAnEntity(entityCache, url...
7
6
4
[{"id": "G0", "claim": "The chrome-extension protocol check can just be `=== 'chrome-extension:'` instead of `startsWith('chrome-extension')`.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The extension's name can be resolved from the `Runtime.exec...
null
GoogleChrome__lighthouse__15051
GoogleChrome/lighthouse
15,051
defect
49aa1425b83928f08a961e48ebd88a8ffa9da2cf
0f4f43bb999ff238e269e7ffa945fc7a7bc4d921
new_audit: td-has-header
See http://go/prcpg for the current list of audits to be enabled. Surprisingly, `a11y_tester.html` already has [a specific test case](https://github.com/GoogleChrome/lighthouse/blob/main/cli/test/fixtures/a11y/a11y_tester.html#L209-L217) for this.
diff --git a/cli/test/smokehouse/test-definitions/a11y.js b/cli/test/smokehouse/test-definitions/a11y.js index 3ea1f0c0efef..df16b5f2a9fb 100644 --- a/cli/test/smokehouse/test-definitions/a11y.js +++ b/cli/test/smokehouse/test-definitions/a11y.js @@ -698,6 +698,22 @@ const expectations = { ], }, ...
6
6
2
[{"id": "G0", "claim": "The expected audit result for `td-has-header` should be filled out in `cli/test/smokehouse/test-definitions/a11y.js` (runnable via `yarn smoke a11y`).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The change breaks tests in CI, ...
null
GoogleChrome__lighthouse__15054
GoogleChrome/lighthouse
15,054
defect
3ba11a87992fa3deaf02f867dd08515b43038998
58cb298ab4a8f8042ff041c922459afd9f17b93f
core(global-listeners): iterate all execution contexts
Fixes #14980 <img width="789" alt="image" src="https://user-images.githubusercontent.com/4071474/236957965-54796e92-6f15-4e18-b808-f10dd4972d48.png">
diff --git a/core/gather/driver/target-manager.js b/core/gather/driver/target-manager.js index a4bab53e1ebd..43235c28ea07 100644 --- a/core/gather/driver/target-manager.js +++ b/core/gather/driver/target-manager.js @@ -40,6 +40,7 @@ class TargetManager extends ProtocolEventEmitter { this._enabled = false; t...
6
6
2
[{"id": "G0", "claim": "Replace the array-of-descriptions lookup in _onExecutionContextCreated with a map keyed by execution context id.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Drop the general-case origin filter (origin '://' or '') in _onExecuti...
null
GoogleChrome__lighthouse__15061
GoogleChrome/lighthouse
15,061
defect
05d3f87f10987f17abba022d524c03c2e8480eb3
d27e58503aec7504c399ecbd159f2d90f72c5cac
core(largest-contentful-paint-element): display LCP value
We discussed doing this in 🔒 [go/lighthouse-lcp-phases](http://goto.google.com/lighthouse-lcp-phases) This also includes some code cleanup that changes how we handle the N/A case.
diff --git a/cli/test/smokehouse/test-definitions/perf-trace-elements.js b/cli/test/smokehouse/test-definitions/perf-trace-elements.js index 79b8cb3fd0d7..a71e5a9a70ed 100644 --- a/cli/test/smokehouse/test-definitions/perf-trace-elements.js +++ b/cli/test/smokehouse/test-definitions/perf-trace-elements.js @@ -144,7 +14...
1
1
1
[{"id": "G0", "claim": "The smoke test expectation in perf-trace-elements.js, which the change left without the display value it now produces, should be a regex like /ms/ or /\\d+ ms/ instead of a fixed string.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
GoogleChrome__lighthouse__15092
GoogleChrome/lighthouse
15,092
defect
98f380256c20076db0bb56798fad7a2c46de63f7
a80c06dd9d8a7ee9da4daa1168b2b288ae4b6cab
report: update error icons
<!-- Thank you for submitting a pull request! See CONTRIBUTING.MD for help in getting a change landed. https://github.com/GoogleChrome/lighthouse/blob/main/CONTRIBUTING.md --> **Summary** <!-- What kind of change does this PR introduce? --> <!-- Is this a bugfix, feature, refactoring, build related change, e...
diff --git a/flow-report/test/wrappers/category-score-test.tsx b/flow-report/test/wrappers/category-score-test.tsx index 2eada342c8a7..95470dfd3171 100644 --- a/flow-report/test/wrappers/category-score-test.tsx +++ b/flow-report/test/wrappers/category-score-test.tsx @@ -55,9 +55,12 @@ describe('CategoryScore', () => { ...
4
4
1
[{"id": "G0", "claim": "The SVGs should scale on their own, so the three different sized error-icon definitions in CSS are unnecessary.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There should be a single definition for the error svg rather than four ...
null
GoogleChrome__lighthouse__15096
GoogleChrome/lighthouse
15,096
defect
797621008a9b458d190cd31188f6142894810a95
d8af3c7cf7be1bd9747291ce22edc4bd2889bdb6
core(network-analyzer): use arithmetic mean for median
AFAIK, median is always defined to use the arithmetic mean of the two middle values if the number of samples is even. We weren't doing that. The implications for lantern accuracy, at least according to our current test database, is minor but positive. <img width="758" alt="image" src="https://github.com/GoogleChrome...
diff --git a/core/lib/dependency-graph/simulator/network-analyzer.js b/core/lib/dependency-graph/simulator/network-analyzer.js index 7018af991727..6555dffec8da 100644 --- a/core/lib/dependency-graph/simulator/network-analyzer.js +++ b/core/lib/dependency-graph/simulator/network-analyzer.js @@ -52,11 +52,22 @@ class Net...
2
1
0
[{"id": "G0", "claim": "The length <= 1 branch is unnecessary since the odd case handles length 1, and reaching into values[0] when the array is empty just to get undefined is confusing, so the empty case should be made explicit with median = undefined.", "category": "maintainability", "verdict": "supported", "priority...
null
GoogleChrome__lighthouse__15104
GoogleChrome/lighthouse
15,104
defect
ea4a3e8a8657e986235027354d9e301fd9ca6252
7be2067a04fa774b813d0c4e4f7223941ac3321b
core(byte-efficiency): compute FCP & LCP savings
First pass at computing FCP / LCP graph savings for byte efficiency audits. To gauge these estimates, I did a DT throttling run on cnn.com: https://googlechrome.github.io/lighthouse/viewer/?gist=3101939dec6e6aa3c54ef73af500b86a https://trace.cafe/t/QxCTNKUbin ``` offscreen-images { FCP: 0, LCP: 0 } unminified-...
diff --git a/core/audits/audit.js b/core/audits/audit.js index 481d3b5d2e94..281b5f3909f7 100644 --- a/core/audits/audit.js +++ b/core/audits/audit.js @@ -415,6 +415,18 @@ class Audit { details: product.details, }; } + + /** + * @param {LH.Artifacts} artifacts + * @param {LH.Audit.Context} context +...
4
3
1
[{"id": "G0", "claim": "The LCP record savings computation uses lcpLoadTime (lcpBreakdown.loadEnd - lcpBreakdown.loadStart), which includes TTFB time, although the benefit is only to download time.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
GoogleChrome__lighthouse__15105
GoogleChrome/lighthouse
15,105
defect
df9774f9393fbc45f2f3eb40a0b489e86a49a20c
45926b62a4bbe9aa068882180a516b555c9f1ab7
core(network-requests): add entity classification
**Summary** At present it's difficult to collect which requests are first and third party in LH. As of this PR, `entity` will be present in the `network-requests` audit output. **Related Issues/PRs** - Closes #15093
diff --git a/core/audits/network-requests.js b/core/audits/network-requests.js index f7e99bf5135b..9b50169192de 100644 --- a/core/audits/network-requests.js +++ b/core/audits/network-requests.js @@ -8,6 +8,7 @@ import {Audit} from './audit.js'; import UrlUtils from '../lib/url-utils.js'; import {NetworkRecords} from ...
2
2
1
[{"id": "G0", "claim": "The pull request reformats pre-existing code (double quotes on the gatherMode check, a wrapped MainResource.request call) with default prettier formatting unrelated to the change.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
GoogleChrome__lighthouse__15111
GoogleChrome/lighthouse
15,111
defect
d0233f5cb39c25fe0327631d7764c9ef97726938
739738de1f53267e99efdca69e4b8206f0081456
tests(smoke): remove external resource from dbw
This will allow us to stop skipping this test in Smokerider.
diff --git a/cli/test/fixtures/dobetterweb/dbw_tester.html b/cli/test/fixtures/dobetterweb/dbw_tester.html index c229e34e9864..5e3f304f13f8 100644 --- a/cli/test/fixtures/dobetterweb/dbw_tester.html +++ b/cli/test/fixtures/dobetterweb/dbw_tester.html @@ -468,7 +468,7 @@ <h2 id="toppy" style="background-image:url('');">...
2
1
0
[{"id": "G0", "claim": "nit: the fake-jquery fixture script URL uses 0.0.0.0 instead of localhost - why not localhost?", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Split the jquery stack detection into a different smoke test so real stack detection is ...
null
GoogleChrome__lighthouse__15126
GoogleChrome/lighthouse
15,126
defect
186e1804ae7757b6a975c9a8b8af1a5e9b67f81e
8825e8babe2acb9d7c367637c82c7fe1bcfe7a89
core(time-to-first-byte): use receiveHeadersStart
I added `receiveHeadersStart` to network timings in https://chromium-review.googlesource.com/c/chromium/src/+/4556570 . It will be available in M116. This PR changes ttfb calculation to use `timing.receiveHeadersStart` instead of `timing.receiveHeadersEnd`. Using the end time potentially misreports ttfb in uncommon ...
diff --git a/core/computed/metrics/time-to-first-byte.js b/core/computed/metrics/time-to-first-byte.js index 74ac7ff5b172..40de6b061cae 100644 --- a/core/computed/metrics/time-to-first-byte.js +++ b/core/computed/metrics/time-to-first-byte.js @@ -41,15 +41,17 @@ class TimeToFirstByte extends NavigationMetric { * @r...
2
2
1
[{"id": "G0", "claim": "The remaining usages of receiveHeadersEnd in server-response-time.js and network-analyzer.js should be updated to receiveHeadersStart as well.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The new _backfillReceiveHeaderSta...
null
GoogleChrome__lighthouse__15156
GoogleChrome/lighthouse
15,156
defect
18a8c2824466eb9137468924fcb54db98e376ead
f1ee67088f3d6566f841b2d1ede5028936c7c956
core(server-response-time): fix for lightrider
This uses the appropriate header in LR to estimate the server response time.
diff --git a/core/audits/server-response-time.js b/core/audits/server-response-time.js index cabf8e4b45ec..037f4b149fb5 100644 --- a/core/audits/server-response-time.js +++ b/core/audits/server-response-time.js @@ -17,6 +17,8 @@ const UIStrings = { description: 'Keep the server response time for the main document sh...
4
3
1
[{"id": "G0", "claim": "When the main resource has no response timing, the audit should throw an error instead of returning a notApplicable result with a warning.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment in calculateResponseTime should ...
null
GoogleChrome__lighthouse__15198
GoogleChrome/lighthouse
15,198
defect
7717fba301b229c752626825ec36e52c1e5656df
2946df26902585817117d02f005c3b389857a9b6
core(long-tasks): add more task information to debugData
The `long-tasks` audit lists the 20 longest tasks, attributed to specific URLs when possible. This makes sense in the HTML report, where these 20 are typically representative of the worst behavior, and any more would risk overwhelming any prioritization it provides. However, when doing analysis using HTTP Archive, y...
diff --git a/core/audits/long-tasks.js b/core/audits/long-tasks.js index 3956b03454f4..5806a0062969 100644 --- a/core/audits/long-tasks.js +++ b/core/audits/long-tasks.js @@ -14,6 +14,9 @@ import {getJavaScriptURLs, getAttributableURLForTask} from '../lib/tracehouse/ta /** We don't always have timing data for short ...
3
2
1
[{"id": "G0", "claim": "Removing notApplicable makes the audit wrongly pass (score 1 but not N/A) when there were tasks but no long tasks; the drive-by change should be reverted.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Truncating results mean...
null
GoogleChrome__lighthouse__15235
GoogleChrome/lighthouse
15,235
defect
477c876e8562937d1f8190dfc2faa1e62e207342
7a4f6fdc2cefd34208733aa0fa2ff63c77da5cab
tests: save smokehouse failures, improve bundle runner logging
1. Save failing results to `.tmp/smokehouse-failures`. Before we did this only for CI. But it is useful locally. 2. Use asset-saver for the above 3. For bundle runner, set the defaults to capture `info` logs. in debug mode, that is now bumped to `verbose`
diff --git a/.github/workflows/devtools.yml b/.github/workflows/devtools.yml index a5b2f813ce10..9da2a2671c7c 100644 --- a/.github/workflows/devtools.yml +++ b/.github/workflows/devtools.yml @@ -176,4 +176,4 @@ jobs: uses: actions/upload-artifact@v1 with: name: Smokehouse (devtools smoke) - ...
2
1
1
[{"id": "G0", "claim": "The reviewer asks why the bundle runner's log level for normal (non-debug) execution was changed from `undefined` to `'info'`, implying `undefined` should be kept unless there is a reason.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
GoogleChrome__lighthouse__15280
GoogleChrome/lighthouse
15,280
defect
809eaeab359051d36896f7cb99d5ae3a8ae4d47a
53789be561796b2d6d81b74ccc38f51acb281902
tests: add page functions bundling test
These tests are a huge help in debugging issues with `build-bundles` wrt name mangling, which we work hard to avoid. All of the minified variants of these tests currently fail if you switch `buildBundle` to use esbuild's minification. Note: it is an [official warning](https://esbuild.github.io/content-types/#func...
diff --git a/.eslintignore b/.eslintignore index 6719c94c5d34..b99210eb6e5b 100644 --- a/.eslintignore +++ b/.eslintignore @@ -17,3 +17,5 @@ third-party/** # ignore d.ts files until we can properly lint them **/*.d.ts **/*.d.cts + +page-functions-test-case*out*.js diff --git a/.gitignore b/.gitignore index 7892a98b4...
4
2
0
[{"id": "G0", "claim": "The test output files should be moved into the .tmp directory like other unit-test output instead of being gitignored in the repo root.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The move from build/test/plugins/.eslintrc.cjs to...
null
GoogleChrome__lighthouse__15283
GoogleChrome/lighthouse
15,283
defect
a4f9313336bfdd1f4a5ce391ce3218e1ce00a777
7e3042aa81660195c5b3d0beca6e761213b57acc
misc(build): bundle with esbuild minification instead of terser
This brings bundle sizes down to slightly below what they were before #15239 (though #15257 surely helped). Below are bundle size/build times w/ this PR: ______ Summary (comparing building with Rollup, to building with esbuild): * `yarn build-all` went from 35.6s to 14.2s * `yarn build-devtools` went from ...
diff --git a/build/build-bundle.js b/build/build-bundle.js index 78c3e752404e..40dc0003e5fc 100644 --- a/build/build-bundle.js +++ b/build/build-bundle.js @@ -20,7 +20,6 @@ import esbuild from 'esbuild'; import PubAdsPlugin from 'lighthouse-plugin-publisher-ads'; // @ts-expect-error: plugin has no types. import Soft...
5
4
0
[{"id": "G0", "claim": "The stray `getRuntimeFunctionName(truncate);` call appears to serve no purpose and should be removed (or its purpose explained).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The esbuild wrapper detection logic at module...
null
GoogleChrome__lighthouse__15293
GoogleChrome/lighthouse
15,293
defect
75876050d7f18ef1112a7f55b765fed85e3f2a86
a960acd08a6b0c01940c38bcef36432a6ff2c7bc
core(source-maps): use `Scripts` as a dependency
Now that legacy runner is removed, it is possible to use artifacts *other* than DT log and trace as dependencies for other gatherers. This PR uses `Scripts` as a dependency for `SourceMaps` so we don't have to collect 2 sets of script attached events and the calls to `Debugger.enable`/`Dubugger.disable` won't clobbe...
diff --git a/core/gather/gatherers/scripts.js b/core/gather/gatherers/scripts.js index 0328cbc3a590..4fcf875bc59d 100644 --- a/core/gather/gatherers/scripts.js +++ b/core/gather/gatherers/scripts.js @@ -48,8 +48,11 @@ function isLighthouseRuntimeEvaluateScript(script) { * @fileoverview Gets JavaScript file contents. ...
1
1
0
[{"id": "G0", "claim": "The static symbol on the Scripts gatherer should be named 'Scripts' rather than 'DevtoolsLog'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
GoogleChrome__lighthouse__15307
GoogleChrome/lighthouse
15,307
defect
f8750cf58b0adcd2d64ee2830c0f33e87b8e445a
1966b51866088a61a27b24aa7b9f08e3b08faea2
core(dom-size): add TBT savings
First usage of `TBTImpactTasks`. We still want this audit available in snapshot mode, so using some optional artifacts to get the savings calculation.
diff --git a/core/audits/dobetterweb/dom-size.js b/core/audits/dobetterweb/dom-size.js index 5548173d209e..bec2893d0df4 100644 --- a/core/audits/dobetterweb/dom-size.js +++ b/core/audits/dobetterweb/dom-size.js @@ -13,6 +13,7 @@ import {Audit} from '../audit.js'; import * as i18n from '../../lib/i18n/i18n.js'; +imp...
2
1
0
[{"id": "G0", "claim": "The computeTbtImpact method would benefit from some comments explaining the calculation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "On a page with a large DOM and constant forced style recalcs (layout thrashing), the au...
null
GoogleChrome__lighthouse__15310
GoogleChrome/lighthouse
15,310
defect
7ae8bd442d83efcca1cb48c5c48302d974b00756
55840f6c56bf9a671774469869d1c869da36d5cf
report: re-order manual audits and expand when audits pass
This PR aims to make it more obvious that there are possibly still a11y issues outside of what Lighthouse can automatically test. And that this applies even if the page scores a 100 in a11y. Included changes: * Expand manual audits upon scoring 100 in accessibility. * Verified locally that this expansion happens...
diff --git a/core/config/default-config.js b/core/config/default-config.js index f2f2b07f018c..516127acc1f0 100644 --- a/core/config/default-config.js +++ b/core/config/default-config.js @@ -38,8 +38,8 @@ const UIStrings = { diagnosticsGroupDescription: 'More information about the performance of your application. Th...
8
6
4
[{"id": "G0", "claim": "The manual-testing link in the new a11y category description should point to https://web.dev/how-to-review/ instead of https://www.w3.org/WAI/test-evaluate/, to be consistent with the a11y manual description link.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": ...
null
GoogleChrome__lighthouse__15311
GoogleChrome/lighthouse
15,311
defect
d149e9c1b628d5881ca9ca451278d99ff1b31d9a
96218223d7e4cb7db15a059a24229ea1e1ac0263
core: add `DevtoolsLogError` and `TraceError` artifacts
https://github.com/GoogleChrome/lighthouse/issues/15306 Before: https://googlechrome.github.io/lighthouse/viewer/?gist=1c712c30d8e871163cadb014df6125c8 After: https://googlechrome.github.io/lighthouse/viewer/?gist=765026ff99e2f51e1e5b82675e26ef46 If there was a page load error in navigation mode, we still hold o...
diff --git a/cli/test/smokehouse/test-definitions/errors-expired-ssl.js b/cli/test/smokehouse/test-definitions/errors-expired-ssl.js index e6726fa67516..76e4faa3c0dc 100644 --- a/cli/test/smokehouse/test-definitions/errors-expired-ssl.js +++ b/cli/test/smokehouse/test-definitions/errors-expired-ssl.js @@ -40,18 +40,14 ...
5
2
0
[{"id": "G0", "claim": "The PageLoadError check should be folded into the existing conditionals around lines 376/380 rather than thrown per audit, to keep the previous non-breaking behavior of 'don't run any audits if we can't trust the trace/logs to be good'.", "category": "design", "verdict": "opposed", "priority": "...
null
GoogleChrome__lighthouse__15321
GoogleChrome/lighthouse
15,321
defect
e5d1b9c2491b7c4695613070b4a2cc78e8fc5456
15225815a739d447d896b76f489c292aa0a70ca0
core: re-weight best practices
Closes https://github.com/GoogleChrome/lighthouse/issues/15163 Happy to discuss these weightings. Main goal was to ensure best practices is not green (i.e. <90) if deprecations fail. I also felt that the https audit was important enough in this regard. Others that could maybe increase weighting IMO: - `errors-in...
diff --git a/core/config/default-config.js b/core/config/default-config.js index 910c6500cb16..091593937b84 100644 --- a/core/config/default-config.js +++ b/core/config/default-config.js @@ -593,7 +593,7 @@ const defaultConfig = { supportedModes: ['navigation', 'timespan', 'snapshot'], auditRefs: [ ...
1
1
0
[{"id": "G0", "claim": "Change the paste-preventing-inputs audit weight from 1 to 3 in the default config.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
GoogleChrome__lighthouse__15378
GoogleChrome/lighthouse
15,378
defect
53c1b7bf975d83ce24d953c2140fdef67a5cf085
6577d34c08284736e1b3355a4b75238e25101fea
tests(unit): retry failures and upload failure artifacts
Unit failures are only happening in CI, failure artifacts might give us more insight. Retry unit tests 5 times to unblock CI. CI failures added to backlog: https://github.com/GoogleChrome/lighthouse/issues/15382
diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 9f07711e16ff..80a45b24926d 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -84,6 +84,13 @@ jobs: - name: yarn test-viewer run: yarn build-viewer && xvfb-run --auto-servernum bash $GITHUB_WORKSPACE/.github/...
1
1
0
[{"id": "G0", "claim": "Don't remove `--forbid-only` from the `unit:ci` package script, since the flag needs to be supported in the test script.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
GoogleChrome__lighthouse__15394
GoogleChrome/lighthouse
15,394
defect
958177dc80775363390495c33fe0f71270a1aafe
e8ebcc8720f6587c4a3f1e5581a549e3519b075a
core(viewport-meta): include initial-scale value condition
Fail audit if the viewport's `initial-scale` value is less than 1. fixes #15266
diff --git a/core/computed/viewport-meta.js b/core/computed/viewport-meta.js index 44fa9d5878c8..1c9c059c8a4a 100644 --- a/core/computed/viewport-meta.js +++ b/core/computed/viewport-meta.js @@ -35,7 +35,16 @@ class ViewportMeta { } const viewportProps = parsedProps.validProperties; - const isMobileOptim...
3
1
0
[{"id": "G0", "claim": "When the initial-scale check fails, a warning indicating the value of initial-scale is invalid should be added.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The extra if case is unnecessary; the initial-scale<1 condition should be...
null
GoogleChrome__lighthouse__15406
GoogleChrome/lighthouse
15,406
defect
cd09b6399215cb8b9ad43e6f244999049317aae0
62025b8c49dc4ef2ed9fae09f223d850d5e7b3b0
core(crawlable-anchors): consider empty `rawHref` crawlable
Closes #15127
diff --git a/core/audits/seo/crawlable-anchors.js b/core/audits/seo/crawlable-anchors.js index 6980f582d22f..86e522b8cd53 100644 --- a/core/audits/seo/crawlable-anchors.js +++ b/core/audits/seo/crawlable-anchors.js @@ -44,9 +44,12 @@ class CrawlableAnchors extends Audit { name = '', role = '', id, ...
2
2
1
[{"id": "G0", "claim": "The `if (role === ' ') return true;` check the change adds is unexplained (\"What's this change for?\") and its purpose should be justified or removed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The condition should just ...
null
GoogleChrome__lighthouse__15459
GoogleChrome/lighthouse
15,459
defect
9152513f40cff56f06cdd1421fbd20ff9b0acb6d
3f4313ddee94a85ec63ae09e63a5f56481395b12
tests(devtools): ensure Lighthouse starts in smoke tests
A lot of our flaky DevTools smoke failures are timeouts on the protocol command that waits for Lighthouse to finish ([example](https://github.com/GoogleChrome/lighthouse/actions/runs/6190447931/job/16806797771?pr=15201)). After some investigation, I discovered that the Lighthouse run never actually starts in these case...
diff --git a/.github/workflows/devtools.yml b/.github/workflows/devtools.yml index 6ef816372fa1..d30efb32874e 100644 --- a/.github/workflows/devtools.yml +++ b/.github/workflows/devtools.yml @@ -168,7 +168,7 @@ jobs: - run: mkdir latest-run working-directory: ${{ github.workspace }}/lighthouse - name: ...
3
2
1
[{"id": "G0", "claim": "The option should be named `includeScreenshotInError` instead of `includedScreenshotInError`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new error-screenshot reporting should not be gated on debug mode (`options.d...
null
GoogleChrome__lighthouse__15494
GoogleChrome/lighthouse
15,494
defect
c4066039a743772f179794b805cc1e74b27dc988
46d9b2885e95f09eb16ed4a5e7ca9b1847afd5bb
core: create flag to prevent fatal error on bad status code
[sample report](https://googlechrome.github.io/lighthouse/viewer/?gist=d6edf66c70d8a74bbe78913c39fcc9b2) fixes #10493
diff --git a/cli/cli-flags.js b/cli/cli-flags.js index 8dba9776406d..3aaf81640a9d 100644 --- a/cli/cli-flags.js +++ b/cli/cli-flags.js @@ -204,12 +204,16 @@ function getYargsParser(manualArgv) { type: 'boolean', describe: 'Disables collection of the full page screenshot, which can be quite large', ...
4
3
3
[{"id": "G0", "claim": "There should be a command line switch to invoke error-page testing, and when the switch is absent the error message should highlight that the page errored and that the HTTP status can be intentionally ignored to test the page.", "category": "design", "verdict": "supported", "priority": "P1", "sc...
null
GoogleChrome__lighthouse__15577
GoogleChrome/lighthouse
15,577
defect
53746cc18c8d6c484046483de7494b4fe339a2bf
75e43b4e87401439aa707dd226ce7dc5459e234c
core(bf-cache): add warning and hide when using old headless
Closes https://github.com/GoogleChrome/lighthouse/issues/14784 This also adds a new base artifact `HostProduct` which can trivially differentiate between old/new headless.
diff --git a/core/audits/bf-cache.js b/core/audits/bf-cache.js index 55eefe73c1fe..28aefd60511c 100644 --- a/core/audits/bf-cache.js +++ b/core/audits/bf-cache.js @@ -26,6 +26,8 @@ const UIStrings = { failureReasonColumn: 'Failure reason', /** Label for a column in a data table; entries in the column will be a st...
1
1
1
[{"id": "G0", "claim": "The UA-string regex used to detect old headless works but is sketchy/unstable and may break when Chrome changes in the future; better to use the product string from Browser.getVersion, which differentiates old and new headless more reliably.", "category": "correctness", "verdict": "supported", "...
null
GoogleChrome__lighthouse__15616
GoogleChrome/lighthouse
15,616
defect
693a82a62e919e58193a6c4404fede5c7b5eed8a
3271004fb394e677383011bbcfe98952c4e9d9c7
misc(proto): add ConfigSettings fields
fixes #15193 I adapted the suggested syntax quite a bit. But... it's now happy for python, go, and C++ protobuf handling. with the additions we can delete some of the hax in proto-processors (which is used in LR)
diff --git a/cli/test/cli/run-test.js b/cli/test/cli/run-test.js index 4b42ec3f70ee..da1fc2d3cb05 100644 --- a/cli/test/cli/run-test.js +++ b/cli/test/cli/run-test.js @@ -37,6 +37,7 @@ describe('CLI run', function() { // eslint-disable-next-line max-len const flags = getFlags([ '--output=json', +...
2
2
2
[{"id": "G0", "claim": "The proto declares auditMode/gatherMode as bool, but the reviewer questions whether that works given the values are really `boolean | string` (and notes the types can never be changed later, only retired).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
GoogleChrome__lighthouse__15640
GoogleChrome/lighthouse
15,640
defect
4949ffb50d59854a77b40c95ad4e98ae04c33584
f79a1d7016c977e753a8da815e5d4adf7ec4c8c5
core(legacy-javascript): exclude header size for estimating wasted bytes
`legacy-javascript` uses `ByteEfficiencyAudit.estimateTransferSize` to get a transfer ratio for a given script resource, in order to convert the estimated byte savings from being in terms of raw resource size, into network transfer size (taking into account content encoding so as not to overstate the savings). There...
diff --git a/core/audits/byte-efficiency/byte-efficiency-audit.js b/core/audits/byte-efficiency/byte-efficiency-audit.js index f7d2219fdf4b..baff738c70b6 100644 --- a/core/audits/byte-efficiency/byte-efficiency-audit.js +++ b/core/audits/byte-efficiency/byte-efficiency-audit.js @@ -13,6 +13,7 @@ import {PageDependencyG...
3
1
0
[{"id": "G0", "claim": "The name `responseHeadersTransferSize` may not be the best, as the value (assigned from `encodedDataLength`) probably includes SSL/TLS transferred bytes.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The resource-type fall...
null
GoogleChrome__lighthouse__15667
GoogleChrome/lighthouse
15,667
defect
14428d72d80f518b0074bcff5573810eff2a5065
05afd218ea71ac2f87e617c00627bbbe55cc0430
core(duplicated-javascript): exclude header size for estimating wasted bytes
following up to https://github.com/GoogleChrome/lighthouse/pull/15640, but doing it for duplicated-javascript. The estimated savings changed so drastically b/c the test took a shortcut involving mixing artifacts from two different sources. The old transfer estimate ratio would use `script.length` as the content leng...
diff --git a/core/audits/byte-efficiency/duplicated-javascript.js b/core/audits/byte-efficiency/duplicated-javascript.js index 0ddb668f198c..41af0e996023 100644 --- a/core/audits/byte-efficiency/duplicated-javascript.js +++ b/core/audits/byte-efficiency/duplicated-javascript.js @@ -11,7 +11,7 @@ import {ByteEfficiency...
2
1
0
[{"id": "G0", "claim": "The new content-encoding header match could use item.name.toLowerCase() instead of a regex, which would be easier to read (offered as a nit, author's choice).", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "_estimateTransf...
null
GoogleChrome__lighthouse__15685
GoogleChrome/lighthouse
15,685
defect
bb84b18550a4b7ad14db38c479fc0ea907babca5
b9177e781aaec8fd681ee56ba32a3854e37c2c1b
core(mpfid): add list of loaf durations to debugdata
Building on #15684, also logs LoAF startTime/durations in mpfid debugdata to be able to evaluate if a windowed function over LoAFs (e.g. max sum of LoAF blockingDurations in a 5s window) would be useful. No visible changes. Again the intended purpose is analysis via a source like HTTP Archive. I also didn't reali...
diff --git a/core/audits/metrics/max-potential-fid.js b/core/audits/metrics/max-potential-fid.js index 467c0f3d86ea..6256e45cee4c 100644 --- a/core/audits/metrics/max-potential-fid.js +++ b/core/audits/metrics/max-potential-fid.js @@ -10,6 +10,14 @@ import {ProcessedTrace} from '../../computed/processed-trace.js'; imp...
1
1
1
[{"id": "G0", "claim": "When all LoAFs are before FCP, the function still returns undefined because of the max duration/blocking guard, so the newly added observedLoafs list will not be seen.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null