Skip to content
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

chore(ci): increase Lighthouse CI max_timeout #3884

Merged
merged 1 commit into from
Dec 7, 2020

Conversation

Simek
Copy link
Contributor

@Simek Simek commented Dec 4, 2020

Motivation

Currently Lighthouse CI test fails of on the initial PR deploy because build take more than 5 minutes:

Build time: 7m 58s. Total deploy time: 8m 21s

This PR increased this time to 600 seconds, so 10 minutes.

Unfortunately this is not the best way to solve the issue, but it is the best what can be achieved right now.

The other problem with the Lighthouse check is that pushing another commit to the PR will cause Lighthouse check to run immediately on the site deployed from the previous build, because it only depends on 200 response from the content located under deploy URL and deploy URL do not change between commits (do not include commit hash).

To fix this properly the website deployment should be a part of GitHub workflows, and lighthouse check should depends on that. Then the needs job parameter could be used to prevent the issue described above.

Another way could be modifying Netlify or/and Lighthouse setup/config files in a way which would change the deploy URL between the commits or Netlify status can be hooked into Lighthouse workflow somehow.

Have you read the Contributing Guidelines on pull requests?

Yes.

Test Plan

Run the CI.

Related PRs

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Dec 4, 2020
@github-actions
Copy link

github-actions bot commented Dec 4, 2020

Size Change: 0 B

Total Size: 154 kB

ℹ️ View Unchanged
Filename Size Change
website/build/blog/2017/12/14/introducing-docusaurus/index.html 20.7 kB 0 B
website/build/docs/introduction/index.html 180 B 0 B
website/build/index.html 5.81 kB 0 B
website/build/main.********.js 109 kB 0 B
website/build/styles.********.css 17.5 kB 0 B

compressed-size-action

@netlify
Copy link

netlify bot commented Dec 4, 2020

✔️ Deploy preview for docusaurus-2 ready!
Built without sensitive environment variables

🔨 Explore the source changes: 5eda888

🔍 Inspect the deploy logs: https://app.netlify.com/sites/docusaurus-2/deploys/5fca80f64823a900077db67b

😎 Browse the preview: https://deploy-preview-3884--docusaurus-2.netlify.app

@slorber slorber added the pr: maintenance This PR does not produce any behavior differences to end users when upgrading. label Dec 7, 2020
@slorber
Copy link
Collaborator

slorber commented Dec 7, 2020

Thanks, will try to figure out a solution to this problem but increasing the timeout is good enough for now.
We should find a way to make this lighthouse score more reliable too because currently it's quite random 🤪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: maintenance This PR does not produce any behavior differences to end users when upgrading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants