Skip to content

devenv: disable telemetry by default #381817

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2025
Merged

Conversation

kampka
Copy link
Contributor

@kampka kampka commented Feb 13, 2025

Packages and modules in nixpkgs have a proven history of disabling / opting out of telemetry on behalf of their users.
I believe it's reasonable to assume the same would be expected from the devenv package.

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/devenv-1-4-generating-nix-developer-environments-using-ai/60235/2

@github-actions github-actions bot added 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Feb 13, 2025
@nix-owners nix-owners bot requested a review from domenkozar February 13, 2025 17:27
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/5207

Copy link
Contributor

@polygon polygon left a comment

Choose a reason for hiding this comment

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

LGTM

@SigmaSquadron SigmaSquadron added the 12.approvals: 3+ This PR was reviewed and approved by three or more persons. label Feb 13, 2025
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/2250

@GaetanLepage GaetanLepage merged commit fbb0622 into NixOS:master Feb 13, 2025
26 of 28 checks passed
@domenkozar
Copy link
Member

Hey @GaetanLepage why was this merged without my consent? I'm the maintainer of the package and this doesn't allow the users to allow telemetry data to be processed, which is the only way we can improve the generation.

@domenkozar
Copy link
Member

❯ git grep DO_NOT_TRACK
nixos/modules/services/misc/open-webui.nix:          DO_NOT_TRACK = "True";
nixos/modules/services/monitoring/netdata.nix:        DO_NOT_TRACK = "1";

I see only two NixOS modules setting this, not even at the package level. I'm not sure this is "with a proven history".

I'm against this change since those people that don't care won't ever enable it and we won't be able to improve making it easier to generate devenvs.

That's why do not track standard exists, that those that don't want to participate can enable it globally.

@domenkozar
Copy link
Member

I've reverted it in #381981

@kampka
Copy link
Contributor Author

kampka commented Feb 14, 2025

❯ git grep DO_NOT_TRACK
nixos/modules/services/misc/open-webui.nix:          DO_NOT_TRACK = "True";
nixos/modules/services/monitoring/netdata.nix:        DO_NOT_TRACK = "1";

I see only two NixOS modules setting this, not even at the package level. I'm not sure this is "with a proven history".

That is an oversimplification. Packages manage telemetry in different ways and hence enabling, disabling it is handled in different ways.

I'm against this change since those people that don't care won't ever enable it and we won't be able to improve making it easier to generate devenvs.

While this is true, it's also an invalid argument in my opinion. You may ship telemetry as an upstream project, but you are not the steward of nixpkgs and the purpose of nixpkgs is not to foster your commercial interest.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/should-commercial-actors-ship-telemetry-in-nixpkgs/60279/1

@GaetanLepage
Copy link
Contributor

Hey @GaetanLepage why was this merged without my consent? I'm the maintainer of the package and this doesn't allow the users to allow telemetry data to be processed, which is the only way we can improve the generation.

Sorry @domenkozar. This was indeed a mistake on my part. I thought that the change made sense for the nixpkgs repo. The correct thing would have been to wait for your approval.
Feel free to revert this commit.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/should-commercial-actors-ship-telemetry-in-nixpkgs/60279/11

@06kellyjac
Copy link
Member

+1 on allowing the maintainer(s) time to review a PR (excluding cases where maintainers are unavailable for extended periods or it's a critical vuln fix). In an open-source community being a maintainer doesn't mean being the boss or having sole ownership of the package but you are putting your time on the line to keep a thing working. It's not particularly fun to have a package you look after change without the courtesy of getting a bit of time to look at the change and weigh in.
Looks like that's happily resolved/addressed in this case 🚀

but also

+1 to being an opt-in prefer-er and to discussing the topic further in discourse

(maybe similar to the first point we could discuss in a topic some kind of SLA/SLO for maintainer review opportunity before getting to merge a change or adopt a package)

@jian-lin
Copy link
Contributor

we could discuss in a topic some kind of SLA/SLO for maintainer review opportunity before getting to merge a change

It is already in the doc:

We also allow other non-maintainer committers to merge changes to the package,
provided enough time and priority has been given to the maintainer.

For most packages, we expect committers to wait at least a week before merging
changes not endorsed by a package maintainer (which may be themselves). This should leave enough time
for the maintainers to provide feedback.

@gabeio

This comment was marked as resolved.

@uncenter uncenter mentioned this pull request May 1, 2025
@domenkozar domenkozar mentioned this pull request Jun 27, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 3+ This PR was reviewed and approved by three or more persons.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants