diff --git a/.github/actions/setup-ci/action.yaml b/.github/actions/setup-ci/action.yaml index 857b2f23d1..e9aef3c59d 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@9861d94d4f5862a5b8c5e863cf9a156a1b950738 + with: + theme: dark + comment_on_pr: false + proc_trace_chart_show: false 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