@@ -87,7 +87,7 @@ executors:
8787 windows-executor :
8888 # Same as https://circleci.com/orbs/registry/orb/circleci/windows, but named.
8989 working_directory : ~/ng
90- resource_class : windows.medium
90+ resource_class : windows.2xlarge
9191 shell : powershell.exe -ExecutionPolicy Bypass
9292 machine :
9393 # Contents of this image:
@@ -138,7 +138,7 @@ commands:
138138 - initialize_env
139139 - run : nvm install 16.10
140140 - run : nvm use 16.10
141- - run : npm install -g yarn@1.22.10
141+ - run : npm install -g yarn@1.22.10 @bazel/bazelisk@${BAZELISK_VERSION}
142142 - run : node --version
143143 - run : yarn --version
144144
@@ -470,6 +470,44 @@ jobs:
470470 node tests\legacy-cli\run_e2e.js --nb-shards=$env:CIRCLE_NODE_TOTAL --shard=$env:CIRCLE_NODE_INDEX --tmpdir=X:/ramdisk/e2e-main --ignore="tests/misc/browsers.ts"
471471 - fail_fast
472472
473+ bazel-e2e-cli-win :
474+ executor : windows-executor
475+ parallelism : 8
476+ steps :
477+ - checkout
478+ - rebase_pr
479+ - setup_windows
480+ - restore_cache :
481+ keys :
482+ - *cache_key_win
483+ - run :
484+ # We use Arsenal Image Mounter (AIM) instead of ImDisk because of: https://github.com/nodejs/node/issues/6861
485+ # Useful resources for AIM: http://reboot.pro/index.php?showtopic=22068
486+ name : ' Arsenal Image Mounter (RAM Disk)'
487+ command : |
488+ pwsh ./.circleci/win-ram-disk.ps1
489+ - run : yarn install --frozen-lockfile --cache-folder ~/.cache/yarn
490+ - save_cache :
491+ key : *cache_key_win
492+ paths :
493+ - ~/.cache/yarn
494+ # Path where Arsenal Image Mounter files are downloaded.
495+ # Must match path in .circleci/win-ram-disk.ps1
496+ - ./aim
497+ - run :
498+ name : Execute E2E Tests
499+ command : |
500+ mkdir X:/ramdisk/e2e
501+ bazel test --define=E2E_TEMP=X:/ramdisk/e2e --define=E2E_SHARD_TOTAL=${CIRCLE_NODE_TOTAL} --define=E2E_SHARD=${CIRCLE_NODE_INDEX} //tests/legacy-cli:e2e.npm
502+ # This timeout provides time for the actual tests to timeout and report status
503+ # instead of CircleCI stopping the job without test failure information.
504+ no_output_timeout : 40m
505+ - fail_fast
506+ - store_artifacts :
507+ path : dist/testlogs/tests/legacy-cli/e2e.npm
508+ - store_test_results :
509+ path : dist/testlogs/tests/legacy-cli/e2e.npm
510+
473511workflows :
474512 version : 2
475513 default_workflow :
@@ -556,6 +594,8 @@ workflows:
556594 # Windows jobs
557595 - e2e-cli-win
558596
597+ - bazel-e2e-cli-win
598+
559599 # Bazel jobs
560600 - bazel-build :
561601 requires :
0 commit comments