Files
vscode/.github/workflows/telemetry.yml
T
Dmitriy VasyuraandCopilot 9888ec2925 build: align telemetry validation across CI and official builds (#336865)
* build: align telemetry validation across CI and official builds

Resolve standalone extractor invocations from the root lockfile instead of independent or floating versions. Run the PR metadata gate through the official scoped extraction script so core and extension namespaces are not combined, installing only the extractor outside the workspace.

Propagate Copilot extractor failures and reconcile the duplicated cloud session creation duration description. Add regression coverage for version drift, extraction scope, failure propagation and compatible outcome metadata.

Refs #336369, #336747, #336857

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test: use an own-property check for telemetry metadata

Honor the repository's no-in-operator lint rule in the new telemetry consistency regression test. The targeted tests and ESLint check pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test: remove telemetry extractor version regression suite

Remove the standalone test file as requested; keep the validated CI and official-build changes unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-19 09:44:48 +02:00

35 lines
1.2 KiB
YAML

name: 'Telemetry'
on:
pull_request:
branches:
- main
- 'release/*'
permissions: {}
jobs:
check-metadata:
name: 'Check metadata'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1' # v7.0.1
with:
persist-credentials: false
- uses: 'actions/setup-node@820762786026740c76f36085b0efc47a31fe5020' # v7.0.0
with:
node-version-file: .nvmrc
- name: 'Install telemetry extractor'
run: |
# Use the same exact version as npm ci in the official builds.
version=$(node -p "require('./package-lock.json').packages['node_modules/@vscode/telemetry-extractor'].version")
npm install --prefix "$RUNNER_TEMP/telemetry-extractor" --no-save --no-package-lock --no-audit --no-fund "@vscode/telemetry-extractor@$version"
- name: 'Run vscode-telemetry-extractor'
run: node build/azure-pipelines/common/extract-telemetry.ts
env:
VSCODE_TELEMETRY_EXTRACTOR: ${{ runner.temp }}/telemetry-extractor/node_modules/@vscode/telemetry-extractor/out/extractor.js
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}