Skip to content

Commit e27a902

Browse files
authored
fix: add environment variables to disable telemetry in turbo (#362)
1 parent b931ea2 commit e27a902

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ env:
1010
COREPACK_ENABLE_STRICT: 1
1111
# see https://github.com/nodejs/corepack/issues/612#issuecomment-2631462297
1212
COREPACK_INTEGRITY_KEYS: '{"npm":[{"expires":"2025-01-29T00:00:00.000Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="},{"expires":null,"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEY6Ya7W++7aUPzvMTrezH6Ycx3c+HOKYCcNGybJZSCJq/fd7Qa8uuAKtdIkUQtQiEKERhAmE5lMMJhP8OkDOa2g=="}]}'
13-
13+
# see https://turbo.build/repo/docs/telemetry#how-do-i-opt-out
14+
TURBO_TELEMETRY_DISABLED: 1
15+
DO_NOT_TRACK: 1
1416
on:
1517
push:
1618
branches:

.github/workflows/ecosystem-ci-from-pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ env:
1111
COREPACK_ENABLE_STRICT: 1
1212
# see https://github.com/nodejs/corepack/issues/612#issuecomment-2631462297
1313
COREPACK_INTEGRITY_KEYS: '{"npm":[{"expires":"2025-01-29T00:00:00.000Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="},{"expires":null,"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEY6Ya7W++7aUPzvMTrezH6Ycx3c+HOKYCcNGybJZSCJq/fd7Qa8uuAKtdIkUQtQiEKERhAmE5lMMJhP8OkDOa2g=="}]}'
14-
14+
# see https://turbo.build/repo/docs/telemetry#how-do-i-opt-out
15+
TURBO_TELEMETRY_DISABLED: 1
16+
DO_NOT_TRACK: 1
1517
on:
1618
workflow_dispatch:
1719
inputs:

.github/workflows/ecosystem-ci-selected.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ env:
1111
COREPACK_ENABLE_STRICT: 1
1212
# see https://github.com/nodejs/corepack/issues/612#issuecomment-2631462297
1313
COREPACK_INTEGRITY_KEYS: '{"npm":[{"expires":"2025-01-29T00:00:00.000Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="},{"expires":null,"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEY6Ya7W++7aUPzvMTrezH6Ycx3c+HOKYCcNGybJZSCJq/fd7Qa8uuAKtdIkUQtQiEKERhAmE5lMMJhP8OkDOa2g=="}]}'
14-
14+
# see https://turbo.build/repo/docs/telemetry#how-do-i-opt-out
15+
TURBO_TELEMETRY_DISABLED: 1
16+
DO_NOT_TRACK: 1
1517
on:
1618
workflow_dispatch:
1719
inputs:

.github/workflows/ecosystem-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ env:
1111
COREPACK_ENABLE_STRICT: 1
1212
# see https://github.com/nodejs/corepack/issues/612#issuecomment-2631462297
1313
COREPACK_INTEGRITY_KEYS: '{"npm":[{"expires":"2025-01-29T00:00:00.000Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="},{"expires":null,"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEY6Ya7W++7aUPzvMTrezH6Ycx3c+HOKYCcNGybJZSCJq/fd7Qa8uuAKtdIkUQtQiEKERhAmE5lMMJhP8OkDOa2g=="}]}'
14-
14+
# see https://turbo.build/repo/docs/telemetry#how-do-i-opt-out
15+
TURBO_TELEMETRY_DISABLED: 1
16+
DO_NOT_TRACK: 1
1517
on:
1618
schedule:
1719
- cron: "0 5 * * 1,3,5" # monday,wednesday,friday 5AM

utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ export async function setupEnvironment(): Promise<EnvironmentData> {
7979
YARN_ENABLE_IMMUTABLE_INSTALLS: 'false', // to avoid errors with mutated lockfile due to overrides
8080
NODE_OPTIONS: '--max-old-space-size=6144', // GITHUB CI has 7GB max, stay below
8181
ECOSYSTEM_CI: 'true', // flag for tests, can be used to conditionally skip irrelevant tests.
82+
TURBO_TELEMETRY_DISABLED: '1', // # see https://turbo.build/repo/docs/telemetry#how-do-i-opt-out
83+
DO_NOT_TRACK: '1',
8284
}
8385
initWorkspace(workspace)
8486
return { root, workspace, vitePath, cwd, env }

0 commit comments

Comments
 (0)