From 6a7fdb133893661e0bd2cf4598707fd07fd40330 Mon Sep 17 00:00:00 2001 From: Logan Ramos Date: Wed, 10 Jul 2019 09:13:06 -0700 Subject: [PATCH] Fixes telemetry build scripts (#77006) * Revert commit change * Update telemetry extraction script * Fixing telemetry shell script * Update telemetry commit * Bump commit --- .../common/extract-telemetry.sh | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/build/azure-pipelines/common/extract-telemetry.sh b/build/azure-pipelines/common/extract-telemetry.sh index f07721cc5c1..e9a8ab962aa 100755 --- a/build/azure-pipelines/common/extract-telemetry.sh +++ b/build/azure-pipelines/common/extract-telemetry.sh @@ -4,10 +4,25 @@ set -e cd $BUILD_STAGINGDIRECTORY git clone https://github.com/microsoft/vscode-telemetry-extractor.git cd vscode-telemetry-extractor -git checkout f538e3157c84d1bd0b239dfc5ebccac226006d58 +git checkout 4e64f3de30f8fccb58ebdc0d85c4861a135d46cf npm i -npm run setup-extension-repos -node ./out/cli-extract.js --sourceDir $BUILD_SOURCESDIRECTORY --excludedDirPattern extensions --outputDir . --applyEndpoints --includeIsMeasurement --patchWebsiteEvents +cd src +mkdir telemetry-sources +cd telemetry-sources +git clone --depth 1 https://github.com/Microsoft/vscode-extension-telemetry.git +git clone --depth 1 https://github.com/Microsoft/vscode-chrome-debug-core.git +git clone --depth 1 https://github.com/Microsoft/vscode-chrome-debug.git +git clone --depth 1 https://github.com/Microsoft/vscode-node-debug2.git +git clone --depth 1 https://github.com/Microsoft/vscode-node-debug.git +git clone --depth 1 https://github.com/Microsoft/vscode-docker.git +git clone --depth 1 https://github.com/Microsoft/vscode-go.git +git clone --depth 1 https://github.com/Microsoft/vscode-azure-account.git +git clone --depth 1 https://github.com/Microsoft/vscode-html-languageservice.git +git clone --depth 1 https://github.com/Microsoft/vscode-json-languageservice.git +git clone --depth 1 https://github.com/Microsoft/vscode-mono-debug.git +git clone --depth 1 https://github.com/Microsoft/TypeScript.git +cd ../../ +node ./out/cli-extract.js --sourceDir $BUILD_SOURCESDIRECTORY --excludedDirPattern extensions --outputDir . --applyEndpoints --includeIsMeasurement node ./out/cli-extract-extensions.js --sourceDir ./src/telemetry-sources --outputDir . --applyEndpoints --includeIsMeasurement mkdir -p $BUILD_SOURCESDIRECTORY/.build/telemetry mv declarations-resolved.json $BUILD_SOURCESDIRECTORY/.build/telemetry/telemetry-core.json