Commit Graph

93974 Commits

Author SHA1 Message Date
Nikolay Krasko 683322e45a Explicit restriction for maximum memory in js box tests
There were failures during jsCompilerTest execution on the machine
with 16GB and 8 CPU.
2022-07-21 15:47:30 +00:00
Ilya Chernikov ceea563d63 Scripting: avoid creating multiple PSIs for every imported script
#KT-53009 fixed
#KT-42810 should be possible now too, but more testing is needed
#KT-42101 can also be addressed now, but first the serialization
 of the imported scripts property should be solved
2022-07-21 13:53:41 +00:00
Sergej Jaskiewicz 9bc057afb2 [JS IR] Generate the correct relative paths in source maps 2022-07-21 12:18:45 +00:00
Sergej Jaskiewicz 62f957a482 [JS IR] Respect the kotlinOptions.sourceMap = false setting
^KT-52830 Fixed
2022-07-21 12:18:45 +00:00
Sergej Jaskiewicz d49ca87cd2 [test] Enable Gradle integration testing for JS sourcemaps 2022-07-21 12:18:44 +00:00
Sergej Jaskiewicz 54c2839a7f [JS] J2K for SourceMapBuilderConsumer 2022-07-21 12:18:43 +00:00
Sergej Jaskiewicz 9f5f5bcab2 Rename .java to .kt 2022-07-21 12:18:43 +00:00
Yahor Berdnikau b28819a186 Enable signing for publication into Gradle plugin portal
^KT-53172 Fixed
2022-07-21 11:52:46 +02:00
Yahor Berdnikau ef28967216 Update Gradle publish plugin to final 1.0.0 version
^KT-53172 In Progress
2022-07-21 11:52:31 +02:00
Ilya Goncharov 3e0b50c924 [Gradle, JS] Reporting in case when yarn.lock was changed during build
----
[Gradle, JS] Change naming

[Gradle, JS] storeYarnLock not finalizing kotlinNpmInstall

[Gradle, JS] Add double clean to test for check correctness without input yarn.lock

[Gradle, JS] Consider reportNewYarnLock in yarn.lock service

[Gradle, JS] actualizeYarnLock for explicit actualizing yarn.lock

[Gradle, JS] Not update yarn.lock automatically

[Gradle, JS] Add test on yarn.lock reporting

[Gradle, JS] Error report by default

[Gradle, JS] Report with failing after build, not failing task

[Gradle, JS] Report about yarn.lock mismatch reporting

Merge-request: KT-MR-6614
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>

^KT-52950 fixed
2022-07-21 09:16:11 +00:00
Johan Bay 151448274b [K/N] Add concurrent version of Splay benchmark 2022-07-21 07:57:27 +00:00
Sergey Bogolepov be29052a64 [K/N] Update tests for KT-42641 2022-07-21 06:50:25 +00:00
Sergey Bogolepov 3dfb6dc622 [K/N] KT-42641
Remove synthetic componentN methods from Objc header
2022-07-21 06:50:24 +00:00
Vladimir Sukharev d378d7d5f5 KT53119: Implement String Concatenation Type Narrowing to improve escape analysis
Merge-request: KT-MR-6661
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2022-07-20 16:28:33 +00:00
konstantin.tskhovrebov 73226aba00 [KT-53256] Setup K/N distribution downloading for KPM. 2022-07-20 15:20:33 +00:00
Dmitriy Dolovov 8adb0528d7 [Native][tests] Don't use non-default runtime assertions mode with cache
^KT-53032
2022-07-20 14:43:08 +00:00
Dmitriy Dolovov d094a2dcaf Revert "[K/N] Temporary allow caches with non-default assertions mode"
This reverts commit b482b0e86d.

^KT-53032
2022-07-20 14:43:07 +00:00
Alexander Likhachev 40b8e3ce4b [Gradle] Format build report path as URI
#KT-34464 Fixed
2022-07-20 13:29:02 +00:00
Alexander Likhachev 783f394006 [Gradle] Remove dead code of KotlinBuildReporterHandler 2022-07-20 13:29:01 +00:00
Dmitriy Novozhilov 02901aeb10 Update kotlinc.xml 2022-07-20 10:12:26 +00:00
Dmitriy Novozhilov 0ec6c49464 [Test] Remove obsolete commented tests model of idea-android plugin tests from test generator 2022-07-20 10:12:25 +00:00
Dmitriy Novozhilov af8caae387 [KAPT] Fix formatting 2022-07-20 10:12:25 +00:00
Dmitriy Novozhilov 8b960de76a [KAPT] Add additional test tasks for running tests on JDK 11 2022-07-20 10:12:24 +00:00
Dmitriy Novozhilov 9c41e75802 [KAPT] Migrate kapt tests to new test infrastructure 2022-07-20 10:12:24 +00:00
Dmitriy Novozhilov fdf1b8b1c0 [KAPT] Migrate tests in kapt3-base and kapt3-cli to JUnit 5 2022-07-20 10:12:24 +00:00
Dmitriy Novozhilov b7cc781e97 [Test] Create KtFiles with proper virtual files
This is needed to properly report diagnostics in KAPT3 tests, which
  uses psiElement.containingFile as origin
