-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Add Lighthouse-CI #5492 #5521
Add Lighthouse-CI #5492 #5521
Conversation
I also share the views fo @bmuenzenmeyer is there any test repository or fork you've enabled this so we can see the results? Also, how does this PR achieves Could you describe how we are able to actually get the insights and analysis? Is the bot/CI supposed to comment on the PR or what? |
https://github.com/Chandupuram/nodejs.org/pull/2 |
It's kinda annoying that Lighthouse generates one status-check per page. As I mentioned we probably would like to generate reports for each major page, but that seems probably not feasible. What bothers me is how these scores are so low, when I see these when running Lighthouse by myself 🤔 I was genuinely looking forward to something like this: https://github.com/OskarAhl/Lighthouse-github-action-comment, but not sure if this creates a new comment on every run or what. I also wonder where are the custom settings/thresholds at? Did you configure them somewhere? I don't see that in this PR. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@Chandupuram my initial notes and suggested tooling were not clear enough and that's led us down an incorrect path for a bit. as stated in earlier review, lets make sure to:
|
Are we sure about that? What does the "URL" field then even mean? How can it run against the local environment / current running-CI if no web server is running? That doesn't sound correct to me. |
Is this still a recommendation? |
Here's what I think we should do. Let's first clear up requirements:
@Chandupuram do you feel up for this pivot? If I don't hear from one in a couple days I will start it |
I think you can start working on this @bmuenzenmeyer |
`*Lighthouse ran on [${Object.keys(links)[0]}](${Object.keys(links)[0]})*` | ||
].join('\n') | ||
|
||
core.setOutput("comment", comment); |
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.
The indentation of this line is wrong.
@@ -0,0 +1,71 @@ | |||
name: Google Lighthouse | |||
|
|||
on: |
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'm not sure this is correct, I believe the on
here should be of pull_request
, since this should be updated on every Pull Request.
id: loading_comment_to_pr | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.LIGHTHOUSE_APP_TOKEN }} |
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.
This should not be set. By default it will use GITHUB_TOKEN
which is already an Environment Variable
citing the above, we will be closing this to take another run at it in the future |
Description
This PR consists of the infra setup for the Lighthouse CI for this project. This helps us to check and monitor the performance of the pages and various statistics after each and every push done to the repo.
Related Issues
Add Lighthouse-CI #5492
Check List
npx turbo lint
to ensure the code follows the style guide. And runnpx turbo lint:fix
to fix the style errors if necessary.npx turbo format
to ensure the code follows the style guide.npx turbo test
to check if all tests are passing, and/ornpx turbo test:snapshot
to update snapshots if I created and/or updated React Components.