Skip to content

Fix suppressing compilation errors for dependencies in test framework - #3176

Merged
jaschdoc merged 2 commits into
mainfrom
fix-test-framework
Sep 3, 2026
Merged

Fix suppressing compilation errors for dependencies in test framework#3176
jaschdoc merged 2 commits into
mainfrom
fix-test-framework

Conversation

@jaschdoc

@jaschdoc jaschdoc commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

This change throws an exception if the exit code of the Kotlin compiler is not "OK". In the test framework, when using dependencies/libraries, the Kotlin compiler must first compile those modules before KSP can run on the source module. However, if the module cannot compile KSP should not run and the test is invalid. The old code did not check the exit code and would silently suppress compilation errors. This change makes the compilation error explicit, so invalid test dependencies are caught.

This change throws an exception if the exit code of the
Kotlin compiler is not "OK". In the test framework, when
using dependencies/libraries, the Kotlin compiler must first
compile those modules before KSP can run on the source module.
However, if the module cannot compile KSP should not run and the
test is invalid. The old code did not check the exit code
and would silently suppress compilation errors. This change
makes the compilation error explicit, so invalid test dependencies
are caught.
@jaschdoc
jaschdoc marked this pull request as ready for review September 2, 2026 19:10
@jaschdoc
jaschdoc enabled auto-merge September 3, 2026 08:02
@jaschdoc
jaschdoc added this pull request to the merge queue Sep 3, 2026
Merged via the queue into main with commit 8d6abec Sep 3, 2026
28 checks passed
@jaschdoc
jaschdoc deleted the fix-test-framework branch September 3, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants