Skip to content

fix(docs): make the docs build pass again and build it in CI (Linux/Node 20) - #494

Merged
Alajmah merged 1 commit into
masterfrom
fix/docs-build-ci
Nov 22, 2026
Merged

Alajmah merged 1 commit into
masterfrom
fix/docs-build-ci

Conversation

@Alajmah

@Alajmah Alajmah commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Authorized limited fix: make the docs build pass again, and build the docs in CI. Single commit on master a1b3665. Opened for review; not merged without a separate approval.

Found while validating #493: vitepress build fails on master, and has failed since 2026-06-22. Nothing in CI builds the docs, so nothing reported it.

What changes

Three files, four content lines and one CI job.

File Change
docs/installation/deployment-runbook.md three inline-code spans wrapped in <code v-pre>…</code> — lines 147, 813, 819
docs/architecture/authority/wave-validation-plan.md the link ../adr/ now points at ../adr/README.md — line 20
.github/workflows/ci.yml a new job, docs-build

The two defects

Defect Cause In master since
{{ … }} inside inline code Vue's template compiler parses mustaches in inline code as expressions. Fenced code blocks are exempt; inline code is not line 813: 37417f9 (2026-06-22); line 819: 51840b1 (2026-06-25); line 147: 7b07c72 (2026-10-08)
A dead link to ../adr/ the directory has README.md, which VitePress builds as README.html, not as an index cdf73e1 (2026-07-25), the page's creation

The error reported by the first defect names a misleading location (674:32); the cause is the three spans above.

The new job

  • docs-build runs after syntax-check, like the other jobs. It installs docs/ from its own lockfile and runs npm run docs:build, on Linux with Node 20 — the environment of docs/Dockerfile.
  • VitePress fails the build on a Vue compile error and on a dead link, so this job guards against both defects returning.
  • It changes nothing else in the workflow: triggers, permissions and the other 16 jobs are identical to master (checked structurally, not by eye).
  • It is not a required check for merging until the repository's ruleset lists it. That is a settings change, not made here.

Validation

