Skip to content

Commit 8b93274

Browse files
committed
WIP
1 parent 2b4c033 commit 8b93274

File tree

2 files changed

+31
-25
lines changed

2 files changed

+31
-25
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,16 +1521,11 @@ jobs:
15211521
name: upload/junit
15221522
if: "!cancelled()"
15231523
runs-on: ubuntu-24.04
1524-
container:
1525-
image: datadog/ci
1526-
credentials:
1527-
username: "${{ secrets.DOCKERHUB_USERNAME }}"
1528-
password: "${{ secrets.DOCKERHUB_TOKEN }}"
1529-
env:
1530-
DD_APP_KEY: "${{ secrets.DD_APP_KEY }}"
1531-
DD_API_KEY: "${{ secrets.DD_API_KEY }}"
1532-
DD_ENV: ci
1533-
DATADOG_SITE: datadoghq.com
1524+
env:
1525+
DD_APP_KEY: "${{ secrets.DD_APP_KEY }}"
1526+
DD_API_KEY: "${{ secrets.DD_API_KEY }}"
1527+
DD_ENV: ci
1528+
DATADOG_SITE: datadoghq.com
15341529
needs:
15351530
- build-test-ruby-34
15361531
- build-test-ruby-33
@@ -1544,12 +1539,15 @@ jobs:
15441539
- build-test-jruby-93
15451540
- build-test-jruby-92
15461541
steps:
1542+
- run: >-
1543+
curl -L --fail --retry 5 "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output
1544+
"/usr/local/bin/datadog-ci" && chmod +x /usr/local/bin/datadog-ci
15471545
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1548-
- run: ls .github
15491546
- run: mkdir -p tmp/rspec && datadog-ci version
15501547
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
15511548
with:
15521549
path: tmp/rspec
15531550
pattern: junit-*
15541551
merge-multiple: true
1552+
- run: sed -i 's;file="./;file=";g' tmp/rspec/*.xml
15551553
- run: datadog-ci junit upload --verbose --service dd-trace-rb tmp/rspec/

tasks/github.rake

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -271,23 +271,31 @@ namespace :github do
271271
'name' => 'upload/junit',
272272
'if' => '!cancelled()',
273273
'runs-on' => ubuntu,
274-
'container' => {
275-
'image' => 'datadog/ci',
276-
'credentials' => {
277-
'username' => '${{ secrets.DOCKERHUB_USERNAME }}',
278-
'password' => '${{ secrets.DOCKERHUB_TOKEN }}'
279-
},
280-
'env' => {
281-
'DD_APP_KEY' => '${{ secrets.DD_APP_KEY }}',
282-
'DD_API_KEY' => '${{ secrets.DD_API_KEY }}',
283-
'DD_ENV' => 'ci',
284-
'DATADOG_SITE' => 'datadoghq.com'
285-
}
274+
'env' => {
275+
'DD_APP_KEY' => '${{ secrets.DD_APP_KEY }}',
276+
'DD_API_KEY' => '${{ secrets.DD_API_KEY }}',
277+
'DD_ENV' => 'ci',
278+
'DATADOG_SITE' => 'datadoghq.com'
286279
},
280+
# 'container' => {
281+
# 'image' => 'datadog/ci',
282+
# 'credentials' => {
283+
# 'username' => '${{ secrets.DOCKERHUB_USERNAME }}',
284+
# 'password' => '${{ secrets.DOCKERHUB_TOKEN }}'
285+
# },
286+
# 'env' => {
287+
# 'DD_APP_KEY' => '${{ secrets.DD_APP_KEY }}',
288+
# 'DD_API_KEY' => '${{ secrets.DD_API_KEY }}',
289+
# 'DD_ENV' => 'ci',
290+
# 'DATADOG_SITE' => 'datadoghq.com'
291+
# }
292+
# },
287293
'needs' => runtimes.map(&:build_test_id),
288294
'steps' => [
295+
# rubocop:disable Layout/LineLength
296+
{ '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' },
297+
# rubocop:enable Layout/LineLength
289298
{ 'uses' => 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' },
290-
{ 'run' => 'ls .github' },
291299
{ 'run' => 'mkdir -p tmp/rspec && datadog-ci version' },
292300
{
293301
'uses' => 'actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16',
@@ -297,7 +305,7 @@ namespace :github do
297305
'merge-multiple' => true
298306
}
299307
},
300-
# { 'run' => "sed -i 's;file=\"\.\/;file=\";g' tmp/rspec/*.xml" },
308+
{ 'run' => "sed -i 's;file=\"\.\/;file=\";g' tmp/rspec/*.xml" },
301309
{ 'run' => 'datadog-ci junit upload --verbose --service dd-trace-rb tmp/rspec/' },
302310
]
303311
}

0 commit comments

Comments
 (0)