Revert "Revert "DEV: Run Ember CLI tests in random order" (#15717)"
The worst of the flaky tests should be fixed now, so let's re-enable this.
This commit is contained in:
parent
2fc8e923b6
commit
14d31417de
|
@ -232,15 +232,15 @@ jobs:
|
||||||
|
|
||||||
- name: Core QUnit 1
|
- name: Core QUnit 1
|
||||||
working-directory: ./app/assets/javascripts/discourse
|
working-directory: ./app/assets/javascripts/discourse
|
||||||
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=1 --launch "${{ matrix.browser }}"
|
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=1 --launch "${{ matrix.browser }}" --random
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
|
|
||||||
- name: Core QUnit 2
|
- name: Core QUnit 2
|
||||||
working-directory: ./app/assets/javascripts/discourse
|
working-directory: ./app/assets/javascripts/discourse
|
||||||
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=2 --launch "${{ matrix.browser }}"
|
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=2 --launch "${{ matrix.browser }}" --random
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
|
|
||||||
- name: Core QUnit 3
|
- name: Core QUnit 3
|
||||||
working-directory: ./app/assets/javascripts/discourse
|
working-directory: ./app/assets/javascripts/discourse
|
||||||
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=3 --launch "${{ matrix.browser }}"
|
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=3 --launch "${{ matrix.browser }}" --random
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
|
|
|
@ -34,6 +34,13 @@ document.addEventListener("discourse-booted", () => {
|
||||||
setup(QUnit.assert);
|
setup(QUnit.assert);
|
||||||
setupTests(config.APP);
|
setupTests(config.APP);
|
||||||
let loader = loadEmberExam();
|
let loader = loadEmberExam();
|
||||||
|
|
||||||
|
if (loader.urlParams.size === 0 && !QUnit.config.seed) {
|
||||||
|
// If we're running in browser, default to random order. Otherwise, let Ember Exam
|
||||||
|
// handle randomization.
|
||||||
|
QUnit.config.seed = true;
|
||||||
|
}
|
||||||
|
|
||||||
loader.loadModules();
|
loader.loadModules();
|
||||||
start({
|
start({
|
||||||
setupTestContainer: false,
|
setupTestContainer: false,
|
||||||
|
|
Loading…
Reference in New Issue