From 2ee4202bff96f9a27853cf5f6d9f2130a1a82a50 Mon Sep 17 00:00:00 2001 From: Fiona Date: Sun, 31 May 2026 11:41:49 +0800 Subject: [PATCH] ci: drop `clean` from build step to fix Kover failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous change ran `clean bundleReleaseAar testReleaseUnitTest` in one Gradle invocation, which failed on `:dd-sdk-android-core:testReleaseUnitTest` with `java.io.FileNotFoundException: .../testReleaseUnitTest/kover-agent.args (No such file or directory)`: `clean` wipes `build/tmp` and races with Kover's agent-args generation when they run in the same invocation. Reproduced locally: `clean + testReleaseUnitTest` together fails identically; `testReleaseUnitTest` alone succeeds. `clean` is unnecessary anyway — the CI runner is ephemeral (fresh checkout, empty build/, only ~/.gradle is cached), so drop it. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/publish-maven.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-maven.yml b/.github/workflows/publish-maven.yml index 3fa0aa448c..475240c684 100644 --- a/.github/workflows/publish-maven.yml +++ b/.github/workflows/publish-maven.yml @@ -56,8 +56,12 @@ jobs: # automatically; it packages the real artifacts as a fail-fast gate before # publishing. `testReleaseUnitTest` compiles and tests the library release # sources. + # NOTE: no `clean` here. The runner is ephemeral (fresh checkout, empty + # build/), so clean is unnecessary; worse, running `clean` in the same + # invocation as `testReleaseUnitTest` races with Kover and fails with + # "kover-agent.args (No such file or directory)" as clean wipes build/tmp. - name: Build and test SDK library modules - run: ./gradlew clean bundleReleaseAar testReleaseUnitTest --stacktrace + run: ./gradlew bundleReleaseAar testReleaseUnitTest --stacktrace - name: Stop Gradle Daemon run: ./gradlew --stop