Skip to content

Commit 9a28114

Browse files
filipesilvadgp1130
authored andcommitted
test: remove non-bazel test setup
1 parent e3e06e5 commit 9a28114

File tree

25 files changed

+38
-413
lines changed

25 files changed

+38
-413
lines changed

.circleci/config.yml

Lines changed: 14 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -156,27 +156,6 @@ jobs:
156156
- custom_attach_workspace
157157
- run: yarn validate --ci
158158

159-
test:
160-
executor: action-executor
161-
steps:
162-
- custom_attach_workspace
163-
- run: yarn test --full
164-
165-
test-large:
166-
parameters:
167-
ve:
168-
type: boolean
169-
default: false
170-
glob:
171-
type: string
172-
default: ""
173-
executor: test-executor
174-
parallelism: 4
175-
steps:
176-
- custom_attach_workspace
177-
- run: yarn webdriver-update
178-
- run: yarn test-large --full <<# parameters.ve >>--ve<</ parameters.ve >> <<# parameters.glob >>--glob="<< parameters.glob >>"<</ parameters.glob >> --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX}
179-
180159
e2e-cli:
181160
parameters:
182161
ve:
@@ -242,25 +221,24 @@ jobs:
242221
- custom_attach_workspace
243222
- run: yarn build
244223

245-
# This is where we put all the misbehaving and flaky tests so we can fine-tune their conditions
246-
# and rerun them faster.
247-
flake-jail:
224+
test:
248225
executor: test-executor
249-
resource_class: medium
226+
resource_class: large
250227
steps:
251228
- custom_attach_workspace
229+
- setup_bazel_rbe
252230
- run: yarn webdriver-update
253-
- run: yarn test-large --full --flakey --ve
254-
- run: yarn test-large --full --flakey
231+
- run: yarn ngcc
232+
- run: sudo cp .circleci/bazel.rc /etc/bazel.bazelrc
233+
- run: yarn bazel:test
255234

256-
build-bazel:
257-
executor: action-executor
235+
integration:
236+
executor: test-executor
258237
resource_class: large
259238
steps:
260239
- custom_attach_workspace
261-
- setup_bazel_rbe
262-
- run: sudo cp .circleci/bazel.rc /etc/bazel.bazelrc
263-
- run: yarn bazel:test
240+
- run:
241+
command: yarn bazel:integration
264242

265243
snapshot_publish:
266244
executor: action-executor
@@ -322,7 +300,6 @@ jobs:
322300
steps:
323301
- custom_attach_workspace
324302
- setup_windows
325-
- run: yarn test --full
326303
# Run partial e2e suite on PRs only. Master will run the full e2e suite with sharding.
327304
- run: if (Test-Path env:CIRCLE_PR_NUMBER) { node tests\legacy-cli\run_e2e.js "--glob=tests/{basic,ivy}/**" }
328305

@@ -353,19 +330,10 @@ workflows:
353330
branches:
354331
ignore:
355332
- /docs-preview/
356-
- build-bazel:
357-
requires:
358-
- build
359333
- test:
360334
requires:
361335
- build
362-
- test-large:
363-
requires:
364-
- build
365-
- test-large:
366-
name: test-large-ve
367-
ve: true
368-
glob: "packages/angular_devkit/@(build_angular|build_ng_packagr)/@(src|test)/@(build|browser)/*_spec_large.ts"
336+
- integration:
369337
requires:
370338
- build
371339
- e2e-cli:
@@ -408,9 +376,6 @@ workflows:
408376
- test-browsers:
409377
requires:
410378
- build
411-
- flake-jail:
412-
requires:
413-
- build
414379

