Commit Graph

95891 Commits

Author SHA1 Message Date
Alexander Korepanov 43fbb0ba3e [JS IR] Drop IrNamerImpl.kt 2022-11-07 17:57:39 +00:00
Alexander Korepanov 7b8bd47b1a [JS IR] Drop MultiModuleSupport.kt 2022-11-07 17:57:39 +00:00
Alexander Korepanov 05395f716c [JS IR] Drop old IrModuleToJsTransformer 2022-11-07 17:57:39 +00:00
Alexander Korepanov d17794481d [JS IR] Replace IrModuleToJsTransformer with IrModuleToJsTransformerTmp 2022-11-07 17:57:38 +00:00
Vladimir Dolzhenko 2ec07b861b Add languageSetting provider
Access to facets could be heavy

#KTIJ-23501
2022-11-07 17:20:21 +00:00
Alexander Udalov d7a58a7c6c Keep track of array types in OptimizationBasicInterpreter
Merging array types with different element types, for example
`[Lj/l/String;` and `[Lj/l/Object;`, now produces `[Lj/l/Object;`
(instead of `Lj/l/Object;`), which allows for more precise tracking of
null values because we assume that AALOAD on a non-array typed value is
possible only if that value is null.

 #KT-54802 Fixed
2022-11-07 17:22:38 +01:00
Bogdan Mukvich a79927742c Fix code conformance tests after move
#KTI-962
2022-11-07 15:01:31 +00:00
Bogdan Mukvich 080b034950 Move code conformance tests from compiler tests
#KTI-962
2022-11-07 15:01:31 +00:00
Sebastian Sellmair dec0946896 [Gradle][Minor] Opt into InternalKotlinGradlePluginAPI (workaround KT-54823)
^KT-54766 Verification Pending
2022-11-07 13:39:53 +00:00
Sebastian Sellmair 2391ab0ded [Gradle][Minor] CompilationAssociator: Rename parameters to auxiliary and main
^KT-54766 Verification Pending
2022-11-07 13:39:52 +00:00
Sebastian Sellmair 25fe9589b4 [Gradle] Make ExternalKotlinTargetImpl internal
^KT-54766 Verification Pending
2022-11-07 13:39:52 +00:00
Sebastian Sellmair f34875b161 [Gradle] ExternalAndroidTargetPrototypeSmokeTest: Assume assumeAndroidSdkAvailable
^KT-54766 Verification Pending
2022-11-07 13:39:52 +00:00
Sebastian Sellmair 898174a2a0 [Gradle] Add ExternalKotlinTargetApi annotation to API snapshot 2022-11-07 13:39:51 +00:00
Sebastian Sellmair 966ed6b7fb [Gradle] Extract setupCompileTask into separate function
^KT-54766 Verification Pending
2022-11-07 13:39:51 +00:00
Sebastian Sellmair 9599c16d95 [Gradle] Initial 'externalTargetApi' w/ compilable Android prototype
^KT-54766 Verification Pending
2022-11-07 13:39:50 +00:00
Sebastian Sellmair 33adebe5bf [Gradle][MPP] Add k.g.p-tcs-android module for prototyping
KT-54766
2022-11-07 13:39:50 +00:00
nataliya.valtman 9b212cfa86 Revert "Extract KotlinClassInfo to a separate class"
This reverts commit ec3da62672.
2022-11-07 13:59:32 +01:00
Dmitriy Dolovov 271341419a [Native][tests] Fix: Always configure JUnit platform for unit tests 2022-11-07 12:44:39 +00:00
Hung Nguyen ec3da62672 Extract KotlinClassInfo to a separate class
to reduce the size of IncrementalJvmCache and prepare for the next
change.

^KT-54144 In progress

Handle changes to inline functions/property accessors with `@JvmName`s

If we detect a change in an inline function `foo` with @JvmName
`fooJvmName`, we have two options:
   1. Report that function `foo` has changed
   2. Report that method `fooJvmName` has changed

