fix(doctor): honor http timeout for version checks#9977
Conversation
Greptile SummaryThis PR wires
Confidence Score: 5/5Safe to merge — the change is a clean removal of a now-redundant client and a corresponding simplification of dead conditional logic. Both changed files are straightforward: the version check gains the user-configurable timeout it was missing, No files require special attention. Important Files Changed
Reviews (5): Last reviewed commit: "Merge branch 'main' into codex-20260519-..." | Re-trigger Greptile |
There was a problem hiding this comment.
Code Review
This pull request updates the version check HTTP client to honor the user-configured http_timeout setting instead of a hardcoded 3-second duration. It also removes the specialized VersionCheck client kind in favor of the standard Http kind and includes a new end-to-end test to verify that mise doctor correctly respects the MISE_HTTP_TIMEOUT environment variable. I have no feedback to provide as no review comments were submitted.
|
this is by far one of the best reaction a bug report i've seen |
This comment was marked as outdated.
This comment was marked as outdated.
### 🚀 Features - **(npm)** disable npm lifecycle scripts by default by @risu729 in [#9913](#9913) ### 🐛 Bug Fixes - **(completion)** avoid network calls when generating completions by @sargunv-headway in [#10010](#10010) - **(config)** track install manifest option source by @risu729 in [#9958](#9958) - **(doctor)** honor http timeout for version checks by @risu729 in [#9977](#9977) - **(github)** prefer primary binary assets by @risu729 in [#10008](#10008) - **(release)** bake secondary mise-plugins vfox plugins by @risu729 in [#9832](#9832) - **(shim)** preserve optioned aliases during rebuilds by @risu729 in [#9848](#9848) ### 🚜 Refactor - **(dotnet)** parse backend tool options locally by @risu729 in [#9962](#9962) ### 📚 Documentation - remove how i use mise article by @jdx in [#9996](#9996) ### 🧪 Testing - **(s3)** cover current config over install manifest opts by @risu729 in [#9917](#9917) ### 📦️ Dependency Updates - update astral-tokio-tar by @jdx in [#9997](#9997) ### 📦 Registry - update entry for vale by @eread in [#10002](#10002) - use aqua backend for vector by @jdx in [#10011](#10011) ## 📦 Aqua Registry Updates ### New Packages (2) - `google.com/antigravity-cli` - [`sholdee/crd-schema-publisher`](https://github.com/sholdee/crd-schema-publisher) ### Updated Packages (4) - [`FairwindsOps/pluto`](https://github.com/FairwindsOps/pluto) - [`goccy/bigquery-emulator`](https://github.com/goccy/bigquery-emulator) - [`sourcemeta/jsonschema`](https://github.com/sourcemeta/jsonschema) - [`wasmCloud/wasmCloud/wash`](https://github.com/wasmCloud/wasmCloud)
Summary
http_timeoutfor themise doctor/version endpoint check instead of a hardcoded 3s timeouthttp_timeout/MISE_HTTP_TIMEOUTHistory / Rationale
edb8a32ea(feat(timeout): show duration, URL, and config hint on timeouts; increase fetch timeout default to 10s) introducedClientKind::VersionCheck => ("version_check_timeout", "")alongside the hardcoded 3sHTTP_VERSION_CHECKclient.version_check_timeoutsetting/env var, so the timeout formatter avoided printing a misleading "change with ..." hint for version checks.HTTPclient, so the former empty-env-var branch is no longer reachable and timeout messages correctly point to the realhttp_timeout/MISE_HTTP_TIMEOUTcontrols.Discussion
Tests
git diff --checkMISE_TRUSTED_CONFIG_PATHS=$PWD mise run build