Skip to content

chore(gh): remove the legacy Pages build tooling - #5297

Merged
dan-petty merged 9 commits into
mainfrom
chore/5212-remove-the-legacy-pages-build-tooling
Nov 13, 2026
Merged

dan-petty merged 9 commits into
mainfrom
chore/5212-remove-the-legacy-pages-build-tooling

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The Pages source is GitHub Actions, and pages.yml is the one deploy path since the move to Zensical (#5183). Delete devops gh pages build, devops gh pages builds and the MCP tool gh_pages_build: they requested a build from the branch source and read the legacy build list. A manual run of pages.yml and its runs replace them. devops gh pages status names the source branch only for a legacy build, and GitHubPagesInfo invents no legacy values for a field that the API omits. Remove the YAML guard of docs/, which no outside constraint needs, and correct the text that taught the legacy build.

Closes #5212

Change: openspec/changes/archive/2026-11-13-5212-remove-the-legacy-pages-build-tooling/

devops gh pages status printed the source branch next to a workflow build, and GitHubPagesInfo invented legacy values for a field that the API omits.
devops gh pages build and the MCP tool gh_pages_build requested a build from the branch source, and devops gh pages builds read the legacy build list. The Pages source is GitHub Actions: a manual run of pages.yml replaces the build request, and its runs replace the list. The MCP listing snapshot drops gh_pages_build and the new status help text.
The guard refused each YAML file in docs/ against a returned Jekyll settings file. No outside constraint blocks that fix, so AGENTS.md rule 11 allows no guard, and the glob also refused a correct docs/.nav.yml. The test keeps the check of zensical.toml.
The knowledge base taught devops gh pages build and builds, and the docs used terms of the branch source and Liquid raw tags that Zensical shows as text. A manual deploy is a run of pages.yml.
@dan-petty dan-petty added type/chore Type chore: maintenance, such as a dependency update scope/gh The devops gh commands labels Nov 13, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Local checks on the head before the push (base origin/main 0fe31a6, then rebased on f9ca1b4):

  • uv run devops ci fail-to-pass --base origin/main: 5 new or changed tests fail on the base and pass on the head:
    • tests/github/test_github_pages.py::test_github_pages_info_model
    • tests/github/test_github_pages.py::test_get_pages_status_gives_no_value_for_an_omitted_field
    • tests/commands/test_gh_cmd.py::test_gh_pages_status (workflow build)
    • tests/commands/test_gh_cmd.py::test_the_pages_group_has_status_and_verify_only
    • tests/ai/mcp/test_mcp_tool_registry.py::test_the_pages_tools_are_status_and_verify
    • test_gh_pages_status_of_a_legacy_build_names_the_source_branch passes on both: the legacy output does not change.
  • uv run devops ci test tests/github/test_github_pages.py tests/commands/test_gh_cmd.py tests/github/test_gh_project_views_pages_dry_run.py tests/github/test_github_contract.py tests/ai/mcp tests/docs/test_docs_knowledge_base_argv.py: 753 passed.
  • uv run devops ci --check --only lint,format,typecheck,swallowed-failures,docs: all pass (mypy strict 2m 43s).
  • uv run devops docs check and uv run devops openspec check: pass. uv run devops docs generate leaves no diff.
  • uv run devops gh pages --help lists only status and verify.
  • The git grep commands of acceptance criteria 2 to 6 of chore(gh): remove the legacy GitHub Pages build tooling #5212 find nothing.

Acceptance criterion 11 (ADR 0024): #5270 already added the Status History line "2026-11-12: Fact out of date: the docs site builds with Zensical, not Jekyll (#5183)." The body of an accepted record does not change, so this pull request does not change ADR 0024. The proposal records this under Feasibility.

After the merge, a person can check criteria 7 and 12: uv run devops gh pages status --repo dan-petty/devops-cli prints "Build Type: workflow" and no "Source Branch" line, and the next run of pages.yml on main ends success.

@dan-petty
dan-petty force-pushed the chore/5212-remove-the-legacy-pages-build-tooling branch from e748aee to d83eca3 Compare November 13, 2026 00:26
The census of the stage allow-list counts the rows of the exposure table, and the deletion of gh pages build removes one. A bare assert of the verify result is a presence check that the test tree refuses.
@dan-petty
dan-petty force-pushed the chore/5212-remove-the-legacy-pages-build-tooling branch from d83eca3 to 45f8371 Compare November 13, 2026 00:37
@dan-petty

Copy link
Copy Markdown
Owner Author

Fix round on head d83eca3: two checks failed, and 5fcb45f fixes both.

  • Tests & Coverage (shard 4 of 4): tests/roadmap/stage/test_stage_run_allowlist.py::test_the_census_decides_every_row_of_the_exposure_table failed with assert 144 == 145. The deletion of the row ("gh", "pages", "build") makes the table 144 rows, so ROW_COUNT is 144.
  • Static Analysis (test-tree): check_no_test_certifies_a_failure_without_checking_it refused test_github_pages.py:182, the bare assert valid, diagnostics. The test compares the result and the mark of each diagnostic by value.

uv run devops ci --check --only test-tree and uv run devops ci test tests/github/test_github_pages.py tests/roadmap/stage/test_stage_run_allowlist.py pass locally. On head 45f8371, all 25 checks pass.

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 00:45
@dan-petty
dan-petty merged commit 8a14bd3 into main Nov 13, 2026
25 checks passed
@dan-petty
dan-petty deleted the chore/5212-remove-the-legacy-pages-build-tooling branch November 13, 2026 00:53
@dan-petty

Copy link
Copy Markdown
Owner Author

Post-merge checks (2026-11-13):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/gh The devops gh commands type/chore Type chore: maintenance, such as a dependency update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(gh): remove the legacy GitHub Pages build tooling

1 participant