Repository navigation
Conversation
|
You can preview a23f677 at https://pr29953-a23f677.ngbuilds.io/. |
a23f677 to
8c848d7
Compare
|
You can preview 8c848d7 at https://pr29953-8c848d7.ngbuilds.io/. |
88d587e to
0a1d519
Compare
|
You can preview 88d587e at https://pr29953-88d587e.ngbuilds.io/. |
|
You can preview 0a1d519 at https://pr29953-0a1d519.ngbuilds.io/. |
0a1d519 to
f30670a
Compare
|
You can preview f30670a at https://pr29953-f30670a.ngbuilds.io/. |
The server used for testing on localhost has less optimizations (e.g. serves uncompressed files), so we need to wait longer the ServiceWorker to be loaded and registered to allow Lighthouse to reliably detect it, especially on slower environments (e.g. CI). Related: GoogleChrome/lighthouse#5527 (comment) Fixes angular#29910
f30670a to
17ea000
Compare
|
You can preview 17ea000 at https://pr29953-17ea000.ngbuilds.io/. |
| function waitLongerForSw(config) { | ||
| console.info(`Will wait longer for ServiceWorker (${LONG_WAIT_FOR_SW_DELAY}ms)...`); | ||
| const passes = config.passes || (config.passes = []); | ||
| passes.push({passName: 'defaultPass', pauseAfterLoadMs: LONG_WAIT_FOR_SW_DELAY}); |
There was a problem hiding this comment.
What other implications are there here? I'd expect local scores to be artificially inflated because in these 5s the app loads completely.
There was a problem hiding this comment.
AFAICT, there are no other implications. (The score is 100% anyway as long as the SW is detected in time and the failing tests when it is not detected are boolean (does it have a SW? does it work offline? etc).)
Other categories (e.g. performance) don't seem to be inflated due to this setting (e.g. performance is still ~45% on localhost). This makes sense, because pauseAfterLoadMs does not affect performance-specific metrics (such as first-meaningful-paint).
…29953) The server used for testing on localhost has less optimizations (e.g. serves uncompressed files), so we need to wait longer the ServiceWorker to be loaded and registered to allow Lighthouse to reliably detect it, especially on slower environments (e.g. CI). Related: GoogleChrome/lighthouse#5527 (comment) Fixes #29910 PR Close #29953
…29953) The server used for testing on localhost has less optimizations (e.g. serves uncompressed files), so we need to wait longer the ServiceWorker to be loaded and registered to allow Lighthouse to reliably detect it, especially on slower environments (e.g. CI). Related: GoogleChrome/lighthouse#5527 (comment) Fixes #29910 PR Close #29953
In angular#29953, the wait period for SW on localhost was increased to avoid CI flakes for the PWA score tests. This commit expands the fix to non-localhost origins to avoid flakes in the `aio_monitoring` job, when CircleCI VMs/network are slow. (For reference, example failures: [289127], [289238]) [289127]: https://circleci.com/gh/angular/angular/289127 [289238]: https://circleci.com/gh/angular/angular/289238
#29988) In #29953, the wait period for SW on localhost was increased to avoid CI flakes for the PWA score tests. This commit expands the fix to non-localhost origins to avoid flakes in the `aio_monitoring` job, when CircleCI VMs/network are slow. (For reference, example failures: [289127], [289238]) [289127]: https://circleci.com/gh/angular/angular/289127 [289238]: https://circleci.com/gh/angular/angular/289238 PR Close #29988
#29988) In #29953, the wait period for SW on localhost was increased to avoid CI flakes for the PWA score tests. This commit expands the fix to non-localhost origins to avoid flakes in the `aio_monitoring` job, when CircleCI VMs/network are slow. (For reference, example failures: [289127], [289238]) [289127]: https://circleci.com/gh/angular/angular/289127 [289238]: https://circleci.com/gh/angular/angular/289238 PR Close #29988
…ngular#29953) The server used for testing on localhost has less optimizations (e.g. serves uncompressed files), so we need to wait longer the ServiceWorker to be loaded and registered to allow Lighthouse to reliably detect it, especially on slower environments (e.g. CI). Related: GoogleChrome/lighthouse#5527 (comment) Fixes angular#29910 PR Close angular#29953
angular#29988) In angular#29953, the wait period for SW on localhost was increased to avoid CI flakes for the PWA score tests. This commit expands the fix to non-localhost origins to avoid flakes in the `aio_monitoring` job, when CircleCI VMs/network are slow. (For reference, example failures: [289127], [289238]) [289127]: https://circleci.com/gh/angular/angular/289127 [289238]: https://circleci.com/gh/angular/angular/289238 PR Close angular#29988
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The local server is unoptimized (e.g. no compression), so wait longer for the SW to be loaded and registered to allow Lighthouse reliably detect it, especially on slower environments (e.g. CI).
Fixes #29910.