-
Notifications
You must be signed in to change notification settings - Fork 404
43 lines (40 loc) · 1.77 KB
/
Copy pathlocal-system-tests.yml
File metadata and controls
43 lines (40 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: local-system-tests
on:
schedule:
- cron: "0 21 * * *" # 21:00 UTC
workflow_dispatch:
env:
CI_JOB_NAME: ${{ github.job }}
jobs:
# We currently don't run system-tests using their `Local` backend on PRs for now since that would be too slow.
# These tests reserve a significant number of CPUs from Bazel causing them to effectively spend most of their time waiting
# to get a share of the only 64 CPUs of the GitHub runner. To run them fast we need to run them on a
# Bazel Remote Execution cluster such that the tests can be distributed across many 64-CPU builders. That's still work in progress.
# So to test the `_local` system-tests we run them daily via this job.
local-system-tests:
name: Bazel Test Local System Tests
runs-on:
labels: dind-large
container:
image: ghcr.io/dfinity/ic-build@sha256:1ce83af4fd022cf0938f929a90c11d59ea1d84221fd73b35e9eefa2c89622cc0
options: >-
-e NODE_NAME --privileged --cgroupns host --mount type=tmpfs,target="/tmp/containers"
timeout-minutes: 600
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/netrc
# GitHub runners override the container's entrypoint which is ci/container/init.sh
# so we run it explicitly here to ensure the system is set up correctly for running local system-tests.
- run: ci/container/init.sh
- name: Run Local System Tests
uses: ./.github/actions/bazel
with:
run: |
bazel test \
--config=stamped \
--config=flaky_retry \
--test_tag_filters=local_system_test \
//rs/tests/... \
--keep_going
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}