diff --git a/.circleci/config.yml b/.circleci/config.yml index 5916e9d055..92138bc41f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -151,7 +151,7 @@ build_metrics: &build_metrics command: npm install --ignore-scripts - run: name: Boostrap dependencies - command: npx lerna bootstrap --scope @opentelemetry/rca-metrics --include-filtered-dependencies + command: npx lerna bootstrap --scope @opentelemetry/rca-metrics --include-filtered-dependencies --ignore-scripts - save_cache: <<: *cache_1 - run: @@ -208,11 +208,8 @@ workflows: - node10 - node12 - node12-browsers - - build-native-stats - -# - build-native-stats: -# filters: -# branches: -# only: master -# - + - build-native-stats: + filters: + branches: + only: + - master diff --git a/packages/opentelemetry-rca-metrics/.gitignore b/packages/opentelemetry-rca-metrics/.gitignore index 62dd1ddc07..e69de29bb2 100644 --- a/packages/opentelemetry-rca-metrics/.gitignore +++ b/packages/opentelemetry-rca-metrics/.gitignore @@ -1 +0,0 @@ -artifacts/* diff --git a/packages/opentelemetry-rca-metrics/artifacts/prebuilds.tgz b/packages/opentelemetry-rca-metrics/artifacts/prebuilds.tgz new file mode 100644 index 0000000000..2d8843cf28 Binary files /dev/null and b/packages/opentelemetry-rca-metrics/artifacts/prebuilds.tgz differ diff --git a/packages/opentelemetry-rca-metrics/artifacts/prebuilds.tgz.sha1 b/packages/opentelemetry-rca-metrics/artifacts/prebuilds.tgz.sha1 new file mode 100644 index 0000000000..b9d65fb4fa --- /dev/null +++ b/packages/opentelemetry-rca-metrics/artifacts/prebuilds.tgz.sha1 @@ -0,0 +1 @@ +15650db2e6cb69f2f7f36a5bbe0896c7398e7d77 \ No newline at end of file diff --git a/packages/opentelemetry-rca-metrics/scripts/get_prebuilds.js b/packages/opentelemetry-rca-metrics/scripts/get_prebuilds.js index 81c819ca34..a50925c839 100644 --- a/packages/opentelemetry-rca-metrics/scripts/get_prebuilds.js +++ b/packages/opentelemetry-rca-metrics/scripts/get_prebuilds.js @@ -24,9 +24,11 @@ const os = require('os'); const path = require('path'); const exec = require('./exec.js'); -console.log('Downloading and compiling files for release.'); +const MAIN_FOLDER = path.resolve(__dirname, '..'); +const ARTIFACTS_FOLDER = path.resolve(MAIN_FOLDER, 'artifacts'); + +console.log('Downloading rca-metrics compiled files for release.'); -const TOKEN = process.env.CIRCLE_TOKEN; if (!TOKEN) { throw new Error( [ @@ -69,7 +71,6 @@ getPipeline() .then(downloadArtifacts) .then(validatePrebuilds) .then(copyPrebuilds) - .then(bundle) .catch(e => { process.exitCode = 1; console.error(e); @@ -186,15 +187,14 @@ function validatePrebuilds() { } function copyPrebuilds() { - const basename = path.normalize(path.join(__dirname, '..', 'artifacts')); const filename = 'prebuilds.tgz'; fs.copyFileSync( path.join(os.tmpdir(), filename), - path.join(basename, filename) + path.join(ARTIFACTS_FOLDER, filename) + ); + fs.copyFileSync( + path.join(os.tmpdir(), `${filename}.sha1`), + path.join(ARTIFACTS_FOLDER, `${filename}.sha1`) ); -} - -function bundle() { - exec('yarn bundle'); }