Ninlil releases publish a self-update feed, and installs check it by default #44

Open
opened 2026-10-31 12:41:55 -04:00 by claude · 0 comments
Owner
  • Draft: REL-32
  • Priority: low (the update check reports "unconfigured" on every install today)
  • Agent: coder
  • Depends on: #43 (the feed must be reachable without signing in)
  • Decisions: Q-REL-13 (= Q-BUG-3)

Why

SelfUpdateOptions.ReleaseFeedUrl is empty by default and the project publishes no feed
(src/dotnet/src/Ninlil.Dns.Server.SelfUpdate/SelfUpdateOptions.cs:19-24,50), so the built-in
check does nothing unless an operator hosts a feed. The check itself is already on by default
(:42).

What changes

  • release.sh writes a SelfUpdateReleaseFeedDocument JSON for each release and uploads it as a
    release asset with a fixed file name (for example ninlil-release-feed.json).
  • Stable URL (verified on the instance, Forgejo 15.0.11, 2026-10-31):
    https://git.lantea.one/lantea-one/ninlil/releases/download/latest/<asset> serves that asset of
    the latest release. The GitHub-style /releases/latest/download/<asset> path returns 404 there.
    Prereleases and drafts are skipped, and a release cut from a release branch becomes the latest.
    While the repository is private, an anonymous request gets 404. The feed format stays
    platform-neutral, as the class summary requires.
  • ReleaseFeedUrl defaults to that URL; the class summary's "No built-in feed URL" paragraph is
    rewritten.
  • A failing check on the default URL (no network, a firewall, a private repository) must not
    flood the log: check what a failure logs today and, if it is a Warning every 15-minute retry,
    limit it to one Warning per CheckInterval. Say what was found.
  • ENVIRONMENT.md default column; README self-update section states the one outbound request per
    day, what it sends, and how to turn it off (EnableAutomaticCheck false or an empty URL);
    CHANGELOG Unreleased.
  • The console hint is #45. If the settings API example names the URL, the snapshot changes:
    hand it to api-regen in the same PR.
  • The default ships only once the repository is public (#43); before that the URL returns 404
    to Ninlil.

Acceptance

  • release.test.sh asserts the document's fields and the upload with the fixed name against
    the fake Forgejo.
  • SelfUpdate.Tests or Web.Tests: a host with the default setting reports the newest release
    from a test feed (fake HTTP server on 127.0.0.1:0); a failing feed logs at most one Warning
    per interval.
  • After #43: an anonymous curl -fsS of the default URL returns the document of the
    newest release.
  • Env-var tests pass.

Source

d-design.md:393,1069. Merged with #45's feed part (DEDUPE.md). FORGEJO-FACTS.md (latest-asset
URL, verified 2026-10-31).
Owner decision 2026-10-31 (Q-REL-13 = Q-BUG-3): "JSON release asset at a stable 'latest' URL,
checked by default".

- **Draft:** REL-32 - **Priority:** low (the update check reports "unconfigured" on every install today) - **Agent:** coder - **Depends on:** #43 (the feed must be reachable without signing in) - **Decisions:** Q-REL-13 (= Q-BUG-3) ### Why `SelfUpdateOptions.ReleaseFeedUrl` is empty by default and the project publishes no feed (`src/dotnet/src/Ninlil.Dns.Server.SelfUpdate/SelfUpdateOptions.cs:19-24,50`), so the built-in check does nothing unless an operator hosts a feed. The check itself is already on by default (`:42`). ### What changes - `release.sh` writes a `SelfUpdateReleaseFeedDocument` JSON for each release and uploads it as a release asset with a fixed file name (for example `ninlil-release-feed.json`). - Stable URL (verified on the instance, Forgejo 15.0.11, 2026-10-31): `https://git.lantea.one/lantea-one/ninlil/releases/download/latest/<asset>` serves that asset of the latest release. The GitHub-style `/releases/latest/download/<asset>` path returns 404 there. Prereleases and drafts are skipped, and a release cut from a release branch becomes the latest. While the repository is private, an anonymous request gets 404. The feed format stays platform-neutral, as the class summary requires. - `ReleaseFeedUrl` defaults to that URL; the class summary's "No built-in feed URL" paragraph is rewritten. - A failing check on the default URL (no network, a firewall, a private repository) must not flood the log: check what a failure logs today and, if it is a Warning every 15-minute retry, limit it to one Warning per `CheckInterval`. Say what was found. - ENVIRONMENT.md default column; README self-update section states the one outbound request per day, what it sends, and how to turn it off (`EnableAutomaticCheck` false or an empty URL); CHANGELOG `Unreleased`. - The console hint is #45. If the settings API example names the URL, the snapshot changes: hand it to `api-regen` in the same PR. - The default ships only once the repository is public (#43); before that the URL returns 404 to Ninlil. ### Acceptance - [ ] `release.test.sh` asserts the document's fields and the upload with the fixed name against the fake Forgejo. - [ ] SelfUpdate.Tests or Web.Tests: a host with the default setting reports the newest release from a test feed (fake HTTP server on 127.0.0.1:0); a failing feed logs at most one Warning per interval. - [ ] After #43: an anonymous `curl -fsS` of the default URL returns the document of the newest release. - [ ] Env-var tests pass. ### Source `d-design.md:393,1069`. Merged with #45's feed part (DEDUPE.md). FORGEJO-FACTS.md (latest-asset URL, verified 2026-10-31). Owner decision 2026-10-31 (Q-REL-13 = Q-BUG-3): "JSON release asset at a stable 'latest' URL, checked by default".
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#44
No description provided.