Skip to content

Add periodic job for contributor-site Hugo modules update#36933

Open
TineoC wants to merge 8 commits into
kubernetes:masterfrom
TineoC:add-contributor-site-periodic-job
Open

Add periodic job for contributor-site Hugo modules update#36933
TineoC wants to merge 8 commits into
kubernetes:masterfrom
TineoC:add-contributor-site-periodic-job

Conversation

@TineoC
Copy link
Copy Markdown
Contributor

@TineoC TineoC commented May 2, 2026

This PR adds periodic and presubmit Prow jobs for kubernetes/contributor-site.

  • Periodic Job: Updates Hugo modules weekly and opens a PR.
  • Presubmit Job: Validates Hugo module updates on PRs to ensure no breaking changes.

This replaces the previous GitHub Actions proposal in kubernetes/contributor-site#647.

Depends-on: kubernetes/contributor-site#647
/sig contributor-experience
/area prow
/kind feature

@k8s-ci-robot k8s-ci-robot added sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. area/prow Issues or PRs related to prow kind/feature Categorizes issue or PR as related to a new feature. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. area/config Issues or PRs related to code in /config area/jobs sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels May 2, 2026
@k8s-ci-robot k8s-ci-robot requested review from chases2 and rjsadow May 2, 2026 17:00
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 2, 2026
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 2, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: TineoC
Once this PR has been reviewed and has the lgtm label, please assign cblecker, genpage for approval. For more information see the Code Review Process.

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

Details 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

@TineoC
Copy link
Copy Markdown
Contributor Author

TineoC commented May 3, 2026

@lmktfy

The kubekins-e2e image does not include Hugo, npm, or Go, which are
required by the Hugo modules update script. Use the contributor-site's
own staging image which has all dependencies pre-installed.

Changes:
- Image: kubekins-e2e -> k8s-contrib-site-hugo (from staging registry)
- Command: runner.sh -> bash (runner.sh not available in new image)
- Resources: 200m/256Mi -> 1cpu/1Gi (Hugo builds need more)
- Added GOMODCACHE env var for writable Go module cache
@TineoC
Copy link
Copy Markdown
Contributor Author

TineoC commented May 4, 2026

Local dry-run test output (arm64)
Ran ./hack/update-hugo-modules.sh --dry-run locally on darwin/arm64:

$ ./hack/update-hugo-modules.sh --dry-run
hugo mod get -u
hugo mod tidy
Validating the build...
Start building sites …
hugo v0.133.0-c9777473d1369f812d727a6c07dc57ad7be7bf62+extended darwin/arm64 BuildDate=2024-08-17T19:57:41Z

                   | EN
-------------------+------
  Pages            | 923
  Paginator pages  |   6
  Non-page files   | 88
  Static files     | 37
  Processed images |   3
  Aliases          |   9
  Cleaned          |   0

Total in 43898 ms
No module updates found. Exiting.

Replace :latest with :v0.133.0-7f658d63039e to ensure reproducible
builds and avoid unexpected breakage from upstream image changes.
@TineoC
Copy link
Copy Markdown
Contributor Author

TineoC commented May 4, 2026

Update: Pinned image tag

Replaced :latest with :v0.133.0-7f658d63039e for reproducible builds.

The tag is derived from Hugo version (0.133.0) + a 12-char hash of build-relevant files (Dockerfile, Makefile, netlify.toml, go.mod, go.sum, etc.). It will need updating when the contributor-site image is rebuilt.

- Add contributor-site staging registry prefix to prow-job-autobump-config.yaml
- Update job images to use the new v{date}-{sha} tag format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Issues or PRs related to code in /config area/jobs area/prow Issues or PRs related to prow cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. sig/contributor-experience Categorizes an issue or PR as relevant to SIG Contributor Experience. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants