Errors observed only in tests on CircleCI — was not reproducible locally.
```
ERROR: /home/circleci/ng/packages/http/test/BUILD.bazel:3:1: Compiling TypeScript (devmode) //packages/http/test:test_lib failed (Exit 1): tsc_wrapped failed: error executing command
  (cd /home/circleci/.cache/bazel/_bazel_circleci/9ce5c2144ecf75d11717c0aa41e45a8d/execroot/angular && \
  exec env - \
    BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 \
    PATH=/bin:/usr/bin:/usr/local/bin \
  bazel-out/host/bin/external/npm/@bazel/typescript/bin/tsc_wrapped @@bazel-out/k8-fastbuild/bin/packages/http/test/test_lib_es5_tsconfig.json)
Execution platform: //tools:rbe_ubuntu1604-angular
Compilation failed Error: missing input digest for /home/circleci/.cache/bazel/_bazel_circleci/9ce5c2144ecf75d11717c0aa41e45a8d/execroot/angular/external/npm/node_modules/@types/events/index.d.ts.
ERROR: /home/circleci/ng/packages/benchpress/test/BUILD.bazel:3:1: Compiling TypeScript (devmode) //packages/benchpress/test:test_lib failed (Exit 1): tsc_wrapped failed: error executing command
  (cd /home/circleci/.cache/bazel/_bazel_circleci/9ce5c2144ecf75d11717c0aa41e45a8d/execroot/angular && \
  exec env - \
    BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 \
    PATH=/bin:/usr/bin:/usr/local/bin \
  bazel-out/host/bin/external/npm/@bazel/typescript/bin/tsc_wrapped @@bazel-out/k8-fastbuild/bin/packages/benchpress/test/test_lib_es5_tsconfig.json)
Execution platform: //tools:rbe_ubuntu1604-angular
Compilation failed Error: missing input digest for /home/circleci/.cache/bazel/_bazel_circleci/9ce5c2144ecf75d11717c0aa41e45a8d/execroot/angular/external/npm/node_modules/@types/events/index.d.ts
ERROR: C:/codefresh/volume/angular/packages/compiler/test/css_parser/BUILD.bazel:3:1: Compiling TypeScript (devmode) //packages/compiler/test/css_parser:css_parser_lib failed (Exit 1):
tsc_wrapped.exe failed: error executing command
  cd C:/users/containeradministrator/_bazel_containeradministrator/zquin2l6/execroot/angular
  SET PATH=C:\msys64\usr\bin;C:\msys64\bin;C:\Windows;C:\Windows\System32;C:\Windows\System32\WindowsPowerShell\v1.0
    SET RUNFILES_MANIFEST_ONLY=1
  bazel-out/host/bin/external/npm/@bazel/typescript/bin/tsc_wrapped.exe @@bazel-out/x64_windows-fastbuild/bin/packages/compiler/test/css_parser/css_parser_lib_es5_tsconfig.json
Execution platform: @bazel_tools//platforms:host_platform
Compilation failed Error: missing input digest for C:/users/containeradministrator/_bazel_containeradministrator/zquin2l6/execroot/angular/external/npm/node_modules/@types/events/index.
d.ts
```
PR Close #31325
		
	
			
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| load("//packages/bazel:index.bzl", "ng_module")
 | |
| load("//tools:defaults.bzl", "jasmine_node_test")
 | |
| load(":extract_flat_module_index.bzl", "extract_flat_module_index")
 | |
| 
 | |
| ng_module(
 | |
|     name = "test_module",
 | |
|     testonly = True,
 | |
|     srcs = glob(["*.ts"]),
 | |
|     api_extractor = "//packages/bazel/src/api-extractor:api_extractor",
 | |
|     compiler = "//packages/bazel/src/ngc-wrapped",
 | |
|     entry_point = "index.ts",
 | |
|     flat_module_out_file = "flat_module_filename",
 | |
|     module_name = "some_npm_module",
 | |
|     ng_xi18n = "//packages/bazel/src/ngc-wrapped:xi18n",
 | |
|     node_modules = "@npm//typescript:typescript__typings",
 | |
|     tags = [
 | |
|         # Disabled as this test is specific to the flat module indexing of metadata.json files that
 | |
|         # the old ngc compiler does. Ivy has no metadata.json files so this test does not apply.
 | |
|         "no-ivy-aot",
 | |
|     ],
 | |
|     deps = [
 | |
|         "//packages/core",
 | |
|         "@npm//tslib",
 | |
|     ],
 | |
| )
 | |
| 
 | |
| extract_flat_module_index(
 | |
|     name = "flat_module_index",
 | |
|     testonly = True,
 | |
|     deps = [":test_module"],
 | |
| )
 | |
| 
 | |
| jasmine_node_test(
 | |
|     name = "test",
 | |
|     srcs = ["spec.js"],
 | |
|     data = [":flat_module_index"],
 | |
|     tags = [
 | |
|         # Disabled as this test is specific to the flat module indexing of metadata.json files that
 | |
|         # the old ngc compiler does. Ivy has no metadata.json files so this test does not apply.
 | |
|         "no-ivy-aot",
 | |
|     ],
 | |
| )
 |