Skip to content

Commit aa26687

Browse files
wip - test new reporter (#10032)
* test new reporter * fix circleci docker builds - remove deprecated docker signing
1 parent d30caa0 commit aa26687

File tree

5 files changed

+56
-22
lines changed

5 files changed

+56
-22
lines changed

.circleci/config.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -153,19 +153,6 @@ commands:
153153
- store_artifacts:
154154
path: build/test-artifacts
155155

156-
docker_trust_sign:
157-
description: "Sign docker images"
158-
steps:
159-
- run:
160-
name: "Sign Docker images"
161-
command: |
162-
docker login --username "${DOCKER_USER_RW}" --password "${DOCKER_PASSWORD_RW}"
163-
# dct signing setup
164-
mkdir -p $HOME/.docker/trust/private
165-
echo $DCT_KEY | base64 --decode > $HOME/.docker/trust/private/$DCT_HASH.key
166-
chmod 600 $HOME/.docker/trust/private/$DCT_HASH.key
167-
docker trust key load $HOME/.docker/trust/private/$DCT_HASH.key --name ecosystem
168-
169156
docker_publish_images:
170157
description: "Upload the docker images"
171158
steps:
@@ -480,7 +467,6 @@ jobs:
480467
- prepare
481468
- attach_workspace:
482469
at: ~/project
483-
- docker_trust_sign
484470
- docker_publish_images
485471
- notify
486472

@@ -491,7 +477,6 @@ jobs:
491477
- prepare
492478
- attach_workspace:
493479
at: ~/project
494-
- docker_trust_sign
495480
- docker_publish_images
496481
- notify
497482

.github/actions/collate-junit-reports/action.yml

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ runs:
2121
run: |
2222
tree reports/
2323
24-
# https://github.com/dorny/test-reporter
25-
- name: Test Reporter
24+
# # https://github.com/dorny/test-reporter
25+
- name: Junit Test Reporter
2626
uses: dorny/test-reporter@v2
2727
env:
2828
NODE_OPTIONS: "--max_old_space_size=4096"
@@ -35,3 +35,47 @@ runs:
3535
list-suites: 'failed'
3636
use-actions-summary: 'true'
3737
# all/none/failed
38+
39+
- name: Setup Node.js
40+
uses: actions/setup-node@v3
41+
with:
42+
node-version: '22'
43+
44+
# Convert JUnit XML to CTRF JSON
45+
- name: Convert JUnit to CTRF
46+
shell: bash
47+
run: |
48+
npm install -g junit-to-ctrf
49+
mkdir -p ./ctrf/${{inputs.stage_key}}/
50+
npx junit-to-ctrf 'reports/${{inputs.stage_key}}/**/TEST-*.xml' -o ./ctrf/${{inputs.stage_key}}/ctrf-report.json
51+
52+
# Publish test report
53+
- name: Publish Summary of Test Reports
54+
uses: ctrf-io/github-test-reporter@v1
55+
with:
56+
report-path: './ctrf/${{inputs.stage_key}}/ctrf-report.json'
57+
# Disable PR interaction
58+
pull-request: false
59+
status-check: false
60+
update-comment: false
61+
overwrite-comment: true
62+
# generate reports
63+
suite-folded-report: false
64+
summary-report: true
65+
failed-report: true
66+
flaky-report: true
67+
# some aggregated analytics and trends (failures over time, etc)
68+
insights-report: true
69+
# Enables a full test report type — typically lists all tests and their statuses, not just failed.
70+
test-report: false
71+
previous-results-report: true
72+
max-previous-runs-to-fetch: 10
73+
report-order: 'summary-report,failed-report,flaky-report,insights-report,test-report'
74+
env:
75+
GITHUB_TOKEN: ${{ github.token }}
76+
77+
- name: Upload CTRF artifact
78+
uses: actions/upload-artifact@v4
79+
with:
80+
name: ctrf-${{inputs.stage_key}}-tests
81+
path: ./ctrf/${{inputs.stage_key}}/ctrf-report.json

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ name: ci
2525
# gha-runner-scale-set-ubuntu-22.04-amd64-xl = 16 , 64G
2626
# gha-runner-scale-set-ubuntu-22.04-amd64-xxl = 32 , 128G
2727

28-
29-
3028
on:
3129
push:
3230
branches:
@@ -317,7 +315,7 @@ jobs:
317315
gradle_task: acceptanceTest
318316
src_pattern: "*/src/acceptance-test/java/*"
319317
src_root: "src/acceptance-test/java"
320-
runner: "gha-runner-scale-set-ubuntu-22.04-amd64-xxl"
318+
runner: "ubuntu-latest-128"
321319

322320
acceptanceTestsReport:
323321
runs-on: ubuntu-24.04

.github/workflows/publish-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
permissions:
2828
contents: read
2929
id-token: write
30-
environment: dev
30+
environment: publish
3131
steps:
3232
- name: Checkout
3333
uses: actions/checkout@v5

.github/workflows/publish-release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,21 @@ jobs:
1616
runs-on: ubuntu-24.04
1717
permissions:
1818
contents: write
19-
environment: dev
19+
environment: publish
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v5
2323
with:
2424
submodules: 'recursive'
2525
- name: Prepare
2626
uses: ./.github/actions/prepare
27+
- name: Install python deps for cloudsmith
28+
run: |
29+
sudo apt update
30+
sudo apt install python3 python3-pip python3-venv
31+
- name: Publish to Cloudsmith
32+
run: |
33+
./gradlew --no-daemon --parallel --info cloudsmithUpload publish
2734
- name: create distributions dir
2835
shell: bash
2936
run: |

0 commit comments

Comments
 (0)