tests: add smoketest to capture microtask regression (#8379)
This commit is contained in:
Родитель
42a278a741
Коммит
2350dd917f
|
@ -26,6 +26,7 @@ before_script:
|
|||
# see comment above about puppeteer
|
||||
- export CHROME_PATH="$(which google-chrome-stable)"
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
# Print out the Chrome version so we know what we're working with
|
||||
- google-chrome-stable --version
|
||||
- yarn build-all
|
||||
script:
|
||||
|
|
|
@ -26,4 +26,50 @@ module.exports = [
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
lhr: {
|
||||
requestedUrl: 'http://localhost:10200/tricky-main-thread.html?setTimeout',
|
||||
finalUrl: 'http://localhost:10200/tricky-main-thread.html?setTimeout',
|
||||
audits: {
|
||||
'interactive': {
|
||||
// Make sure all of the CPU time is reflected in the perf metrics as well.
|
||||
score: '<.2',
|
||||
},
|
||||
'bootup-time': {
|
||||
details: {
|
||||
items: {
|
||||
0: {
|
||||
// FIXME: Appveyor finds this particular assertion very flaky for some reason :(
|
||||
url: process.env.APPVEYOR ? /main/ : /main-thread-consumer/,
|
||||
scripting: '>1000',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
lhr: {
|
||||
requestedUrl: 'http://localhost:10200/tricky-main-thread.html?fetch',
|
||||
finalUrl: 'http://localhost:10200/tricky-main-thread.html?fetch',
|
||||
audits: {
|
||||
'interactive': {
|
||||
// Make sure all of the CPU time is reflected in the perf metrics as well.
|
||||
score: '<.2',
|
||||
},
|
||||
'bootup-time': {
|
||||
details: {
|
||||
items: {
|
||||
0: {
|
||||
// TODO: requires sampling profiler and async stacks, see https://github.com/GoogleChrome/lighthouse/issues/8526
|
||||
// url: /main-thread-consumer/,
|
||||
scripting: '>1000',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
|
@ -36,42 +36,4 @@ module.exports = [
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
lhr: {
|
||||
requestedUrl: 'http://localhost:10200/tricky-main-thread.html?setTimeout',
|
||||
finalUrl: 'http://localhost:10200/tricky-main-thread.html?setTimeout',
|
||||
audits: {
|
||||
'bootup-time': {
|
||||
details: {
|
||||
items: {
|
||||
0: {
|
||||
// FIXME: Appveyor finds this particular assertion very flaky for some reason :(
|
||||
url: process.env.APPVEYOR ? /main/ : /main-thread-consumer/,
|
||||
scripting: '>1000',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
lhr: {
|
||||
requestedUrl: 'http://localhost:10200/tricky-main-thread.html?fetch',
|
||||
finalUrl: 'http://localhost:10200/tricky-main-thread.html?fetch',
|
||||
audits: {
|
||||
'bootup-time': {
|
||||
details: {
|
||||
items: {
|
||||
0: {
|
||||
// TODO: requires async stacks, https://github.com/GoogleChrome/lighthouse/pull/5504
|
||||
// url: /main-thread-consumer/,
|
||||
scripting: '>1000',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
Загрузка…
Ссылка в новой задаче