File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,15 @@ name: Metadata Update
22
33on :
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
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
Original file line number Diff line number Diff line change @@ -7,6 +7,15 @@ set -euo pipefail
77
88source " $( 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)
1120ALL_TASKS=()
1221for task in " ${INSTRUMENTATIONS[@]} " ; do
1928echo " 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
3647fi
3748
You can’t perform that action at this time.
0 commit comments