Skip to content

feat(ci): a pull request builds the pages site and renders the argo cd overlay read-only, so a site or deploy break fails before the merge #1651

Closed

Description

@dan-petty

Friction

  • On 2026-10-09, the owner asked that a green pull request mean that the merge publishes. The owner expects read-only validation of all release steps in a release pull request. The owner expects the same for all workflows around release and distribution.
  • ADR 0012 makes this more urgent. Every item pull request now targets main. GitHub Pages is a legacy build of main:/docs. So documentation goes live when its pull request merges, and a broken site build breaks Pages at that merge.
  • The release pull request changes four files: CHANGELOG.md, .release-please-manifest.json, and the version lines of pyproject.toml and uv.lock. It never changes docs/ or k8s/. A rehearsal on it tests nothing about the site or the overlay. The checks belong on the pull requests that change those paths.
  • The required checks already cover what a read-only job can reach for the release. They are uv lock --check, uv build and the image verify job. This item adds two read-only checks that nothing runs today. They are the Pages build and the image check of the Argo CD overlay.

Evidence

Checked at f3b17488 on 2026-10-22.

Site build:

  • No workflow in .github/workflows/ builds the Pages site. A search for jekyll and pages in those files finds nothing.
  • The GitHub documentation on required checks names two cases. A job that a job-level if skips reports success. A workflow that a paths filter skips stays pending and blocks the merge. (Read on 2026-10-22.)
  • devops gh pages verify reads docs/github-pages.config.yaml and counts the Markdown files in docs/. It does not build the site (verify_pages_configuration in src/devops_cli/github/pages.py).
  • Jekyll reads _config.yml or _config.toml by default (Jekyll documentation). docs/_config.yml holds only an exclude list for agent/. A real build shows which configuration file Pages applies.
  • The header of docs/_config.yml records a Pages failure. A Liquid tag in one task file failed every Pages deployment on main until someone excluded the folder agent/.

Argo CD overlay:

  • check_argocd_gate (src/devops_cli/k8s/argocd_gate.py, 316 lines) builds each Argo CD Application of this repository with Kustomize, from an exported archive. It rejects template-domain placeholders.
  • It has no caller, because feat(release): release-please makes every release from main #1952 deleted src/devops_cli/release/cut.py. The item ci(k8s): the Argo CD build gate runs in devops ci on every change to k8s #1860 moves it into devops ci.
  • The gate parses Helm values files. It does not render Helm charts, because a chart "cannot be built offline".
  • At the tip, 29 image: lines in 11 files under k8s/ pin container images. They sit in DaemonSet, Deployment, CronJob and Argo Workflows WorkflowTemplate objects. Nothing checks that these images exist in their registries.
  • Three of the 29 lines name the service image without a tag. Image Updater keeps that image at the digest of service:latest, as k8s/argocd/image-updater-values.yaml sets.
  • Helm values files hold images as repository and tag pairs, for example k8s/llm/values-open-webui.yaml. These pairs are not image: keys.

Related jobs:

