Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/demo-rule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ on:
permissions:
contents: read

# This workflow runs the CLI this repository builds. Its telemetry is the same
# production client a user's install has, so every invocation here would count
# as adoption. Opting out is the CLI's own switch, read by the built binary.
env:
TASKLESS_TELEMETRY_DISABLED: "1"

jobs:
demo-rules:
name: Demo rules
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ on:
permissions:
contents: read

# This workflow runs the CLI this repository builds. Its telemetry is the same
# production client a user's install has, so every invocation here would count
# as adoption. Opting out is the CLI's own switch, read by the built binary.
env:
TASKLESS_TELEMETRY_DISABLED: "1"

jobs:
validate:
name: Validate
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"bump:version": "changeset version",
"changeset": "changeset",
"check:style": "pnpm build && pnpm cli check",
"cli": "./packages/cli/dist/index.js",
"cli": "TASKLESS_TELEMETRY_DISABLED=1 ./packages/cli/dist/index.js",
"dotagents": "dotagents --project",
"generate:api": "pnpm --filter @taskless/cli generate:api",
"husky": "husky",
Expand Down
13 changes: 13 additions & 0 deletions packages/cli/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,19 @@ export default defineConfig({
test: {
testTimeout: 20_000,
hookTimeout: 20_000,
// Most suites spawn the BUILT CLI, which carries the production PostHog
// token and opts out only on these env vars. A child inherits the worker's
// process.env, so without this every `init`/`check` a test spawns posts a
// real `cli_run`, stamped with the package version and indistinguishable
// from a user's. Measured on 2026-09-08: `init` outnumbered `check` in
// production (8,673 to 8,415), which no shipped code path can do — `check`
// never launches `init` — and the daily shape tracked the Validate run
// count. Tests that exercise the opt-out itself clear these with
// `vi.stubEnv` first, so the default costs them nothing.
env: {
TASKLESS_TELEMETRY_DISABLED: "1",
DO_NOT_TRACK: "1",
},
// Two projects, because `__TASKLESS_CLI__` is a compile-time define rather
// than a value a test can stub: whatever this config resolves is what every
// test in the run sees. The suite therefore only ever exercised a prod
Expand Down
Loading