-
Notifications
You must be signed in to change notification settings - Fork 109
142 lines (115 loc) · 4.1 KB
/
test-unit.yml
File metadata and controls
142 lines (115 loc) · 4.1 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: Unit Tests
on:
workflow_call:
workflow_dispatch:
env:
RUST_BACKTRACE: 1
permissions:
actions: read
contents: read
jobs:
rust-unit-tests:
name: Rust Unit Tests
strategy:
matrix:
include:
- runner: [k8s-runners-amd64]
arch: x86_64
target: x86_64-unknown-linux-gnu
- runner: [k8s-runners-arm64]
arch: aarch64
target: aarch64-unknown-linux-gnu
runs-on: ${{ matrix.runner }}
container:
image: ghcr.io/feldera/feldera-dev:sha-13b176e3436b4c753c4cf8287caba6be847f6d1b
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Download Test Binaries
uses: actions/download-artifact@v8
with:
name: feldera-test-binaries-${{ matrix.target }}
path: build
- name: Download Compiler Binaries
uses: actions/download-artifact@v8
with:
name: feldera-sql-compiler
path: sql-build
# Remove if https://github.com/actions/upload-artifact/issues/38 ever gets fixed
- name: Make binaries executable
run: chmod +x ./build/*
- name: List binaries
run: ls -l build
# Copy the sql2dbsp-jar-with-dependencies.jar to the target directory
# This is needed for (pipeline-manager) tests
- name: Copy feldera-sql-compiler JAR
run: |
mkdir -p sql-to-dbsp-compiler/SQL-compiler/target
cp sql-build/sql2dbsp-jar-with-dependencies.jar sql-to-dbsp-compiler/SQL-compiler/target
- name: Python SDK unit-tests
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: uv run --locked pytest -n ${{ vars.PYTEST_WORKERS }} tests/unit -vv ${{ vars.PYTEST_EXTRA }}
working-directory: python
- name: feldera-types
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: ./build/feldera_types-*
- name: dbsp
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: ./build/dbsp-*
- name: feldera-fxp
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: ./build/feldera_fxp-*
- name: feldera-sqllib
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: ./build/feldera_sqllib-*
- name: feldera-macros
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: |
./build/tuple_formats-*
./build/tuple_proptest-*
- name: storage-test-compat
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: ../../build/storage_test_compat-*
working-directory: crates/storage-test-compat
- name: feldera-ir
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: ./build/feldera_ir-*
- name: fda
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: ./build/fda-*
- name: datagen
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: ./build/feldera_datagen-*
- name: feldera-storage
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: ./build/feldera_storage-*
- name: readers
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: ../../../build/readers-*
# `readers` needs some find files relative to its source directory
working-directory: sql-to-dbsp-compiler/lib/readers
- name: dbsp_nexmark
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: ../../build/dbsp_nexmark-*
# `dbsp_nexmark` needs some find files relative to its source directory
working-directory: crates/nexmark
- name: nexmark
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: |
../../build/nexmark-* ${{ env.NEXMARK_ARGS }}
../../build/nexmark-* ${{ env.NEXMARK_ARGS }} --storage 10000
working-directory: crates/nexmark
env:
NEXMARK_ARGS: "--max-events=1000000 --cpu-cores 8 --num-event-generators 8"
- name: Run all pipeline_manager-* binaries
if: ${{ vars.CI_DRY_RUN != 'true' }}
run: |
for bin in ../../build/pipeline_manager-*; do
echo "Running $bin"
"$bin"
done
working-directory: crates/pipeline-manager
- name: Show Kubernetes node
if: always()
run: |
echo "K8S node: ${K8S_NODE_NAME}"