Skip to content

Publish UK release builds into their own folders through the emitter #1504

Open

Description

@anth-volk

Since #1460, builds hand their staged dataset bundles to the separately installed microcosm-emitter. Release publication is still Microcosm's own: microcosm.data.release.publish_release commits each release to a staging branch, tags it, commits the release-folder copies and root files to main, and writes latest.json or a latest-<line>.json pointer file. Every UK build of a release overwrites releases/<release>/ on main, and its manifests name the release three ways (build_id, attempt_id, cut_tag).

Goal (collector hub plan, hand-over step H2c):

  • Microcosm publishes each UK release build through the interface's publish_release call. The emitter's release writer puts it in its own folder, releases/<release>/<build>/, and records it in the repository's releases.json in one commit. Microcosm no longer commits, tags or writes pointer files for UK releases.
  • Microcosm treats a build as current only when the emitter's receipt has status published and current equal to that build.
  • Release manifests carry release and build as strings, each file's role, and built_at, built_with_model_package and built_with_core_package at the top level. They keep the artifacts map (kind, path as a bare file name, repo_id, sha256), drop revision, and add a role per file. The release contract checks this layout.
  • Each release's role in releases.json is national or local_area, from the manifest's national_default or non_default_local_area. Files keep the general roles dataset and calibration_diagnostics.
  • Each new dense build becomes current when it is published; the national build is published first and made current after review.
  • The microcosm-data loader finds each UK release's current build in releases.json.

microcosm-emitter-interface 0.7.0, which Microcosm already uses, has publish_release, promote_build and receipts with current, and so does every emitter from 0.7.0; builds already require 0.11.9.

Pending: US releases keep tags and latest.json until the stable releases US builds publish under are agreed with the US data builder. The one-time move of the existing builds into folders and the microcosm-data release are separate changes. UK release alerts do not stop: until the UK repository's switch to releases.json, UK releases keep publishing and promoting through the tagged publisher and its pointer files, which sends their Slack alerts as today, and the switch waits until the dashboard announces changes to releases.json (#1505 was narrowed to this on 2026-11-04).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions