Skip to content

Disable Yarn telemetry by default in jlpm#118

Merged
Darshan808 merged 1 commit into
jupyterlab:mainfrom
Darshan808:disable-telemetry
Jun 20, 2026
Merged

Disable Yarn telemetry by default in jlpm#118
Darshan808 merged 1 commit into
jupyterlab:mainfrom
Darshan808:disable-telemetry

Conversation

@Darshan808

Copy link
Copy Markdown
Member

Fixes #114

Description

Yarn Berry ships with enableTelemetry: true, so jlpm has been quietly sending anonymous usage data to Yarn's servers. JupyterLab users install via pip/conda and never opt into Yarn directly, so they likely have no idea this is happening and there's a known bug where the telemetry ping can hang the CLI for several minutes on locked-down networks. (yarnpkg/berry#6271)

This sets YARN_ENABLE_TELEMETRY=0 as a default in the jlpm launcher, before we exec node + yarn.js.

Uses os.environ.setdefault, so it's a soft default and anyone who wants telemetry back can export YARN_ENABLE_TELEMETRY=1.

@Darshan808 Darshan808 added the maintenance Change related to maintenance of the repository label Jun 20, 2026
@Darshan808 Darshan808 self-assigned this Jun 20, 2026

@krassowski krassowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, thank you!

@Darshan808 Darshan808 merged commit 70aa33c into jupyterlab:main Jun 20, 2026
21 of 22 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in CFP '25 tracking Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Change related to maintenance of the repository

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Could jlpm ship with telemetry disabled?

2 participants