Repository navigation
chore(version): 0.12.0, so nodes can actually receive the renewal worker - #132
Merged
Merged
Conversation
greffer#131 shipped the per-instance certificate renewal worker and left the version at 0.11.0. The updater resolves its target from the signed manifest at greffon.io/greffer-version.json, so a node already on 0.11.0 runs `greffer update`, is told it is current, and never receives the worker. That is the whole rollout stalled at the last step, and invisibly: the manager flag is on and its mint/report endpoints are open, waiting for callers that cannot arrive. Nothing misbehaves -- a greffer without the worker simply never calls, which is the intended no-op -- so there is no symptom to notice. Minor, not patch: this is a new background worker, a new CLI subcommand and two new manager endpoints being consumed, all backwards compatible. Also turns the "keep in sync with pyproject.toml" comment on __version__ into a test. The image is tagged from pyproject and the greffer reports __init__ to the manager, which the per-greffon min_greffer_version gate compares against, so a bump applied to one and not the other ships a tag whose contents describe themselves differently. The comment asked for it and nothing enforced it. Merging this is not the end of the rollout: the publish workflow has to build the new tag, and greffon.io/greffer-version.json has to advertise it before any `greffer update` will resolve to it.
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#131 shipped the per-instance certificate renewal worker and left the version at
0.11.0.The updater resolves its target from the signed manifest at
greffon.io/greffer-version.json. A node already on 0.11.0 runsgreffer update, is told it is current, and never receives the worker — so the rolloutis stalled at the last step, and stalled invisibly: the manager flag is on
and its mint/report endpoints are open, waiting for callers that cannot arrive.
Nothing misbehaves, because a greffer without the worker simply never calls,
which is the intended no-op. There is no symptom to notice.
pyproject.tomlapp/__init__.pyThose are the only two places the number lives —
settings.greffer_versionderives from
__version__, and the register test asserts against the constantrather than a literal, deliberately so bumps do not break it.
Minor rather than patch: a new background worker, a new CLI subcommand, and two
new manager endpoints being consumed, all backwards compatible.
Also: the sync comment becomes a test
__version__carries "keep in sync with pyproject.toml" and nothing enforcedit. The image is tagged from pyproject; the greffer reports
__init__to themanager, which the per-greffon
min_greffer_versiongate compares against. Abump applied to one and not the other ships a tag whose contents describe
themselves differently. Verified non-vacuous — desyncing the two files fails it.
Happy to drop that half if you would rather keep this to the number alone.
This does not finish the rollout
Merging builds and signs the new tag via
docker-publish. Nodes still will notsee it until
greffon.io/greffer-version.jsonadvertises 0.12.0 — that ispublished from the landing-page repo, and is a separate step.
824 tests pass locally (excluding
test_workers_register.py, which hangs onlocal 3.14 and is pre-existing; CI pins 3.11).