ddtrace 0.30.0 → 0.30.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +280 -543
- data/Appraisals +40 -52
- data/CHANGELOG.md +15 -0
- data/Rakefile +52 -95
- data/lib/ddtrace/sync_writer.rb +3 -0
- data/lib/ddtrace/version.rb +1 -1
- data/lib/ddtrace/writer.rb +3 -1
- metadata +4 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c36cc86fbd0beff70a42059214a0c60c616bd67b
|
4
|
+
data.tar.gz: 0b760d9c734d4945d607ee0ad63032d9b703eec3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b63c248f6f431dd430b0f51e5668e8bade6d0b1c2e30adf2f7ba1f4ee667038c1ca6ef62aa806ee5a898600ebf77d55624d26bc9144f0fbcb9602292dc2afa3c
|
7
|
+
data.tar.gz: 49c3a9e7442fd8835ad2124f5f1943429911da62671fda5d691d866ea6314856bd892f8841071823d71954802c4fdec7919a20f84653c583cd65f7a43c135324
|
data/.circleci/config.yml
CHANGED
@@ -1,39 +1,14 @@
|
|
1
|
+
version: 2.1
|
2
|
+
|
1
3
|
# Common variables, containers, jobs and steps.
|
2
4
|
job_defaults: &job_defaults
|
3
5
|
working_directory: /app
|
4
6
|
shell: /bin/bash --login
|
5
7
|
|
6
|
-
|
7
|
-
- &
|
8
|
-
image: palazzem/docker-library:ddtrace_rb_2_0_0
|
9
|
-
environment:
|
10
|
-
- BUNDLE_GEMFILE=/app/Gemfile
|
11
|
-
- &container-2_1
|
12
|
-
image: palazzem/docker-library:ddtrace_rb_2_1_10
|
13
|
-
environment:
|
14
|
-
- BUNDLE_GEMFILE=/app/Gemfile
|
15
|
-
- &container-2_2
|
16
|
-
image: palazzem/docker-library:ddtrace_rb_2_2_10
|
17
|
-
environment:
|
18
|
-
- BUNDLE_GEMFILE=/app/Gemfile
|
19
|
-
- &container-2_3
|
20
|
-
image: palazzem/docker-library:ddtrace_rb_2_3_8
|
21
|
-
environment:
|
22
|
-
- BUNDLE_GEMFILE=/app/Gemfile
|
23
|
-
- &container-2_4
|
24
|
-
image: palazzem/docker-library:ddtrace_rb_2_4_6
|
25
|
-
environment:
|
26
|
-
- BUNDLE_GEMFILE=/app/Gemfile
|
27
|
-
- &container-2_5
|
28
|
-
image: marcotc/docker-library:ddtrace_rb_2_5_6
|
29
|
-
environment:
|
30
|
-
- BUNDLE_GEMFILE=/app/Gemfile
|
31
|
-
- &container-2_6
|
32
|
-
image: marcotc/docker-library:ddtrace_rb_2_6_4
|
8
|
+
test_containers:
|
9
|
+
- &container_base
|
33
10
|
environment:
|
34
11
|
- BUNDLE_GEMFILE=/app/Gemfile
|
35
|
-
|
36
|
-
test_containers: &test_containers
|
37
12
|
- &container_postgres
|
38
13
|
image: postgres:9.6
|
39
14
|
environment:
|
@@ -103,429 +78,137 @@ filters_only_release_tags: &filters_only_release_tags
|
|
103
78
|
tags:
|
104
79
|
only: /^v\d+(\.\d+){0,3}(\.(alpha|beta|rc)\d+)?$/
|
105
80
|
|
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
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
<<: *job_defaults
|
231
|
-
docker:
|
232
|
-
- *container-2_2
|
233
|
-
steps:
|
234
|
-
- restore_cache:
|
235
|
-
keys:
|
236
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.2-{{ .Environment.CIRCLE_SHA1 }}'
|
237
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.2-{{ .Environment.CIRCLE_SHA1 }}'
|
238
|
-
- *step_init_bundle_checksum
|
239
|
-
- restore_cache:
|
240
|
-
keys:
|
241
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.2-{{ checksum ".circleci/bundle_checksum" }}'
|
242
|
-
- *step_bundle_install
|
243
|
-
- *step_rubocop
|
244
|
-
- *step_appraisal_install
|
245
|
-
- *step_compute_bundle_checksum
|
246
|
-
- save_cache:
|
247
|
-
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.2-{{ .Environment.CIRCLE_SHA1 }}'
|
248
|
-
paths:
|
249
|
-
- /app
|
250
|
-
- save_cache:
|
251
|
-
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.2-{{ checksum ".circleci/bundle_checksum" }}'
|
252
|
-
paths:
|
253
|
-
- /usr/local/bundle
|
254
|
-
test-2.2:
|
255
|
-
<<: *job_defaults
|
256
|
-
docker:
|
257
|
-
- <<: *container-2_2
|
258
|
-
environment:
|
259
|
-
- TEST_DATADOG_INTEGRATION: 1
|
260
|
-
- *container_postgres
|
261
|
-
- *container_mysql
|
262
|
-
- *container_elasticsearch
|
263
|
-
- *container_redis
|
264
|
-
- *container_mongo
|
265
|
-
- *container_memcached
|
266
|
-
- *container_agent
|
267
|
-
steps:
|
268
|
-
- restore_cache:
|
269
|
-
keys:
|
270
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.2-{{ .Environment.CIRCLE_SHA1 }}'
|
271
|
-
- restore_cache:
|
272
|
-
keys:
|
273
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.2-{{ checksum ".circleci/bundle_checksum" }}'
|
274
|
-
- *step_run_all_tests
|
275
|
-
checkout-2.3:
|
276
|
-
<<: *job_defaults
|
277
|
-
docker:
|
278
|
-
- *container-2_3
|
279
|
-
steps:
|
280
|
-
- checkout
|
281
|
-
- save_cache:
|
282
|
-
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.3-{{ .Environment.CIRCLE_SHA1 }}'
|
283
|
-
paths:
|
284
|
-
- /app
|
285
|
-
build-2.3:
|
286
|
-
<<: *job_defaults
|
287
|
-
docker:
|
288
|
-
- *container-2_3
|
289
|
-
steps:
|
290
|
-
- restore_cache:
|
291
|
-
keys:
|
292
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.3-{{ .Environment.CIRCLE_SHA1 }}'
|
293
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.3-{{ .Environment.CIRCLE_SHA1 }}'
|
294
|
-
- *step_init_bundle_checksum
|
295
|
-
- restore_cache:
|
296
|
-
keys:
|
297
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.3-{{ checksum ".circleci/bundle_checksum" }}'
|
298
|
-
- *step_bundle_install
|
299
|
-
- *step_rubocop
|
300
|
-
- *step_appraisal_install
|
301
|
-
- *step_compute_bundle_checksum
|
302
|
-
- save_cache:
|
303
|
-
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.3-{{ .Environment.CIRCLE_SHA1 }}'
|
304
|
-
paths:
|
305
|
-
- /app
|
306
|
-
- save_cache:
|
307
|
-
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.3-{{ checksum ".circleci/bundle_checksum" }}'
|
308
|
-
paths:
|
309
|
-
- /usr/local/bundle
|
310
|
-
test-2.3:
|
311
|
-
<<: *job_defaults
|
312
|
-
docker:
|
313
|
-
- <<: *container-2_3
|
314
|
-
environment:
|
315
|
-
- TEST_DATADOG_INTEGRATION: 1
|
316
|
-
- *container_postgres
|
317
|
-
- *container_mysql
|
318
|
-
- *container_elasticsearch
|
319
|
-
- *container_redis
|
320
|
-
- *container_mongo
|
321
|
-
- *container_memcached
|
322
|
-
- *container_agent
|
323
|
-
steps:
|
324
|
-
- restore_cache:
|
325
|
-
keys:
|
326
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.3-{{ .Environment.CIRCLE_SHA1 }}'
|
327
|
-
- restore_cache:
|
328
|
-
keys:
|
329
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.3-{{ checksum ".circleci/bundle_checksum" }}'
|
330
|
-
- *step_run_all_tests
|
331
|
-
benchmark-2.3:
|
332
|
-
<<: *job_defaults
|
333
|
-
docker:
|
334
|
-
- <<: *container-2_3
|
335
|
-
environment:
|
336
|
-
- TEST_DATADOG_INTEGRATION: 1
|
337
|
-
- *container_postgres
|
338
|
-
- *container_redis
|
339
|
-
- *container_agent
|
340
|
-
steps:
|
341
|
-
- restore_cache:
|
342
|
-
keys:
|
343
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.3-{{ .Environment.CIRCLE_SHA1 }}'
|
344
|
-
- restore_cache:
|
345
|
-
keys:
|
346
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.3-{{ checksum ".circleci/bundle_checksum" }}'
|
347
|
-
- run:
|
348
|
-
name: Run Benchmark
|
349
|
-
command: bundle exec appraisal rails5-postgres-sidekiq ruby benchmarks/sidekiq_test.rb 2>&1 1> /dev/null | tee benchmark_results.csv
|
350
|
-
- run:
|
351
|
-
name: Run Benchmark without ddtracer
|
352
|
-
command: rm -f lib/ddtrace.rb && bundle exec appraisal rails5-postgres-sidekiq ruby benchmarks/sidekiq_test.rb 2>&1 1> /dev/null | tee benchmark_results.csv
|
353
|
-
|
354
|
-
checkout-2.4:
|
355
|
-
<<: *job_defaults
|
356
|
-
docker:
|
357
|
-
- *container-2_4
|
358
|
-
steps:
|
359
|
-
- checkout
|
360
|
-
- save_cache:
|
361
|
-
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.4-{{ .Environment.CIRCLE_SHA1 }}'
|
362
|
-
paths:
|
363
|
-
- /app
|
364
|
-
build-2.4:
|
365
|
-
<<: *job_defaults
|
366
|
-
docker:
|
367
|
-
- *container-2_4
|
368
|
-
steps:
|
369
|
-
- restore_cache:
|
370
|
-
keys:
|
371
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.4-{{ .Environment.CIRCLE_SHA1 }}'
|
372
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.4-{{ .Environment.CIRCLE_SHA1 }}'
|
373
|
-
- *step_init_bundle_checksum
|
374
|
-
- restore_cache:
|
375
|
-
keys:
|
376
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.4-{{ checksum ".circleci/bundle_checksum" }}'
|
377
|
-
- *step_bundle_install
|
378
|
-
- *step_rubocop
|
379
|
-
- *step_appraisal_install
|
380
|
-
- *step_compute_bundle_checksum
|
381
|
-
- save_cache:
|
382
|
-
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.4-{{ .Environment.CIRCLE_SHA1 }}'
|
383
|
-
paths:
|
384
|
-
- /app
|
385
|
-
- save_cache:
|
386
|
-
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.4-{{ checksum ".circleci/bundle_checksum" }}'
|
387
|
-
paths:
|
388
|
-
- /usr/local/bundle
|
389
|
-
test-2.4:
|
390
|
-
<<: *job_defaults
|
391
|
-
docker:
|
392
|
-
- <<: *container-2_4
|
393
|
-
environment:
|
394
|
-
- TEST_DATADOG_INTEGRATION: 1
|
395
|
-
- *container_postgres
|
396
|
-
- *container_mysql
|
397
|
-
- *container_elasticsearch
|
398
|
-
- *container_redis
|
399
|
-
- *container_mongo
|
400
|
-
- *container_memcached
|
401
|
-
- *container_agent
|
402
|
-
steps:
|
403
|
-
- restore_cache:
|
404
|
-
keys:
|
405
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.4-{{ .Environment.CIRCLE_SHA1 }}'
|
406
|
-
- restore_cache:
|
407
|
-
keys:
|
408
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.4-{{ checksum ".circleci/bundle_checksum" }}'
|
409
|
-
- *step_run_all_tests
|
410
|
-
|
411
|
-
checkout-2.5:
|
412
|
-
<<: *job_defaults
|
413
|
-
docker:
|
414
|
-
- *container-2_5
|
415
|
-
steps:
|
416
|
-
- checkout
|
417
|
-
- save_cache:
|
418
|
-
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.5-{{ .Environment.CIRCLE_SHA1 }}'
|
419
|
-
paths:
|
420
|
-
- /app
|
421
|
-
build-2.5:
|
422
|
-
<<: *job_defaults
|
423
|
-
docker:
|
424
|
-
- *container-2_5
|
425
|
-
steps:
|
426
|
-
- restore_cache:
|
427
|
-
keys:
|
428
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.5-{{ .Environment.CIRCLE_SHA1 }}'
|
429
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.5-{{ .Environment.CIRCLE_SHA1 }}'
|
430
|
-
- *step_init_bundle_checksum
|
431
|
-
- restore_cache:
|
432
|
-
keys:
|
433
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.5-{{ checksum ".circleci/bundle_checksum" }}'
|
434
|
-
- *step_bundle_install
|
435
|
-
- *step_rubocop
|
436
|
-
- *step_appraisal_install
|
437
|
-
- *step_compute_bundle_checksum
|
438
|
-
- save_cache:
|
439
|
-
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.5-{{ .Environment.CIRCLE_SHA1 }}'
|
440
|
-
paths:
|
441
|
-
- /app
|
442
|
-
- save_cache:
|
443
|
-
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.5-{{ checksum ".circleci/bundle_checksum" }}'
|
444
|
-
paths:
|
445
|
-
- /usr/local/bundle
|
446
|
-
test-2.5:
|
447
|
-
<<: *job_defaults
|
448
|
-
docker:
|
449
|
-
- <<: *container-2_5
|
450
|
-
environment:
|
451
|
-
- TEST_DATADOG_INTEGRATION: 1
|
452
|
-
- *container_postgres
|
453
|
-
- *container_mysql
|
454
|
-
- *container_elasticsearch
|
455
|
-
- *container_redis
|
456
|
-
- *container_mongo
|
457
|
-
- *container_memcached
|
458
|
-
- *container_agent
|
459
|
-
steps:
|
460
|
-
- restore_cache:
|
461
|
-
keys:
|
462
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.5-{{ .Environment.CIRCLE_SHA1 }}'
|
463
|
-
- restore_cache:
|
464
|
-
keys:
|
465
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.5-{{ checksum ".circleci/bundle_checksum" }}'
|
466
|
-
- *step_run_all_tests
|
467
|
-
|
468
|
-
checkout-2.6:
|
469
|
-
<<: *job_defaults
|
470
|
-
docker:
|
471
|
-
- *container-2_6
|
472
|
-
steps:
|
473
|
-
- checkout
|
474
|
-
- save_cache:
|
475
|
-
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.6-{{ .Environment.CIRCLE_SHA1 }}'
|
476
|
-
paths:
|
477
|
-
- /app
|
478
|
-
build-2.6:
|
479
|
-
<<: *job_defaults
|
480
|
-
docker:
|
481
|
-
- *container-2_6
|
482
|
-
steps:
|
483
|
-
- restore_cache:
|
484
|
-
keys:
|
485
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.6-{{ .Environment.CIRCLE_SHA1 }}'
|
486
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-2.6-{{ .Environment.CIRCLE_SHA1 }}'
|
487
|
-
- *step_init_bundle_checksum
|
488
|
-
- restore_cache:
|
489
|
-
keys:
|
490
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.6-{{ checksum ".circleci/bundle_checksum" }}'
|
491
|
-
- *step_bundle_install
|
492
|
-
- *step_rubocop
|
493
|
-
- *step_appraisal_install
|
494
|
-
- *step_compute_bundle_checksum
|
495
|
-
- save_cache:
|
496
|
-
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.6-{{ .Environment.CIRCLE_SHA1 }}'
|
497
|
-
paths:
|
498
|
-
- /app
|
499
|
-
- save_cache:
|
500
|
-
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.6-{{ checksum ".circleci/bundle_checksum" }}'
|
501
|
-
paths:
|
502
|
-
- /usr/local/bundle
|
503
|
-
test-2.6:
|
504
|
-
<<: *job_defaults
|
505
|
-
docker:
|
506
|
-
- <<: *container-2_6
|
507
|
-
environment:
|
508
|
-
- TEST_DATADOG_INTEGRATION: 1
|
509
|
-
- *container_postgres
|
510
|
-
- *container_mysql
|
511
|
-
- *container_elasticsearch
|
512
|
-
- *container_redis
|
513
|
-
- *container_mongo
|
514
|
-
- *container_memcached
|
515
|
-
- *container_agent
|
516
|
-
steps:
|
517
|
-
- restore_cache:
|
518
|
-
keys:
|
519
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-2.6-{{ .Environment.CIRCLE_SHA1 }}'
|
520
|
-
- restore_cache:
|
521
|
-
keys:
|
522
|
-
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.6-{{ checksum ".circleci/bundle_checksum" }}'
|
523
|
-
- *step_run_all_tests
|
81
|
+
orbs:
|
82
|
+
orb:
|
83
|
+
jobs:
|
84
|
+
checkout:
|
85
|
+
<<: *job_defaults
|
86
|
+
parameters:
|
87
|
+
ruby_version:
|
88
|
+
description: Ruby version
|
89
|
+
type: string
|
90
|
+
image:
|
91
|
+
description: Docker image location
|
92
|
+
type: string
|
93
|
+
docker:
|
94
|
+
- <<: *container_base
|
95
|
+
image: <<parameters.image>>
|
96
|
+
steps:
|
97
|
+
- checkout
|
98
|
+
- save_cache:
|
99
|
+
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-<<parameters.ruby_version>>-{{ .Environment.CIRCLE_SHA1 }}'
|
100
|
+
paths:
|
101
|
+
- /app
|
102
|
+
build:
|
103
|
+
<<: *job_defaults
|
104
|
+
parameters:
|
105
|
+
ruby_version:
|
106
|
+
description: Ruby version
|
107
|
+
type: string
|
108
|
+
image:
|
109
|
+
description: Docker image location
|
110
|
+
type: string
|
111
|
+
rubocop:
|
112
|
+
description: Run Rubocop on this version of Ruby
|
113
|
+
type: boolean
|
114
|
+
default: true
|
115
|
+
docker:
|
116
|
+
- <<: *container_base
|
117
|
+
image: <<parameters.image>>
|
118
|
+
steps:
|
119
|
+
- restore_cache:
|
120
|
+
keys:
|
121
|
+
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-<<parameters.ruby_version>>-{{ .Environment.CIRCLE_SHA1 }}'
|
122
|
+
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-<<parameters.ruby_version>>-{{ .Environment.CIRCLE_SHA1 }}'
|
123
|
+
- *step_init_bundle_checksum
|
124
|
+
- restore_cache:
|
125
|
+
keys:
|
126
|
+
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-<<parameters.ruby_version>>-{{ checksum ".circleci/bundle_checksum" }}'
|
127
|
+
- *step_bundle_install
|
128
|
+
- when:
|
129
|
+
condition: <<parameters.rubocop>>
|
130
|
+
steps:
|
131
|
+
- *step_rubocop
|
132
|
+
- *step_appraisal_install
|
133
|
+
- *step_compute_bundle_checksum
|
134
|
+
- save_cache:
|
135
|
+
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-<<parameters.ruby_version>>-{{ .Environment.CIRCLE_SHA1 }}'
|
136
|
+
paths:
|
137
|
+
- /app
|
138
|
+
- save_cache:
|
139
|
+
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-<<parameters.ruby_version>>-{{ checksum ".circleci/bundle_checksum" }}'
|
140
|
+
paths:
|
141
|
+
- /usr/local/bundle
|
142
|
+
test:
|
143
|
+
<<: *job_defaults
|
144
|
+
parameters:
|
145
|
+
ruby_version:
|
146
|
+
description: Ruby version
|
147
|
+
type: string
|
148
|
+
image:
|
149
|
+
description: Docker image location
|
150
|
+
type: string
|
151
|
+
docker:
|
152
|
+
- <<: *container_base
|
153
|
+
image: <<parameters.image>>
|
154
|
+
environment:
|
155
|
+
- BUNDLE_GEMFILE: /app/Gemfile
|
156
|
+
- TEST_DATADOG_INTEGRATION: 1
|
157
|
+
- *container_postgres
|
158
|
+
- *container_mysql
|
159
|
+
- *container_elasticsearch
|
160
|
+
- *container_redis
|
161
|
+
- *container_mongo
|
162
|
+
- *container_memcached
|
163
|
+
- *container_agent
|
164
|
+
steps:
|
165
|
+
- restore_cache:
|
166
|
+
keys:
|
167
|
+
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-<<parameters.ruby_version>>-{{ .Environment.CIRCLE_SHA1 }}'
|
168
|
+
- restore_cache:
|
169
|
+
keys:
|
170
|
+
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-<<parameters.ruby_version>>-{{ checksum ".circleci/bundle_checksum" }}'
|
171
|
+
- *step_run_all_tests
|
172
|
+
benchmark:
|
173
|
+
<<: *job_defaults
|
174
|
+
parameters:
|
175
|
+
ruby_version:
|
176
|
+
description: Ruby version
|
177
|
+
type: string
|
178
|
+
image:
|
179
|
+
description: Docker image location
|
180
|
+
type: string
|
181
|
+
docker:
|
182
|
+
- <<: *container_base
|
183
|
+
image: <<parameters.image>>
|
184
|
+
environment:
|
185
|
+
- BUNDLE_GEMFILE: /app/Gemfile
|
186
|
+
- TEST_DATADOG_INTEGRATION: 1
|
187
|
+
- *container_postgres
|
188
|
+
- *container_redis
|
189
|
+
- *container_agent
|
190
|
+
steps:
|
191
|
+
- restore_cache:
|
192
|
+
keys:
|
193
|
+
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-<<parameters.ruby_version>>-{{ .Environment.CIRCLE_SHA1 }}'
|
194
|
+
- restore_cache:
|
195
|
+
keys:
|
196
|
+
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-<<parameters.ruby_version>>-{{ checksum ".circleci/bundle_checksum" }}'
|
197
|
+
- run:
|
198
|
+
name: Run Benchmark
|
199
|
+
command: bundle exec appraisal rails5-postgres-sidekiq ruby benchmarks/sidekiq_test.rb 2>&1 1> /dev/null | tee benchmark_results.csv
|
200
|
+
- run:
|
201
|
+
name: Run Benchmark without ddtracer
|
202
|
+
command: rm -f lib/ddtrace.rb && bundle exec appraisal rails5-postgres-sidekiq ruby benchmarks/sidekiq_test.rb 2>&1 1> /dev/null | tee benchmark_results.csv
|
203
|
+
commands:
|
204
|
+
executors:
|
524
205
|
|
206
|
+
jobs:
|
525
207
|
"deploy release":
|
526
208
|
<<: *job_defaults
|
527
209
|
docker:
|
528
|
-
- *
|
210
|
+
- <<: *container_base
|
211
|
+
image: marcotc/docker-library:ddtrace_rb_2_5_6
|
529
212
|
steps:
|
530
213
|
- checkout
|
531
214
|
- run:
|
@@ -543,7 +226,8 @@ jobs:
|
|
543
226
|
"deploy prerelease Gem":
|
544
227
|
<<: *job_defaults
|
545
228
|
docker:
|
546
|
-
- *
|
229
|
+
- <<: *container_base
|
230
|
+
image: marcotc/docker-library:ddtrace_rb_2_5_6
|
547
231
|
steps:
|
548
232
|
- run:
|
549
233
|
name: Check if this commit author has publishing credentials
|
@@ -573,101 +257,154 @@ jobs:
|
|
573
257
|
path: pkg/
|
574
258
|
destination: gem
|
575
259
|
|
260
|
+
job_configuration:
|
261
|
+
- &config-2_0
|
262
|
+
<<: *filters_all_branches_and_tags
|
263
|
+
ruby_version: '2.0'
|
264
|
+
image: palazzem/docker-library:ddtrace_rb_2_0_0
|
265
|
+
- &config-2_1
|
266
|
+
<<: *filters_all_branches_and_tags
|
267
|
+
ruby_version: '2.1'
|
268
|
+
image: palazzem/docker-library:ddtrace_rb_2_1_10
|
269
|
+
- &config-2_2
|
270
|
+
<<: *filters_all_branches_and_tags
|
271
|
+
ruby_version: '2.2'
|
272
|
+
image: palazzem/docker-library:ddtrace_rb_2_2_10
|
273
|
+
- &config-2_3
|
274
|
+
<<: *filters_all_branches_and_tags
|
275
|
+
ruby_version: '2.3'
|
276
|
+
image: palazzem/docker-library:ddtrace_rb_2_3_8
|
277
|
+
- &config-2_4
|
278
|
+
<<: *filters_all_branches_and_tags
|
279
|
+
ruby_version: '2.4'
|
280
|
+
image: palazzem/docker-library:ddtrace_rb_2_4_6
|
281
|
+
- &config-2_5
|
282
|
+
<<: *filters_all_branches_and_tags
|
283
|
+
ruby_version: '2.5'
|
284
|
+
image: marcotc/docker-library:ddtrace_rb_2_5_6
|
285
|
+
- &config-2_6
|
286
|
+
<<: *filters_all_branches_and_tags
|
287
|
+
ruby_version: '2.6'
|
288
|
+
image: marcotc/docker-library:ddtrace_rb_2_6_4
|
289
|
+
|
576
290
|
workflows:
|
577
291
|
version: 2
|
578
292
|
build-and-test:
|
579
293
|
jobs:
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
294
|
+
- orb/checkout:
|
295
|
+
<<: *config-2_0
|
296
|
+
name: checkout-2.0
|
297
|
+
- orb/build:
|
298
|
+
<<: *config-2_0
|
299
|
+
rubocop: false
|
300
|
+
name: build-2.0
|
301
|
+
requires:
|
302
|
+
- checkout-2.0
|
303
|
+
- orb/test:
|
304
|
+
<<: *config-2_0
|
305
|
+
name: test-2.0
|
306
|
+
requires:
|
307
|
+
- build-2.0
|
308
|
+
- orb/checkout:
|
309
|
+
<<: *config-2_1
|
310
|
+
name: checkout-2.1
|
311
|
+
- orb/build:
|
312
|
+
<<: *config-2_1
|
313
|
+
name: build-2.1
|
314
|
+
requires:
|
315
|
+
- checkout-2.1
|
316
|
+
- orb/test:
|
317
|
+
<<: *config-2_1
|
318
|
+
name: test-2.1
|
319
|
+
requires:
|
320
|
+
- build-2.1
|
321
|
+
- orb/checkout:
|
322
|
+
<<: *config-2_2
|
323
|
+
name: checkout-2.2
|
324
|
+
- orb/build:
|
325
|
+
<<: *config-2_2
|
326
|
+
name: build-2.2
|
327
|
+
requires:
|
328
|
+
- checkout-2.2
|
329
|
+
- orb/test:
|
330
|
+
<<: *config-2_2
|
331
|
+
name: test-2.2
|
332
|
+
requires:
|
333
|
+
- build-2.2
|
334
|
+
- orb/checkout:
|
335
|
+
<<: *config-2_3
|
336
|
+
name: checkout-2.3
|
337
|
+
- orb/build:
|
338
|
+
<<: *config-2_3
|
339
|
+
name: build-2.3
|
340
|
+
requires:
|
341
|
+
- checkout-2.3
|
342
|
+
- orb/test:
|
343
|
+
<<: *config-2_3
|
344
|
+
name: test-2.3
|
345
|
+
requires:
|
346
|
+
- build-2.3
|
347
|
+
- orb/benchmark:
|
348
|
+
<<: *config-2_3
|
349
|
+
name: benchmark-2.3
|
350
|
+
requires:
|
351
|
+
- build-2.3
|
352
|
+
- orb/checkout:
|
353
|
+
<<: *config-2_4
|
354
|
+
name: checkout-2.4
|
355
|
+
- orb/build:
|
356
|
+
<<: *config-2_4
|
357
|
+
name: build-2.4
|
358
|
+
requires:
|
359
|
+
- checkout-2.4
|
360
|
+
- orb/test:
|
361
|
+
<<: *config-2_4
|
362
|
+
name: test-2.4
|
363
|
+
requires:
|
364
|
+
- build-2.4
|
365
|
+
- orb/checkout:
|
366
|
+
<<: *config-2_5
|
367
|
+
name: checkout-2.5
|
368
|
+
- orb/build:
|
369
|
+
<<: *config-2_5
|
370
|
+
name: build-2.5
|
371
|
+
requires:
|
372
|
+
- checkout-2.5
|
373
|
+
- orb/test:
|
374
|
+
<<: *config-2_5
|
375
|
+
name: test-2.5
|
376
|
+
requires:
|
377
|
+
- build-2.5
|
378
|
+
- orb/checkout:
|
379
|
+
<<: *config-2_6
|
380
|
+
name: checkout-2.6
|
381
|
+
- orb/build:
|
382
|
+
<<: *config-2_6
|
383
|
+
name: build-2.6
|
384
|
+
requires:
|
385
|
+
- checkout-2.6
|
386
|
+
- orb/test:
|
387
|
+
<<: *config-2_6
|
388
|
+
name: test-2.6
|
389
|
+
requires:
|
390
|
+
- build-2.6
|
391
|
+
- "deploy prerelease Gem":
|
392
|
+
<<: *filters_all_branches_and_tags
|
393
|
+
requires:
|
394
|
+
- test-2.0
|
395
|
+
- test-2.1
|
396
|
+
- test-2.2
|
397
|
+
- test-2.3
|
398
|
+
- test-2.4
|
399
|
+
- test-2.5
|
400
|
+
- test-2.6
|
401
|
+
- "deploy release":
|
402
|
+
<<: *filters_only_release_tags
|
403
|
+
requires:
|
404
|
+
- test-2.0
|
405
|
+
- test-2.1
|
406
|
+
- test-2.2
|
407
|
+
- test-2.3
|
408
|
+
- test-2.4
|
409
|
+
- test-2.5
|
410
|
+
- test-2.6
|