build: remove ivy JIT mode (#26863)

PR Close #26863
This commit is contained in:
Misko Hevery 2018-11-01 21:23:06 -07:00 committed by Kara Erickson
parent c13f46c7c5
commit 7d2a746090
36 changed files with 36 additions and 94 deletions

View File

@ -116,21 +116,6 @@ jobs:
- "~/bazel_repository_cache"
# Temporary job to test what will happen when we flip the Ivy flag to true
test_ivy_jit:
<<: *job_defaults
resource_class: xlarge
steps:
- checkout:
<<: *post_checkout
- restore_cache:
key: *cache_key
- *define_env_vars
- *setup_circleci_bazel_config
- *yarn_install
- *setup_bazel_remote_execution
- run: yarn test-ivy-jit //...
test_ivy_aot:
<<: *job_defaults
resource_class: xlarge
@ -416,7 +401,6 @@ workflows:
jobs:
- lint
- test
- test_ivy_jit
- test_ivy_aot
- build-packages-dist
- test_aio
@ -454,7 +438,6 @@ workflows:
requires:
# Only publish if tests and integration tests pass
- test
- test_ivy_jit
- test_ivy_aot
- integration_test
# Only publish if `aio`/`docs` tests using the locally built Angular packages pass

View File

@ -26,8 +26,6 @@
"update-webdriver": "webdriver-manager update --gecko false $CHROMEDRIVER_VERSION_ARG",
"check-env": "gulp check-env",
"commitmsg": "node ./scripts/git/commit-msg.js",
"test-ivy-jit": "bazel test --define=compile=jit --build_tag_filters=-no-ivy-jit,-fixme-ivy-jit --test_tag_filters=-no-ivy-jit,-fixme-ivy-jit",
"test-fixme-ivy-jit": "bazel test --define=compile=jit --build_tag_filters=-no-ivy-jit --test_tag_filters=-no-ivy-jit",
"test-ivy-aot": "bazel test --define=compile=aot --build_tag_filters=-no-ivy-aot,-fixme-ivy-aot --test_tag_filters=-no-ivy-aot,-fixme-ivy-aot",
"test-fixme-ivy-aot": "bazel test --define=compile=aot --build_tag_filters=-no-ivy-aot --test_tag_filters=-no-ivy-aot",
"bazel": "bazel"
@ -144,4 +142,4 @@
"vrsource-tslint-rules": "5.1.1",
"webpack": "1.12.9"
}
}
}

View File

@ -26,7 +26,6 @@ jasmine_node_test(
],
tags = [
"fixme-ivy-aot",
"no-ivy-jit",
],
)

View File

