ci: fail the test shards on Kotlin compiler warnings (#7468)

This commit is contained in:
James Rich authored and GitHub committed 2026-09-30 00:30:32 +00:00
1 parent bb515dbdc9
commit 9a34f78a8f
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -309,7 +309,9 @@ jobs:
# CCUD tags every shard with the same `CI job=test-shards`, which is the largest
# single CI cost bucket and therefore the one worth splitting. Shard identity is
# otherwise only recoverable by parsing the requested task list.
./gradlew ${{ matrix.shard.tasks }} $kover_tasks -Pci=true -Pkotlin.daemon.useFallbackStrategy=false --continue \
# -PwarningsAsErrors: together the shards compile every main and test source set, so a new Kotlin
# compiler warning fails here.
./gradlew ${{ matrix.shard.tasks }} $kover_tasks -Pci=true -Pkotlin.daemon.useFallbackStrategy=false -PwarningsAsErrors=true --continue \
"-Dscan.value.CI shard=${{ matrix.shard.name }}"
# A test fork that dies in native code (exit 134) names no test, and the JVM's crash report is the