Skip to content

Commit c8cdee2

Browse files
committed
Add input parameter to experiment actions for enabling debug logging
Signed-off-by: Tyler Bertrand <[email protected]>
1 parent d63783f commit c8cdee2

File tree

5 files changed

+45
-5
lines changed

5 files changed

+45
-5
lines changed

.github/actions/gradle/experiment-1/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ 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
3235
outputs:
3336
buildScanFirstBuild:
3437
description: "First build scan url"
@@ -80,6 +83,10 @@ runs:
8083
if [ "${{ inputs.enableGradleEnterprise }}" == "true" ]; then
8184
ARG_GE_ENABLE="${{ inputs.enableGradleEnterprise }}"
8285
fi
86+
ARG_DEBUG=""
87+
if [ "${{ inputs.debug }}" == "true" ]; then
88+
ARG_DEBUG="${{ inputs.debug }}"
89+
fi
8390
8491
# Navigate into the folder containing the validation scripts
8592
cd gradle-enterprise-gradle-build-validation
@@ -94,7 +101,8 @@ runs:
94101
${ARG_TASKS:+"-t" "$ARG_TASKS"} \
95102
${ARG_ARGS:+"-a" "$ARG_ARGS"} \
96103
${ARG_GE_URL:+"-s" "$ARG_GE_URL"} \
97-
${ARG_GE_ENABLE:+"-e"}
104+
${ARG_GE_ENABLE:+"-e"} \
105+
${ARG_DEBUG:+"--debug"}
98106
99107
# Set the Build Scan urls as outputs
100108
RECEIPT_FILE=".data/01-validate-incremental-building/latest/exp1-*.receipt"

.github/actions/gradle/experiment-2/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ 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
3538
outputs:
3639
buildScanFirstBuild:
3740
description: "First build scan url"
@@ -87,6 +90,10 @@ runs:
8790
if [ "${{ inputs.failIfNotFullyCacheable }}" == "true" ]; then
8891
ARG_FAIL_IF_NOT_FULLY_CACHEABLE="${{ inputs.failIfNotFullyCacheable }}"
8992
fi
93+
ARG_DEBUG=""
94+
if [ "${{ inputs.debug }}" == "true" ]; then
95+
ARG_DEBUG="${{ inputs.debug }}"
96+
fi
9097
9198
# Navigate into the folder containing the validation scripts
9299
cd gradle-enterprise-gradle-build-validation
@@ -102,7 +109,8 @@ runs:
102109
${ARG_ARGS:+"-a" "$ARG_ARGS"} \
103110
${ARG_GE_URL:+"-s" "$ARG_GE_URL"} \
104111
${ARG_GE_ENABLE:+"-e"} \
105-
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"}
112+
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"} \
113+
${ARG_DEBUG:+"--debug"}
106114
107115
# Set the Build Scan urls as outputs
108116
RECEIPT_FILE=".data/02-validate-local-build-caching-same-location/latest/exp2-*.receipt"

.github/actions/gradle/experiment-3/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ 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
3538
outputs:
3639
buildScanFirstBuild:
3740
description: "First build scan url"
@@ -87,6 +90,10 @@ runs:
8790
if [ "${{ inputs.failIfNotFullyCacheable }}" == "true" ]; then
8891
ARG_FAIL_IF_NOT_FULLY_CACHEABLE="${{ inputs.failIfNotFullyCacheable }}"
8992
fi
93+
ARG_DEBUG=""
94+
if [ "${{ inputs.debug }}" == "true" ]; then
95+
ARG_DEBUG="${{ inputs.debug }}"
96+
fi
9097
9198
# Navigate into the folder containing the validation scripts
9299
cd gradle-enterprise-gradle-build-validation
@@ -102,7 +109,8 @@ runs:
102109
${ARG_ARGS:+"-a" "$ARG_ARGS"} \
103110
${ARG_GE_URL:+"-s" "$ARG_GE_URL"} \
104111
${ARG_GE_ENABLE:+"-e"} \
105-
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"}
112+
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"} \
113+
${ARG_DEBUG:+"--debug"}
106114
107115
# Set the Build Scan urls as outputs
108116
RECEIPT_FILE=".data/03-validate-local-build-caching-different-locations/latest/exp3-*.receipt"

.github/actions/maven/experiment-1/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ 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
3538
outputs:
3639
buildScanFirstBuild:
3740
description: "First build scan url"
@@ -87,6 +90,10 @@ runs:
8790
if [ "${{ inputs.failIfNotFullyCacheable }}" == "true" ]; then
8891
ARG_FAIL_IF_NOT_FULLY_CACHEABLE="${{ inputs.failIfNotFullyCacheable }}"
8992
fi
93+
ARG_DEBUG=""
94+
if [ "${{ inputs.debug }}" == "true" ]; then
95+
ARG_DEBUG="${{ inputs.debug }}"
96+
fi
9097
9198
# Navigate into the folder containing the validation scripts
9299
cd gradle-enterprise-maven-build-validation
@@ -102,7 +109,8 @@ runs:
102109
${ARG_ARGS:+"-a" "$ARG_ARGS"} \
103110
${ARG_GE_URL:+"-s" "$ARG_GE_URL"} \
104111
${ARG_GE_ENABLE:+"-e"} \
105-
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"}
112+
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"} \
113+
${ARG_DEBUG:+"--debug"}
106114
107115
# Set the Build Scan urls as outputs
108116
RECEIPT_FILE=".data/01-validate-local-build-caching-same-location/latest/exp1-*.receipt"

.github/actions/maven/experiment-2/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ 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
3538
outputs:
3639
buildScanFirstBuild:
3740
description: "First build scan url"
@@ -87,6 +90,10 @@ runs:
8790
if [ "${{ inputs.failIfNotFullyCacheable }}" == "true" ]; then
8891
ARG_FAIL_IF_NOT_FULLY_CACHEABLE="${{ inputs.failIfNotFullyCacheable }}"
8992
fi
93+
ARG_DEBUG=""
94+
if [ "${{ inputs.debug }}" == "true" ]; then
95+
ARG_DEBUG="${{ inputs.debug }}"
96+
fi
9097
9198
# Navigate into the folder containing the validation scripts
9299
cd gradle-enterprise-maven-build-validation
@@ -102,7 +109,8 @@ runs:
102109
${ARG_ARGS:+"-a" "$ARG_ARGS"} \
103110
${ARG_GE_URL:+"-s" "$ARG_GE_URL"} \
104111
${ARG_GE_ENABLE:+"-e"} \
105-
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"}
112+
${ARG_FAIL_IF_NOT_FULLY_CACHEABLE:+"-f"} \
113+
${ARG_DEBUG:+"--debug"}
106114
107115
# Set the Build Scan urls as outputs
108116
RECEIPT_FILE=".data/02-validate-local-build-caching-different-locations/latest/exp2-*.receipt"

0 commit comments

Comments
 (0)