-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core(smoke): support a per-runner test exclusion list #14316
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f0a8113
core(smoke): support a per-runner test exclusion list
alexnj df3963c
license and exclusions from devtools.yaml
alexnj ce8b60f
ocd trigger
alexnj 7a6447c
Merge branch 'master' into smoke-exclusion
alexnj 643aa2a
Move redirects together
alexnj 02b1950
Merge remote-tracking branch 'origin' into smoke-exclusion
alexnj 6eea127
Merge branch 'master' into smoke-exclusion
alexnj 73b3387
Moved the comment to jsDoc.
alexnj 351a5fd
Merge branch 'master' into smoke-exclusion
alexnj 645b7b9
Update cli/test/smokehouse/config/config.js
alexnj aeeff90
Review comments.
alexnj dfe873e
Removed the accidental inclusion of a11y
alexnj 6f988ba
Merge branch 'master' into smoke-exclusion
alexnj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* @license Copyright 2022 The Lighthouse Authors. All Rights Reserved. | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. | ||
*/ | ||
|
||
/** | ||
* List of smoke tests excluded per runner. eg: 'cli': ['a11y', 'dbw'] | ||
* @type {Record<string, Array<string>>} | ||
*/ | ||
const exclusions = { | ||
'bundle': [], | ||
'cli': [], | ||
'devtools': [ | ||
// Disabled because normal Chrome usage makes DevTools not function on | ||
// these poorly constructed pages | ||
'errors-expired-ssl', 'errors-infinite-loop', 'dbw' /* dialog prompt */, | ||
// Disabled because Chrome will follow the redirect first, and Lighthouse will | ||
// only ever see/run the final URL. | ||
'redirects-client-paint-server', 'redirects-multiple-server', | ||
'redirects-single-server', 'redirects-single-client', | ||
'redirects-history-push-state', 'redirects-scripts', | ||
// Disabled because these tests use settings that cannot be fully configured in | ||
// DevTools (e.g. throttling method "provided"). | ||
'metrics-tricky-tti', 'metrics-tricky-tti-late-fcp', 'screenshot', | ||
// Disabled because of differences that need further investigation | ||
'byte-efficiency', 'byte-gzip', 'perf-preload', | ||
Comment on lines
+23
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @connorjclark should we open smoke backlog bugs for these? Both the explicitly needs investigation and if we can switch the metrics off of |
||
], | ||
}; | ||
|
||
export default exclusions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe rename the directory too to not overload
config
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a console line that lists excluded tests when a requested test is mismatched. So in this scenario, it would print:
This should help reminding the dev running smoke why a test can't be found. If this and the config edit in practice turns out inconvenient, we can add the
--ignore-exclusions
that @connorjclark initially suggested.