Existing tool considered

  • Site build: used. The container image of actions/jekyll-build-pages v1.0.13 (2024-08-06, commit 44a6e6beabd48582f863aeeb6cb2151cc1716697) builds the site. Its action.yml says it produces "Jekyll build artifacts compatible with GitHub Pages". Its entrypoint.sh runs the github-pages gem.
  • The action itself: not used. The action names its image by a tag: docker://ghcr.io/actions/jekyll-build-pages:v1.0.13. A commit pin of the action therefore does not pin the builder. ADR 0012 rejects the action of python-semantic-release for the same gap, "an unpinned Docker image".
  • Digest run: used. The job runs the image by digest in a docker run step. The digest of the tag on 2026-10-22 is sha256:6791ebfd912185ed59bfb5fb102664fa872496b79f87ff8b9cfba292a7345041.
  • Digest run wiring: ours. The step sets the variables that entrypoint.sh reads. They are GITHUB_WORKSPACE, GITHUB_REPOSITORY, GITHUB_API_URL, INPUT_SOURCE, INPUT_DESTINATION, INPUT_BUILD_REVISION, INPUT_VERBOSE, INPUT_FUTURE and INPUT_TOKEN. The step also sets DO_NOT_TRACK=1.
  • Kustomize: used. src/devops_cli/tools_lock/tools.lock pins kustomize v5.8.3. The item ci(k8s): the Argo CD build gate runs in devops ci on every change to k8s #1860 already calls it.
  • Image existence: kbld first. kbld (Carvel, release v0.49.2 of 2026-09-29) searches the YAML key image by default and resolves each reference to a digest. Its documentation does not say what it does for a reference that does not resolve. Nobody ran it.
  • Image existence: fallback. docker buildx imagetools inspect <image> is in release.yml, which publishes the images. It needs the Docker CLI with the buildx plugin, which a Podman workstation may not have. The fallback then walks the rendered documents for the key image, with the YAML parser that the gate already uses.
  • Cost. ADR 0012 gives no figure for this item. The pull request states these figures before work starts: tokens to implement, maintain and fix, and elapsed time. AGENTS.md requires this under Open Tools Before Internal Code. Until the pull request states the cost, the build part is a proposal.
  • Size estimate. The docs-site job takes about 30 lines of YAML. A kbld wrapper takes about 40 lines of source, and the fallback takes about 80. These are estimates in lines, not tokens.

Premises to verify first

The item checks each premise before it writes code. If a premise fails, the item stops. It comments on the issue with the evidence. It adds no compensating code.

  • The pinned image builds the docs/ tree and passes on the tip.
  • kustomize build | kbld -f - fails for one missing tag and passes on the tree. If it does not, the fallback applies.
  • The registries of the pinned images answer without credentials from the runner.

