Skip to content

Commit 215a39a

Browse files
authored
Turn down logging in metadata job (#15588)
1 parent a1072cd commit 215a39a

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/metadata-update.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ name: Metadata Update
22

33
on:
44
workflow_dispatch: # allow this to be manually triggered
5+
inputs:
6+
debug_logging:
7+
description: 'Enable debug logging'
8+
required: false
9+
default: 'false'
10+
type: choice
11+
options:
12+
- 'false'
13+
- 'true'
514
schedule:
615
- cron: "00 1 * * *" # daily at 1:00 UTC
716

@@ -44,6 +53,8 @@ jobs:
4453
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
4554

4655
- name: Collect telemetry
56+
env:
57+
DEBUG_LOGGING: ${{ inputs.debug_logging || 'false' }}
4758
run: ./instrumentation-docs/ci-collect.sh
4859

4960
- name: Run documentation analyzer

instrumentation-docs/ci-collect.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ set -euo pipefail
77

88
source "$(dirname "$0")/instrumentations.sh"
99

10+
# Configure Gradle flags based on DEBUG_LOGGING environment variable
11+
GRADLE_FLAGS=()
12+
if [[ "${DEBUG_LOGGING:-false}" != "true" ]]; then
13+
GRADLE_FLAGS+=(--no-daemon --quiet)
14+
echo "Running with reduced logging (set DEBUG_LOGGING=true to enable full output)"
15+
else
16+
echo "Running with full debug logging enabled"
17+
fi
18+
1019
# Collect standard and colima tasks (without testLatestDeps)
1120
ALL_TASKS=()
1221
for task in "${INSTRUMENTATIONS[@]}"; do
@@ -19,6 +28,7 @@ done
1928
echo "Processing standard instrumentations..."
2029
./gradlew "${ALL_TASKS[@]}" \
2130
-PcollectMetadata=true \
31+
"${GRADLE_FLAGS[@]}" \
2232
--rerun-tasks --continue
2333

2434
# Collect and run tasks that need testLatestDeps
@@ -32,6 +42,7 @@ if [[ ${#LATEST_DEPS_TASKS[@]} -gt 0 ]]; then
3242
./gradlew "${LATEST_DEPS_TASKS[@]}" \
3343
-PcollectMetadata=true \
3444
-PtestLatestDeps=true \
45+
"${GRADLE_FLAGS[@]}" \
3546
--rerun-tasks --continue
3647
fi
3748

0 commit comments

Comments
 (0)