From 7676087fda0afa859a4f7c4b40512b2a10f78092 Mon Sep 17 00:00:00 2001 From: Mickael Bourgois Date: Thu, 12 Mar 2026 20:17:41 +0100 Subject: [PATCH 1/3] CLDSRV-835: Add mongodb logs to CI artifacts --- .github/docker/docker-compose.yaml | 2 ++ .github/docker/mongodb/conf/mongo-run.sh | 4 ++++ .github/docker/mongodb/conf/mongod.conf | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/.github/docker/docker-compose.yaml b/.github/docker/docker-compose.yaml index bd8c5e4a35..4660eb91dc 100644 --- a/.github/docker/docker-compose.yaml +++ b/.github/docker/docker-compose.yaml @@ -93,6 +93,8 @@ services: network_mode: "host" profiles: ['mongo', 'ceph'] image: ${MONGODB_IMAGE} + volumes: + - /tmp/artifacts/${JOB_NAME}:/logs ceph: network_mode: "host" profiles: ['ceph'] diff --git a/.github/docker/mongodb/conf/mongo-run.sh b/.github/docker/mongodb/conf/mongo-run.sh index 0465eb7ea5..149da98f02 100644 --- a/.github/docker/mongodb/conf/mongo-run.sh +++ b/.github/docker/mongodb/conf/mongo-run.sh @@ -7,4 +7,8 @@ init_RS() { } init_RS & +# Pre-create log file as world-readable; mongod (logAppend: true) opens it without resetting permissions +# Otherwise mongod create the file with 600 permissions, preventing CI artifact upload +touch /logs/mongod.log && chmod 644 /logs/mongod.log + mongod --bind_ip_all --config=/conf/mongod.conf diff --git a/.github/docker/mongodb/conf/mongod.conf b/.github/docker/mongodb/conf/mongod.conf index 9e3ab101f2..8a75d9a605 100644 --- a/.github/docker/mongodb/conf/mongod.conf +++ b/.github/docker/mongodb/conf/mongod.conf @@ -1,3 +1,7 @@ +systemLog: + destination: file + path: "/logs/mongod.log" + logAppend: true storage: journal: enabled: true From e83e6f1827fe830de0d0dce74cf6d627d5554ea8 Mon Sep 17 00:00:00 2001 From: Mickael Bourgois Date: Thu, 12 Mar 2026 20:31:41 +0100 Subject: [PATCH 2/3] CLDSRV-835: Add telemetry to action summary Copy of https://github.com/scality/MetaData/pull/2273 To help debug CI flakiness --- .github/actions/setup-ci/action.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/actions/setup-ci/action.yaml b/.github/actions/setup-ci/action.yaml index 857b2f23d1..f5e4216be5 100644 --- a/.github/actions/setup-ci/action.yaml +++ b/.github/actions/setup-ci/action.yaml @@ -52,3 +52,12 @@ runs: run: | cat config.json | jq -r '.rateLimiting = {enabled: true, nodes: 6, serviceUserArn: "arn:aws:iam::123456789013:root"}' > config.json.new mv config.json.new config.json + - name: Collect Workflow Telemetry + # uses: catchpoint/workflow-telemetry-action@v2 + # Use a fork that fixes chart issue + # https://github.com/catchpoint/workflow-telemetry-action/pull/98 + uses: whywaita/workflow-telemetry-action@use_quickchart + with: + theme: dark + comment_on_pr: false + proc_trace_chart_show: false From 0b93adb54db6f163c5d2f66ed3849c0b795aa10b Mon Sep 17 00:00:00 2001 From: Mickael Bourgois Date: Wed, 18 Mar 2026 16:53:26 +0100 Subject: [PATCH 3/3] CLDSRV-835: Workflow telemetry use commit sha To avoid supply chain attack if branch is pushed new commits --- .github/actions/setup-ci/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-ci/action.yaml b/.github/actions/setup-ci/action.yaml index f5e4216be5..e9aef3c59d 100644 --- a/.github/actions/setup-ci/action.yaml +++ b/.github/actions/setup-ci/action.yaml @@ -56,7 +56,7 @@ runs: # uses: catchpoint/workflow-telemetry-action@v2 # Use a fork that fixes chart issue # https://github.com/catchpoint/workflow-telemetry-action/pull/98 - uses: whywaita/workflow-telemetry-action@use_quickchart + uses: whywaita/workflow-telemetry-action@9861d94d4f5862a5b8c5e863cf9a156a1b950738 with: theme: dark comment_on_pr: false