• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Template generated from load test configurations by loadtest_template.py.
2#
3# Configuration templates contain client and server configurations for multiple
4# languages, and may contain template substitution keys. These templates are
5# used to generate load test configurations by selecting clients and servers for
6# the required languages. The source files for template generation may be load
7# test configurations or load test configuration templates. Load test
8# configuration generation is performed by loadtest_config.py. See documentation
9# below:
10# https://github.com/grpc/grpc/blob/master/tools/run_tests/performance/README.md
11apiVersion: e2etest.grpc.io/v1
12kind: LoadTest
13metadata:
14  name: basic_all_languages
15spec:
16  clients:
17    - build:
18        command:
19          - bash
20          - /build_scripts/build_qps_worker.sh
21      clone:
22        gitRef: master
23        repo: https://github.com/grpc/grpc.git
24      language: csharp
25      pool: ${client_pool}
26      run:
27        args:
28          - exec
29          - qps_worker/Grpc.IntegrationTesting.QpsWorker.dll
30        command:
31          - dotnet
32    - build:
33        args:
34          - build
35          - //test/cpp/qps:qps_worker
36        command:
37          - bazel
38      clone:
39        gitRef: master
40        repo: https://github.com/grpc/grpc.git
41      language: cxx
42      pool: ${client_pool}
43      run:
44        command:
45          - bazel-bin/test/cpp/qps/qps_worker
46    - build:
47        args:
48          - build
49          - -o
50          - /src/workspace/bin/worker
51          - ./benchmark/worker
52        command:
53          - go
54      clone:
55        gitRef: master
56        repo: https://github.com/grpc/grpc-go.git
57      language: go
58      pool: ${client_pool}
59      run:
60        command:
61          - /src/workspace/bin/worker
62    - build:
63        args:
64          - -PskipAndroid=true
65          - -PskipCodegen=true
66          - :grpc-benchmarks:installDist
67        command:
68          - gradle
69      clone:
70        gitRef: master
71        repo: https://github.com/grpc/grpc-java.git
72      language: java
73      pool: ${client_pool}
74      run:
75        command:
76          - benchmarks/build/install/grpc-benchmarks/bin/benchmark_worker
77    - build:
78        command:
79          - bash
80          - /build_scripts/build_qps_worker.sh
81      clone:
82        gitRef: master
83        repo: https://github.com/grpc/grpc-node.git
84      language: node
85      pool: ${client_pool}
86      run:
87        args:
88          - -r
89          - ./test/fixtures/native_native.js
90          - test/performance/worker.js
91          - --benchmark_impl=grpc
92        command:
93          - node
94    - build:
95        command:
96          - bash
97          - /build_scripts/build_qps_worker.sh
98      clone:
99        gitRef: master
100        repo: https://github.com/grpc/grpc.git
101      language: php
102      pool: ${client_pool}
103      run:
104        command:
105          - bash
106          - /run_scripts/run_worker.sh
107    - build:
108        args:
109          - build
110          - //src/python/grpcio_tests/tests/qps:qps_worker
111        command:
112          - bazel
113      clone:
114        gitRef: master
115        repo: https://github.com/grpc/grpc.git
116      language: python
117      pool: ${client_pool}
118      run:
119        command:
120          - bazel-bin/src/python/grpcio_tests/tests/qps/qps_worker
121    - build:
122        command:
123          - bash
124          - /build_scripts/build_qps_worker.sh
125      clone:
126        gitRef: master
127        repo: https://github.com/grpc/grpc
128      language: ruby
129      pool: ${client_pool}
130      run:
131        args:
132          - src/ruby/qps/worker.rb
133        command:
134          - ruby
135  results:
136    bigQueryTable: ${big_query_table}
137  servers:
138    - build:
139        command:
140          - bash
141          - /build_scripts/build_qps_worker.sh
142      clone:
143        gitRef: master
144        repo: https://github.com/grpc/grpc.git
145      language: csharp
146      pool: ${server_pool}
147      run:
148        args:
149          - exec
150          - qps_worker/Grpc.IntegrationTesting.QpsWorker.dll
151        command:
152          - dotnet
153    - build:
154        args:
155          - build
156          - //test/cpp/qps:qps_worker
157        command:
158          - bazel
159      clone:
160        gitRef: master
161        repo: https://github.com/grpc/grpc.git
162      language: cxx
163      pool: ${server_pool}
164      run:
165        args:
166          - --server_port=10010
167        command:
168          - bazel-bin/test/cpp/qps/qps_worker
169    - build:
170        args:
171          - build
172          - -o
173          - /src/workspace/bin/worker
174          - ./benchmark/worker
175        command:
176          - go
177      clone:
178        gitRef: master
179        repo: https://github.com/grpc/grpc-go.git
180      language: go
181      pool: ${server_pool}
182      run:
183        command:
184          - /src/workspace/bin/worker
185    - build:
186        args:
187          - -PskipAndroid=true
188          - -PskipCodegen=true
189          - :grpc-benchmarks:installDist
190        command:
191          - gradle
192      clone:
193        gitRef: master
194        repo: https://github.com/grpc/grpc-java.git
195      language: java
196      pool: ${server_pool}
197      run:
198        command:
199          - benchmarks/build/install/grpc-benchmarks/bin/benchmark_worker
200    - build:
201        command:
202          - bash
203          - /build_scripts/build_qps_worker.sh
204      clone:
205        gitRef: master
206        repo: https://github.com/grpc/grpc-node.git
207      language: node
208      pool: ${server_pool}
209      run:
210        args:
211          - -r
212          - ./test/fixtures/native_native.js
213          - test/performance/worker.js
214          - --benchmark_impl=grpc
215        command:
216          - node
217    - build:
218        command:
219          - bash
220          - /build_scripts/build_qps_worker.sh
221      clone:
222        gitRef: master
223        repo: https://github.com/grpc/grpc.git
224      language: php
225      pool: ${server_pool}
226      run:
227        command:
228          - bash
229          - /run_scripts/run_worker.sh
230    - build:
231        args:
232          - build
233          - //src/python/grpcio_tests/tests/qps:qps_worker
234        command:
235          - bazel
236      clone:
237        gitRef: master
238        repo: https://github.com/grpc/grpc.git
239      language: python
240      pool: ${server_pool}
241      run:
242        command:
243          - bazel-bin/src/python/grpcio_tests/tests/qps/qps_worker
244    - build:
245        command:
246          - bash
247          - /build_scripts/build_qps_worker.sh
248      clone:
249        gitRef: master
250        repo: https://github.com/grpc/grpc
251      language: ruby
252      pool: ${server_pool}
253      run:
254        args:
255          - src/ruby/qps/worker.rb
256        command:
257          - ruby
258  timeoutSeconds: ${timeout_seconds}
259  ttlSeconds: 86400
260