ci: configure bazel to ignore vite tests when using non esbuild tests

This commit configures bazel to skip adding vite tests to the webpack tests shards.
This commit is contained in:
Alan Agius 2023-11-09 09:33:43 +00:00 committed by Charles
parent 286e5d32f2
commit 5ec624e119
2 changed files with 6 additions and 8 deletions

View File

@ -38,6 +38,10 @@ ESBUILD_TESTS = [
"tests/test/**",
]
WEBPACK_IGNORE_TESTS = [
"tests/vite/**",
]
def _to_glob(patterns):
if len(patterns) == 1:
return patterns[0]
@ -126,7 +130,7 @@ def _e2e_suite(name, runner, type, data, toolchain_name = "", toolchain = None):
if type == "yarn":
args.append("--yarn")
tests = YARN_TESTS
ignore = BROWSER_TESTS
ignore = BROWSER_TESTS + WEBPACK_IGNORE_TESTS
elif type == "esbuild":
args.append("--esbuild")
tests = ESBUILD_TESTS
@ -137,7 +141,7 @@ def _e2e_suite(name, runner, type, data, toolchain_name = "", toolchain = None):
ignore = None
elif type == "npm":
tests = None
ignore = BROWSER_TESTS
ignore = BROWSER_TESTS + WEBPACK_IGNORE_TESTS
# Standard e2e tests
_e2e_tests(

View File

@ -2,14 +2,8 @@ import { setTimeout } from 'node:timers/promises';
import assert from 'node:assert';
import { findFreePort } from '../../utils/network';
import { execAndWaitForOutputToMatch, killAllProcesses, ng } from '../../utils/process';
import { getGlobalVariable } from '../../utils/env';
export default async function () {
const useWebpackBuilder = !getGlobalVariable('argv')['esbuild'];
if (useWebpackBuilder) {
return;
}
await ng('cache', 'clean');
await ng('cache', 'on');