From c7f08fed51bca68b0c522769c3c589102b98ec93 Mon Sep 17 00:00:00 2001 From: Nev <54870357+MSNev@users.noreply.github.com> Date: Tue, 1 Nov 2022 13:10:37 -0700 Subject: [PATCH] fix: address webpack memory issue for browser tests (#1264) --- .github/workflows/unit-test.yml | 1 + .../package.json | 2 +- metapackages/auto-instrumentations-web/package.json | 2 +- packages/opentelemetry-id-generator-aws-xray/package.json | 2 +- .../opentelemetry-instrumentation-document-load/package.json | 2 +- .../web/opentelemetry-instrumentation-long-task/package.json | 2 +- .../package.json | 2 +- plugins/web/opentelemetry-plugin-react-load/package.json | 2 +- propagators/opentelemetry-propagator-aws-xray/package.json | 2 +- propagators/opentelemetry-propagator-instana/package.json | 4 ++-- propagators/opentelemetry-propagator-ot-trace/package.json | 2 +- 11 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 75048b0277..8f71a95308 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -165,6 +165,7 @@ jobs: runs-on: ubuntu-latest env: NPM_CONFIG_UNSAFE_PERM: true + NODE_OPTIONS: --max-old-space-size=4096 steps: - name: Checkout uses: actions/checkout@v3 diff --git a/archive/opentelemetry-browser-extension-autoinjection/package.json b/archive/opentelemetry-browser-extension-autoinjection/package.json index 4edf56de71..6338edc72b 100644 --- a/archive/opentelemetry-browser-extension-autoinjection/package.json +++ b/archive/opentelemetry-browser-extension-autoinjection/package.json @@ -58,7 +58,7 @@ "ts-loader": "9.2.5", "ts-mocha": "10.0.0", "typescript": "4.3.5", - "webpack": "5.48.0", + "webpack": "4.46.0", "webpack-cli": "4.7.2", "webpack-merge": "5.8.0" }, diff --git a/metapackages/auto-instrumentations-web/package.json b/metapackages/auto-instrumentations-web/package.json index e2296aabf0..886c51b1c0 100644 --- a/metapackages/auto-instrumentations-web/package.json +++ b/metapackages/auto-instrumentations-web/package.json @@ -43,7 +43,7 @@ "gts": "3.1.0", "@jsdevtools/coverage-istanbul-loader": "3.0.5", "karma": "6.3.16", - "karma-chrome-launcher": "3.1.0", + "karma-chrome-launcher": "^3.1.1", "karma-coverage-istanbul-reporter": "3.0.3", "karma-mocha": "2.0.1", "karma-spec-reporter": "0.0.32", diff --git a/packages/opentelemetry-id-generator-aws-xray/package.json b/packages/opentelemetry-id-generator-aws-xray/package.json index 5eac111cf0..764268f7ae 100644 --- a/packages/opentelemetry-id-generator-aws-xray/package.json +++ b/packages/opentelemetry-id-generator-aws-xray/package.json @@ -62,7 +62,7 @@ "gts": "3.1.0", "@jsdevtools/coverage-istanbul-loader": "3.0.5", "karma": "6.3.16", - "karma-chrome-launcher": "3.1.0", + "karma-chrome-launcher": "^3.1.1", "karma-coverage-istanbul-reporter": "3.0.3", "karma-mocha": "2.0.1", "karma-spec-reporter": "0.0.32", diff --git a/plugins/web/opentelemetry-instrumentation-document-load/package.json b/plugins/web/opentelemetry-instrumentation-document-load/package.json index 40354f52ba..8c98894fd0 100644 --- a/plugins/web/opentelemetry-instrumentation-document-load/package.json +++ b/plugins/web/opentelemetry-instrumentation-document-load/package.json @@ -60,7 +60,7 @@ "gts": "3.1.0", "@jsdevtools/coverage-istanbul-loader": "3.0.5", "karma": "6.3.16", - "karma-chrome-launcher": "3.1.0", + "karma-chrome-launcher": "^3.1.1", "karma-coverage-istanbul-reporter": "3.0.3", "karma-mocha": "2.0.1", "karma-spec-reporter": "0.0.32", diff --git a/plugins/web/opentelemetry-instrumentation-long-task/package.json b/plugins/web/opentelemetry-instrumentation-long-task/package.json index d930c5b2df..2f6e197338 100644 --- a/plugins/web/opentelemetry-instrumentation-long-task/package.json +++ b/plugins/web/opentelemetry-instrumentation-long-task/package.json @@ -59,7 +59,7 @@ "gts": "3.1.0", "@jsdevtools/coverage-istanbul-loader": "3.0.5", "karma": "6.3.16", - "karma-chrome-launcher": "3.1.0", + "karma-chrome-launcher": "^3.1.1", "karma-coverage-istanbul-reporter": "3.0.3", "karma-jquery": "0.2.4", "karma-mocha": "2.0.1", diff --git a/plugins/web/opentelemetry-instrumentation-user-interaction/package.json b/plugins/web/opentelemetry-instrumentation-user-interaction/package.json index 0c98369713..86f3d6eed9 100644 --- a/plugins/web/opentelemetry-instrumentation-user-interaction/package.json +++ b/plugins/web/opentelemetry-instrumentation-user-interaction/package.json @@ -61,7 +61,7 @@ "gts": "3.1.0", "@jsdevtools/coverage-istanbul-loader": "3.0.5", "karma": "6.3.16", - "karma-chrome-launcher": "3.1.0", + "karma-chrome-launcher": "^3.1.1", "karma-coverage-istanbul-reporter": "3.0.3", "karma-jquery": "0.2.4", "karma-mocha": "2.0.1", diff --git a/plugins/web/opentelemetry-plugin-react-load/package.json b/plugins/web/opentelemetry-plugin-react-load/package.json index 4b1c817e1f..effb45f058 100644 --- a/plugins/web/opentelemetry-plugin-react-load/package.json +++ b/plugins/web/opentelemetry-plugin-react-load/package.json @@ -62,7 +62,7 @@ "gts": "3.1.0", "@jsdevtools/coverage-istanbul-loader": "3.0.5", "karma": "6.3.16", - "karma-chrome-launcher": "3.1.0", + "karma-chrome-launcher": "^3.1.1", "karma-coverage-istanbul-reporter": "3.0.3", "karma-mocha": "2.0.1", "karma-spec-reporter": "0.0.32", diff --git a/propagators/opentelemetry-propagator-aws-xray/package.json b/propagators/opentelemetry-propagator-aws-xray/package.json index 36609b71b6..2cabb35a52 100644 --- a/propagators/opentelemetry-propagator-aws-xray/package.json +++ b/propagators/opentelemetry-propagator-aws-xray/package.json @@ -55,7 +55,7 @@ "gts": "3.1.0", "@jsdevtools/coverage-istanbul-loader": "3.0.5", "karma": "6.3.16", - "karma-chrome-launcher": "3.1.0", + "karma-chrome-launcher": "^3.1.1", "karma-coverage-istanbul-reporter": "3.0.3", "karma-mocha": "2.0.1", "karma-spec-reporter": "0.0.32", diff --git a/propagators/opentelemetry-propagator-instana/package.json b/propagators/opentelemetry-propagator-instana/package.json index 9e48535f19..903918b1f0 100644 --- a/propagators/opentelemetry-propagator-instana/package.json +++ b/propagators/opentelemetry-propagator-instana/package.json @@ -61,14 +61,14 @@ "karma-coverage-istanbul-reporter": "3.0.3", "karma-mocha": "2.0.1", "karma-spec-reporter": "0.0.33", - "karma-webpack": "5.0.0", + "karma-webpack": "4.0.2", "mocha": "7.2.0", "nyc": "15.1.0", "process": "0.11.10", "ts-loader": "8.3.0", "ts-mocha": "8.0.0", "typescript": "4.3.5", - "webpack": "5.72.0", + "webpack": "4.46.0", "webpack-cli": "4.9.2" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/propagators/opentelemetry-propagator-instana#readme" diff --git a/propagators/opentelemetry-propagator-ot-trace/package.json b/propagators/opentelemetry-propagator-ot-trace/package.json index 56290292f9..503e95c566 100644 --- a/propagators/opentelemetry-propagator-ot-trace/package.json +++ b/propagators/opentelemetry-propagator-ot-trace/package.json @@ -56,7 +56,7 @@ "gts": "3.1.0", "@jsdevtools/coverage-istanbul-loader": "3.0.5", "karma": "6.3.16", - "karma-chrome-launcher": "3.1.0", + "karma-chrome-launcher": "^3.1.1", "karma-coverage-istanbul-reporter": "3.0.3", "karma-mocha": "2.0.1", "karma-spec-reporter": "0.0.32",