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

Hugo improvements #29504

Merged
merged 2 commits into from
Aug 23, 2021
Merged

Hugo improvements #29504

merged 2 commits into from
Aug 23, 2021

Conversation

jimangel
Copy link
Member

@jimangel jimangel commented Aug 22, 2021

This PR was created to address the performance of Hugo. I would love to have a few folks check full functionality.

By setting params.ui.sidebar_cache_limit to 1, the build time went from 1m30s to 15s locally and 5m45s to 45s in Netlify!!! (details)

While I was making tweaks, I wanted to remove the WARNING: calling IsSet with unsupported type "invalid" (<nil>) will always return false. Fixed via docsy, so I upgraded the module in the second commit following my old instructions.

Lastly, I tested this on the latest build of Hugo and updated netlify.toml to match.

Potentially fixes: #29429

Site preview: https://deploy-preview-29504--kubernetes-io-main-staging.netlify.app

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 22, 2021
@k8s-ci-robot k8s-ci-robot added the sig/docs Categorizes an issue or PR as relevant to SIG Docs. label Aug 22, 2021
@jimangel
Copy link
Member Author

Old build (current published one on main):

12:18:54 PM: (build.command completed in 5m 45.7s)

This build:

3:11:23 PM: (build.command completed in 46.7s)

@netlify
Copy link

netlify bot commented Aug 22, 2021

✔️ Deploy Preview for kubernetes-io-main-staging ready!

🔨 Explore the source changes: e01f70d

🔍 Inspect the deploy log: https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/6122af1366766a0007b04f9f

😎 Browse the preview: https://deploy-preview-29504--kubernetes-io-main-staging.netlify.app

@zacharysarah
Copy link
Contributor

Wow, that’s amazing! 🤩 Thanks for finding a solution, @jimangel!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 22, 2021
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: d40d479abb78d6ce6d24836d0a1f30e30c2ad2df

@sftim
Copy link
Contributor

sftim commented Aug 23, 2021

/approve
/hold

in case further testing is wanted

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 23, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sftim

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 23, 2021
@sftim
Copy link
Contributor

sftim commented Aug 23, 2021

anyone: feel free to unhold

@jimangel
Copy link
Member Author

Let it rip! 🚀
/unhold
/woof
Thanks @sftim!

@k8s-ci-robot
Copy link
Contributor

@jimangel: dog image

In response to this:

Let it rip! 🚀
/unhold
/woof
Thanks @sftim!

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 23, 2021
@k8s-ci-robot k8s-ci-robot merged commit e220769 into kubernetes:main Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generating this site takes an alarming amount of resources.
4 participants