Commit Graph

99029 Commits

Author SHA1 Message Date
Dmitriy Novozhilov 28b83a1a5d [Test] Mute tests due to KT-56755 2023-02-20 08:40:32 +00:00
Dmitriy Novozhilov 86ee855170 [Test] Mute test due to KT-56756 2023-02-20 08:40:31 +00:00
Dmitriy Novozhilov f47040696e [Test] Introduce directive for ignoring codegen tests for FIR with LT
^KT-56757
2023-02-20 08:40:31 +00:00
Dmitriy Novozhilov 9ee60e4648 [Build] Exclude FIR codegen tests with PSI mode from aggregate test suite
Also add nightly configuration for them
2023-02-20 08:40:31 +00:00
Dmitriy Novozhilov a7f62581a2 [FIR] Generate PSI and LT versions of all codegen tests
Also change default mode for codegen tests from PSI to LT
2023-02-20 08:40:30 +00:00
Dmitriy Novozhilov 5305e987b7 [Build] Drop duplicated fir test task 2023-02-20 08:40:29 +00:00
Dmitriy Novozhilov 25b1fbc541 [Build] Pin api and language level to 1.8 in :pill:pill-importer module
^KT-56687
2023-02-18 13:26:54 +00:00
Yahor Berdnikau 0cad069522 [Build] Pin api and language level to 1.8 in Kotlin compiler modules used by KGP
This is required to be able to compile KGP and it's dependencies which
set LV to 1.4 when repo will use LV 1.9. This caused by the change how
enums are compiled (KT-48872).
2023-02-18 13:26:54 +00:00
Dmitriy Novozhilov 4ab39b908e [Build] Fix compilation of kotlinx-atomicfu-runtime in 1.9.0
^KT-56400
2023-02-18 13:26:53 +00:00
Artem Kobzar d39fd9416a [Build] Fix compilation of kotlin-js(-ir) libraries in 1.9.0 (stdlib and test) 2023-02-18 13:26:53 +00:00
Dmitriy Novozhilov 6d6c6f072b [Build] Set language version in project to 1.9 2023-02-18 13:26:53 +00:00
Dmitriy Novozhilov 1422654470 [Build] Update version of binary-compatibility-validator to 0.13.0
0.12.0 was incompatible with kotlinx.metadata:0.6.0
2023-02-18 13:26:53 +00:00
Dmitriy Novozhilov 20610a7c89 [Build] Bump kotlinx.metadata version to 0.6.0 2023-02-18 13:26:51 +00:00
Ilya Goncharov a4ce2ced6d [Gradle, JS] Not sync files which are not changed
[Gradle, JS] Try to fix test in windows

[Gradle, JS] Support hierarchical sync compile

[Gradle, JS] Add test on syncing only changed files

[Gradle, JS] Use relative path instead of just name

^KT-56719 fixed
2023-02-17 14:36:45 +00:00
Ilya Kirillov fbcaf3efeb [Analysis API] add information about KtModule to reported exceptions 2023-02-17 14:19:09 +00:00
Ilya Kirillov c37ee83791 [Analysis API] add more debug info to "pointer already disposed" error 2023-02-17 14:19:08 +00:00
Dmitriy Novozhilov 94faa759cb [CLI] Rename -XdependsOn flag to -Xdepends-on to keep convention
^KT-56209
2023-02-17 14:09:30 +00:00
Alexander.Likhachev 18752fc1ad Revert "[Build] Add a temporary workaround for KT-56357"
This reverts commit ca60a4fcf9.
2023-02-17 15:03:53 +01:00
Alexander Udalov b152600e35 IR: add flag to IrGenerationExtension for executing in kapt mode
#KT-56635 Fixed
2023-02-17 14:00:54 +00:00
Dmitrii Gridin 0eb90cccd1 [SLC] enum entries should be psi reference instead of psi expression
^KT-56728 Fixed
2023-02-17 13:11:14 +00:00
Dmitrii Gridin e65c863f8c [SLC] add test on single target annotation
^KT-56728
2023-02-17 13:11:14 +00:00
Sebastian Aigner 0e03fc265e [Gradle][MPP] Include links on V2 MPP Source Set layout
^KT-56700 Fixed
2023-02-17 12:31:44 +00:00
Dmitriy Novozhilov e70e85d51a [FIR] Move unwrapSmartcastExpression util into :compiler:fir:tree module 2023-02-17 12:29:17 +00:00
Dmitriy Novozhilov d52b52ff5c [FIR] Drop unused ResolvedStatusCalculator class 2023-02-17 12:29:17 +00:00
Pavel Punegov 9ea299b0e7 [K/N][build] Fix Native plugin: remove archive file before adding
Merge-request: KT-MR-8783
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
2023-02-17 11:28:41 +00:00
Dmitriy Novozhilov 86af01439c [FIR] Allow to access uninitialized member properties in non-inPlace lambdas in class initialization
^KT-56696 Fixed
^KT-56408
2023-02-17 11:26:18 +00:00
Dmitriy Novozhilov 914acd841f [FIR] Add special kind for graph of init blocks and local functions 2023-02-17 11:26:17 +00:00
Dmitriy Novozhilov c87e489dc9 [FIR] Run CFA for member properties even if they have initializer
^KT-56678 Fixed
^KT-56682 Fixed
2023-02-17 11:26:17 +00:00
Dmitriy Novozhilov de84cb8038 [Test] Don't compare descriptors dump if there is no expected .txt file
Descriptors dump has not much sense, because at this point diagnostic
  tests for FE 1.0 mostly used only to compare diagnostics with FIR
2023-02-17 11:26:16 +00:00
Dmitriy Novozhilov 8ccd7c7d12 [FIR] Create context and scope for incremental compilation separately
Scope for incremental compilation refers to binaries from previous step
  of IC. It is used not only in IC context itself, but also it is
  subtracted from original libraries scope. Before previous commit there
  was such scheme:
1. create incremental compilation context for files of specific session
2. subtract IC scope from main libraries scope
3. use updated libraries scope to create library session
4. create all needed source session(s)

So here was a side effect of creating new IC context, which
1. is smelling code, because it increases mind complexity
2. hard to implement with new session utilities

So to fix this problem this commit changes the scheme above:
1. create IC scope and modify libraries scope
2. create libraries session
3. create source session(s) and IC context for them
2023-02-17 11:08:51 +00:00
Dmitriy Novozhilov 79e4df72bf [CLI] Introduce utilities for creating FirSession hierarchy in CLI for all platforms
Also support session creation and compilation for HMPP projects

^KT-56209 Fixed
2023-02-17 11:08:51 +00:00
Dmitriy Novozhilov 30ea4b6b53 [FIR2IR] Adapt IrActualizer to HMPP modules
Previously it collected actual declaration only from platform module
2023-02-17 11:08:51 +00:00
Dmitriy Novozhilov d4bb740a62 [CLI] Store information about HMPP module for source files 2023-02-17 11:08:50 +00:00
Dmitriy Novozhilov 77caa31640 [CLI] Add CLI arguments to pass HMPP module structure to the compiler
^KT-56209
2023-02-17 11:08:50 +00:00
Svyatoslav Scherbina ec59cc050c [K/N][tests] Support tag expressions for :native:native.tests:test
This commits adds a Gradle project property 'kotlin.native.tests.tags',
which can be used when running :native:native.tests:test task to filter
tests by tags. The property value can contain an arbitrary JUnit tag
expression. See
https://junit.org/junit5/docs/current/user-guide/#running-tests-tag-expressions
for more details.
2023-02-17 10:37:04 +00:00
Svyatoslav Scherbina 74c39df0d8 [K/N][tests] Allow running :native:native.tests:test on TeamCity
With this task, we can be more sure that TeamCity runs all the tests.
Other test tasks in :native:native.tests project run only tests with
specific pre-defined tags, so running them on TeamCity was discovered to
be more error-prone in that regard, and is generally less flexible.
2023-02-17 10:37:04 +00:00
Svyatoslav Scherbina 72f9cdf49b Native: fix curl sample test
Don't publish libcurl to a local Maven repo, but consume it directly
as a project dependency.

Publishing appears to be fragile here, and the intention of the test
does not involve checking Gradle anyway.
2023-02-17 10:35:02 +00:00
Svyatoslav Scherbina dd7a1a8c1c [CODEOWNERS] Move kotlin-native/backend.native/tests/**.gradle.kts to Native
These files are in fact tests.
The **.gradle files in this directory are already owned by the
Kotlin Native team.
2023-02-17 10:33:30 +00:00
Ilya Kirillov 4c3672de0a [LL FIR] optimize FirCacheValue, do not create ConcurrentHashMap to store a single value
^KTIJ-24640
^KTIJ-24641
2023-02-17 10:24:20 +00:00
Aleksei.Cherepanov 57da858810 [JPS] Don't use non-optimal Files.exist() in JPS context check on dry start-up
After moving JPS from the IJ repo back to the Kotlin repo, some file operations were accidentally changed to non-optimal ones.

#KTIJ-21161 Fixed
2023-02-17 09:58:00 +00:00
Aleksei.Cherepanov 772745b0ad [JPS] Don't compute compiler args on start-up of the build process
Initialization of compiler arguments takes a long time because of its copying, but for initial context check, there is no need to do it at all for all targets except Common.

#KTIJ-21161 In Progress
2023-02-17 09:58:00 +00:00
Nikolay Lunyak 516efe77c9 [FIR] KT-56612: Fully-expand types when casting bare types
^KT-56612 Fixed

Merge-request: KT-MR-8849
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com>
2023-02-17 09:15:59 +00:00
Nikolay Krasko 0963bd25a8 Test links reference existing files 2023-02-16 22:56:21 +00:00
Nikolay Krasko 3c6e64b560 Test links definitions in license/README.md 2023-02-16 22:56:21 +00:00
Polina Mitrikovskaia 0484f7b108 Complete license links
Add links for [jspecify].
2023-02-16 22:56:20 +00:00
Matt McClure 800afa8817 Link to Sun, asmble licenses 2023-02-16 22:56:20 +00:00
Nikolay Lunyak 3c36a4fabd [FIR] KT-56665: Filter-out valid cycles
^KT-56665 Fixed

Merge-request: KT-MR-8861
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com>
2023-02-16 17:48:38 +00:00
Ilya Kirillov c60fd38e05 [LL FIR] allow recursive access to the same FirThreadSafeCache
^KT-56721 fixed
2023-02-16 17:42:29 +00:00
Egor Kulikov d670e5a695 [FIR] Do not get expressions from contract effect list in lazy mode
Eleventh step for ^KT-52615
2023-02-16 17:18:10 +00:00
Leonid Startsev c564dd973b Add declarations from serialization plugin to FIR metadata declarations provider.
These declarations should not be visible to users (and therefore are not added to FIR),
but plugin itself can reference them in already compiled serializable classes,
and therefore they should be available in metadata:

- synthetic deserialization constructor
- static write$Self function

See also:
^KT-55885
2023-02-16 15:36:18 +00:00