Skip to content

Commit 6e75677

Browse files
committed
WIP
1 parent 8b93274 commit 6e75677

File tree

2 files changed

+29
-28
lines changed

2 files changed

+29
-28
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717
jobs:
1818
batch-ruby-34:
1919
runs-on: ubuntu-24.04
20-
name: Batch (ruby-3.4)
20+
name: batch (ruby-3.4)
2121
outputs:
2222
batches: "${{ steps.set-batches.outputs.batches }}"
2323
cache-key: "${{ steps.restore-cache.outputs.cache-primary-key }}"
@@ -53,7 +53,7 @@ jobs:
5353
needs:
5454
- batch-ruby-34
5555
runs-on: ubuntu-24.04
56-
name: Build & Test (ruby-3.4) [${{ matrix.batch }}]
56+
name: build & test (ruby-3.4) [${{ matrix.batch }}]
5757
env:
5858
BATCHED_TASKS: "${{ toJSON(matrix.tasks) }}"
5959
strategy:
@@ -152,7 +152,7 @@ jobs:
152152
path: tmp/rspec/*.xml
153153
batch-ruby-33:
154154
runs-on: ubuntu-24.04
155-
name: Batch (ruby-3.3)
155+
name: batch (ruby-3.3)
156156
outputs:
157157
batches: "${{ steps.set-batches.outputs.batches }}"
158158
cache-key: "${{ steps.restore-cache.outputs.cache-primary-key }}"
@@ -188,7 +188,7 @@ jobs:
188188
needs:
189189
- batch-ruby-33
190190
runs-on: ubuntu-24.04
191-
name: Build & Test (ruby-3.3) [${{ matrix.batch }}]
191+
name: build & test (ruby-3.3) [${{ matrix.batch }}]
192192
env:
193193
BATCHED_TASKS: "${{ toJSON(matrix.tasks) }}"
194194
strategy:
@@ -287,7 +287,7 @@ jobs:
287287
path: tmp/rspec/*.xml
288288
batch-ruby-32:
289289
runs-on: ubuntu-24.04
290-
name: Batch (ruby-3.2)
290+
name: batch (ruby-3.2)
291291
outputs:
292292
batches: "${{ steps.set-batches.outputs.batches }}"
293293
cache-key: "${{ steps.restore-cache.outputs.cache-primary-key }}"
@@ -323,7 +323,7 @@ jobs:
323323
needs:
324324
- batch-ruby-32
325325
runs-on: ubuntu-24.04
326-
name: Build & Test (ruby-3.2) [${{ matrix.batch }}]
326+
name: build & test (ruby-3.2) [${{ matrix.batch }}]
327327
env:
328328
BATCHED_TASKS: "${{ toJSON(matrix.tasks) }}"
329329
strategy:
@@ -422,7 +422,7 @@ jobs:
422422
path: tmp/rspec/*.xml
423423
batch-ruby-31:
424424
runs-on: ubuntu-24.04
425-
name: Batch (ruby-3.1)
425+
name: batch (ruby-3.1)
426426
outputs:
427427
batches: "${{ steps.set-batches.outputs.batches }}"
428428
cache-key: "${{ steps.restore-cache.outputs.cache-primary-key }}"
@@ -458,7 +458,7 @@ jobs:
458458
needs:
459459
- batch-ruby-31
460460
runs-on: ubuntu-24.04
461-
name: Build & Test (ruby-3.1) [${{ matrix.batch }}]
461+
name: build & test (ruby-3.1) [${{ matrix.batch }}]
462462
env:
463463
BATCHED_TASKS: "${{ toJSON(matrix.tasks) }}"
464464
strategy:
@@ -557,7 +557,7 @@ jobs:
557557
path: tmp/rspec/*.xml
558558
batch-ruby-30:
559559
runs-on: ubuntu-24.04
560-
name: Batch (ruby-3.0)
560+
name: batch (ruby-3.0)
561561
outputs:
562562
batches: "${{ steps.set-batches.outputs.batches }}"
563563
cache-key: "${{ steps.restore-cache.outputs.cache-primary-key }}"
@@ -593,7 +593,7 @@ jobs:
593593
needs:
594594
- batch-ruby-30
595595
runs-on: ubuntu-24.04
596-
name: Build & Test (ruby-3.0) [${{ matrix.batch }}]
596+
name: build & test (ruby-3.0) [${{ matrix.batch }}]
597597
env:
598598
BATCHED_TASKS: "${{ toJSON(matrix.tasks) }}"
599599
strategy:
@@ -692,7 +692,7 @@ jobs:
692692
path: tmp/rspec/*.xml
693693
batch-ruby-27:
694694
runs-on: ubuntu-24.04
695-
name: Batch (ruby-2.7)
695+
name: batch (ruby-2.7)
696696
outputs:
697697
batches: "${{ steps.set-batches.outputs.batches }}"
698698
cache-key: "${{ steps.restore-cache.outputs.cache-primary-key }}"
@@ -728,7 +728,7 @@ jobs:
728728
needs:
729729
- batch-ruby-27
730730
runs-on: ubuntu-24.04
731-
name: Build & Test (ruby-2.7) [${{ matrix.batch }}]
731+
name: build & test (ruby-2.7) [${{ matrix.batch }}]
732732
env:
733733
BATCHED_TASKS: "${{ toJSON(matrix.tasks) }}"
734734
strategy:
@@ -827,7 +827,7 @@ jobs:
827827
path: tmp/rspec/*.xml
828828
batch-ruby-26:
829829
runs-on: ubuntu-24.04
830-
name: Batch (ruby-2.6)
830+
name: batch (ruby-2.6)
831831
outputs:
832832
batches: "${{ steps.set-batches.outputs.batches }}"
833833
cache-key: "${{ steps.restore-cache.outputs.cache-primary-key }}"
@@ -863,7 +863,7 @@ jobs:
863863
needs:
864864
- batch-ruby-26
865865
runs-on: ubuntu-24.04
866-
name: Build & Test (ruby-2.6) [${{ matrix.batch }}]
866+
name: build & test (ruby-2.6) [${{ matrix.batch }}]
867867
env:
868868
BATCHED_TASKS: "${{ toJSON(matrix.tasks) }}"
869869
strategy:
@@ -962,7 +962,7 @@ jobs:
962962
path: tmp/rspec/*.xml
963963
batch-ruby-25:
964964
runs-on: ubuntu-24.04
965-
name: Batch (ruby-2.5)
965+
name: batch (ruby-2.5)
966966
outputs:
967967
batches: "${{ steps.set-batches.outputs.batches }}"
968968
cache-key: "${{ steps.restore-cache.outputs.cache-primary-key }}"
@@ -998,7 +998,7 @@ jobs:
998998
needs:
999999
- batch-ruby-25
10001000
runs-on: ubuntu-24.04
1001-
name: Build & Test (ruby-2.5) [${{ matrix.batch }}]
1001+
name: build & test (ruby-2.5) [${{ matrix.batch }}]
10021002
env:
10031003
BATCHED_TASKS: "${{ toJSON(matrix.tasks) }}"
10041004
strategy:
@@ -1097,7 +1097,7 @@ jobs:
10971097
path: tmp/rspec/*.xml
10981098
batch-jruby-94:
10991099
runs-on: ubuntu-24.04
1100-
name: Batch (jruby-9.4)
1100+
name: batch (jruby-9.4)
11011101
outputs:
11021102
batches: "${{ steps.set-batches.outputs.batches }}"
11031103
cache-key: "${{ steps.restore-cache.outputs.cache-primary-key }}"
@@ -1133,7 +1133,7 @@ jobs:
11331133
needs:
11341134
- batch-jruby-94
11351135
runs-on: ubuntu-24.04
1136-
name: Build & Test (jruby-9.4) [${{ matrix.batch }}]
1136+
name: build & test (jruby-9.4) [${{ matrix.batch }}]
11371137
env:
11381138
BATCHED_TASKS: "${{ toJSON(matrix.tasks) }}"
11391139
strategy:
@@ -1232,7 +1232,7 @@ jobs:
12321232
path: tmp/rspec/*.xml
12331233
batch-jruby-93:
12341234
runs-on: ubuntu-24.04
1235-
name: Batch (jruby-9.3)
1235+
name: batch (jruby-9.3)
12361236
outputs:
12371237
batches: "${{ steps.set-batches.outputs.batches }}"
12381238
cache-key: "${{ steps.restore-cache.outputs.cache-primary-key }}"
@@ -1268,7 +1268,7 @@ jobs:
12681268
needs:
12691269
- batch-jruby-93
12701270
runs-on: ubuntu-24.04
1271-
name: Build & Test (jruby-9.3) [${{ matrix.batch }}]
1271+
name: build & test (jruby-9.3) [${{ matrix.batch }}]
12721272
env:
12731273
BATCHED_TASKS: "${{ toJSON(matrix.tasks) }}"
12741274
strategy:
@@ -1367,7 +1367,7 @@ jobs:
13671367
path: tmp/rspec/*.xml
13681368
batch-jruby-92:
13691369
runs-on: ubuntu-24.04
1370-
name: Batch (jruby-9.2)
1370+
name: batch (jruby-9.2)
13711371
outputs:
13721372
batches: "${{ steps.set-batches.outputs.batches }}"
13731373
cache-key: "${{ steps.restore-cache.outputs.cache-primary-key }}"
@@ -1403,7 +1403,7 @@ jobs:
14031403
needs:
14041404
- batch-jruby-92
14051405
runs-on: ubuntu-24.04
1406-
name: Build & Test (jruby-9.2) [${{ matrix.batch }}]
1406+
name: build & test (jruby-9.2) [${{ matrix.batch }}]
14071407
env:
14081408
BATCHED_TASKS: "${{ toJSON(matrix.tasks) }}"
14091409
strategy:
@@ -1501,7 +1501,7 @@ jobs:
15011501
name: junit-jruby-92-${{ matrix.batch }}-${{ github.run_id }}
15021502
path: tmp/rspec/*.xml
15031503
complete:
1504-
name: Complete
1504+
name: complete
15051505
runs-on: ubuntu-24.04
15061506
needs:
15071507
- build-test-ruby-34
@@ -1542,12 +1542,12 @@ jobs:
15421542
- run: >-
15431543
curl -L --fail --retry 5 "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output
15441544
"/usr/local/bin/datadog-ci" && chmod +x /usr/local/bin/datadog-ci
1545-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
15461545
- run: mkdir -p tmp/rspec && datadog-ci version
15471546
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
15481547
with:
15491548
path: tmp/rspec
15501549
pattern: junit-*
15511550
merge-multiple: true
15521551
- run: sed -i 's;file="./;file=";g' tmp/rspec/*.xml
1552+
- run: cat tmp/rspec/*.xml
15531553
- run: datadog-ci junit upload --verbose --service dd-trace-rb tmp/rspec/

tasks/github.rake

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ namespace :github do
100100
runtimes.each do |runtime|
101101
jobs[runtime.batch_id] = {
102102
'runs-on' => ubuntu,
103-
'name' => "Batch (#{runtime.engine}-#{runtime.version})",
103+
'name' => "batch (#{runtime.engine}-#{runtime.version})",
104104
'outputs' => {
105105
'batches' => '${{ steps.set-batches.outputs.batches }}',
106106
'cache-key' => '${{ steps.restore-cache.outputs.cache-primary-key }}'
@@ -154,7 +154,7 @@ namespace :github do
154154
runtime.batch_id,
155155
],
156156
'runs-on' => ubuntu,
157-
'name' => "Build & Test (#{runtime.engine}-#{runtime.version}) [${{ matrix.batch }}]",
157+
'name' => "build & test (#{runtime.engine}-#{runtime.version}) [${{ matrix.batch }}]",
158158
'env' => { 'BATCHED_TASKS' => '${{ toJSON(matrix.tasks) }}' },
159159
'strategy' => {
160160
'fail-fast' => false,
@@ -260,7 +260,7 @@ namespace :github do
260260
},
261261
'jobs' => jobs.merge(
262262
'complete' => {
263-
'name' => 'Complete',
263+
'name' => 'complete',
264264
'runs-on' => ubuntu,
265265
'needs' => runtimes.map(&:build_test_id),
266266
'steps' => [
@@ -295,7 +295,7 @@ namespace :github do
295295
# rubocop:disable Layout/LineLength
296296
{ 'run' => 'curl -L --fail --retry 5 "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci" && chmod +x /usr/local/bin/datadog-ci' },
297297
# rubocop:enable Layout/LineLength
298-
{ 'uses' => 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' },
298+
# { 'uses' => 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' },
299299
{ 'run' => 'mkdir -p tmp/rspec && datadog-ci version' },
300300
{
301301
'uses' => 'actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16',
@@ -306,6 +306,7 @@ namespace :github do
306306
}
307307
},
308308
{ 'run' => "sed -i 's;file=\"\.\/;file=\";g' tmp/rspec/*.xml" },
309+
{ 'run' => 'cat tmp/rspec/*.xml' },
309310
{ 'run' => 'datadog-ci junit upload --verbose --service dd-trace-rb tmp/rspec/' },
310311
]
311312
}

0 commit comments

Comments
 (0)