Repository navigation
Description
Update 2026-11-26 (infra move): the sections above the proposed design describe the Renovate CronJob that devops-cli no longer has. Follow the design below. dan-petty/homelab#366, dan-petty/homelab#367 and #6129 hold the open counts.
Problem or Motivation
The Renovate CronJob of #4905 has five facts that nobody measured:
- The paths that need a writable volume under a read-only root file system.
- The GitHub requests of one run, with a cold and a warm cache.
- The run time of each repository with
postUpgradeTasks. - The Docker Hub limits for 31 docker.io references.
- The push load on CI.
Proposed Solution & Architectural Design
- Do this after feat(deps): track regular version updates with Renovate #4893 owner steps 1 to 6 (the App, the keyring rows,
devops k8s push-secrets, Dependabot alerts, no hosted Renovate app). - Run the CronJob once with
RENOVATE_DRY_RUN=lookup. Then remove the dry run. - Read the HTTP statistics and the timings of the run log.
- Change the volumes, the split of the repositories or the schedule only where a number is over its budget.
- Record the numbers in a pull request comment and in the Renovate section of
docs/CLUSTER.md. - Budgets: GitHub gives each App installation 5,000 REST requests an hour. Secondary limits apply to each App: 100 concurrent requests, 900 REST points a minute, 80 content-creating requests a minute and 500 an hour.
prHourlyLimit2 keeps pull request creation far below them.
Target Subsystem
Kubernetes & Minikube Automation (self-hosted Renovate).
Existing Tool Considered
Renovate's own run log (HTTP statistics, repository timings) and kubectl. No new code.
Acceptance Criteria
- One run of all repositories ends in less than 40 minutes.
- One run uses at most 2,500 GitHub requests and gets no 403 or 429.
- The pod runs with
readOnlyRootFilesystem: true. - The Dependency Dashboard exists in devops-cli.
- The first Monday window opens update pull requests for the measured backlog.
- Renovate pushes on devops-cli stay at 40 or fewer in the first full week.
- One security pull request path works: an OSV or Dependabot alert gives a
[SECURITY]pull request, or the Dashboard summary lists no unresolved CVE.
Dependencies
#4896 (the repository config) and #4905 (the CronJob), plus #4893 owner steps 1 to 6. Child 5 of #4893.
Source: #4893
Alternatives check of 2026-11-26: not-applicable.
Class: chore, no model call.
Tool: none found.
Proposed design
Problem statement
Issue #6684 deleted k8s/devops/renovate and moved the Renovate workload to dan-petty/homelab#95. That repository runs the upstream chart in namespace devops. The earlier design measured the deleted deployment, so it cannot be built. This change records the measured facts of the first homelab run in the Renovate section of docs/CLUSTER.md, beside their budgets, after dan-petty/homelab#95. The request counts, the post-upgrade run time and the first-week push count stay in dan-petty/homelab#366, dan-petty/homelab#367 and #6129.
Acceptance criteria
Requirement: First run record
The Renovate section of docs/CLUSTER.md SHALL record the first homelab run with its run time, its repository counts and the 40-minute budget.
Scenario: The docs row accepts the record
- WHEN
uv run devops ci --check --only docsruns on the change. - THEN It exits 0.
Requirement: Writable paths and read-only root
The record SHALL name each writable path with its backing volume, and SHALL give the readOnlyRootFilesystem value.
Scenario: The docs row accepts the paths
- WHEN
uv run devops ci --check --only docsruns on the change. - THEN It exits 0.
Requirement: Warnings of the run
The record SHALL give each warning with its cause, or state that the run logged no warning.
Scenario: The docs row accepts the warnings
- WHEN
uv run devops ci --check --only docsruns on the change. - THEN It exits 0.
Requirement: Dashboard and security pull request
The record SHALL state that the first Monday window opened update pull requests, with the Dependency Dashboard number and each security pull request number, or none.
Scenario: The docs row accepts the numbers
- WHEN
uv run devops ci --check --only docsruns on the change. - THEN It exits 0.
Requirement: Request budget and open counts
The record SHALL give the 2,500 request budget with no 403 or 429 and name dan-petty/homelab#366, dan-petty/homelab#367 and #6129 for open counts.
Scenario: The docs row accepts the budget
- WHEN
uv run devops ci --check --only docsruns on the change. - THEN It exits 0.
Requirement: No change without a number over budget
The record SHALL state that no volume, repository split or schedule changes unless a measured number is over its budget.
Scenario: The docs row accepts the rule
- WHEN
uv run devops ci --check --only docsruns on the change. - THEN It exits 0.
Requirement: Pending a person after the merge
A person with kubectl SHALL create one Job from the Renovate CronJob in namespace devops and post its log to the pull request.
Scenario: The measurement Job
- WHEN A person runs
kubectl -n devops create job --from=cronjob/<name> <name>andkubectl -n devops logs job/<name> -c renovate. - THEN The pull request holds the log or its key lines.
Existing Tool Considered
The alternatives check of 2026-11-15 in the issue body gave not-applicable for this chore and named no tool. The measurement uses the open, maintained Renovate from the upstream chart in the homelab instance that docs/CLUSTER.md:271 names, and kubectl. The change builds no code, so the cost to build, keep and fix it is 0 tokens and no elapsed time.
Key questions
- What does the issue measure after refactor(k8s): move self-hosted Renovate out of the product #6684?: It measures the first runs of the homelab Renovate instance from the upstream chart in namespace
devops, afterdan-petty/homelab#95. It does not document the deletedk8s/devops/renovateCronJob. [sources: docs/CLUSTER.md:271] - Where does the measurement record live?: In the Renovate section of
docs/CLUSTER.md, beside the statement that the homelab instance runs the upstream chart. (best practice) [sources: docs/CLUSTER.md:271, k8s/README.md:12]- Chosen: The Renovate section of
docs/CLUSTER.md.docs/CLUSTER.md:271names the homelab instance, and the file holds the service facts of the cluster. - Rejected: The Renovate section of
k8s/README.md.k8s/README.md:12calls the folder the environment tree, and it holds no run record of one service. - Rejected: A new document under
docs/. A second document adds a second place for the service facts thatdocs/CLUSTER.mdalready holds.
- Chosen: The Renovate section of
- How does a person start a measurement run without the schedule?: Create a Job from the Renovate CronJob in namespace
devopswithkubectl -n devops create job --from=cronjob/<name> <name>, then read its log withkubectl -n devops logs job/<name> -c renovate. The homelab chart gives the CronJob name. (best practice) [sources: docs/CLUSTER.md:265]- Chosen: Create one Job from the CronJob with
kubectl.docs/CLUSTER.md:265documents the command, and it copies the CronJob template with its volumes and cache. - Rejected: Wait for the next schedule. The schedule chooses the time and the cache state of each run.
- Chosen: Create one Job from the CronJob with
- Can a roadmap runner create the measurement Job?: No. The runner pod holds no Kubernetes API token, and only a person with
kubectlon the homelab cluster creates the Job and reads its log. [sources: docs/CLUSTER.md:5, docs/CLUSTER.md:67] - How are the run time and the request count read?: Read the Renovate log with
LOG_FORMAT=json. Therepository finishedlines give the time of each repository, and the Job start and completion times give the total. The HTTP statistics give the request count. (best practice) [sources: docs/CLUSTER.md:271]- Chosen: The Renovate JSON log. The Renovate documentation defines
LOG_FORMAT=json, and the log holds the repository timings and the HTTP statistics. - Rejected: The OTLP trace of the run. Nothing shows that Renovate emits an HTTP client span for each request.
- Chosen: The Renovate JSON log. The Renovate documentation defines
Fit
Fits in one pull request.
Suspected block
dan-petty/homelab#95 must deploy the upstream-chart Renovate, and the first run must finish, before the record can hold its numbers.
Dependencies
None.
Moved to new items
dan-petty/homelab#366, dan-petty/homelab#367, #6129
Activity
dan-petty commentedon Nov 12, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
choreprefix of the title gives the type.(k8s)scope of the title gives the scope.It validates the Renovate setup against budgets before the first scheduled window, but it is a one-time measurement, not a blocking defect.It confirms the Renovate CronJob stays within GitHub rate limits and pod resource budgets before production use.The task is to run the CronJob once, read its log, and record numbers; no new code is needed.Both record GitHub request counts after a deployment, but the candidate measures the initial Renovate CronJob in a k8s cluster while dan-petty/devops-cli#3866 measures the roadmap-service after a refine-skip change.devops-cli-service commentedon Nov 15, 2026
Alternatives check: not-applicable
Class: chore. The check makes no search and no model call for an item of this class.
Tool: none found
Checked on 2026-11-15. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 16, 2026
The proposal at fccb781 needs splitting into 2 items. A person splits the item into the items below, or replies in a comment or edits the body to keep one item, and the next refine round looks at the item again.
dan-petty commentedon Nov 16, 2026
Notes from the #4905 build for the first runs (PR #6014, not merged yet):
readOnlyRootFilesystem: true. The plan named emptyDir volumes on/opt/containerbaseand/var/lib/containerbase, but the image layers show build files in both: an emptyDir would hide them. So init containerseedcopies/opt/containerbaseand/home/ubuntuof the image into the emptyDirseeded(6Gi), and Renovate mounts the two copies on the same paths./tmpis a plain emptyDir (4Gi); the entrypoint runscontainerbase-cli init tool allon it./var/lib/containerbasestays on the read-only root: root owns it with mode 0755.renovate-config-validatorvalidatedconfig.js, andnode,gitandrenovateran. A tool install (install-tool python, thenuv) under this layout was not measured. Check it in the first run without the dry run: apostUpgradeTasksrule withinstallTools.RENOVATE_DRY_RUN=lookupfromk8s/devops/renovate/cronjob.yaml.onboarding: falsewithrequireConfig: required: Renovate runs on devops-cli only, and skips the 6 repositories with no config until chore(deps): onboard the other Service repos to Renovate #4913 turns onboarding on.LOG_FORMAT=jsongives one object per line. The spans go to the collector with the service namerenovate. The JSON report is in the emptyDir/report, so it goes with the pod.kubectl -n devops create job --from=cronjob/renovate renovate-manual, thenkubectl -n devops logs job/renovate-manual -c renovate.docs/CLUSTER.md, next to SearXNG, not ink8s/README.md.feat(k8s): run self-hosted Renovate as a CronJob in devops (#6014)
dan-petty commentedon Nov 16, 2026
From the review of PR #6014, check these before the dry run ends:
devops install-toolswrites to~/.local/bin(defaults.py, about line 49), but the PATH of the Renovate image is/home/ubuntu/bin:/usr/local/sbin:..., so the taskdevcontainer upgradewill likely fail with "not found".gitAuthororusernamefor theghs_token: check that Renovate does not see its ownplatformCommitbranches as changed by another author.cronjob.yaml(about lines 65-66) says the group of the image user is 12021, but/etc/passwdgivesubuntu:x:12021:0. The comment is wrong; nothing breaks.RENOVATE_DRY_RUNis removed.dan-petty commentedon Nov 16, 2026
First run, 2026-11-16 (manual Job
renovate-manual-1931from CronJobrenovate, owner request,RENOVATE_DRY_RUN=lookup, Renovate 44.239.1):seed: completed in about 10 s. Inittoken: wrote the installation token ofdan-petty-renovate[bot](token life to 20:32:16Z). Main container: 19:32:18Z to 19:34:14Z, exit 0. Pod start to end: 151 s, far belowexecutionTimeout(900 s) andactiveDeadlineSeconds(3000 s).info; no warning and no error. Trace idc2a788d0ffef6fe83df668019683d8a9(OTLP to the collector).dan-petty/devops-cliwas processed; the others were disabled (no Renovate config), empty or forks.infolog does not list them, and the JSON report is in an emptyDir), the GitHub requests of the run, and the tool install under the read-only root (nopostUpgradeTasksrun in lookup mode). For the next measured run: keep the report (a PVC path or a log line of the update count) or run once atLOG_LEVEL=debug, and count the GitHub requests from the trace.devops-cli-service commentedon Nov 16, 2026
Owner question: The lookup runs need the homelab cluster and the owner steps 1 to 6 of #4893: the App, the keyring rows,
devops k8s push-secrets, the Dependabot alerts and no hosted Renovate app. The CronJob of #4905 must be merged before the two measurement Jobs can be created.Options
Recommendation: Decide the question: only a person can answer it.
Evidence
chore(k8s): Let Renovate open update PRs with no upgrade tasks (#6023)
dan-petty commentedon Nov 16, 2026
First live run, 2026-11-16 (manual Job
renovate-manual-2010after #6023 removed the dry run;allowedCommandsempty):fix(deps): update certifi to v2026.10.23, a vulnerability update) and chore(deps): update container images (patch) #6029 (chore(deps): update container images (patch)), and the Dependency Dashboard Dependency Dashboard #6030. The hourly limit (2) stopped further pull requests.Detected empty commit - aborting git pushforrenovate/pypi-opentelemetry-api-vulnerabilityandrenovate/pypi-mcp-vulnerability: the update wrote no file change. Check whether the lockfile or the constraint already allows the fixed version, or whether the update needs a lockfile task that chore(k8s): Let Renovate open update PRs with no upgrade tasks #6022 turned off.Error updating branch: update failureforrenovate/trivyandrenovate/uv: likely the pins that feat(deps): repin tool downloads and their sha256 for Renovate #4902 repins with their sha256.devops-cli-service commentedon Nov 17, 2026
Status set to Ready at c58b592 (see proposed design in issue body).
Moved to new items: dan-petty/homelab#366, dan-petty/homelab#367, #6129.
fix(roadmap): an open tracker holds back no item (#6548)
dan-petty commentedon Nov 21, 2026
#6684 removes
k8s/devops/renovate, and dan-petty/homelab#95 runs the same Renovate from the upstream chart in namespacedevops. Measure the runs of the homelab instance after dan-petty/homelab#95.dan-petty commentedon Nov 24, 2026
The self-hosted Renovate workload moves out of the product into dan-petty/homelab#95.
dan-petty commentedon Nov 25, 2026
Returning #4909 to New with evidence. The November 17 proposed design requires documenting the deleted
k8s/devops/renovate/deployment layout indocs/CLUSTER.md(lines 76-82 of the issue design:/opt/containerbaseand/home/ubuntuonseeded, and/cacheonPVCrenovate-cache), citingk8s/devops/renovate/cronjob.yamlandk8s/devops/renovate/pvc.yaml. Commitec554c65ea(PR dan-petty/devops-cli#6938,Closes dan-petty/devops-cli#6684) deletedk8s/devops/renovate/from this repository, updateddocs/CLUSTER.mdlines 271-277 to state that Renovate runs as a homelab instance indan-petty/homelab#95from the upstream chart, and comments of 2026-11-21 and 2026-11-24 state that the self-hosted Renovate workload moved todan-petty/homelab#95and to measure the homelab instance there. Re-refine or close #4909 in light of#6684/#6938anddan-petty/homelab#95.devops-cli-service commentedon Nov 25, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 26, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence