Skip to content

perf(cli): npm --prefer-offline during update (#39399 salvage) - #77613

Merged
kshitijk4poor merged 1 commit into
NousResearch:mainfrom
kshitijk4poor:salvage/39399-npm-prefer-offline
Aug 3, 2026
Merged

perf(cli): npm --prefer-offline during update (#39399 salvage)#77613
kshitijk4poor merged 1 commit into
NousResearch:mainfrom
kshitijk4poor:salvage/39399-npm-prefer-offline

Conversation

@kshitijk4poor

Copy link
Copy Markdown
Collaborator

Salvage of #39399 by @rodboev — re-derived onto current main with authorship preserved (original was 5,721 commits behind; the npm invocation moved into _run_npm_install_deterministic).

npm install during 'hermes update' now passes --prefer-offline: npm consults its local cache before hitting the registry, cutting update time on repeat updates and making updates resilient to registry latency. Covers both call sites (root + workspace). 22 tests green (incl. the PR's test-expectation update, mirrored).

Closes #39399.

…earch#39267)

Re-derivation of PR NousResearch#39399 onto current main: pass --prefer-offline to
the web-UI workspace install (both silent and verbose arms of
_install_web_deps) and to the update-time Node dependency refresh in
_update_node_dependencies, so npm reuses its local cache instead of
re-fetching metadata. Test expectations updated to match, mirroring the
PR's own test-update commit.
@kshitijk4poor
kshitijk4poor enabled auto-merge (rebase) August 3, 2026 11:40
@alt-glitch alt-glitch added type/perf Performance improvement or optimization P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard labels Aug 3, 2026
@kshitijk4poor
kshitijk4poor merged commit bdcdde9 into NousResearch:main Aug 3, 2026
37 checks passed
@Ruanjq98

Ruanjq98 commented Aug 3, 2026

Copy link
Copy Markdown

Code Review: #77613

Verdict: Approve

read_file hint: helpful UX improvement.

LGTM - Reviewed diff. Changes are sound.

@kshitijk4poor
kshitijk4poor deleted the salvage/39399-npm-prefer-offline branch August 5, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/perf Performance improvement or optimization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants