forked from blue-oil/blueoil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblueoil-pipeline.yml
123 lines (123 loc) · 4.03 KB
/
blueoil-pipeline.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
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
steps:
- command: "make build"
label: "docker build in GPU agent"
agents:
- "agent-type=gpu"
- "env=production"
timeout_in_minutes: "30"
env:
BUILDKITE_CLEAN_CHECKOUT: 'true'
concurrency: 1
concurrency_group: "docker/gpu/${BUILDKITE_COMMIT}"
- wait
- command: "make test-classification"
label: "classification"
agents:
- "agent-type=gpu"
- "env=production"
timeout_in_minutes: "30"
env:
BUILDKITE_CLEAN_CHECKOUT: 'true'
artifact_paths:
- "tmp/*/export/*/*/output/**/*.py"
- "tmp/*/export/*/*/output/**/*.yaml"
- "tmp/*/export/*/*/output/**/*.so"
- "tmp/*/export/*/*/inference_test_data/raw_image.png"
- command: "make test-object-detection"
label: "object-detection"
agents:
- "agent-type=gpu"
- "env=production"
timeout_in_minutes: "40"
env:
BUILDKITE_CLEAN_CHECKOUT: 'true'
artifact_paths:
- "tmp/*/export/*/*/output/**/*.py"
- "tmp/*/export/*/*/output/**/*.yaml"
- "tmp/*/export/*/*/output/**/*.so"
- "tmp/*/export/*/*/inference_test_data/raw_image.png"
- command: "make test-semantic-segmentation"
label: "semantic-segmentation"
agents:
- "agent-type=gpu"
- "env=production"
timeout_in_minutes: "30"
env:
BUILDKITE_CLEAN_CHECKOUT: 'true'
artifact_paths:
- "tmp/*/export/*/*/output/**/*.py"
- "tmp/*/export/*/*/output/**/*.yaml"
- "tmp/*/export/*/*/output/**/*.so"
- "tmp/*/export/*/*/inference_test_data/raw_image.png"
- command: "make test-keypoint-detection"
label: "keypoint-detection"
agents:
- "agent-type=gpu"
- "env=production"
timeout_in_minutes: "30"
env:
BUILDKITE_CLEAN_CHECKOUT: 'true'
artifact_paths:
- "tmp/*/export/*/*/output/**/*.py"
- "tmp/*/export/*/*/output/**/*.yaml"
- "tmp/*/export/*/*/output/**/*.so"
- "tmp/*/export/*/*/inference_test_data/raw_image.png"
- wait
- command: |
buildkite-agent artifact download "tmp/*" ./ --build \${BUILDKITE_BUILD_ID}
python3 -m venv blueoil_inference
source blueoil_inference/bin/activate
pip3 install -U pip
pip3 install -r output_template/python/requirements.txt
cd tests/device_tests && python3 test_device_e2e.py
label: "inference on ubuntu(x86)"
agents:
- "agent-type=normal"
- "env=production"
timeout_in_minutes: "30"
env:
BUILDKITE_CLEAN_CHECKOUT: 'true'
DEVICE_TEST_INPUT_PATH: '../../tmp'
DEVICE_TEST_LIB_NAME: 'libdlk_x86.so'
- command: |
buildkite-agent artifact download "tmp/*" ./ --build \${BUILDKITE_BUILD_ID}
python3 -m venv blueoil_inference
source blueoil_inference/bin/activate
pip3 install -U pip
pip3 install -r output_template/python/requirements.txt
cd tests/device_tests && python3 test_device_e2e.py
label: "inference on ubuntu(x86_avx)"
agents:
- "agent-type=normal"
- "env=production"
timeout_in_minutes: "30"
env:
BUILDKITE_CLEAN_CHECKOUT: 'true'
DEVICE_TEST_INPUT_PATH: '../../tmp'
DEVICE_TEST_LIB_NAME: 'libdlk_x86_avx.so'
- command: |
buildkite-agent artifact download "tmp/*" ./ --build \${BUILDKITE_BUILD_ID}
pip3 install -r output_template/python/requirements.txt
cd tests/device_tests && python3 test_device_e2e.py
label: "inference on raspberry-pi(aarch64)"
agents:
- "agent-type=raspberry-pi"
- "env=benchmark"
timeout_in_minutes: "30"
env:
BUILDKITE_CLEAN_CHECKOUT: 'true'
DEVICE_TEST_INPUT_PATH: '../../tmp'
DEVICE_TEST_LIB_NAME: 'libdlk_aarch64.so'
- command: |
buildkite-agent artifact download "tmp/*" ./ --build \${BUILDKITE_BUILD_ID}
sudo pip install -r output_template/python/requirements.txt --no-cache-dir
cd tests/device_tests && python test_device_e2e.py
label: "inference on de10nano(arm)"
agents:
- "agent-type=de10nano"
- "env=benchmark"
timeout_in_minutes: "30"
env:
BUILDKITE_CLEAN_CHECKOUT: 'true'
DEVICE_TEST_INPUT_PATH: '../../tmp'
DEVICE_TEST_LIB_NAME: 'libdlk_arm.so'