Repository navigation
test(cli): check a 0.49.1 peer drops a removed device, and document the device commands - #3082
Merged
Merged
Conversation
…he device commands Test plan L2 for Remove device: a peer from before 0.50 never asks the coordinator about removals, so it must lose a removed device from its scope membership cache at its next refresh. The packed smoke now runs the published 0.49.1 core against the candidate coordinator: both devices are enrolled and granted a Sharing domain, the 0.49.1 peer caches both, the administrator removes one through the coordinator's removal routes, and the peer's next signed refresh no longer caches it. The CLI reference now says how coordinator device remove, disable and revoke differ from Remove device and Block device permanently in the Viewer, and that Block has no CLI command.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Owner
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
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.

Description
This closes two items left on the Remove and Block device work: test plan L2, and the CLI reference.
L2: an older peer drops a removed device. A peer from before 0.50 never asks the coordinator which devices were removed. It has to lose a removed device from its scope membership cache anyway, at its next refresh. The packed artifact smoke now checks this against a real 0.49.1 install. It reuses the 0.49.1 install that the upgrade smoke already makes.
refreshScopeMembershipCacheand caches both devices./v1/admin/devices/removal-previewand/v1/admin/devices/removal, the routes Devices → Remove device uses.CLI reference. A new section explains how
coordinator device remove,disableandrevokediffer from Remove device and Block device permanently in the Viewer, and says that Block has no CLI command.Type of Change
Testing
pnpm buildandpnpm --filter codemem test:packed-artifactpassed: "Packed 0.49.1 peer drops a device the candidate coordinator removed at its next scope refresh". The 0.49.1 peer caches both devices before the removal, so the check after it would fail if the removed device stayed.The
packages/cli/scriptstests passed (16 tests), and the lint ratchet passed.Relevant checks pass locally (
pnpm run tsc,pnpm run lint,pnpm run test)Added/updated tests for changes
Manually verified changes work as expected
Checklist
pnpm run lintpasses for touched files)