cachix / install-nix-action

Installs Nix on GitHub Actions for the supported platforms: Linux and macOS.
Apache License 2.0
525 stars 80 forks source link

Better cache analytics trough custom User-Agent #198

Open zimbatm opened 1 year ago

zimbatm commented 1 year ago

As part of the work on the S3 cache GC, we discovered that most of our Fastly traffic is coming from North America. Could this be primarily GitHub traffic?

It would be interesting if this action could set the "user-agent-suffix" Nix setting with the following info:

This would allow us to build a better understanding of the usage pattern of the cache.

I'm going to post this to the other Nix install actions as well.

zimbatm commented 1 year ago

See also: https://github.com/DeterminateSystems/nix-installer-action/issues/50 https://github.com/nixbuild/nix-quick-install-action/issues/38

sandydoo commented 1 year ago

Sounds reasonable to me.

which github org it's being used on

This is likely the only contentious issue. cc @domenkozar

domenkozar commented 1 year ago

As part of the work on the S3 cache GC, we discovered that most of our Fastly traffic is coming from North America. Could this be primarily GitHub traffic?

It would be interesting if this action could set the "user-agent-suffix" Nix setting with the following info:

  • the name of the action
  • which github org it's being used on

This would allow us to build a better understanding of the usage pattern of the cache.

I'm going to post this to the other Nix install actions as well.

This might also trigger people about privacy, since it's now leaking usage stats. I'm not particularly concerned about it, because I don't expect any abuse to happen, but I'd like to communicate somehow that we're doing this for the sake of improving the service.