Skip to content

[CLI] Adding telemetry matching with active plugin sessions#16346

Open
Melkeydev wants to merge 1 commit into
mainfrom
melkey/adding-cli-plugin-telemetry-session
Open

[CLI] Adding telemetry matching with active plugin sessions#16346
Melkeydev wants to merge 1 commit into
mainfrom
melkey/adding-cli-plugin-telemetry-session

Conversation

@Melkeydev
Copy link
Copy Markdown
Contributor

• ## Summary

Adds CLI telemetry support for detecting recent Vercel Plugin active sessions.

Changes

  • Reads ~/.config/vercel-plugin/active-session.json during CLI startup
  • Defensively validates marker schema, expiry, and plugin version
  • Emits plugin cohort telemetry only when a fresh marker is present
  • Adds focused unit coverage and a changeset

Tests

  • pnpm test test/unit/telemetry/vercel-plugin.test.ts

@Melkeydev Melkeydev requested review from a team as code owners May 16, 2026 03:51
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 16, 2026

🦋 Changeset detected

Latest commit: 8f9e8c1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vercel Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

📦 CLI Tarball Ready

The Vercel CLI tarball for this PR is now available!

Quick Test

You can test this PR's CLI directly by running:

npx https://vercel-duzk1ejjq.vercel.sh/tarballs/vercel.tgz --help

Use in vercel.json

To use this CLI version in your project builds, add to your vercel.json:

{
  "build": {
    "env": {
      "VERCEL_CLI_VERSION": "vercel@https://vercel-duzk1ejjq.vercel.sh/tarballs/vercel.tgz"
    }
  }
}

Python Runtime Wheel

A vercel-runtime wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_RUNTIME_PYTHON="vercel-runtime @ https://vercel-duzk1ejjq.vercel.sh/tarballs/vercel_runtime-0.14.0.dev1778903412+8f9e8c1-py3-none-any.whl"

Python Workers Wheel

A vercel-workers wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_WORKERS_PYTHON="vercel-workers @ https://vercel-duzk1ejjq.vercel.sh/tarballs/vercel_workers-0.1.0.dev1778903412+8f9e8c1-py3-none-any.whl"

This comment is automatically generated

@github-actions
Copy link
Copy Markdown
Contributor

🧪 Unit Test Strategy

Comparing: 39850ef8f9e8c1 (view diff)

Strategy: Code changed outside of a package - running all unit tests

⚠️ All unit tests will run because global code changes could impact all packages.

Affected packages - 15 (34%)
  1. vercel
  2. @vercel/build-utils
  3. @vercel/client
  4. @vercel/firewall
  5. @vercel/fs-detectors
  6. @vercel/go
  7. @vercel/hydrogen
  8. @vercel/next
  9. @vercel/node
  10. @vercel/python
  11. @vercel/remix-builder
  12. @vercel/ruby
  13. @vercel/rust
  14. @vercel/static-build
  15. examples
Unaffected packages - 29 (66%)
  1. @vercel-internals/get-package-json
  2. @vercel/backends
  3. @vercel/cervel
  4. @vercel/cli-auth
  5. @vercel/cli-config
  6. @vercel/cli-exec
  7. @vercel/config
  8. @vercel/detect-agent
  9. @vercel/edge
  10. @vercel/elysia
  11. @vercel/error-utils
  12. @vercel/express
  13. @vercel/fastify
  14. @vercel/frameworks
  15. @vercel/functions
  16. @vercel/gatsby-plugin-vercel-analytics
  17. @vercel/gatsby-plugin-vercel-builder
  18. @vercel/h3
  19. @vercel/hono
  20. @vercel/koa
  21. @vercel/nestjs
  22. @vercel/oidc
  23. @vercel/oidc-aws-credentials-provider
  24. @vercel/python-analysis
  25. @vercel/redwood
  26. @vercel/related-projects
  27. @vercel/routing-utils
  28. @vercel/static-config
  29. @vercel/vc-native

Results

  • Unit tests: All affected packages will run unit tests
  • E2E tests: Running in parallel in this workflow
  • Type checks: All affected packages will run type checks

This comment is automatically generated based on the affected testing strategy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant