Repository navigation
Tell CLI users when a newer stable release is published - #490
Merged
Merged
Conversation
The CLI checks npm's latest dist-tag at most once a day and prints the update command on stderr. The command disables pnpm's minimumReleaseAge for that one install: the package depends only on its own native builds, and pnpm 11 otherwise installs the newest release older than a day. Canary builds get no hint, because @latest would switch their channel.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 17bb9f5 | Nov 29 2026, 12:45 PM |
A slow registry or an unwritable state directory no longer makes every command wait for the registry. CI installs a chosen version, and source builds used by the CLI tests do not come from npm. A closed stderr no longer panics after the command finished.
Tests that run release builds without CI record a fresh check without an answer, so they make no registry request and print no hint. A failed first check no longer stores the CLI's own version as the latest release, which another installed CLI would have reported as an available update.
The hint comes from the previous check, and an outdated answer is refreshed in the background, so no command waits for the registry. CI and NO_UPDATE_NOTIFIER, the variable npm's update-notifier uses, turn the check off. Tests set NO_UPDATE_NOTIFIER instead of preparing a cache, and source builds no longer need their own exception.
A hanging resolver, registry or state file system no longer keeps a finished command from exiting, because the runtime waits for its blocking tasks on shutdown. Without a state directory there is no check. The Playwright CLI login sets NO_UPDATE_NOTIFIER like the Vitest suites.
A stale answer starts a hidden widefleet update-check process in its own process group. It records the attempt, asks npm and saves the result, so short commands no longer lose the check and none of them waits for it.
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.
Summary
Widefleet 0.7.23 is available (installed 0.7.22). Update with: pnpm add --global widefleet@latest --config.minimum-release-age=0widefleet update-checkin its own process group with closed standard streams. That process records the attempt, asks npm forlatestand saves the answer for later commands, so no command waits for the registry and short commands do not lose the check.CIorNO_UPDATE_NOTIFIER(the variableupdate-notifieruses) turns the check off. The test configuration setsNO_UPDATE_NOTIFIER, so CLI tests make no registry requests.@latestwould move them to the stable channel.minimumReleaseAgefor that one install. pnpm 11 defaults it to one day, so a plain reinstall silently picks the newest release older than a day. Thewidefleetpackage depends only on its own native packages, so no third-party code bypasses the age check.Verification
cargo clippy -p platform-cli --all-targets -- -D warningscargo test -p platform-cli update::CIandNO_UPDATE_NOTIFIERsuppress it.RUN_CLI_TESTS=1withoutCIagainst the debug build:discovery-cli.test.ts,cli.test.ts,auth-cli.test.ts,reporting-cli.test.ts(130 passed)