Skip to content

ci(homelab): run the environment checks in homelab CI with path filters #6175

Not planned

Description

@devops-cli-service

Split from #5296.

Problem: dan-petty/homelab has only .github/workflows/lint.yml (make lint). No job runs the environment checks, and #5134 step 6 (plan step 17) deletes them from devops-cli. The product commands that this item adds resolve the environment tree from --k8s-dir or kubernetes.dir, so a homelab workflow can run them, but the workflow files live in homelab. Why deferred: the pull request of this item changes devops-cli only, and dan-petty/homelab#23 (the copy, plan step 9) must land before the checks run on the real tree. Acceptance criteria: a homelab workflow runs each environment check command on each pull request and reports each result; each homelab workflow has a path filter, so no workflow runs at a devops-cli release; no ruleset, branch protection or other setting makes a check required, and a failed check blocks no merge and no apply; Renovate makes the version bumps of the check tools, with the k8s managers that this item takes out of devops-cli's .github/renovate.json; .pre-commit-config.yaml holds the pre-commit-hooks hook no-commit-to-branch with --branch main.

Proposed design

Problem statement

The homelab repository has no CI job for the environment checks, and devops-cli's Renovate config still reads the moved k8s tree. The workflow, path filters, advisory setting and pre-commit hook live in dan-petty/homelab, so this change keeps only the Renovate managers that read the devops-cli product base k8s/devops/ and defers the homelab files.

Acceptance criteria

Requirement: Kubernetes managers read only the product base

The kubernetes, argocd, helm-values and k8s custom.regex managers in .github/renovate.json SHALL read only files under k8s/devops/.

Scenario: The manager patterns exclude the moved tree

  • WHEN a person runs jq -e '[.kubernetes.managerFilePatterns[], .argocd.managerFilePatterns[], .["helm-values"].managerFilePatterns[], (.customManagers[] | select(.customType == "regex") | .managerFilePatterns[] | select(startswith("/^k8s/")))] | all(startswith("/^k8s/devops/"))' .github/renovate.json
  • THEN the command prints true

Requirement: The Renovate config validates

The .github/renovate.json file MUST pass the Renovate config validator.

Scenario: The validator accepts the narrowed config

  • WHEN a person runs npx --yes renovate-config-validator .github/renovate.json
  • THEN the command exits 0

Existing Tool Considered

No alternatives check has run. Renovate covers the manager change in .github/renovate.json; it reads only the config of the repository that it runs on, so the homelab config needs its own copy, which is deferred. The change builds no code, so it pays no build cost.

Key questions

  • Which k8s managers should devops-cli's .github/renovate.json keep?: Keep only the kubernetes, argocd, helm-values and k8s custom.regex managers whose managerFilePatterns read k8s/devops/. (best practice) [sources: .github/renovate.json:12, .github/renovate.json:33, .github/renovate.json:57, docs/adr/0027-dependency-updates-come-from-self-hosted-renovate.md:36]
    • Chosen: Narrow each k8s manager to k8s/devops/. The product base is the only k8s tree that devops-cli ships; the homelab tree moves to its own repository.
    • Rejected: Keep the managers at /^k8s/. They would read the moved homelab tree and duplicate the homelab config.
    • Rejected: Remove the k8s managers. devops-cli still ships k8s/devops/, so it needs updates for that tree.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/infra
    source/agent
    status/new
    value/medium
    effort/medium
    on Nov 17, 2026
  2. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    ContributorAuthor
    • Scope: none. The title has the scope homelab, and .github/labels.yml declares no scope/homelab label. Add the label to the file to give the scope to this item.
    • Related: feat(k8s): run the environment checks in homelab CI #5296, which asks for a different change. Both run environment checks in homelab CI, but #5296 is the umbrella and the candidate is one split that adds path filters, Renovate bumps, and a no-commit-to-branch hook.
  3. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: How should the environment checks stay non-required? (a person decides)

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  4. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See the first point of Open questions in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  5. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  6. dan-petty commented on Nov 26, 2026

    @dan-petty
    Owner

    Closed: homelab CI runs the environment checks.

    dan-petty/homelab .github/workflows/k8s.yml runs the make k8s-* checks with a path filter. The workflows are advisory, .pre-commit-config.yaml has no-commit-to-branch --branch main, and Renovate there uses the shared presets of dan-petty/infra. The removal of the environment managers from devops-cli Renovate is part of step 17 (#7290).

  7. removed
    status/new
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumsource/agenttype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions