-
Notifications
You must be signed in to change notification settings - Fork 15
89 lines (84 loc) · 3.92 KB
/
check_bazel_tests.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Check Bazel Tests
on:
push:
branches:
- master
pull_request:
env:
USE_BAZEL_VERSION: 7.2.1
UDF_CLIENT_ENV_FILE: /tmp/.udf_client_env
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Search for duplicated error codes
run: bash find_duplicate_error_codes.sh
- name: Install UDF Client Dependencies
run: |
sudo bash scripts/installUdfClientDeps.sh "$UDF_CLIENT_ENV_FILE"
- name: Build
run: |
source "$UDF_CLIENT_ENV_FILE"
bazel build --lockfile_mode=off --config no-tty -c dbg --config python --config java --config fast-binary --verbose_failures
working-directory: ./exaudfclient/
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- test: "//base/javacontainer/test:ExaStackTraceCleanerTest"
name: "ExaStackTraceCleanerTest"
- test: "//base/javacontainer/test:javacontainer-test-extractor-legacy"
name: "javacontainer-test-extractor-legacy"
- test: "//base/javacontainer/test:javacontainer-test-extractor-v2"
name: "javacontainer-test-extractor-v2"
- test: "//base/javacontainer/script_options/..."
name: "javacontainer-script_options"
- test: "//base/exaudflib/test/..."
name: "exaudflib"
- test: "//base/script_options_parser/ctpg/..."
name: "script_options_parser_ctpg"
- test: "//base/script_options_parser/legacy/..."
name: "script_options_parser_legacy"
- test: "--run_under='valgrind --leak-check=yes' --config=valgrind //base/javacontainer/test:javacontainer-test-extractor-legacy"
name: "javacontainer-test-extractor-legacy-with-valgrind"
- test: "--run_under='valgrind --leak-check=yes' --config=valgrind //base/javacontainer/test:javacontainer-test-extractor-v2"
name: "javacontainer-test-extractor-v2-with-valgrind"
- test: "--run_under='valgrind --leak-check=yes' --config=valgrind //base/script_options_parser/ctpg/..."
name: "script_options_parser_ctpg_with_valgrind"
- test: "--run_under='valgrind --leak-check=yes' --config=valgrind //base/script_options_parser/legacy/..."
name: "script_options_parser_legacy_with_valgrind"
- test: "--config=asan //base/javacontainer/test:javacontainer-test-extractor-legacy"
name: "javacontainer-test-extractor-legacy-with-asan"
- test: "--config=asan //base/javacontainer/test:javacontainer-test-extractor-v2"
name: "javacontainer-test-extractor-v2-with-asan"
- test: "--config=asan //base/script_options_parser/ctpg/..."
name: "script_options_parser_ctpg_with_asan"
- test: "--config=asan //base/script_options_parser/legacy/..."
name: "script_options_parser_legacy_with_asan"
steps:
- uses: actions/checkout@v4
- name: Install JDK and ZMQ
run: |
sudo apt-get update
sudo apt-get install -y openjdk-11-jdk libzmq3-dev valgrind
- name: Install bazel
run: |
BAZEL_PACKAGE_FILE="bazel_$BAZEL_PACKAGE_VERSION-linux-x86_64.deb"
BAZEL_PACKAGE_URL="https://github.com/bazelbuild/bazel/releases/download/$BAZEL_PACKAGE_VERSION/$BAZEL_PACKAGE_FILE"
curl -L --output /tmp/"$BAZEL_PACKAGE_FILE" "$BAZEL_PACKAGE_URL"
sudo apt install -y "/tmp/$BAZEL_PACKAGE_FILE"
rm "/tmp/$BAZEL_PACKAGE_FILE"
env:
BAZEL_PACKAGE_VERSION: "7.2.1"
- name: Run tests
run: |
bazel test ${{ matrix.additional_args }} ${{ matrix.test }}
working-directory: ./exaudfclient/
- uses: actions/upload-artifact@v4
if: failure()
with:
name: "${{ matrix.name }}"
path: /home/runner/.cache/bazel/_bazel_runner/*/execroot/_main/bazel-out/k8-dbg/testlogs/**/test.log