Skip to content

Commit aa0f655

Browse files
committed
feat: enhance test logging and add Docker-based test steps to release workflow
- Configured detailed test logging in `kotlin-jvm.gradle.kts` with full exception formats and stack traces. - Added Docker environment verification to the release workflow. - Integrated Spark big data matrix tests with failure artifact uploads for improved debugging. - Enabled stack trace and info output for Gradle release tasks.
1 parent d536120 commit aa0f655

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,26 @@ jobs:
5151
git config user.name "github-actions[bot]"
5252
git config user.email "github-actions[bot]@users.noreply.github.com"
5353
54+
- name: Verify Docker environment
55+
run: |
56+
docker version
57+
docker info
58+
59+
- name: Run Spark big data matrix tests
60+
run: |
61+
./gradlew --no-configuration-cache :example:spark:sparkBigDataMatrixTest --stacktrace --info
62+
63+
- name: Upload test reports
64+
if: failure()
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: test-reports
68+
path: |
69+
**/build/reports/tests/
70+
**/build/test-results/
71+
**/build/reports/problems/
72+
if-no-files-found: ignore
73+
5474
- name: Write signing key
5575
env:
5676
SIGNING_KEY_ASC: ${{ secrets.SIGNING_KEY_ASC }}
@@ -64,4 +84,4 @@ jobs:
6484
SIGNING_KEY_FILE: ${{ runner.temp }}/signing-key.asc
6585
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
6686
run: |
67-
./gradlew --no-configuration-cache release $EXTRA_GRADLE_ARGS
87+
./gradlew --no-configuration-cache release --stacktrace --info $EXTRA_GRADLE_ARGS

buildSrc/src/main/kotlin/kotlin-jvm.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
package buildsrc.convention
44

55
import org.gradle.api.tasks.testing.logging.TestLogEvent
6+
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
67

78
plugins {
89
// Apply the Kotlin JVM plugin to add support for Kotlin in JVM projects.
@@ -29,5 +30,10 @@ tasks.withType<Test>().configureEach {
2930
TestLogEvent.PASSED,
3031
TestLogEvent.SKIPPED
3132
)
33+
exceptionFormat = TestExceptionFormat.FULL
34+
showExceptions = true
35+
showCauses = true
36+
showStackTraces = true
37+
showStandardStreams = true
3238
}
33-
}
39+
}

0 commit comments

Comments
 (0)