Skip to content

Commit c29743b

Browse files
committed
Use GitHub Actions default env var RUNNER_DEBUG to toggle --debug mode for the validation scripts
This environment variable is set when the "Enable debug logging" box is checked when rerunning GitHub Actions jobs
1 parent 5903b7b commit c29743b

File tree

5 files changed

+5
-40
lines changed

5 files changed

+5
-40
lines changed

Diff for: .github/actions/gradle/experiment-1/action.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ inputs:
2929
enableGradleEnterprise:
3030
description: "Enables Gradle Enterprise on a project not already connected"
3131
required: false
32-
debug:
33-
description: "Enable debug logging for this experiment of the build validation scripts"
34-
required: false
3532
outputs:
3633
buildScanFirstBuild:
3734
description: "First build scan url"
@@ -83,10 +80,6 @@ runs:
8380
if [ "${{ inputs.enableGradleEnterprise }}" == "true" ]; then
8481
ARG_GE_ENABLE="${{ inputs.enableGradleEnterprise }}"
8582
fi
86-
ARG_DEBUG=""
87-
if [ "${{ inputs.debug }}" == "true" ]; then
88-
ARG_DEBUG="${{ inputs.debug }}"
89-
fi
9083
9184
# Navigate into the folder containing the validation scripts
9285
cd gradle-enterprise-gradle-build-validation
@@ -102,7 +95,7 @@ runs:
10295
${ARG_ARGS:+"-a" "$ARG_ARGS"} \
10396
${ARG_GE_URL:+"-s" "$ARG_GE_URL"} \
10497
${ARG_GE_ENABLE:+"-e"} \
105-
${ARG_DEBUG:+"--debug"}
98+
${RUNNER_DEBUG:+"--debug"}
10699
107100
# Set the Build Scan urls as outputs
108101
RECEIPT_FILE=".data/01-validate-incremental-building/latest/exp1-*.receipt"

Diff for: .github/actions/gradle/experiment-2/action.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ inputs:
3232
failIfNotFullyCacheable:
3333
description: "Terminates with exit code 3 if the build is not fully cacheable"
3434
required: false
35-
debug:
36-
description: "Enable debug logging for this experiment of the build validation scripts"
37-
required: false
3835
outputs:
3936
buildScanFirstBuild:
4037
description: "First build scan url"
@@ -90,10 +87,6 @@ runs:
9087
if [ "${{ inputs.failIfNotFullyCacheable }}" == "true" ]; then
9188
ARG_FAIL_IF_NOT_FULLY_CACHEABLE="${{ inputs.failIfNotFullyCacheable }}"
9289
fi
93-
ARG_DEBUG=""
94-
if [ "${{ inputs.debug }}" == "true" ]; then
95-
ARG_DEBUG="${{ inputs.debug }}"
96-
fi
9790
9891
# Navigate into the folder containing the validation scripts
9992
cd gradle-enterprise-gradle-build-validation
@@ -110,7 +103,7 @@ runs:
110103
${ARG_GE_URL:+"-s" "$ARG_GE_URL"} \
111104
${ARG_GE_ENABLE:+"-e"} \
112105
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"} \
113-
${ARG_DEBUG:+"--debug"}
106+
${RUNNER_DEBUG:+"--debug"}
114107
115108
# Set the Build Scan urls as outputs
116109
RECEIPT_FILE=".data/02-validate-local-build-caching-same-location/latest/exp2-*.receipt"

