Skip to content

Update feed: a hotfix's envelope is also served under its release label - #352

Merged
Kharote merged 2 commits into
mainfrom
fix/feed-hotfix-label
Nov 24, 2026
Merged

Kharote merged 2 commits into
mainfrom
fix/feed-hotfix-label

Conversation

@Kharote

@Kharote Kharote commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

What this changes

A player on 1.2.1 could not join a server on 1.2.0.1: the game offers SWITCH TO 1.2.0.1, and the launcher asks the update feed for that version's envelope by its release label (/v1/updates/stable/versions/1.2.0-hotfix.1/manifest), the name a hotfix x.y.z.w goes out as. The feed kept hotfix envelopes only under versions/1.2.0.1/ and its route accepted only digits and dots, so the request was a 404 for every hotfix (1.2.0.1, 1.2.0.2, 1.1.3.1, ...).

  • update_feed.py: a hotfix's envelope, and the one a release replaces, are written under both folders, its version and its release label (envelope_folders), and both are checked to be served.
  • New test_update_feed.py (in CI with the other release tool tests).

Already done on the update host, so the launchers players have work now: the existing hotfix envelopes copied to their label folders, and the route widened to ([0-9]+(\.[0-9]+)*(-hotfix\.[0-9]+)?) (nginx config backed up first). https://updates.kcdsynced.com/v1/updates/stable/versions/1.2.0-hotfix.1/manifest now answers 200 with the signed 1.2.0-hotfix.1 envelope.

How it was tested

  • python -m unittest discover -s Dev/tools/release -p test_update_feed.py: 5 passed (folders of a version and a hotfix, the upload's moves for a new hotfix and a replaced one, verify reads both folders).
  • Live: the released 1.2.1 launcher, kcds-launcher --version 1.2.0.1 --fetch-into <folder>, printed "KCDS 1.2.0.1 verified and installed" (before the host change it got a 404).

Checklist

  • I read CONTRIBUTING.md and agree that my contribution is licensed as it says.
  • The change is my own work: no code, assets or dumps that are not mine or that come from the game.
  • python Dev/tools/format_source.py --check passes.
  • Tests cover the change, and the checks of this pull request pass.
  • Public behaviour that changed is documented (KCD-Synced/KCDS-DOCS) or needs no docs.

A game switching to the version a server runs asks the feed for that
version's envelope by its release label, and a hotfix x.y.z.w goes out as
x.y.z-hotfix.w: the feed served hotfix envelopes only under x.y.z.w, so a
player could not switch to a server on 1.2.0.1 or 1.2.0.2 (404).

update_feed writes a hotfix's envelope, and the one it replaces, under both
folders and checks both are served.
@Kharote
Kharote merged commit 586c804 into main Nov 24, 2026
10 checks passed
@Kharote
Kharote deleted the fix/feed-hotfix-label branch November 24, 2026 21:54
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