-
Notifications
You must be signed in to change notification settings - Fork 198
52 lines (45 loc) · 1.44 KB
/
unit_tests_with_shards_and_replicas.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
# Runs unit tests on 4 cases:
# 1. single node vespa
# 2. multinode vespa: 1 shard, 1 replica
# 3. multinode vespa: 2 shard, 0 replicas
# 4. multinode vespa: 2 shards, 1 replicas
# Runs only once on PR approval
name: Unit Tests with Shards and Replicas
on:
workflow_dispatch:
pull_request_review:
types: [submitted]
branches:
- mainline
- 'releases/*'
permissions:
contents: read
jobs:
Unit-Tests-1-Shard-0-Replica:
uses: ./.github/workflows/unit_test_200gb_CI.yml
secrets: inherit
if: github.event_name == 'workflow_dispatch' || github.event.review.state == 'approved'
with:
number_of_shards: 1
number_of_replicas: 0
Unit-Tests-1-Shard-1-Replica:
uses: ./.github/workflows/unit_test_200gb_CI.yml
secrets: inherit
if: github.event_name == 'workflow_dispatch' || github.event.review.state == 'approved'
with:
number_of_shards: 1
number_of_replicas: 1
Unit-Tests-2-Shard-0-Replica:
uses: ./.github/workflows/unit_test_200gb_CI.yml
secrets: inherit
if: github.event_name == 'workflow_dispatch' || github.event.review.state == 'approved'
with:
number_of_shards: 2
number_of_replicas: 0
Unit-Tests-2-Shard-1-Replica:
uses: ./.github/workflows/unit_test_200gb_CI.yml
secrets: inherit
if: github.event_name == 'workflow_dispatch' || github.event.review.state == 'approved'
with:
number_of_shards: 2
number_of_replicas: 1