2022-07-20 10:12:23 +00:00
Dmitriy Novozhilov 7aaecf272b [Test] Move configuration of JS specific flags into JsEnvironmentConfigurator 2022-07-20 10:12:23 +00:00
Dmitriy Novozhilov c249eb9d2d [Build] Specify lombok dependency version in versions.properties 2022-07-20 10:12:22 +00:00
Dmitriy Novozhilov b2e558a174 [CLI] Make -Xcompiler-plugin experimental and K2 only 2022-07-20 09:07:27 +00:00
Dmitriy Novozhilov 928416c9c5 [CLI] Introduce new compiler arguments for registering compiler plugins
With new syntax each plugin should be registered in separate argument with syntax
`-Xcompiler-plugin=classpath1,classpath2[=argument1=value1,argument2=value2]`
2022-07-20 09:07:26 +00:00
Dmitriy Novozhilov 8919703448 [Test] Extract CLI tests for plugins into separate directory 2022-07-20 09:07:26 +00:00
Dmitriy Novozhilov 0d1e802db1 [CLI] Remove deprecated properties from AbstractCliOption and CliOption 2022-07-20 09:07:25 +00:00
Dmitriy Novozhilov 5c05cf6fe1 [CLI] Cleanup and reformat CliOptions.kt 2022-07-20 09:07:25 +00:00
Andrey Uskov 449e7d3d72 Report information about compiler plugins from gradle
#KT-53244 Fixed
2022-07-20 06:44:01 +00:00
Ilya Gorbunov e5902e736d Account for potential delay inaccuracy in test
Sleep for slightly longer duration since the thread can be waked
a bit earlier than the specified amount of time.
2022-07-19 20:57:39 +00:00
Ilya Gorbunov 4e31f368d5 Add more info to a flaky assertion, increase wait duration 2022-07-19 20:57:39 +00:00
Svyatoslav Kuzmich 11c8c01a50 [Wasm] Update v8 shell to v10.5.207 2022-07-19 18:46:52 +02:00
Sergej Jaskiewicz 15bd101110 [JS IR] Fix sourcemap path mapping in compiler tests for Windows 2022-07-19 16:06:25 +00:00
Sergej Jaskiewicz 1241565cce [JS IR] Adapt stepping tests for Kotlin/JS 2022-07-19 16:06:24 +00:00
Sergej Jaskiewicz ea556ce428 [JS IR] Implement stepping tests for Kotlin/JS
We already have stepping tests for Kotlin/JVM.
They are helpful for testing the correctness of the generated
debugging information.

They are better than line number tests in that they allow to test the
_behavior_, not the generated data. The structure of the data may change
even if the behavior stays the same. For that reason, stepping tests
are more stable.
2022-07-19 16:06:23 +00:00
Sergej Jaskiewicz 003f846723 Make expectations in stepping tests more flexible
We can now write expectations in the following form:
// EXPECTATIONS [backends...] [frontends...]

Backends are specified as in the TargetBackend enum.
Frontends are specified as in the FrontendKinds object.

This will make it more suitable for supporting Kotlin/JS in stepping
tests.

For example, for expectations that match only JVM backends with the
classic frontend, we use:
// EXPECTATIONS JVM JVM_IR ClassicFrontend
2022-07-19 16:06:22 +00:00
Dmitry Gridin 651d4d8be0 [light classes] move getParentForLocalDeclaration to light-classes-base
^KT-53097
2022-07-19 15:42:08 +00:00
Dmitry Gridin 0e17d9b452 [light classes] extract KotlinLightClassFactory to service
^KT-53097
2022-07-19 15:42:07 +00:00
Dmitry Gridin 81a5b4070d [light classes] move KtLightMethodImpl to light-classes-base module
^KT-53097
2022-07-19 15:42:06 +00:00
Dmitry Gridin 024c40a3fa [light classes] move checkIsMangled to light-classes-base module
^KT-53097
2022-07-19 15:42:05 +00:00
Dmitry Gridin 5e36563df6 [light classes] drop light-classes from commonCompilerModules
^KT-53097
2022-07-19 15:42:05 +00:00
Dmitry Gridin 71018d8a6d [light classes] replace light class dependency from analysis.symbol-light-classes to light-classes-base
^KT-53097
2022-07-19 15:42:04 +00:00
Dmitry Gridin a0c55a9ab8 [light classes] move method indices to light-classes-base module
^KT-53097
2022-07-19 15:42:03 +00:00
Dmitry Gridin 364cc8a65e [light classes] add mangleInternalName to light-classes-base module
^KT-53097
2022-07-19 15:42:03 +00:00
Dmitry Gridin 34921e451d [light classes] move KotlinSuperTypeListBuilder to light-classes-base module
^KT-53097
2022-07-19 15:42:02 +00:00