File tree 4 files changed +56
-0
lines changed
4 files changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -911,6 +911,14 @@ testing/** @angular/fw-test
911
911
912
912
913
913
914
+ # ================================================
915
+ # Material CI
916
+ # ================================================
917
+
918
+ /tools /material-ci /** @ angular/fw-core @ angular/framework-global-approvers
919
+
920
+
921
+
914
922
# ================================================
915
923
# Public API
916
924
# ================================================
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ cd ${MATERIAL_REPO_TMP_DIR}
21
21
# Note that it's not necessary to perform a yarn install, as Bazel performs its own yarn install.
22
22
node ${angular_dir} /scripts/ci/update-deps-to-dist-packages.js ${MATERIAL_REPO_TMP_DIR} /package.json ${angular_dir} /dist/packages-dist-ivy-aot/
23
23
24
+ # Append the test blocklist into angular/material2's karma-test-shim.js.
25
+ # This filters out known-failing tests because the goal is to prevent regressions.
26
+ cat ${angular_dir} /tools/material-ci/angular_material_test_blocklist.js >> ./test/karma-test-shim.js
27
+
24
28
# Create a symlink for the Bazel binary installed through NPM, as running through Yarn introduces OOM errors.
25
29
./scripts/circleci/setup_bazel_binary.sh
26
30
Original file line number Diff line number Diff line change
1
+ /**
2
+ * @license
3
+ * Copyright Google Inc. All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+
9
+ /**
10
+ * Blocklist of unit tests from angular/material2 with ivy that are skipped when running on
11
+ * angular/angular. As bugs are resolved, items should be removed from this blocklist.
12
+ *
13
+ * The `notes` section should be used to keep track of specific issues associated with the failures.
14
+ */
15
+
16
+ // clang-format off
17
+ // tslint:disable
18
+
19
+ window . testBlocklist = { } ;
20
+ // clang-format on
Original file line number Diff line number Diff line change
1
+ ### Unit tests for Angular CDK/Material
2
+ The unit tests from angular/material2 run on CircleCI under the ` material-unit-tests ` job.
3
+ Known failing tests are skipped based on the blocklist in
4
+ ` tools/material-ci/angular_material_test_blocklist.js ` . Whenever the root cause of a known failure
5
+ is identified, the ` notes ` field for the corresponding tests should be updated. Whenever a failure
6
+ is resolved, the corresponding tests should be removed from the blocklist.
7
+
8
+ ### Debugging
9
+ To debug a failure, you need to work against the angular/material2 repo:
10
+ 1 . Clone ` angular/material2 `
11
+ 2 . Checkout the ` ivy-2019 ` branch
12
+ 3 . Run ` yarn `
13
+ 4 . Run ` scripts/ivy/install-angular.sh path/to/local/angular/repo `
14
+ 5 . Run ` gulp test `
15
+
16
+ ### Regenerating the blocklist
17
+ If a problem has been fixed, you can regenerate the blocklist by:
18
+ 1 . Clone ` angular/material2 `
19
+ 2 . Checkout the ` ivy-2019 ` branch
20
+ 3 . Run ` yarn `
21
+ 4 . Run ` scripts/ivy/install-angular.sh path/to/local/angular/repo `
22
+ 5 . Run ` gulp test ` . Let it finish. It will take a few minutes.
23
+ 6 . Run ` scripts/ivy/generate-blocklist.js path/to/local/angular/repo `
24
+ 7 . Copy the new blocklist from ` dist/angular_material_test_blocklist.js `
You can’t perform that action at this time.
0 commit comments