Similarly, if we detect a change in an inline property accessor with
JvmName `getFoo` of property `foo`, we have two options:
   1. Report that property `foo` has changed
   2. Report that property accessor `getFoo` has changed

The compiler is guaranteed to generate `LookupSymbol`s corresponding to
option 1 when referencing inline functions/property accessors, but it is
not guaranteed to generate `LookupSymbol`s corresponding to option 2.
(Currently the compiler seems to support option 2 for *inline*
functions/property accessors, but that may change.)

Therefore, we will choose option 1 as it is cleaner and safer.

^KT-54144 In progress

Ignore inline functions that are not found in the bytecode

^KT-54144 In progress

Add unit test for handling `@JvmName`s

Test: KotlinOnlyClasspathChangesComputerTest
             #testFunctionsAndPropertyAccessorsWithJvmNames
^KT-54144 Fixed

Small cleanup in IncrementalCompilerRunner

 - Add comment for closing caches
 - Rename providedChangedFiles to changedFiles
 - Tiny clean up in `performWorkBeforeCompilation`
 - Count directories to delete in debug logs

^KT-53015 In progress

Small cleanup in IncrementalCompilerRunner

 - Add comment for closing caches
 - Rename providedChangedFiles to changedFiles
 - Tiny clean up in `performWorkBeforeCompilation`
 - Count directories to delete in debug logs

