Skip to content

Comments

feat: add lighthouse-ci integration #2227

Open
taylrj wants to merge 9 commits intotwreporter:masterfrom
taylrj:feat/lighthouse-ci
Open

feat: add lighthouse-ci integration #2227
taylrj wants to merge 9 commits intotwreporter:masterfrom
taylrj:feat/lighthouse-ci

Conversation

@taylrj
Copy link
Contributor

@taylrj taylrj commented Aug 12, 2022

Related issue: TWREPORTER-419

taylrj added 2 commits August 12, 2022 08:24
- add lighthouserc.js as the config file
- update circleci config to run lighthouse
  - upgrade the version to v2.1 to add support of `obs`
@taylrj taylrj requested a review from Aylie-Chou August 12, 2022 01:03
@taylrj taylrj self-assigned this Aug 12, 2022
@taylrj
Copy link
Contributor Author

taylrj commented Aug 12, 2022

To verify lighthouserc.js, I used lighthouse cli locally.

This is the report link: https://storage.googleapis.com/lighthouse-infrastructure.appspot.com/reports/1660264892332-46113.report.html (only valid within few days).

@Aylie-Chou
Copy link
Contributor

Question: On which step do we expect to get lighthouse report ?

  1. after PR lauch, before PR merge to master
  2. after PR merge to master
  3. after merge to staging

taylrj added 3 commits August 17, 2022 16:27
This patch add `numberOfRuns` to lighthouserc.js config to decrease
measurement variability.
This patch updates mock data to add a benchmark post for page speed
measurement.
This page adds article page url link as the other target for
collecting metrics in lighthouse measurement.
@taylrj
Copy link
Contributor Author

taylrj commented Aug 19, 2022

Question: On which step do we expect to get lighthouse report ?

A: after PR launch, before PR merge to master

This change updates lighthouserc.js to add lighthouse ci server, also
updates circleci config to include environment variables.
Copy link
Contributor

@Aylie-Chou Aylie-Chou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huge progree to build up lighthouse ci server successfully !
I left a comment about the ci job execution timing, other else looking good.
Please have a look 👀

@taylrj taylrj force-pushed the feat/lighthouse-ci branch from 5b67455 to 4f0fc75 Compare October 3, 2022 02:57
This patch moves lighthouse ci related codes from `build` to an
independent job in circleci config as we want to run lighthouse
before PR merged but the `build` job has branch filter.
@taylrj taylrj force-pushed the feat/lighthouse-ci branch from 4f0fc75 to a507ae0 Compare October 3, 2022 02:59
This patch adds 'category_set' in a mock data post
(slug: russian-invasion-of-ukraine-2022-kid-frequently-asked-questions)
Copy link
Contributor

@Aylie-Chou Aylie-Chou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@taylrj
Copy link
Contributor Author

taylrj commented Nov 1, 2022

Thanks for the review, and I suppose it might need some tweaks after performing tests.
Please help to merge this PR and test at the right time. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants