A platform for community discussion. Free, open, simple.
DEV: Cap qunit concurrency at 8 browsers (#28635)
David Taylor07de0db5e2f3
diff --git a/lib/tasks/docker.rake b/lib/tasks/docker.rakeindex 087884b7e55..9a0d06229cb 100644--- a/lib/tasks/docker.rake+++ b/lib/tasks/docker.rake@@ -82,6 +82,12 @@ def number_of_processorsEtc.nprocessorsend+def qunit_concurrency+ # qunit runs all browsers against a single ember-cli (express.js) server, so this will not scale infinitely+ # therefore, cap at 8+ [number_of_processors / 2, 8].min+end+def system_tests_parallel_tests_processors_env"PARALLEL_TEST_PROCESSORS=#{number_of_processors / 2}"end@@ -298,7 +304,7 @@ task "docker:test" dounless ENV["SKIP_CORE"]@good &&=run_or_fail(- "cd app/assets/javascripts/discourse && CI=1 yarn ember exam --load-balance --parallel=#{number_of_processors / 2} --random",+ "cd app/assets/javascripts/discourse && CI=1 yarn ember exam --load-balance --parallel=#{qunit_concurrency} --random",)end@@ -311,7 +317,7 @@ task "docker:test" doelse@good &&=run_or_fail(- "QUNIT_PARALLEL=#{number_of_processors / 2} CI=1 bundle exec rake plugin:qunit['*','#{js_timeout}']",+ "QUNIT_PARALLEL=#{qunit_concurrency} CI=1 bundle exec rake plugin:qunit['*','#{js_timeout}']",)endend