Check Result
Diff 3 files, +26 / −4; nothing outside the table above
Workflow YAML parses; 17 jobs against 16 on master; other jobs unchanged
Scan for {{ in inline code across all docs 3 before, 0 after
Real npm ci + npm run docs:build from the edited files exit 0 — 150 pages, 472 files
The three spans in the built page <code>docker inspect … '{{…}}' …</code> — mustaches intact, not compiled
The link in the built page href="./../adr/README.html", and the page exists

Run on Windows, Node 22, with master's docs lockfile. The Linux / Node 20 run is what this pull request's own CI does.

What this does not include

`vitepress build` has failed on master since 2026-06-22, for two
content reasons, and nothing in CI builds the docs.

- Three inline-code spans contain `{{ … }}`. Vue's template compiler
  parses mustaches inside inline code as expressions. Fenced code
  blocks are exempt; inline code is not. The three are now wrapped in
  <code v-pre>. (deployment-runbook.md: 37417f9, 51840b1, 7b07c72.)
- A link to `../adr/` was dead. The directory has README.md, which
  VitePress builds as README.html, not as an index. The link now
  points at ../adr/README.md. (wave-validation-plan.md: cdf73e1.)

A new CI job, docs-build, installs docs/ and runs the build on Linux
with Node 20, the environment of docs/Dockerfile.

Validation: the build completes from these files — 150 pages, 472
files — and the three spans and the link render as intended.

Signed-off-by: Alajmah <55954113+Alajmah@users.noreply.github.com>
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-22T16:08:22.235898Z
We couldn’t complete this review. Comment @codex review to try again.
8d1742a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@Alajmah

Alajmah commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

/gitwire run review

@gitwire-hq

gitwire-hq Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

▶️ GitWire: Re-evaluation triggered for review. Results will appear shortly.

@gitwire-hq gitwire-hq Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Code Review — ✅ Approved

Confidence: high · Findings: 0
AI judgment: APPROVE · Evidence: COMPLETE · Authority: advisory
Evidence complete · 3/3 changed files accounted for

GitWire AI Review Gate (bundle-driven v2) · Structured schema · Scope-validated · AI recommendation — maintainers and repository policy retain authority

@Alajmah

Alajmah commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Checks at head 8d1742a445db1c54e0c1e212a3a7e5ae8a119cac

Check Result
CI 20 checks pass, including the new docs-build job
docs-build pass, 29 s — the first build of the docs on Linux / Node 20, from this pull request's files and master's docs lockfile
GitWire AI review approve, high confidence, 0 findings, evidence complete (3/3 files) — on the re-run
GitWire (top-level check) failure — "review error: Prior AI review evaluation was interrupted". Explained below; it is not a finding about the content
publish-release-images skipped, as on every pull request
Merge state MERGEABLE; UNSTABLE only because of the failed check above

Why the GitWire check failed

It records an interrupted attempt, caused by the timing of the pull request itself:

  • The deployment of a1b3665 ran from 16:08:11Z to 16:09:47Z and recreates the app container.
  • This pull request was opened at 16:08:17Z, six seconds after that deployment started. Its review began just as the container was replaced.
  • The queue retried the review. The retry found its "processed" marker, read the check as still queued, and finalized it as interrupted at 16:10:05Z. It then exited without publishing, and no job was left in the queue.
  • A re-run was requested at 16:18:21Z with /gitwire run review. It completed in about two minutes and approved.

The failed check belongs to the interrupted attempt and stays on this head. It is advisory.

This failure class is already on record for this repository, from September 2026: a deployment cuts an in-flight review, the retry cannot resume it, and no sweep exists. In those cases too an operator command was the only remedy. Today's instance is cited as evidence in #10-B2 Revision 2 (PR #464, comment 7082071452).

Operational note: a pull request should not be opened while a deployment is running. That sequencing was mine.

Not merged. Awaiting approval.

@gitwire-hq

gitwire-hq Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

⚠️ GitWire: No workers could be dispatched. The repository or PR data could not be resolved. Check that GitWire is properly configured.

@Alajmah
Alajmah merged commit f56b86f into master Nov 22, 2026
21 of 22 checks passed
@Alajmah

Alajmah commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

DEPLOYED — f56b86f2a84d232f2407de00163b3ede9d842baa is live

Merge

  • Merged at head 8d1742a445db1c54e0c1e212a3a7e5ae8a119cac, reconfirmed first: one head, three files, +26 / −4.
  • Squash commit f56b86f2a84d232f2407de00163b3ede9d842baa; tree identical to the PR head; DCO sign-off preserved.
  • Master CI 45045560155: success — this is the first master run that includes docs-build, and it passed on Linux / Node 20. CodeQL 45045560198: success.

Deployment 45046140160 — SUCCESS

Gate Result
/health.git_sha f56b86f2a84d232f2407de00163b3ede9d842baa — exact
Containers 10/10 up; 9 healthy, 0 unhealthy, plus the tunnel
PostgreSQL / Redis healthy / healthy
Migrations 49 applied
Release image identity app 339361fc6a81, executor 37612daa1071, dashboard 55517710b576: record reference = container's created-with reference = image ID
Rollback chain a1b3665, bba0a08, f7d3987: 3 references each, 0 missing
Validator already present locally; its only record …:recovered is identical before and after
Secondary pins gitwire-local/{bot,landing,docs,demo}:pre-immutable unchanged
webhook_ingress integrity coherent
Tunnel /health HTTP 200

Retention stage — third production run

[image-retention] protected refs: 13 (mandatory: 4); cleanup-eligible repos: 3
[image-retention] decision: kept=24 protected=13 mandatory_ok=true rollback=0 unmanaged_kept=0 remove=3
[image-retention] removal: 3 succeeded, 0 failed (failures visible — investigate if nonzero)
[image-retention] done; free space: 31G

0 lock-warning lines, 0 Permission denied, 0 emitted ::error::. Removed — exactly the predicted set, the fourth-oldest release 88d6a7c: app sha256:a0d6291147d8…, executor sha256:a5e3ed894eae…, dashboard sha256:a45a8aa96571…. 3 removed, 3 added, 24 rows before and after.

The checks of this pull request were not all green

  • 20 CI checks pass. The top-level GitWire check is failure — it records the review that the a1b3665 deployment interrupted. It is not a required check, so no rule was bypassed, and it stays on this head as a record of that attempt.
  • The re-run review approved.

The bot's later warning — its real cause

At 16:27:19Z the bot posted: "No workers could be dispatched. The repository or PR data could not be resolved."

That message does not describe a worker failure. The production log shows what happened:

{"command":"run","pillar":"review`.","repo":"Octo-Lex/GitWire","issue":494,"isPR":true,"dispatched":[],"blocked":[]}
  • My checks comment quoted the re-run command inside inline code. The command parser looks for its prefix anywhere in a comment body, code formatting included, so the comment was executed as a command.
  • The argument it read was review.` — the word plus a backtick and a period. No pillar matches that, so nothing was dispatched.
  • The acknowledgment for "nothing dispatched" then reported a configuration and data-resolution problem, which was not the case.

So this incident has one cause — the text of my comment — and it exposes two defects in the bot, both recorded on the recovery thread (PR #464): the parser accepts a command from inside code formatting, and the "nothing dispatched" acknowledgment misstates the reason. No review ran a third time.

Operational consequence for me: a command is never quoted literally in a comment unless it is meant to run.

CI does not prove the Docker image build

The new docs-build job runs VitePress on Ubuntu. The docs image is built by docs/Dockerfile, which copies package.json alone and runs npm install before the lockfile is copied. A green docs-build therefore shows that the site builds from the locked dependencies; it does not show that the image build uses them. Recorded on #115, with a wider instance of the same pattern.

The published docs site is unchanged: its container still runs the image created 2026-06-21. Rebuilding it is on HOLD.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant