8
8
// tslint:disable:no-console
9
9
// tslint:disable:no-implicit-dependencies
10
10
import { logging } from '@angular-devkit/core' ;
11
- import { spawnSync } from 'child_process' ;
11
+ import { execSync , spawnSync } from 'child_process' ;
12
12
import * as glob from 'glob' ;
13
13
import 'jasmine' ;
14
14
import { SpecReporter as JasmineSpecReporter } from 'jasmine-spec-reporter' ;
@@ -23,8 +23,6 @@ const knownFlakes = [
23
23
// Rebuild tests in test-large are flakey if not run as the first suite.
24
24
// https://github.com/angular/angular-cli/pull/15204
25
25
'packages/angular_devkit/build_angular/test/browser/rebuild_spec_large.ts' ,
26
- // This is flaky with NGCC
27
- 'packages/angular_devkit/build_angular/test/karma/selected_spec_large.ts' ,
28
26
] ;
29
27
30
28
const projectBaseDir = join ( __dirname , '..' ) ;
@@ -94,6 +92,10 @@ export default function(args: ParsedArgs, logger: logging.Logger) {
94
92
if ( args [ 've' ] ) {
95
93
// tslint:disable-next-line:no-console
96
94
console . warn ( '********* VE Enabled ***********' ) ;
95
+ } else if ( args . shard !== undefined ) {
96
+ // CI is really flaky with NGCC
97
+ // This is a working around test order and isolation issues.
98
+ execSync ( './node_modules/.bin/ivy-ngcc' , { stdio : 'inherit' } ) ;
97
99
}
98
100
99
101
if ( args . large ) {
0 commit comments