415380
# Windows jobs
416381
# These jobs only run after their non-windows counterparts finish successfully.
@@ -423,8 +388,8 @@ workflows:
423388
- build
424389
- test-win:
425390
requires:
426-
- setup-and-build-win
427391
- test
392+
- setup-and-build-win
428393
- e2e-cli-win:
429394
<<: *only_release_branches
430395
requires:
@@ -435,13 +400,13 @@ workflows:
435400
- snapshot_publish:
436401
<<: *only_release_branches
437402
requires:
438-
- test
439403
- build
404+
- test
440405
- e2e-cli
441406
- publish:
442407
requires:
443-
- test
444408
- build
409+
- test
445410
- e2e-cli
446411
- snapshot_publish
447412
filters:

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,15 @@
2323
"bazel:format": "find . -type f \\( -name \"*.bzl\" -or -name WORKSPACE -or -name BUILD -or -name BUILD.bazel \\) ! -path \"*/node_modules/*\" | xargs buildifier -v --warnings=attr-cfg,attr-license,attr-non-empty,attr-output-default,attr-single-file,constant-glob,ctx-args,depset-iteration,depset-union,dict-concatenation,duplicated-name,filetype,git-repository,http-archive,integer-division,load,load-on-top,native-build,native-package,output-group,package-name,package-on-top,positional-args,redefined-variable,repository-name,same-origin-load,string-iteration,unused-variable",
2424
"bazel:lint": "yarn bazel:format --lint=warn",
2525
"bazel:lint-fix": "yarn bazel:format --lint=fix",
26-
"bazel:test": "bazel test //...",
26+
"bazel:test": "bazel test //packages/... //etc/... ",
27+
"bazel:integration": "bazel test //integration/...",
2728
"build": "node ./bin/devkit-admin build",
2829
"build-tsc": "tsc -p tsconfig.json",
2930
"debug:test": "node --inspect-brk ./bin/devkit-admin test",
3031
"debug:test-large": "node --inspect-brk ./bin/devkit-admin test --large --spec-reporter",
3132
"fix": "node ./bin/devkit-admin lint --fix",
3233
"lint": "node ./bin/devkit-admin lint",
3334
"templates": "node ./bin/devkit-admin templates",
34-
"test": "node ./bin/devkit-admin test",
35-
"test-large": "node ./bin/devkit-admin test --large --spec-reporter",
3635
"validate": "node ./bin/devkit-admin validate",
3736
"validate-commits": "./bin/devkit-admin validate-commits",
3837
"preinstall": "node ./tools/yarn/check-yarn.js",

