Repository navigation
Description
Split from #5154.
Problem: The pages-health step does not report warnings from the site build of a repository. A warning can publish a bad page. The step should run the site build command of the repository profile and return one pages:build group for each warning. Why deferred: The site build command comes from the project profile (#4627), which does not exist yet. The build command differs by generator: zensical.toml, mkdocs.yml, conf.py or docs/_config.yml. A fallback detection would add a second source of build facts. This part is outside the deploy-state and 404 checks. Acceptance criteria: - The step SHALL run the site build command that the project profile gives, in the repository checkout, and capture its warning lines. - The step SHALL return one pages:build group for each warning line, and the group body SHALL name the command and the file. - The step MUST return no pages:build group when the build command exits 0 with no warning. - The step MUST print the build command and run no build command with --dry-run.
Proposed design
Problem statement
Pages-health reports the deploy state and the 404 checks of a repository, but it reports no warning from the site build. A warning can publish a bad page. This item makes the step run the site build command that the project profile gives, and report one pages:build group for each warning line. The item waits on #4627, which delivers the project profile.
Acceptance criteria
Requirement: Run the profile build command
The pages-health step SHALL run the site build command that the project profile gives, in the repository checkout, and SHALL collect the warning lines of its output.
Scenario: The profile command runs in the checkout
- WHEN The profile gives the build command
site-buildand the doubled process seam returns one warning line. - THEN The step calls the process seam with
site-buildand the checkout as the working directory, and the step holds the warning line.
Requirement: One group for each warning
The step SHALL report one pages:build group for each warning line, and the body of the group SHALL name the build command and the file of the warning.
Scenario: Two warnings give two groups
- WHEN The build command exits 1 and writes a warning line for
docs/a.mdand a warning line fordocs/b.md. - THEN The pages-health report holds two groups named
pages:build, and each body holds the commandsite-buildand its file path.
Requirement: No group for a clean build
The step MUST report no pages:build group when the build command exits 0 with no warning line.
Scenario: A clean build gives no group
- WHEN The build command exits 0 and writes no warning line.
- THEN The pages-health report holds no group named
pages:build.
Requirement: Only a warning line gives a group
The step SHALL take only a line that holds a warning marker as a warning line.
Scenario: An info line gives no group
- WHEN The build command exits 0 and writes the line
INFO - The build starts. - THEN The pages-health report holds no group named
pages:build.
Requirement: Dry run prints the command
The step MUST print the build command and MUST run no build command when --dry-run is set.
Scenario: A dry run runs no build
- WHEN The step runs with
--dry-runand the profile gives the build commandsite-build. - THEN The output holds the text
site-buildand the process seam is called zero times.
Requirement: Profile without a build command
The step MUST report no pages:build group and MUST print that the profile gives no site build command when the profile has none.
Scenario: The profile gives no build command
- WHEN The profile gives no site build command.
- THEN The report holds no group named
pages:buildand the output says that the profile gives no site build command.
Existing Tool Considered
No alternatives check has run. Zensical is the open, maintained generator that zensical.toml configures. It writes a warning line for a bad link, and --strict fails the build on that warning. The step runs the command that the profile gives and reads those lines, so the project builds no link checker and no generator. Zensical does not know the project profile, the checkout or the pages:build group format. The change adds one adapter module and its tests for that mapping only, so it builds no tool that a library could replace.
Key questions
- Which command does the pages-health step run to build the site?: It runs the site build command that the project profile gives, in the repository checkout. The profile merges the facts of a repository from the field defaults, the type template in
src/devops_cli/templates/profiles/, detection and.devops/project.toml, and each value records its source. The step adds no detection of its own. [sources: CONTEXT.md] - Does the repository hold the project profile that gives the build command?: No. The body of this issue records that the project profile (feat(roadmap): track one project profile for all repositories #4627) does not exist yet, and the glossary names only the profile templates as the profile code. This item depends on feat(roadmap): track one project profile for all repositories #4627 for the build command fact. [sources: CONTEXT.md]
- How does the step get the warning lines of the site build?: It reads the warning lines that the generator writes. Each generator already reports a bad link as a warning, and the strict mode of the build fails on it. The step runs the command from the profile and matches a warning marker on each output line. (best practice) [sources: zensical.toml, openspec/specs/github-pages/spec.md, AGENTS.md]
- Chosen: Read the warning lines of the generator. The generator already finds the bad links, so the step needs no second check. AGENTS.md rule 3 puts an open tool before code that the project builds.
- Rejected: Build a link checker in devops-cli. It repeats a check that the generator does, and the project must keep and fix that code.
- Rejected: Use the exit code of the strict build only. One failure hides the other warnings, and the issue needs one group for each warning.
- How does the step find a warning line in the build output?: It matches a warning marker on each line of the output, with no regard to case. Zensical writes
WARNING -, Sphinx writesWARNING:and Jekyll writeswarning:, so one matcher covers each generator that the profile can name. A line with no marker is no warning line. (best practice) [sources: zensical.toml, openspec/specs/github-pages/spec.md]- Chosen: One warning-marker matcher. One small matcher covers each generator, and the profile stays the only source of build facts.
- Rejected: One parser for each generator. It adds a table of generators and a second source of build facts.
- Rejected: A JSON log from each generator. The generators share no JSON log format.
- What does the step do when the profile gives no site build command?: It reports no
pages:buildgroup and prints that the profile gives no site build command. The step never detects a generator fromzensical.toml,mkdocs.yml,conf.pyordocs/_config.yml. (best practice) [sources: CONTEXT.md, zensical.toml]- Chosen: Report no group and print the missing command. The profile is the only source of build facts, and a repository with no site has no build to run.
- Rejected: Detect the generator from its config file. The body of the issue rejects a fallback detection, because it adds a second source of build facts.
- Rejected: Fail the step. A failure would hide the deploy-state and 404 results of the same repository.
- How does the step name the file of a warning?: It takes the path that the warning line holds, relative to the repository checkout. The stage keeps the repository paths, so the build output names the source file of a page. (best practice) [sources: zensical.toml, openspec/specs/github-pages/spec.md]
- Chosen: Take the path from the warning line. The build output already names the repository path, so the step adds no mapping table.
- Rejected: Map each generator message to a path. It adds a second parser for each generator.
Fit
Fits in one pull request.
Suspected block
None.
Activity
devops-cli-service commentedon Nov 29, 2026
Both concern the pages-health step, but #5161 enables the step in mode on after plan runs while the candidate adds a new warning-reporting capability to it.devops-cli-service commentedon Nov 29, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.