Diff for: .github/actions/gradle/experiment-3/action.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ inputs:
3232
failIfNotFullyCacheable:
3333
description: "Terminates with exit code 3 if the build is not fully cacheable"
3434
required: false
35-
debug:
36-
description: "Enable debug logging for this experiment of the build validation scripts"
37-
required: false
3835
outputs:
3936
buildScanFirstBuild:
4037
description: "First build scan url"
@@ -90,10 +87,6 @@ runs:
9087
if [ "${{ inputs.failIfNotFullyCacheable }}" == "true" ]; then
9188
ARG_FAIL_IF_NOT_FULLY_CACHEABLE="${{ inputs.failIfNotFullyCacheable }}"
9289
fi
93-
ARG_DEBUG=""
94-
if [ "${{ inputs.debug }}" == "true" ]; then
95-
ARG_DEBUG="${{ inputs.debug }}"
96-
fi
9790
9891
# Navigate into the folder containing the validation scripts
9992
cd gradle-enterprise-gradle-build-validation
@@ -110,7 +103,7 @@ runs:
110103
${ARG_GE_URL:+"-s" "$ARG_GE_URL"} \
111104
${ARG_GE_ENABLE:+"-e"} \
112105
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"} \
113-
${ARG_DEBUG:+"--debug"}
106+
${RUNNER_DEBUG:+"--debug"}
114107
115108
# Set the Build Scan urls as outputs
116109
RECEIPT_FILE=".data/03-validate-local-build-caching-different-locations/latest/exp3-*.receipt"

Diff for: .github/actions/maven/experiment-1/action.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ inputs:
3232
failIfNotFullyCacheable:
3333
description: "Terminates with exit code 3 if the build is not fully cacheable"
3434
required: false
35-
debug:
36-
description: "Enable debug logging for this experiment of the build validation scripts"
37-
required: false
3835
outputs:
3936
buildScanFirstBuild:
4037
description: "First build scan url"
@@ -90,10 +87,6 @@ runs:
9087
if [ "${{ inputs.failIfNotFullyCacheable }}" == "true" ]; then
9188
ARG_FAIL_IF_NOT_FULLY_CACHEABLE="${{ inputs.failIfNotFullyCacheable }}"
9289
fi
93-
ARG_DEBUG=""
94-
if [ "${{ inputs.debug }}" == "true" ]; then
95-
ARG_DEBUG="${{ inputs.debug }}"
96-
fi
9790
9891
# Navigate into the folder containing the validation scripts
9992
cd gradle-enterprise-maven-build-validation
@@ -110,7 +103,7 @@ runs:
110103
${ARG_GE_URL:+"-s" "$ARG_GE_URL"} \
111104
${ARG_GE_ENABLE:+"-e"} \
112105
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"} \
113-
${ARG_DEBUG:+"--debug"}
106+
${RUNNER_DEBUG:+"--debug"}
114107
115108
# Set the Build Scan urls as outputs
116109
RECEIPT_FILE=".data/01-validate-local-build-caching-same-location/latest/exp1-*.receipt"

Diff for: .github/actions/maven/experiment-2/action.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ inputs:
3232
failIfNotFullyCacheable:
3333
description: "Terminates with exit code 3 if the build is not fully cacheable"
3434
required: false
35-
debug:
36-
description: "Enable debug logging for this experiment of the build validation scripts"
37-
required: false
3835
outputs:
3936
buildScanFirstBuild:
4037
description: "First build scan url"
@@ -90,10 +87,6 @@ runs:
9087
if [ "${{ inputs.failIfNotFullyCacheable }}" == "true" ]; then
9188
ARG_FAIL_IF_NOT_FULLY_CACHEABLE="${{ inputs.failIfNotFullyCacheable }}"
9289
fi
93-
ARG_DEBUG=""
94-
if [ "${{ inputs.debug }}" == "true" ]; then
95-
ARG_DEBUG="${{ inputs.debug }}"
96-
fi
9790
9891
# Navigate into the folder containing the validation scripts
9992
cd gradle-enterprise-maven-build-validation
@@ -110,7 +103,7 @@ runs:
110103
${ARG_GE_URL:+"-s" "$ARG_GE_URL"} \
111104
${ARG_GE_ENABLE:+"-e"} \
112105
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"} \
113-
${ARG_DEBUG:+"--debug"}
106+
${RUNNER_DEBUG:+"--debug"}
114107
115108
# Set the Build Scan urls as outputs
116109
RECEIPT_FILE=".data/02-validate-local-build-caching-different-locations/latest/exp2-*.receipt"

0 commit comments

Comments
 (0)