Skip to content

Commit 0aca4bb

Browse files
committed
ci: migrate linker tests to GHA (#27673)
Migrate linker tests to Github Actions (cherry picked from commit 12d2a12)
1 parent 65ef9fa commit 0aca4bb

File tree

2 files changed

+33
-43
lines changed

2 files changed

+33
-43
lines changed

.circleci/config.yml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -389,44 +389,6 @@ jobs:
389389
- run: bazel test --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only -- src/...
390390
- *slack_notify_on_failure
391391

392-
# ----------------------------------------------------------------------------
393-
# Job that runs the AOT linker tests.
394-
# ----------------------------------------------------------------------------
395-
linker_aot_test:
396-
<<: *job_defaults
397-
resource_class: xlarge
398-
environment:
399-
GCP_DECRYPT_TOKEN: *gcp_decrypt_token
400-
steps:
401-
- checkout_and_rebase
402-
- *restore_cache
403-
- *setup_bazel_ci_config
404-
- *setup_bazel_remote_execution
405-
- *yarn_install
406-
- *setup_bazel_binary
407-
408-
- run: yarn test-linker-aot
409-
- *slack_notify_on_failure
410-
411-
# ----------------------------------------------------------------------------
412-
# Job that runs the JIT linker tests.
413-
# ----------------------------------------------------------------------------
414-
linker_jit_test:
415-
<<: *job_defaults
416-
resource_class: xlarge
417-
environment:
418-
GCP_DECRYPT_TOKEN: *gcp_decrypt_token
419-
steps:
420-
- checkout_and_rebase
421-
- *restore_cache
422-
- *setup_bazel_ci_config
423-
- *setup_bazel_remote_execution
424-
- *yarn_install
425-
- *setup_bazel_binary
426-
427-
- run: yarn test-linker-jit
428-
- *slack_notify_on_failure
429-
430392
# ----------------------------------------------------------------------------
431393
# Job that runs both AOT and JIT linker tests against Angular snapshot builds.
432394
# ----------------------------------------------------------------------------
@@ -487,10 +449,6 @@ workflows:
487449
jobs:
488450
- bazel_build:
489451
filters: *ignore_presubmit_branch_filter
490-
- linker_aot_test:
491-
filters: *ignore_presubmit_branch_filter
492-
- linker_jit_test:
493-
filters: *ignore_presubmit_branch_filter
494452
- tests_browsers:
495453
filters: *ignore_presubmit_branch_filter
496454
- tests_browserstack:

.github/workflows/ci.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,41 @@ jobs:
103103
- name: Install node modules
104104
run: yarn install --frozen-lockfile
105105
- name: Run integration tests
106-
run: yarn integration-tests\
106+
run: yarn integration-tests
107107
# TODO: Set up slack notifications
108108
# - name: Running size integration tests (failures are reported in Slack only).
109109
# run: |
110110
# If the size integration tests fail, report the failure to a dedicated #components-ci-size-tracking Slack channel.
111111
# yarn integration-tests:size-test || yarn ci-notify-slack-failure components-ci-size-tracking
112+
113+
linker_aot_tests:
114+
runs-on: ubuntu-latest-4core
115+
steps:
116+
- name: Initialize environment
117+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@9931e1a8d1b62fcd2267e89f9993a494856cc1cd
118+
with:
119+
cache-node-modules: true
120+
- name: Setup Bazel
121+
uses: angular/dev-infra/github-actions/bazel/setup@9931e1a8d1b62fcd2267e89f9993a494856cc1cd
122+
- name: Setup Bazel RBE
123+
uses: angular/dev-infra/github-actions/bazel/configure-remote@9931e1a8d1b62fcd2267e89f9993a494856cc1cd
124+
- name: Install node modules
125+
run: yarn install --frozen-lockfile
126+
- name: Run linker AOT tests
127+
run: yarn test-linker-aot
128+
129+
linker_jit_tests:
130+
runs-on: ubuntu-latest-4core
131+
steps:
132+
- name: Initialize environment
133+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@9931e1a8d1b62fcd2267e89f9993a494856cc1cd
134+
with:
135+
cache-node-modules: true
136+
- name: Setup Bazel
137+
uses: angular/dev-infra/github-actions/bazel/setup@9931e1a8d1b62fcd2267e89f9993a494856cc1cd
138+
- name: Setup Bazel RBE
139+
uses: angular/dev-infra/github-actions/bazel/configure-remote@9931e1a8d1b62fcd2267e89f9993a494856cc1cd
140+
- name: Install node modules
141+
run: yarn install --frozen-lockfile
142+
- name: Run linker JIT tests
143+
run: yarn test-linker-jit

0 commit comments

Comments
 (0)