^KT-53015 In progress
2022-11-07 13:10:02 +01:00
Bogdan Mukvich fce8b877c8 Remove unused WriteCopyrightToFile gradle task
#KTI-758
2022-11-07 08:24:19 +00:00
Aleksei.Cherepanov fbb0d6d805 Fix serialization of arrays in compiler arguments
#KT-54791 Fixed
2022-11-05 12:01:06 +00:00
Ilya Goncharov 21991a70e0 [JS] Update npm dependencies in js tests 2022-11-04 15:52:19 +00:00
Alexander Likhachev 71b431db15 [Gradle] Update the Kapt3AndroidExternalIT.testRealm test project
Now it uses the latest version of realm-gradle-plugin
#KT-45748 Fixed
2022-11-04 15:22:03 +00:00
Alexander Likhachev ff6442a1cb [Gradle] Split AGP depending on mpp lib test
#KT-45748 In Progress
2022-11-04 15:22:03 +00:00
Alexander Likhachev bdedc36ed3 [Gradle] Disable Android lint tests on Windows
Lint leaves some file descriptors opened leading to test failure on Windows. See https://android.googlesource.com/platform/tools/base/+/be16b7622a15073725ef1c1555d78cce9fa8a795 for the fix.
#KT-45748 In Progress
2022-11-04 15:22:03 +00:00
Alexander Likhachev 3fee07207e [Gradle] Move the OtherGradlePluginTests tag from Kapt3BaseIT to Kapt3IT
Tags on classes are being combined leading to Kapt3AndroidIT and other Kapt3 Android tests being marked as both ``@OtherGradlePluginTests` and `AndroidGradlePluginTests`
#KT-45748 In Progress
2022-11-04 15:22:02 +00:00
Alexander Likhachev 8508ce27c4 [Gradle] Cleanup imports in Kapt3AndroidIT
#KT-45748 In Progress
2022-11-04 15:22:02 +00:00
Alexander Likhachev db63614ae1 [Gradle] Move AndroidAndJavaConsumeMppLibIT to mpp subpackage
#KT-45748 In Progress
2022-11-04 15:22:02 +00:00
Alexander Likhachev 026288155c [Gradle] Fix KotlinAndroidMppIT.testLintInAndroidProjectsDependingOnMppWithoutAndroid
#KT-45748 In Progress
2022-11-04 15:22:01 +00:00
Alexander Likhachev d980f94fff [Gradle] Move external dependencies tests out from Kapt3AndroidIT
#KT-45748 In Progress
2022-11-04 15:22:01 +00:00
Alexander Likhachev 90b0c867ed [Gradle] Move incremental build tests out from Kapt3AndroidIT
#KT-45748 In Progress
2022-11-04 15:22:00 +00:00
Alexander Likhachev 378ac8daca [Gradle] Move ConfigurationCacheForAndroidIT to android subpackage
#KT-45748 In Progress
2022-11-04 15:22:00 +00:00
Alexander Likhachev aac1e3a63f [Gradle] Move MultiplatformAndroidSourceSetLayoutV2IT to android subpackage
#KT-45748 In Progress
2022-11-04 15:22:00 +00:00
Alexander Likhachev fc088bb84a [Gradle] Split & migrate AbstractKotlinAndroidGradleTests to the new dsl
#KT-45748 In Progress
2022-11-04 15:21:59 +00:00
Alexander Likhachev 8bbf98f24c [Gradle] Migrate Kapt3AndroidIT to the new test DSL
#KT-44350 Fixed
#KT-45748 In Progress
2022-11-04 15:21:59 +00:00
Sebastian Sellmair 8581c8a546 [Gradle] Agp7AddKotlinSourcesToAndroidSourceSetConfigurator: Workaround KTIJ-22631
^KTIJ-22631 Verification Pending
2022-11-04 15:50:52 +01:00
Alexander Korepanov d5e9e87538 [JS BE] Drop JS scripting support
JS scripting uses the old IR to JS transformer.
 The new IR to JS transformer can not be used for
 JS scripting out of the box. Patching the new transformer for
 JS scripting is potentially dangerous and requires a lot of effort.
 Dropping JS scripting and the old IR to JS transformer allows to
 refactor and simplify JS BE codebase.
2022-11-04 14:15:15 +00:00
Alexander Likhachev d75bbc49e7 [Gradle, MPP] Mark KotlinTest.ignoreRunFailures as @Internal
This change is also done in order to preserve up-to-date state of successfully executed tests. This property is similar to Gradle's `AbstractTestTask.ignoreFailures` which is also `@Internal`
#KT-54787 Fixed
2022-11-04 13:15:03 +00:00
Alexander Likhachev f3becdcbd9 [Gradle, MPP] Do not disable individual test task reporting
Do not disable individual test task reporting in order to preserve up-to-date state of successfully executed tests
#KT-54787 In Progress
2022-11-04 13:15:03 +00:00
Alexander Likhachev ebb9ea4caa [Gradle, MPP] Add test for KT-54787 2022-11-04 13:15:02 +00:00
Alexander Likhachev e784e18f48 [Gradle, MPP] Rerun test tasks whose failures were suppressed
#KT-54506 Fixed
2022-11-04 13:15:02 +00:00
Alexander Likhachev 766acd998f [Gradle, MPP] Add test for KT-54506 2022-11-04 13:15:01 +00:00
Alexander Likhachev cc9a611c13 [Gradle] Handle kotlin.tests.individualTaskReports as boolean property 2022-11-04 13:15:01 +00:00
Dmitriy Dolovov 9cefa346bd [K/N][build] Fix trove4j dependency for K/N tests 2022-11-04 10:10:52 +00:00
mvicsokolova 95506ff56e Fix initialization args for AbstractNativeKlibBinaryCompatibilityTest 2022-11-04 10:10:51 +00:00
mvicsokolova e7f2e2cccb [Native][tests] Optionally, run tests with the dependency on K/N platform libs 2022-11-04 10:10:51 +00:00
Dmitriy Dolovov fbfb564b41 [Native][tests] Don't compile given KLIB libraries 2022-11-04 10:10:51 +00:00
Dmitriy Dolovov a8b0f8a145 [Native][tests] Minor: Add check to ensure all custom KLIBs are valid 2022-11-04 10:10:50 +00:00
Dmitriy Dolovov 09c6746d64 [Native][tests] Use lazy properties for K/N test infra to avoid premature resolve of Gradle configurations 2022-11-04 10:10:50 +00:00
mvicsokolova 775db55539 [Native][tests] Support passing custom (external) KLIBs as -l dependencies to Kotlin/Native compiler invocation 2022-11-04 10:10:50 +00:00