@ -21,7 +21,6 @@ jasmine_node_test(
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",
@ -33,7 +32,6 @@ ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",

View File

@ -23,7 +23,6 @@ jasmine_node_test(
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",
@ -35,7 +34,6 @@ ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",

View File

@ -13,7 +13,6 @@ ng_module(
module_name = "app_built",
tags = [
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
"//packages/compiler-cli/integrationtest/bazel/injectable_def/lib2",

View File

@ -12,7 +12,6 @@ ts_library(
),
tags = [
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
"//packages/compiler-cli/integrationtest/bazel/injectable_def/app",
@ -27,7 +26,6 @@ jasmine_node_test(
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
":test_lib",

View File

@ -21,7 +21,6 @@ jasmine_node_test(
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",

View File

@ -12,7 +12,6 @@ ng_module(
node_modules = "@ngdeps//typescript:typescript__typings",
tags = [
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
"//packages/core",
@ -36,6 +35,5 @@ jasmine_node_test(
data = [":flat_module_index"],
tags = [
"fixme-ivy-aot",
"no-ivy-jit",
],
)

View File

@ -44,7 +44,6 @@ jasmine_node_test(
],
tags = [
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
":extract_i18n_lib",
@ -82,7 +81,6 @@ jasmine_node_test(
],
tags = [
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
":ngc_lib",
@ -117,7 +115,6 @@ jasmine_node_test(
],
tags = [
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
":ngtools_api_lib",

View File

@ -39,7 +39,6 @@ jasmine_node_test(
],
tags = [
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
":check_types_lib",
@ -73,7 +72,6 @@ jasmine_node_test(
],
tags = [
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
":expression_diagnostics_lib",

View File

@ -27,7 +27,6 @@ jasmine_node_test(
],
tags = [
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
":test_lib",

View File

@ -76,7 +76,6 @@ jasmine_node_test(
],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",
@ -92,7 +91,6 @@ ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",

View File

@ -53,7 +53,6 @@ jasmine_node_test(
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",
@ -71,7 +70,6 @@ ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",

View File

@ -9,7 +9,6 @@ ng_module(
srcs = ["index.ts"],
tags = [
"ivy-only",
"no-ivy-jit",
],
type_check = False, # see #26462
deps = [
@ -30,7 +29,6 @@ ng_rollup_bundle(
entry_point = "packages/core/test/bundling/animation_world/index.js",
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [
":animation_world",
@ -45,7 +43,6 @@ js_expected_symbol_test(
tags = [
"ivy-aot",
"ivy-only",
"no-ivy-jit",
],
)
@ -60,6 +57,5 @@ http_server(
],
tags = [
"ivy-only",
"no-ivy-jit",
],
)

View File

@ -9,7 +9,6 @@ ng_module(
srcs = ["index.ts"],
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [
"//packages/core",
@ -27,7 +26,6 @@ ng_rollup_bundle(
entry_point = "packages/core/test/bundling/hello_world/index.js",
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [
":hello_world",
@ -41,7 +39,6 @@ ts_library(
srcs = glob(["*_spec.ts"]),
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [
"//packages:types",
@ -61,7 +58,6 @@ jasmine_node_test(
],
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [":test_lib"],
)
@ -73,7 +69,6 @@ js_expected_symbol_test(
tags = [
"ivy-aot",
"ivy-only",
"no-ivy-jit",
],
)
@ -86,6 +81,5 @@ http_server(
],
tags = [
"ivy-only",
"no-ivy-jit",
],
)

View File

@ -70,7 +70,6 @@ js_expected_symbol_test(
golden = ":bundle.golden_symbols.json",
tags = [
"ivy-only",
"no-ivy-jit",
],
)
@ -83,6 +82,5 @@ http_server(
],
tags = [
"ivy-only",
"no-ivy-jit",
],
)

View File

@ -11,7 +11,6 @@ ts_library(
],
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [
"//packages/core",
@ -29,7 +28,6 @@ ng_rollup_bundle(
entry_point = "packages/core/test/bundling/injection/index.js",
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [
":injection",
@ -43,7 +41,6 @@ ts_library(
srcs = glob(["*_spec.ts"]),
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [
":injection",
@ -58,7 +55,6 @@ jasmine_node_test(
name = "test",
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [":test_lib"],
)
@ -69,6 +65,5 @@ js_expected_symbol_test(
golden = ":bundle.golden_symbols.json",
tags = [
"ivy-only",
"no-ivy-jit",
],
)

View File

@ -10,7 +10,6 @@ ng_module(
srcs = ["index.ts"],
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [
"//packages/common",
@ -30,7 +29,6 @@ ng_rollup_bundle(
entry_point = "packages/core/test/bundling/todo/index.js",
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [
":todo",
@ -46,7 +44,6 @@ ts_library(
srcs = glob(["*_spec.ts"]),
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [
"//packages:types",
@ -67,7 +64,6 @@ jasmine_node_test(
],
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [":test_lib"],
)
@ -79,7 +75,6 @@ js_expected_symbol_test(
tags = [
"ivy-aot",
"ivy-only",
"no-ivy-jit",
],
)
@ -94,7 +89,6 @@ genrule(
cmd = "cp $< $@",
tags = [
"ivy-only",
"no-ivy-jit",
],
)
@ -110,7 +104,6 @@ ts_devserver(
],
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [":todo"],
)
@ -126,6 +119,5 @@ http_server(
],
tags = [
"ivy-only",
"no-ivy-jit",
],
)

View File

@ -10,7 +10,6 @@ ng_module(
srcs = ["index.ts"],
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [
"//packages/common",
@ -32,7 +31,6 @@ ng_rollup_bundle(
entry_point = "packages/core/test/bundling/todo_r2/index.js",
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [
":todo",
@ -50,7 +48,6 @@ ts_library(
srcs = glob(["*_spec.ts"]),
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [
"//packages:types",
@ -73,7 +70,6 @@ jasmine_node_test(
],
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [":test_lib"],
)
@ -85,7 +81,6 @@ js_expected_symbol_test(
tags = [
"ivy-aot",
"ivy-only",
"no-ivy-jit",
],
)
@ -100,7 +95,6 @@ genrule(
cmd = "cp $< $@",
tags = [
"ivy-only",
"no-ivy-jit",
],
)
@ -116,7 +110,6 @@ ts_devserver(
],
tags = [
"ivy-only",
"no-ivy-jit",
],
deps = [":todo"],
)
@ -132,6 +125,5 @@ http_server(
],
tags = [
"ivy-only",
"no-ivy-jit",
],
)

View File

@ -61,7 +61,6 @@ jasmine_node_test(
"angular/packages/core/test/render3/load_domino",
],
tags = [
"fixme-ivy-jit",
],
deps = [
":render3_node_lib",
@ -72,7 +71,6 @@ jasmine_node_test(
ts_web_test_suite(
name = "render3_web",
tags = [
"fixme-ivy-jit",
],
deps = [
":render3_lib",

View File

@ -37,7 +37,6 @@ ts_web_test_suite(
],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
# do not sort
deps = [

View File

@ -20,7 +20,6 @@ jasmine_node_test(
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",
@ -32,7 +31,6 @@ ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",

View File

@ -24,7 +24,6 @@ jasmine_node_test(
],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",

View File

@ -33,7 +33,6 @@ ts_web_test_suite(
],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",

View File

@ -26,7 +26,6 @@ jasmine_node_test(
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",
@ -38,7 +37,6 @@ ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",

View File

@ -31,7 +31,6 @@ jasmine_node_test(
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",
@ -46,7 +45,6 @@ ts_web_test_suite(
],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",

View File

@ -27,7 +27,6 @@ jasmine_node_test(
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",

View File

@ -31,7 +31,6 @@ ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",

View File

@ -18,7 +18,7 @@ ng_module(
## Controls if Ivy is enabled. (Temporary target until we permanently switch over to Ivy)
##
## This file generates `src/bazel_define_compile_value.ts` file which reexports
## This file generates `src/bazel_define_compile_value.ts` file which reexports
## `--define=compile` value as `bazelDefineCompileValue` symbols so that runtime can detect
## which mode it is running in.
##

View File

@ -0,0 +1,12 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* This variable shows the `blaze --define=compile=` value to make it available to runtime.
*/
export const bazelDefineCompileValue = 'legacy';

View File

@ -0,0 +1,22 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {bazelDefineCompileValue} from './bazel_define_compile_value';
/**
* A global method which is used to conditionally block the execution of tests.
*
* ```
* fixmeIvy('some reason') && describe(...);
* ```
*
* The above will prevent the execution of the test(s) in Ivy mode, until they can be fixed.
*/
export function fixmeIvy(reason: string): boolean {
return 'aot' !== (bazelDefineCompileValue as string);
}

View File

@ -25,7 +25,6 @@ jasmine_node_test(
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",
@ -37,7 +36,6 @@ ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",

View File

@ -18,7 +18,6 @@ ts_library(
srcs = ["aot_router_bootstrap.spec.ts"],
tags = [
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
":aot_routing_module",
@ -34,7 +33,6 @@ jasmine_node_test(
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
":aot_test_lib",

View File

@ -17,7 +17,6 @@ ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",

View File

@ -24,7 +24,6 @@ ts_web_test_suite(
],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
],
deps = [
":test_lib",