Skip to content

Commit f129138

Browse files
authored
chore: hoist dependencies to speed up ci (#2416)
* chore: hoist dependencies to speed up ci * chore: parallel tests * Revert "chore: parallel tests" This reverts commit dc55c90. * chore: add missing example deps
1 parent 40d0423 commit f129138

File tree

16 files changed

+30
-18
lines changed

16 files changed

+30
-18
lines changed

.github/workflows/canary.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ jobs:
4242
if: steps.cache.outputs.cache-hit != 'true'
4343
run: |
4444
npm install --ignore-scripts
45-
npx lerna bootstrap --no-ci
45+
npx lerna bootstrap --no-ci --hoist --nohoist='zone.js'
4646
npm run compile
4747
4848
- name: Install and Build (cache hit) 🔧
4949
if: steps.cache.outputs.cache-hit == 'true'
5050
run: |
5151
npm ci --ignore-scripts
52-
npx lerna bootstrap
52+
npx lerna bootstrap --hoist --nohoist='zone.js'
5353
npm run compile
5454
5555
- name: Publish

.github/workflows/docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ jobs:
3333
if: steps.cache.outputs.cache-hit != 'true'
3434
run: |
3535
npm install --ignore-scripts
36-
npx lerna bootstrap --no-ci
36+
npx lerna bootstrap --no-ci --hoist --nohoist='zone.js'
3737
npm run compile
3838
3939
- name: Install and Build (cache hit) 🔧
4040
if: steps.cache.outputs.cache-hit == 'true'
4141
run: |
4242
npm ci --ignore-scripts
43-
npx lerna bootstrap
43+
npx lerna bootstrap --hoist --nohoist='zone.js'
4444
npm run compile
4545
4646
- name: Build Docs

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ jobs:
4949
if: steps.cache.outputs.cache-hit == 'true'
5050
run: |
5151
npm ci --ignore-scripts
52-
npx lerna bootstrap --ignore-scripts
52+
npx lerna bootstrap --ignore-scripts --hoist --nohoist='zone.js'
5353
5454
# On a cache miss, fall back to a regular install
5555
- name: Bootstrap (cache miss)
5656
if: steps.cache.outputs.cache-hit != 'true'
5757
run: |
5858
npm install --ignore-scripts
59-
npx lerna bootstrap --no-ci --ignore-scripts -- --only=dev
59+
npx lerna bootstrap --no-ci --ignore-scripts --hoist --nohoist='zone.js' -- --only=dev
6060
6161
- name: Lint
6262
run: |

.github/workflows/unit-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ jobs:
4040
if: steps.cache.outputs.cache-hit != 'true'
4141
run: |
4242
npm install --ignore-scripts
43-
npx lerna bootstrap --no-ci
43+
npx lerna bootstrap --no-ci --hoist --nohoist='zone.js'
4444
npm run compile
4545
4646
- name: Install and Build (cache hit) 🔧
4747
if: steps.cache.outputs.cache-hit == 'true'
4848
run: |
4949
npm ci --ignore-scripts
50-
npx lerna bootstrap
50+
npx lerna bootstrap --hoist --nohoist='zone.js'
5151
npm run compile
5252
5353
- name: Unit tests
@@ -85,14 +85,14 @@ jobs:
8585
if: steps.cache.outputs.cache-hit != 'true'
8686
run: |
8787
npm install --ignore-scripts
88-
npx lerna bootstrap --no-ci
88+
npx lerna bootstrap --no-ci --hoist --nohoist='zone.js'
8989
npm run compile
9090
9191
- name: Install and Build (cache hit) 🔧
9292
if: steps.cache.outputs.cache-hit == 'true'
9393
run: |
9494
npm ci --ignore-scripts
95-
npx lerna bootstrap
95+
npx lerna bootstrap --hoist --nohoist='zone.js'
9696
npm run compile
9797
9898
- name: Unit tests

examples/basic-tracer-node/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
"dependencies": {
2727
"@opentelemetry/api": "^1.0.2",
2828
"@opentelemetry/exporter-jaeger": "0.24.0",
29+
"@opentelemetry/resources": "0.24.0",
30+
"@opentelemetry/semantic-conventions": "0.24.0",
2931
"@opentelemetry/sdk-trace-base": "0.24.0"
3032
},
3133
"homepage": "https://github.com/open-telemetry/opentelemetry-js#readme"

examples/collector-exporter-node/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"@opentelemetry/exporter-collector": "0.24.0",
3434
"@opentelemetry/exporter-collector-grpc": "0.24.0",
3535
"@opentelemetry/exporter-collector-proto": "0.24.0",
36+
"@opentelemetry/resources": "0.24.0",
37+
"@opentelemetry/semantic-conventions": "0.24.0",
3638
"@opentelemetry/sdk-metrics-base": "0.24.0",
3739
"@opentelemetry/sdk-trace-base": "0.24.0"
3840
},

examples/grpc-js/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@
2828
"url": "https://github.com/open-telemetry/opentelemetry-js/issues"
2929
},
3030
"dependencies": {
31-
"@grpc/grpc-js": "^1.2.12",
31+
"@grpc/grpc-js": "^1.3.7",
3232
"@opentelemetry/api": "^1.0.2",
3333
"@opentelemetry/exporter-jaeger": "0.24.0",
3434
"@opentelemetry/exporter-zipkin": "0.24.0",
3535
"@opentelemetry/instrumentation": "0.24.0",
3636
"@opentelemetry/instrumentation-grpc": "0.24.0",
37+
"@opentelemetry/resources": "0.24.0",
38+
"@opentelemetry/semantic-conventions": "0.24.0",
3739
"@opentelemetry/sdk-trace-node": "0.24.0",
3840
"@opentelemetry/sdk-trace-base": "0.24.0",
3941
"google-protobuf": "^3.9.2"

examples/grpc/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"@opentelemetry/exporter-zipkin": "0.24.0",
3434
"@opentelemetry/instrumentation": "0.24.0",
3535
"@opentelemetry/instrumentation-grpc": "0.24.0",
36+
"@opentelemetry/resources": "0.24.0",
37+
"@opentelemetry/semantic-conventions": "0.24.0",
3638
"@opentelemetry/sdk-trace-node": "0.24.0",
3739
"@opentelemetry/sdk-trace-base": "0.24.0",
3840
"google-protobuf": "^3.9.2",

examples/http/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"@opentelemetry/exporter-zipkin": "0.24.0",
3434
"@opentelemetry/instrumentation": "0.24.0",
3535
"@opentelemetry/instrumentation-http": "0.24.0",
36+
"@opentelemetry/resources": "0.24.0",
37+
"@opentelemetry/semantic-conventions": "0.24.0",
3638
"@opentelemetry/sdk-trace-node": "0.24.0",
3739
"@opentelemetry/sdk-trace-base": "0.24.0"
3840
},

examples/https/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
"@opentelemetry/exporter-zipkin": "0.24.0",
3535
"@opentelemetry/instrumentation": "0.24.0",
3636
"@opentelemetry/instrumentation-http": "0.24.0",
37+
"@opentelemetry/resources": "0.24.0",
38+
"@opentelemetry/semantic-conventions": "0.24.0",
3739
"@opentelemetry/sdk-trace-node": "0.24.0",
3840
"@opentelemetry/sdk-trace-base": "0.24.0"
3941
},

0 commit comments

Comments
 (0)