Skip to content

Kotlin: Update tests to use new kotlin_2_3_20 fixture#22048

Open
jketema wants to merge 2 commits into
mainfrom
jketema/kotlin1-pytest
Open

Kotlin: Update tests to use new kotlin_2_3_20 fixture#22048
jketema wants to merge 2 commits into
mainfrom
jketema/kotlin1-pytest

Conversation

@jketema

@jketema jketema commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the Java label Jun 24, 2026
@jketema jketema added the depends on internal PR This PR should only be merged in sync with an internal Semmle PR label Jun 24, 2026
@jketema jketema requested a review from redsun82 June 24, 2026 21:37
@jketema jketema marked this pull request as ready for review June 24, 2026 21:39
@jketema jketema requested a review from a team as a code owner June 24, 2026 21:39
Copilot AI review requested due to automatic review settings June 24, 2026 21:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates a set of Kotlin integration tests to compile using a new Kotlin 2.3.20 compiler fixture, aligning test execution with the intended Kotlin toolchain selection rather than relying on a default kotlinc on PATH.

Changes:

  • Remove pytest import / @pytest.mark.kotlin1 usage in the updated tests.
  • Inject a kotlinc_2_3_20 fixture into affected tests and use it to run kotlinc commands.
  • Keep tests pinned to Kotlin language version 1.9 for compilation (where specified).
Show a summary per file
File Description
java/ql/integration-tests/kotlin/all-platforms/kotlin_java_lowering_wildcards/test.py Switches Kotlin compilation to kotlinc_2_3_20 within a multi-step database creation command.
java/ql/integration-tests/kotlin/all-platforms/java-interface-redeclares-tostring/test.py Uses kotlinc_2_3_20 for compiling the Kotlin user file.
java/ql/integration-tests/kotlin/all-platforms/file_classes/test.py Uses kotlinc_2_3_20 for compiling Kotlin sources before/while creating the DB.
java/ql/integration-tests/kotlin/all-platforms/extractor_information_kotlin1/test.py Uses kotlinc_2_3_20 for the extractor information test compilation.
java/ql/integration-tests/kotlin/all-platforms/external-property-overloads/test.py Uses kotlinc_2_3_20 for both library and user compilation steps.
java/ql/integration-tests/kotlin/all-platforms/enhanced-nullability/test.py Uses kotlinc_2_3_20 for Kotlin compilation in a mixed Java/Kotlin build.

Copilot's findings

  • Files reviewed: 6/6 changed files
  • Comments generated: 1

Comment on lines 8 to +11
command=[
"kotlinc kotlindefns.kt",
f"{kotlinc_2_3_20} kotlindefns.kt",
"javac JavaUser.java JavaDefns.java -cp .",
"kotlinc -language-version 1.9 -cp . kotlinuser.kt",
f"{kotlinc_2_3_20} -language-version 1.9 -cp . kotlinuser.kt",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

depends on internal PR This PR should only be merged in sync with an internal Semmle PR Java

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants