Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/emitter-pypi-release.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Install microcosm-emitter 0.2.1 from PyPI instead of an unreleased Git commit. The release includes the bounded service startup and telemetry and graph-publication concurrency fixes that the previous pin lacked.
23 changes: 11 additions & 12 deletions docs/orrery-publication.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,17 @@ HF receipt snapshot. Pending jobs also resume when a subsequent local service
starts. The retry command comes from the emitter package; Microcosm does not
retain a second delivery implementation or a compatibility wrapper.

## Deferred migration prerequisites

This adapter is implemented and tested in a draft PR, not merged or activated.
It depends on PolicyEngine/microcosm-emitter#4. The draft uses one exact root
Git source pin in `packages/microcosm-build/pyproject.toml` and `uv.lock` for
that PR's single `microcosm-emitter` distribution; no registry release was
available when this draft was updated.
Before merge, merge emitter #4, verify registry-owner configuration, publish
one `microcosm-emitter` release containing those changes, replace the draft source
override with that released version, regenerate `uv.lock`, update its
approved worker-identity digest and rerun tests and wheel checks. Merely building
a Microcosm wheel does not make its unpublished dependencies installable.
## Emitter dependency

`packages/microcosm-build` depends on one exact `microcosm-emitter` release
from PyPI, which `uv.lock` records with its wheel and source-archive hashes.
Microcosm has no Git source override for the emitter. Every merge to the
emitter's `main` publishes a new version automatically. To adopt one, change the
exact requirement, regenerate `uv.lock`, update `APPROVED_UV_LOCK_SHA256` in
`microcosm.build.us_runtime.worker_identity` to the new lockfile digest and
rerun the tests and wheel checks.

## Migrating an existing workstation

The emitter rejects unversioned databases without modification. Before switching
an existing workstation, upgrade any old unversioned queue using the preceding
Expand Down
4 changes: 1 addition & 3 deletions packages/microcosm-build/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies = [
"pyyaml>=6",
"jsonschema>=4.23,<5",
"referencing>=0.35,<1",
"microcosm-emitter==0.1.0",
"microcosm-emitter==0.2.1",
]

[project.optional-dependencies]
Expand Down Expand Up @@ -81,5 +81,3 @@ microcosm-fit = { workspace = true }
microcosm-calibrate = { workspace = true }
microcosm-diagnostics = { workspace = true }
microcosm-data = { workspace = true }
# Draft-only root source pin. Replace with a published distribution before merge.
microcosm-emitter = { git = "https://github.com/PolicyEngine/microcosm-emitter", rev = "12624a118db255405a0ce7397d53b3181deaf49a" }
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
PRIMARY_QRF_WORKER_MODULE = "microcosm.build.us_runtime.puf_qrf_worker"
PRIMARY_QRF_INTERPRETER_PLACEHOLDER = "{python_interpreter}"
APPROVED_UV_LOCK_SHA256 = (
"75ffb31c9b711a288e7de3e8f0442047b5aafcdd146c7fd95219f4cc1ac769ae"
"6b32bcb10b20c0ee3ce3174ab5da4794bb3ab2147b91d9729effde446576a156"
)
LEGACY_CAMPAIGN_UV_LOCK_SHA256 = (
"27f47e385cfa35e2644a37410d1804b361ad9aee123577551c8421547bda65ee"
Expand Down
10 changes: 7 additions & 3 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading