Commit Graph
12687 Commits
Author SHA1 Message Date
Dmitrii Krasnov 9c32a66e9c migrated NativeExternalDependenciesIT to gradle TestKit 2023-04-17 13:22:25 +00:00
Yahor Berdnikau 86540bdbb4 [Gradle] Fix flaky test
Commonizer may run first and produce compiler arguments output as well
in test output.
2023-04-17 11:45:57 +00:00
Filipp Zhinkin 368f21461c KT-55091 Optimize Sequence::toSet/toList implementation
Sequence::toSet and Sequence::toList both create a
collection, fill it with elements, and then try to optimize a result
by returning empty, singleton, or the allocated collection depending on
the elements count.
Instead of allocating the collection and then trying to return
an optimized instance it is worth checking the sequence's size
beforehand and return empty/singleton collection when possible.

Proposed change optimize performance of aforementioned functions and
also reduce allocation rate when a sequence consists of 0 or 1 elements.

^KT-55091 fixed
2023-04-17 08:58:20 +00:00
Alexander Korepanov e8be3043cc [JS IR] Allow restriction of function argument by external type
Add a special annotation @JsExternalTypeArgument for
 marking function parameters. The marked parameter
 accepts an argument with an external type only.

^KT-57479 Fixed
2023-04-17 08:21:10 +00:00
Anton Lakotka 4819593bf4 [Gradle] Mark nullable visibleSourceSetProvidingCInterops as Optional
^KT-57677 Verification Pending
2023-04-14 22:39:34 +00:00
nataliya.valtman 4bb8bd3901 KT-57224 Support Language version Tag 2023-04-14 08:34:29 +00:00
Pavel Kargashinsky 4ad16d5cf6 [Gradle][Tests][MPP] Specify warningMode = Fail, for tests without warnings. 2023-04-13 13:15:30 +00:00
Yahor Berdnikau 85644bbbf6 [Gradle] Don't fail TC configuration on expected OOM in test
Test produces as expected OOM exception, but it should not output test
logs into build logs. As TeamCity will parse them and fail because build
 logs contains OOM which is false-positive.
2023-04-13 12:29:39 +00:00
Dmitriy Novozhilov b253a3a47e [FIR] Don't lose non-serializable properties during metadata deserialization
^KT-57941 Fixed
2023-04-13 10:38:52 +00:00
Abduqodiri Qurbonzoda 8629c92c62 Update copyright of generatedUnicodeData files 2023-04-12 23:28:12 +00:00
Artem Kobzar f0aa6c6d32 [K/JS Gradle] Remove forceLegacyBackendUsage from KotlinGradlePlugin previously added with the compiler flags refactoring, also fix bootstrap compilation of atomicfu plugin 2023-04-12 14:04:34 +00:00
Nataliya.Valtman 2c2a01113e KT-57371: Add versions for FUS statistic bean 2023-04-12 11:04:35 +00:00
Alexander.Likhachev 0d1500f23f [Gradle] Disable the Kotlin daemon fallback strategy for integration tests
#KT-57782 Fixed
2023-04-12 06:16:36 +00:00
Yahor Berdnikau f7522ec796 Better approach to handle 'moduleName' in project level DSL
Now project level DSL only configures base part of module name, which
latter is enhanced by Kotlin compilation suffix. In this case
'KotlinCompilation.moduleName' is not used.

Additionally,
'KotlinJvmTask.moduleName' usage was deprecated in favor of
'compilerOptions.moduleName'. Though warning is only produced in case
project is using 'org.jetbrains.kotlin.jvm' or
'org.jetbrains.kotlin.android' plugins.

- 'moduleName' is always required to be non-null.

^KT-57688 Fixed
2023-04-12 06:16:36 +00:00
Iaroslav Postovalovandilya-g fb80c0cb0d Override toString function in stdlib delegates
Co-authored-by: ilya-g <ilya.gorbunov@jetbrains.com>
2023-04-11 14:46:29 +00:00
Alexander.Likhachev b750e1e62c [Gradle, K/N] Fix a small typo in a test name 2023-04-11 16:19:15 +02:00
Alexander.Likhachev f439d4d147 [Gradle, K/N] Improve message when a simulator for test is not booted
If a simulator test task is configured to disable standalone mode and the simulator isn't booted, the default error message might sound cryptic, so we can give a more user-friendly error message
#KT-38317 Fixed
2023-04-11 16:16:31 +02:00
Alexander.Likhachev 5486b39d04 [Gradle, K/N] Add a standalone mode toggle for K/N simulator tests
#KT-38317 In Progress
2023-04-11 16:16:31 +02:00
Alexander.Likhachev d6077923c4 [Gradle, K/N] Use default deviceId as a convention 2023-04-11 16:16:30 +02:00
Alexander.Likhachev 282a4ca09d [Gradle] Add a test for KT-38317 2023-04-11 16:16:29 +02:00
Sebastian Sellmair d40a20f90b [Gradle] AbstractCInteropCommonizerTask: Do not use ':' character in fileName
":" is not allowed on Windows. Using _ instead

^KT-57796 Verification Pending
2023-04-11 13:55:05 +00:00
Dmitriy Novozhilov 94f77add49 [FIR] Try to load properties in order according to kotlinx.serialization metadata extension
Move metadata extension with property order from kotlinx.serialization to core

After fix of KT-54792 properties will be deserialized in declaration order
  if corresponding class was compiled with modern compiler. But this order
  is needed for kotlinx.serialization for binaries compiled with any
  kotlin compiler >= 1.4. Since we don't plan to add any extension points
  into (de)serialization into FIR, we need to take into account existing
  metadata extension from kotlinx.serialization in compiler itself

^KT-57769 Fixed
2023-04-11 13:43:39 +00:00
Abduqodiri Qurbonzoda c961c15729 Commonize AssertionError(message, cause) constructor 2023-04-11 13:32:54 +00:00
Ivan Kylchik b8b8570a60 Add instruction on how to debug kotlin gradle plugin integration tests 2023-04-11 11:59:12 +00:00
Ilya Goncharov d2c2a86cb7 [Gradle, JS] Existence of node_modules for up-to-date of kotlinNpmInstall
[Gradle, JS] No dev deps in packages_imported

^KT-57920 fixed
2023-04-11 11:52:29 +00:00
Filipp Zhinkin d0847f2519 KT-57617 Delegate iterators of reversed list views to underlying list iterators
Improve the performance of reversed list view iterators by delegating to
underlying list iterators instead of using implementations provided by
the AbstractList.
Latter use AbstractList::get(index: Int) to implement next() and
previous() methods and depending on the underlying list's implementation
it may lead to worse performance.

The change also improves reversed list views test coverage.
2023-04-11 08:16:21 +00:00
Abduqodiri Qurbonzoda b65a68ca0d [K/N and WASM] Internalize NoWhenBranchMatchedException and UninitializedPropertyAccessException
As a part of efforts to stabilize Native stdlib.

Merge-request: KT-MR-9531
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com>
2023-04-10 21:10:51 +00:00
Ilya Gorbunov f8d001c21f KT-57298 createParentDirectories: handle already existing directory symlink 2023-04-08 15:21:12 +00:00
Ilya Gorbunov 912b65060e KT-55610 Deprecate k.j.Volatile annotation in Common and JS
Use k.c.Volatile in common AbstractMap instead
2023-04-08 15:07:56 +00:00
Ilya Gorbunov b8da3e69ce KT-55268 Make k.c.Volatile stable 2023-04-08 15:07:56 +00:00
Ilya Gorbunov 2dbff89098 Split tests for MutableList.shuffle and Iterable.shuffled 2023-04-08 14:47:30 +00:00
Ilya Gorbunov f13e127b0f KT-57607 Add test for MutableList.addAll at index
Also improve other operations test coverage
2023-04-08 14:47:30 +00:00
Sebastian Sellmair 9442009d91 [Gradle][Minor] Add comments for IdeCompilerArgumentsResolverImpl
KTIJ-24976
2023-04-06 16:03:13 +00:00
Sebastian Sellmair 1573f0250a [Gradle][Minor] Add documentation on 'runSafe' to provide guidance on when to use it
KTIJ-24976
2023-04-06 16:03:12 +00:00
Sebastian Sellmair 777955b4e2 [Gradle] Ensure pluginClasspath is imported into the IDE
See
`[KTIJ-24976] Implement initial KotlinMppCompilerPluginImportingTests`
in intellij.git