packages/angular/cli/BUILD.bazel

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ ts_library(
1919
name = "angular-cli",
2020
srcs = glob(
2121
["**/*.ts"],
22-
exclude = [
23-
"**/*_spec.ts",
24-
"**/*_spec_large.ts",
25-
],
22+
exclude = ["**/*_spec.ts"],
2623
) + [
2724
"//packages/angular/cli:lib/config/schema.ts",
2825
"//packages/angular/cli:commands/analytics.ts",
@@ -46,6 +43,7 @@ ts_library(
4643
"//packages/angular/cli:commands/xi18n.ts",
4744
],
4845
data = glob([
46+
"bin/**/*",
4947
"**/*.json",
5048
"**/*.md",
5149
]),
@@ -232,12 +230,7 @@ ts_json_schema(
232230
ts_library(
233231
name = "angular-cli_test_lib",
234232
testonly = True,
235-
srcs = glob(
236-
include = [
237-
"**/*_spec.ts",
238-
"**/*_spec_large.ts",
239-
],
240-
),
233+
srcs = glob(["**/*_spec.ts"]),
241234
devmode_module = "commonjs",
242235
devmode_target = "es2018",
243236
# strict_checks = False,

packages/angular/pwa/BUILD.bazel

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ ts_library(
2323
exclude = [
2424
"pwa/files/**/*",
2525
"**/*_spec.ts",
26-
"**/*_spec_large.ts",
2726
],
2827
) + [
2928
"//packages/angular/pwa:pwa/schema.ts",
@@ -56,12 +55,7 @@ ts_json_schema(
5655
ts_library(
5756
name = "pwa_test_lib",
5857
testonly = True,
59-
srcs = glob(
60-
include = [
61-
"pwa/**/*_spec.ts",
62-
"pwa/**/*_spec_large.ts",
63-
],
64-
),
58+
srcs = glob(["pwa/**/*_spec.ts"]),
6559
devmode_module = "commonjs",
6660
devmode_target = "es2018",
6761
# strict_checks = False,

packages/angular_devkit/architect/BUILD.bazel

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ ts_library(
4141
name = "architect",
4242
srcs = glob(
4343
include = ["src/**/*.ts"],
44-
exclude = [
45-
"**/*_spec.ts",
46-
"**/*_spec_large.ts",
47-
],
44+
exclude = ["**/*_spec.ts"],
4845
) + [
4946
"//packages/angular_devkit/architect:src/input-schema.ts",
5047
"//packages/angular_devkit/architect:src/output-schema.ts",
@@ -68,12 +65,7 @@ ts_library(
6865
ts_library(
6966
name = "architect_test_lib",
7067
testonly = True,
71-
srcs = glob(
72-
include = [
73-
"src/**/*_spec.ts",
74-
"src/**/*_spec_large.ts",
75-
],
76-
),
68+
srcs = glob(["src/**/*_spec.ts"]),
7769
devmode_module = "commonjs",
7870
devmode_target = "es2018",
7971
# strict_checks = False,

packages/angular_devkit/architect/node/BUILD.bazel

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ ts_library(
1313
name = "node",
1414
srcs = glob(
1515
include = ["**/*.ts"],
16-
exclude = [
17-
"**/*_spec.ts",
18-
"**/*_spec_large.ts",
19-
],
16+
exclude = ["**/*_spec.ts"],
2017
),
2118
devmode_module = "commonjs",
2219
devmode_target = "es2018",

packages/angular_devkit/architect/testing/BUILD.bazel

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ ts_library(
1313
name = "testing",
1414
srcs = glob(
1515
include = ["**/*.ts"],
16-
exclude = [
17-
"**/*_spec.ts",
18-
"**/*_spec_large.ts",
19-
],
16+
exclude = ["**/*_spec.ts"],
2017
),
2118
devmode_module = "commonjs",
2219
devmode_target = "es2018",

packages/angular_devkit/benchmark/BUILD.bazel

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ ts_library(
1818
include = ["src/**/*.ts"],
1919
exclude = [
2020
"src/**/*_spec.ts",
21-
"src/**/*_spec_large.ts",
2221
"src/**/*_benchmark.ts",
2322
],
2423
),
@@ -38,12 +37,7 @@ ts_library(
3837
ts_library(
3938
name = "benchmark_test_lib",
4039
testonly = True,
41-
srcs = glob(
42-
include = [
43-
"src/**/*_spec.ts",
44-
"src/**/*_spec_large.ts",
45-
],
46-
),
40+
srcs = glob(["src/**/*_spec.ts"]),
4741
data = [
4842
"src/test/exit-code-one.js",
4943
"src/test/fibonacci.js",

packages/angular_devkit/build_angular/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ LARGE_SPECS = {
302302
],
303303
},
304304
"browser": {
305-
"shards": 30,
305+
"shards": 50,
306306
"size": "large",
307307
"flaky": True,
308308
"extra_deps": [
@@ -359,7 +359,7 @@ LARGE_SPECS = {
359359
name = "build_angular_" + spec + "_test",
360360
size = LARGE_SPECS[spec].get("size", "medium"),
361361
flaky = LARGE_SPECS[spec].get("flaky", False),
362-
shard_count = LARGE_SPECS[spec].get("shards", 1),
362+
shard_count = LARGE_SPECS[spec].get("shards", 2),
363363
# These tests are resource intensive and should not be over-parallized as they will
364364
# compete for the resources of other parallel tests slowing everything down.
365365
# Ask Bazel to allocate multiple CPUs for these tests with "cpu:n" tag.

packages/angular_devkit/build_optimizer/BUILD.bazel

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ ts_library(
2121
# from jasmine_node_test.
2222
"src/**/cli.ts",
2323
"src/**/*_spec.ts",
24-
"src/**/*_spec_large.ts",
2524
"src/**/*_benchmark.ts",
2625
],
2726
),
@@ -48,12 +47,7 @@ ts_library(
4847
ts_library(
4948
name = "build_optimizer_test_lib",
5049
testonly = True,
51-
srcs = glob(
52-
include = [
53-
"src/**/*_spec.ts",
54-
"src/**/*_spec_large.ts",
55-
],
56-
),
50+
srcs = glob(["src/**/*_spec.ts"]),
5751
devmode_module = "commonjs",
5852
devmode_target = "es2018",
5953
# @external_begin

packages/angular_devkit/core/BUILD.bazel

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ ts_library(
2222
include = ["src/**/*.ts"],
2323
exclude = [
2424
"src/**/*_spec.ts",
25-
"src/**/*_spec_large.ts",
2625
"src/**/*_benchmark.ts",
2726
],
2827
),
@@ -53,12 +52,7 @@ ts_library(
5352
ts_library(
5453
name = "core_test_lib",
5554
testonly = True,
56-
srcs = glob(
57-
include = [
58-
"src/**/*_spec.ts",
59-
"src/**/*_spec_large.ts",
60-
],
61-
),
55+
srcs = glob(["src/**/*_spec.ts"]),
6256
data = glob(["src/workspace/json/test/**/*.json"]) + [
6357
"src/experimental/workspace/test/test-workspace.json",
6458
"src/experimental/workspace/workspace-schema.json",

packages/angular_devkit/core/node/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ ts_library(
1616
exclude = [
1717
"testing/**/*.ts",
1818
"**/*_spec.ts",
19-
"**/*_spec_large.ts",
2019
"**/*_benchmark.ts",
2120
],
2221
),
@@ -39,7 +38,6 @@ ts_library(
3938
srcs = glob(
4039
include = [
4140
"**/*_spec.ts",
42-
"**/*_spec_large.ts",
4341
],
4442
exclude = [
4543
"testing/**/*.ts",

packages/angular_devkit/core/node/testing/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ ts_library(
1414
include = ["**/*.ts"],
1515
exclude = [
1616
"**/*_spec.ts",
17-
"**/*_spec_large.ts",
1817
"**/*_benchmark.ts",
1918
],
2019
),

packages/angular_devkit/schematics/BUILD.bazel

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ ts_library(
2222
include = ["src/**/*.ts"],
2323
exclude = [
2424
"src/**/*_spec.ts",
25-
"src/**/*_spec_large.ts",
2625
"src/**/*_benchmark.ts",
2726
],
2827
),
@@ -44,12 +43,7 @@ ts_library(
4443
ts_library(
4544
name = "schematics_test_lib",
4645
testonly = True,
47-
srcs = glob(
48-
include = [
49-
"src/**/*_spec.ts",
50-
"src/**/*_spec_large.ts",
51-
],
52-
),
46+
srcs = glob(["src/**/*_spec.ts"]),
5347
devmode_module = "commonjs",
5448
devmode_target = "es2018",
5549
# @external_begin

packages/angular_devkit/schematics/tasks/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ ts_library(
4444
srcs = glob(
4545
include = [
4646
"**/*_spec.ts",
47-
"**/*_spec_large.ts",
4847
"tslint-fix/test/**/*.ts",
4948
],
5049
exclude = [

packages/angular_devkit/schematics/tools/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ ts_library(
4242
srcs = glob(
4343
include = [
4444
"**/*_spec.ts",
45-
"**/*_spec_large.ts",
4645
"test/**/*.ts",
4746
],
4847
),

0 commit comments

Comments
 (0)