This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
103 lines (92 loc) · 2.15 KB
/
CI_milvus1x_milvus2x_main.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
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
name: Test (milvus1x2milvus2x) on pull request
on:
push:
branches:
- main
paths:
- 'asap/**'
- 'cmd/**'
- 'configs/**'
- 'core/**'
- 'internal/**'
- 'server/**'
- 'starter/**'
- 'storage/**'
- 'test/**'
- 'testfiles/**'
- '!**.md'
- '.github/workflows/**'
- 'deployment/**'
pull_request:
branches:
- main
paths:
- 'asap/**'
- 'cmd/**'
- 'configs/**'
- 'core/**'
- 'internal/**'
- 'server/**'
- 'starter/**'
- 'storage/**'
- 'test/**'
- 'testfiles/**'
- '!**.md'
- '.github/workflows/**'
- 'deployment/**'
workflow_dispatch:
jobs:
test-milvus-migration-cli-milvus1x-main:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
deploy_tools: [docker-compose]
milvus_2_x_mode: [standalone, cluster]
steps:
- uses: actions/checkout@main
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
cache: pip
- uses: actions/setup-go@v3
with:
go-version: '1.22'
cache: true
- name: Build
shell: bash
run: |
go build
- name: Milvus 2.x deploy
timeout-minutes: 10
shell: bash
working-directory: deployment/${{ matrix.milvus_2_x_mode }}
run: |
docker compose up -d
bash ../../scripts/check_healthy.sh
docker compose ps -a
- name: Prepare config
shell: bash
run: |
cp testfiles/config/migration.yaml ./
- name: dump
timeout-minutes: 3
shell: bash
run: |
./milvus-migration dump
- name: load
timeout-minutes: 3
shell: bash
run: |
./milvus-migration load
- name: Install dependency
working-directory: testfiles
shell: bash
run: |
pip install -r requirements.txt
- name: Verify data
timeout-minutes: 5
shell: bash
run: |
python testfiles/testcases/verify_data_milvus1x.py