Proposed remedy

  • Docs-site job. A job in ci.yml builds docs/ with the pinned image. It runs for a pull_request event when the changes job (ci(image): move the image checks to one path-filtered workflow #1858) reports a change under docs/**. The job has needs: changes and a job-level if. No workflow-level paths filter exists, because a filter leaves a required check pending.
  • Job limits. The job has contents: read, persist-credentials: false and a timeout-minutes value. It does not deploy and it uploads no artifact. Its if names no branch. No other job needs it. A build failure fails the pull request.
  • Image-pins check. A named check of devops ci runs next to the gate of ci(k8s): the Argo CD build gate runs in devops ci on every change to k8s #1860. Its trigger files are k8s/**. It takes every image string from the Kustomize output of each Application path. It asks the registry whether the image exists.
  • Skipped images. The check skips the images that Image Updater manages. It reads their names from the ImageUpdater object in k8s/argocd/image-updater-values.yaml. Code does not list them.
  • Failure messages. A missing image fails the check and names the image and the Application. A registry that does not answer fails the check and names the registry. The check never passes on an error.
  • Scope limit. The check does not cover the images that Helm charts render. The gate does not render charts. The pull request states this gap in its body.
  • Writes. Neither job writes anything. Neither needs a secret or a registry login.
  • Documents. The pull request adds one line for the image-pins check to the list of devops ci checks in docs/SDLC.md. It describes the docs-site job in the document that describes the jobs of ci.yml. devops docs check passes.

What it deletes

Nothing. devops gh pages verify stays.

Tests

  • The image-pins tests cover four cases. They are a missing image, a present image, an image that Image Updater manages and a registry error. The test for the missing image checks that the failure names the image and the Application.
  • The extraction tests cover the shapes that the tree uses: Deployment, DaemonSet, CronJob and Argo Workflows WorkflowTemplate.
  • The registry is the process edge. The tests double it through the shared fake that docs/TESTING.md names for the container tools (ADR 0007). The tests reach no network. Each test takes less than 1 s.
  • A workflow contract test in tests/test_workflow_contracts.py pins the trigger, the permissions and the digest form of the image. It also pins the docs/** filter. The same test checks that the if names no branch and that no job needs the docs-site job.
  • actionlint, zizmor and uv run devops ci pass.

Order and dependencies

Fit

One pull request. No block is known.

Acceptance criteria

  • A pull request that breaks the Jekyll build fails the docs-site job. A Liquid tag that never closes in a file under docs/ is one example. The same branch, fixed, passes.
  • A pull request that changes no file under docs/ skips the docs-site job. The skipped job reports success.
  • The docs-site job runs the Jekyll image by digest. A contract test pins the digest, contents: read, persist-credentials: false and the docs/** filter. The same test checks that the if names no branch.
  • A Kustomize output that pins a missing image fails the image-pins check. The failure names the image and the Application. A present image passes.
  • The image-pins check skips the images that the ImageUpdater object lists. The test reads the names from that file.
  • A registry that does not answer fails the check and names the registry.
  • The image-pins tests reach no network and each takes less than 1 s.
  • On the unmodified tree, the image-pins check passes. The pull request body lists the registries that the check asked and the number of references that it checked. It also records the run time of the docs-site job.
  • Neither job has a write scope. Neither uses pull_request_target. actionlint and zizmor report no new finding, and uv run devops ci passes.
  • The pull request body states the cost of the build part: tokens to implement, maintain and fix, and elapsed time.
  • Pending a person: the owner decides whether the main ruleset requires the docs-site job. If it does, the ruleset also requires the changes job, because a failed changes job skips the docs-site job. ADR 0012 lists three required checks: Static Analysis, Tests & Coverage and Semantic PR title. The image-pins check runs inside Static Analysis, so it needs no ruleset change.

Related

Proposed design

Problem statement

A pull request that changes documentation or Argo CD overlay can break the site or deployment. The checks for these are not run on pull requests.

Acceptance criteria

  • Criterion 1: A pull request that breaks the Jekyll build fails the docs-site job
    Verification: Run a pull request with a broken Liquid tag in docs/ and verify the docs-site job fails
  • Criterion 2: A pull request that changes no file under docs/ skips the docs-site job
    Verification: Run a pull request that only changes k8s/ and verify the docs-site job is skipped
  • Criterion 3: The docs-site job runs the Jekyll image by digest
    Verification: Check workflow run for docs-site job and confirm it uses pinned digest image
  • Criterion 4: A Kustomize output that pins a missing image fails the image-pins check
    Verification: Run a pull request that adds a missing image reference and verify image-pins check fails
  • Criterion 5: The image-pins check skips images managed by Image Updater
    Verification: Verify the check reads from k8s/argocd/image-updater-values.yaml and skips those images
  • Criterion 6: A registry that does not answer fails the check and names the registry
    Verification: Run test with fake registry that returns error and verify it names the registry in failure message

Key questions

None.

Open questions

  • Does the pinned Jekyll image build the docs/ tree and pass on the tip? (missing verified source)
  • Does kustomize build | kbld -f - fail for one missing tag and pass on the tree? (missing verified source)
  • Do the registries of the pinned images answer without credentials from the runner? (missing verified source)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#1858, #1860

Activity

  1. added
    source/agent
    type/feature
    on Oct 18, 2026
  2. dan-petty commented on Oct 18, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Type: type/feature. The candidate proposes a new feature to enhance CI workflows with read-only validation checks.
    • Priority: P1-High. The owner has explicitly stated this item blocks the release process and is a priority under their blocker rule.
    • Value: High. This change ensures that release pull requests fail before merge if there are site or deployment issues, improving reliability.
    • Effort: Medium. Requires implementing new jobs in CI workflows and updating documentation, but does not involve major architectural changes.
  3. changed the title [-]feat(ci): a release pull request builds the pages site and renders the argo cd overlay read-only, so a site or deploy break fails before the merge[/-] [+]feat(ci): a pull request builds the pages site and renders the argo cd overlay read-only, so a site or deploy break fails before the merge[/+] on Oct 22, 2026
  4. added a commit that references this issue on Oct 24, 2026
    922989f
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

    source/agenttype/feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions