|
| 1 | +# M1 — Publish the blog at davisononline.org |
| 2 | + |
| 3 | +Tracking issue: [#13](https://github.com/davison/davison.github.io/issues/13). Its |
| 4 | +single implementation task, [#14](https://github.com/davison/davison.github.io/issues/14), |
| 5 | +is merged on `master` through [#15](https://github.com/davison/davison.github.io/pull/15) |
| 6 | +at [`28280fd`](https://github.com/davison/davison.github.io/commit/28280fd4e389bfdd1be9b89e5eac5f863cab1a69). |
| 7 | + |
| 8 | +## Goal and outcome |
| 9 | + |
| 10 | +The goal, as stated on [#13](https://github.com/davison/davison.github.io/issues/13), |
| 11 | +was to serve the blog over HTTPS at davisononline.org and to redirect the existing |
| 12 | +davison.github.io URLs with their paths preserved. |
| 13 | + |
| 14 | +What shipped is three lines of configuration and a great deal of infrastructure that |
| 15 | +is not in the diff. `site_url` in `zensical.toml` and the description in |
| 16 | +`pyproject.toml` name the new domain, and because `main.py` reads `site_url` when it |
| 17 | +regenerates the feed, every canonical link, Atom entry and sitemap URL follows from |
| 18 | +that one value. GitHub Pages holds the custom domain with a Let's Encrypt certificate |
| 19 | +and HTTPS enforced, and old URLs return 301 to the same path on the new host. |
| 20 | + |
| 21 | +The proportion is worth recording: the intended change was three lines, the generated |
| 22 | +`docs/atom.xml` accounts for 70 more, and a new CI workflow — added only to satisfy a |
| 23 | +merge gate, below — for 25. The milestone's real work was DNS, certificate issuance |
| 24 | +and deployment, none of which a diff can show. |
| 25 | + |
| 26 | +## Decisions |
| 27 | + |
| 28 | +Each is recorded on [#14](https://github.com/davison/davison.github.io/issues/14#issuecomment-5785257970) |
| 29 | +unless noted. |
| 30 | + |
| 31 | +- **davisononline.org is canonical; www redirects to it.** Page paths stay unchanged |
| 32 | + and GitHub Pages supplies the redirects natively. **Rejected:** committing a `CNAME` |
| 33 | + file, which an Actions deployment does not need — the custom domain lives in the |
| 34 | + repository's Pages settings instead. |
| 35 | +- **GitHub Issues enabled on the repository.** Creating the milestone returned HTTP |
| 36 | + 410 because Issues were disabled; the CodeCrew record requires them. This is a |
| 37 | + decision about the repository rather than the site. |
| 38 | +- **The drifted role contracts stay as they are.** The CLI reports all five |
| 39 | + `.codecrew/roles/` contracts differing from the embedded v2.0.1 text. Reviewed and |
| 40 | + deliberately not reconciled: contracts are this project's own fork, and adopting |
| 41 | + upstream is its own change, not a rider on a domain migration. |
| 42 | +- **The generator's Atom ID behaviour is preserved.** **Trade-off:** entry IDs derive |
| 43 | + from the canonical URL, so changing the domain changes every existing entry's ID and |
| 44 | + subscribers may see old posts resurface once. **Rejected:** pinning IDs to the old |
| 45 | + domain, which would have made the feed permanently inconsistent with the site for |
| 46 | + the sake of a single re-delivery. |
| 47 | + |
| 48 | +## Deviation |
| 49 | + |
| 50 | +**A pull-request build workflow was added alongside the domain change** |
| 51 | +([#14](https://github.com/davison/davison.github.io/issues/14#issuecomment-5785276945)). |
| 52 | +`gh codecrew task finish 14 --dry-run` refused with `NO_CHECKS`: the only existing |
| 53 | +workflow builds after merge or on a schedule, so no check ran on the PR itself. |
| 54 | +`.github/workflows/build.yml` runs the same housekeeping and clean build read-only, |
| 55 | +without deploying. It is 25 of the 63 lines this milestone changed, and it exists |
| 56 | +because of the gate rather than because of the goal. |
| 57 | + |
| 58 | +## What the plan did not anticipate |
| 59 | + |
| 60 | +None of the following was recorded before deployment; all of it was found while |
| 61 | +verifying M1-R2, and it is the part most worth having in three months. |
| 62 | + |
| 63 | +- **The deploy workflow had disabled itself.** GitHub disables scheduled workflows in |
| 64 | + a public repository after 60 days of inactivity. The last successful scheduled run |
| 65 | + was [2026-07-12](https://github.com/davison/davison.github.io/actions/runs/29177941560); |
| 66 | + the repository was then quiet until September, and neither the September pushes nor |
| 67 | + the M1 merge triggered a deploy. The live site was serving a July build with the old |
| 68 | + canonical URL throughout — so the configuration change was correct and invisible, |
| 69 | + which no gate in this milestone would have caught. |
| 70 | +- **A dispatched run can be orphaned.** The first manual dispatch, |
| 71 | + [35793033285](https://github.com/davison/davison.github.io/actions/runs/35793033285), |
| 72 | + sat queued with zero jobs and zero billable time. `gh run cancel` reported it |
| 73 | + complete while the API reported it queued, and force-cancel reported it never |
| 74 | + queued: the run row existed but nothing was ever enqueued. It cannot be cancelled and |
| 75 | + remains in the run list. A second dispatch, |
| 76 | + [35794660366](https://github.com/davison/davison.github.io/actions/runs/35794660366), |
| 77 | + ran normally and deployed, which is what made the domain change live. |
| 78 | +- **DNS and the certificate do not arrive together.** Between the A records resolving |
| 79 | + and Let's Encrypt issuing, `https://davisononline.org` was served the `*.github.io` |
| 80 | + wildcard certificate — a name mismatch — and GitHub would not accept **Enforce |
| 81 | + HTTPS** until the certificate existed. During that window the redirects from the old |
| 82 | + domain were correct but pointed at `http://`. The order is DNS, then certificate, |
| 83 | + then enforcement, and the middle step is GitHub's to take on its own schedule. |
| 84 | + A browser that met the mismatched certificate in that window stores the bypass per |
| 85 | + origin and keeps reporting the site insecure afterwards; it clears on browser |
| 86 | + restart, not on a cache clear. |
| 87 | + |
| 88 | +One finding is out of this milestone's scope and is noted only because it was found |
| 89 | +here: `reconcile_drafts()` in `main.py` can never promote a draft in CI, because |
| 90 | +`_drafts/` is gitignored and the directory the runner creates is always empty. The |
| 91 | +demotion half works, so future-dated posts committed to `docs/blog/posts/` are hidden |
| 92 | +until their date — that is the mechanism that actually schedules a post. |
| 93 | + |
| 94 | +## Requirement outcomes |
| 95 | + |
| 96 | +Verdicts are recorded on [#13](https://github.com/davison/davison.github.io/issues/13). |
| 97 | + |
| 98 | +| Requirement | Outcome | |
| 99 | +|---|---| |
| 100 | +| M1-R1 — site configuration and generated feed use https://davisononline.org/, and the clean build succeeds | satisfied | |
| 101 | +| M1-R2 — Pages serves davisononline.org over HTTPS, and old URLs return 301 preserving paths | satisfied | |
0 commit comments