KTIJ-24976
2023-04-06 16:03:12 +00:00
Sebastian Sellmair 6c2087983c [Gradle] Kotlin2JsCompile: Remove old createCompilerArgs
KTIJ-24976
2023-04-06 16:03:11 +00:00
Sebastian Sellmair ca84505376 [Gradle] KotlinJsIrLink: Handle KotlinBuildStatsService invocation outside of creating compiler args
KTIJ-24976
2023-04-06 16:03:11 +00:00
Sebastian Sellmair fc05d001c6 [Gradle] Implement additional IdeCompilerArgumentsResolverTest
KTIJ-24976
2023-04-06 16:03:11 +00:00
Sebastian Sellmair 446c6793a4 [Gradle] Kotlin2JsCompile: Remove redundant processArgs
KTIJ-24976
2023-04-06 16:03:10 +00:00
Sebastian Sellmair 014bb0214f [Gradle][Minor] Kotlin2JsCompile: Make contributeAdditionalCompilerArguments protected
KTIJ-24976
2023-04-06 16:03:10 +00:00
Sebastian Sellmair 1cebf24bed [Gradle] GenerateGradleOptions: Remove fillDefaultValues
KTIJ-24976
2023-04-06 16:03:09 +00:00
Sebastian Sellmair d6cc9e2476 [Gradle] KotlinCompile: Prevent iterating calling FileCollection.getFiles multiple times for sources
KTIJ-24976
2023-04-06 16:03:09 +00:00
Sebastian Sellmair b8f8b9b344 [Gradle][Minor] Remove redundant args.moduleName = compilerOptions.moduleName.orNull
KTIJ-24976
2023-04-06 16:03:09 +00:00
Sebastian Sellmair 1844aab35d [Gradle] KotlinCompile: Move allowNoSourceFiles = true to KotlinJvmCompilerOptionsHelper
KTIJ-24976
2023-04-06 16:03:08 +00:00
Sebastian Sellmair e5fbb253c5 [Gradle][Minor] createCompilerArguments(default) -> createCompilerArguments()
KTIJ-24976
2023-04-06 16:03:08 +00:00
Sebastian Sellmair d85d6fc0bb [Gradle][Minor] IdeCompilerArgumentsResolver: Replace if with when
KTIJ-24976
2023-04-06 16:03:07 +00:00
Sebastian Sellmair 133f2260e0 [Gradle] KotlinCompilerArgumentsProducer: Replace contribute(Type) with semantic methods
KTIJ-24976
2023-04-06 16:03:07 +00:00
Sebastian Sellmair 8156717e31 [Gradle][Minor] KotlinCompilerArgumentsProducer: Use .default in createCompilerArguments
KTIJ-24976
2023-04-06 16:03:06 +00:00
Sebastian Sellmair 86c33ec97c [Gradle] KotlinCompilerArgumentsProducer: Merge PluginClasspath & DependencyClasspath
KTIJ-24976
2023-04-06 16:03:06 +00:00
Sebastian Sellmair 1bbd135de8 [Gradle] Remove DefaultValues.prettyDefaultValue in favor of stripping OPTIONS_PACKAGE_PREFIX
KTIJ-24976
2023-04-06 16:03:05 +00:00