-
Notifications
You must be signed in to change notification settings - Fork 95
59 lines (51 loc) · 2.05 KB
/
test-executor-linux-arm64.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: "Test linux/arm64 executor"
on:
push:
branches:
- "master"
pull_request:
branches:
- "*"
jobs:
test:
runs-on: ubuntu-22.04-16cpu-arm64
if: "!contains(github.event.head_commit.message, 'ci skip')"
steps:
- name: Checkout
uses: actions/checkout@v4
# GitHub's arm64 runners do not have the same pre-installed software as
# the amd64 runners so we have to install a few things here.
- name: Install bazelisk
run: |
curl -L --output /tmp/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-arm64
chmod +x /tmp/bazelisk
sudo mv /tmp/bazelisk /usr/bin/bazelisk
sudo ln -s /usr/bin/bazelisk /usr/bin/bazel
- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y gcc g++
- name: Run tests
run: |
BUILD_FLAGS=(
--config=cache
--bes_backend=remote.buildbuddy.io
--bes_results_url=https://app.buildbuddy.io/invocation/
--remote_cache=remote.buildbuddy.io
--flaky_test_attempts=3
--local_test_jobs=1
--build_metadata=ROLE=CI
--color=yes
--remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }}
)
bazel test "${BUILD_FLAGS[@]}" --test_tag_filters=-performance,-docker \
-- \
//enterprise/server/remote_execution/... \
//enterprise/server/test/integration/remote_execution/... \
-//enterprise/server/remote_execution/containers/firecracker/... \
-//enterprise/server/test/integration/remote_execution:remote_execution_test
# Run a separate bazel invocation to invoke tests with the "docker" tag.
# TODO: improve platform setup so that we can run this whenever the
# host has podman available.
bazel test "${BUILD_FLAGS[@]}" --test_tag_filters=+docker \
//enterprise/server/test/integration/podman:podman_test