2739 Commits

Author SHA1 Message Date
Ilya Chernikov 813630d468 K2, Gradle, scripting: unmute test for #KT-61137
The problem is not reproducible anymore, presumingly fixed
with some of the previous updates.
2024-03-19 16:32:25 +00:00
Dmitrii Krasnov ffef1630dd [Gradle] Added provisioned.ok after k/n bundle installation
Added provisioned.ok file to ensure
that Kotlin Native bundle has been successfully installed.

^KT-66309 Fixed
2024-03-18 13:35:41 +00:00
Nataliya.Valtman 762927410a Use snapshot version for kotlin native when kotlin.native.enabled=true
#KT-64046: Fixed
2024-03-15 18:30:16 +00:00
Anton Lakotka 322940f228 [Gradle] Test that composite metadata artifact with resources only...
...doesn't fail metadata compilation of depending projects.

^KT-65315
2024-03-15 13:13:47 +00:00
Nataliya.Valtman 869cc8bdb8 Do not run FusStatisticIT.testProjectWithIncludedBuild test on windows
#KT-65227
2024-03-15 12:50:58 +00:00
Mikhail Glukhikh 6d02ce601a Revert "Temporary: mute pre-release warnings in Gradle tests (KT-66551)"
This reverts commit 0757247233.
2024-03-15 11:33:10 +00:00
Timofey Solonin 9295f44eda Quote module name in the generated modulemap
This fixes an issue where Kotlin projects named "umbrella" or
"framework" produce unimportable framework modules.

^KT-66565
2024-03-14 19:19:57 +00:00
Timofey Solonin 4ab5c3b74b Record unquoted module name behaviour in KGP-IT
^KT-66565
2024-03-14 19:19:57 +00:00
Artem Daugel-Dauge 06960394b7 [Gradle] Fix issues with EmbedAndSignUsedWithPodDependencies diagnostic
Emit diagnostic right after task graph had been formed instead of waiting for embedAndSign execution

(^KT-66445,^KT-66446) Verification Pending
2024-03-14 18:40:16 +00:00
Dmitrii Krasnov a2a0e8cb38 [Gradle] Fixed CC connected IT
Also provided a Configuration Cache Integration Test for downloading K/N

^KT-66422
2024-03-14 17:07:21 +00:00
Dmitriy Novozhilov 7ba47f70c0 [Test] Unmute some passing K2 KGP integration tests 2024-03-14 06:31:39 +00:00
Andrey Yastrebov 6028595ce4 KT-66486 Do not use synthetic project for spm 2024-03-13 22:59:38 +00:00
Mikhail Glukhikh 0757247233 Temporary: mute pre-release warnings in Gradle tests (KT-66551) 2024-03-13 20:38:44 +00:00
Dmitry Savvinov 47546ece27 [tests] Adjust MppDiagnosticsIt after removing deprecated K/N targets (8/8)
Tests were using deprecated targets to produce ERROR-diagnostics.
Replace it with a different diagnostic
(CommonMainOrTestWithDependsOnEdges)

^KT-64517
2024-03-12 16:22:27 +00:00
Dmitry Savvinov 8f3c0e71fa [native] Drop deprecated Kotlin/Native targets (5/8)
Adjust KGP: drop usages of deprecated KonanTargets, leave
@Deprecated-stubs in public APIs for readable errors

^KT-64517
2024-03-12 16:22:27 +00:00
Timofey Solonin e56a4c6edb Validate AGP 7.1.3 doesn't publish resources or assets
^KT-65540
2024-03-12 14:51:05 +00:00
Timofey Solonin 818368efa0 Assert Android compilations run
^KT-65540
2024-03-12 14:51:05 +00:00
Timofey Solonin 33c3cd47dc Simplify and improve MultiplatformResourcesConsumptionIT
* Generate dependencies in a less copypasty way
* Test a slightly more intricate graph of dependencies without resources
  in parts of the graph

^KT-65540
2024-03-12 14:51:05 +00:00
Dmitrii Krasnov f18d00e6f0 [Gradle] Changed the way of unpacking k/n dependencies
Creating `tar` process is not supported by configuration cache.
Inner Gradle copy and archive operations don't work well with symlinks.
That is why we are using utils from org.apache.commons:commons-compress.

^KT-66422 Fixed
2024-03-12 11:55:13 +00:00
Ilya Chernikov 5b62558798 K2 IC: fix member lookup recording
The previous code recorded only class name, instead of fqname,
as a scope of lookup.

#KT-65943 fixed
#KTIJ-24828 fixed
related to #KT-56197
2024-03-12 11:38:06 +00:00
Anton Lakotka a56dc7d73a [Gradle] Don't resolve Apple-specific Cinterops on Linux & Windows
Resolving such dependencies was lenient, however it produced
a lot of annoying error messages in the IDE. Because "file not found".

KGP already warns user if they are declared Apple-specific targets
on non-macos machine.

^KT-66514 Verification Pending
2024-03-12 09:54:08 +00:00
Dmitrii Krasnov a33e56a50d [Gradle IT] Added ivy with release k/n to IT tests default repos
^KT-64903
2024-03-11 18:33:16 +00:00
Brian Norman 9a5f4522e6 [PowerAssert] Update Gradle extension to be more idiomatic
Instead of using raw List types in the Gradle extension, ListProperty
should be used instead to make it more Gradle idiomatic. Also marking
the extension and all properties as experimental to allow easier
changing in the future.

^KT-65952 Fixed
2024-03-11 18:18:49 +00:00
Timofey Solonin 76814a8bbe Test expected js target resources publication bahavior
^KT-65540
2024-03-11 09:04:25 +00:00
Brian Norman 926ae2abb8 [PowerAssert] Add Gradle build tools integration tests for Power-Assert
The integration test project was copied from the sample project in
github.com/bnorm/kotlin-power-assert. Original license information has
been preserved even though commit history has not been.

^KT-65951 Fixed
2024-03-07 16:31:18 +00:00
Ilya Goncharov 6fb6f04509 [Gradle, Wasm] Not add target listeners for wasi projects
^KT-66373 fixed
2024-03-06 18:23:41 +00:00
Vyacheslav Gerasimov 2e787c50be Build: Create GroupedByGradleVersion Gradle IT test tasks only on CI
All those tasks are displayed in the gutter when running a test making
it very long.
2024-03-05 17:12:31 +00:00
Vyacheslav Gerasimov 679e6f0504 Build: Use junit auto detection for DisabledIfNoArgumentsProvided
#KTI-1596
2024-03-05 17:12:31 +00:00
Vyacheslav Gerasimov 424a5055e2 Build: Group KGP Integration Tests by Gradle version
#KTI-1596

To avoid Gradle daemons pile up during test execution, run each Gradle
version in a separate task. Gradle daemon used for testing will be
terminated at the end of each execution preventing memory exhausting
in a low-memory environment (e.g., build agents).
2024-03-05 17:12:31 +00:00
Timofey Solonin 610b9eae91 Generate test project with proper path on Windows
^KT-65540
2024-03-01 09:13:34 +00:00
Andrey Yastrebov 45d544c139 KT-66236 Dowgrade iOS deployment target for SwiftExportXCIT 2024-02-29 17:06:11 +00:00
Andrey Yastrebov 42f6eb4eb4 KT-66156 add KotlinRuntime to Swift Export Synthetic 2024-02-29 08:11:29 +00:00
Yahor Berdnikau 66a39952ee [Gradle] Fix usages of kotlinOptions in KotlinJsIrTarget
Replaced them with compiler options DSL.

^KT-63419 In Progress
2024-02-28 21:20:18 +00:00
Timofey Solonin 1435fcc50f Add an IT for consumption of multiplatform resources
^KT-65540
2024-02-28 20:19:08 +00:00
Timofey Solonin a171f774be Validate that resources from new source sets are published 2024-02-28 15:22:58 +00:00
Timofey Solonin 01ff4a597a Validate consuming a project with multiplatform resources
^KT-65540
2024-02-28 15:22:58 +00:00
Timofey Solonin 0f20e39475 Add an IT for publication of multiplatform resources in wasm target
^KT-65540
2024-02-28 15:22:58 +00:00
Timofey Solonin e35e2eaa48 Add an IT for publication of multiplatform resources in a native target
^KT-65540
2024-02-28 15:22:58 +00:00
Timofey Solonin bba39dd4fe Add an IT for publication of multiplatform resources in Android target
^KT-65540
2024-02-28 10:37:16 +00:00
nataliya.valtman 485840731d Remove old build report properties
kotlin.build.report.dir and kotlin.internal.single.build.metrics.file
were deleted

#KT-64380
2024-02-27 21:46:53 +00:00
Timofey Solonin 7e9e064748 Add an IT for publication of multiplatform resources in a jvm target
^KT-65540
2024-02-27 14:04:51 +00:00
Artem Daugel-Dauge fff5a412ec [Gradle] Xcode version too high warning
Adds new warning diagnostic that checks that selected Xcode version is not higher than latest tested with the current Kotlin version

^KT-62373 Verification Pending
2024-02-27 13:23:55 +00:00
Artem Daugel-Dauge e822375461 [Gradle] Fix CocoaPods configuration cache IT for Gradle 8.6 2024-02-27 13:23:33 +00:00
Timofey Solonin 74628c0394 Register multiplatform publication extension
^KT-65540
2024-02-27 10:27:38 +00:00
Nataliya.Valtman 5885514c3d Add JSON output type for build reports
#KT-65792 Fixed
2024-02-27 08:32:36 +00:00
Andrey Yastrebov 2ae8d28b33 KT-65582 Swift export XCTest integration tests 2024-02-26 09:57:12 +00:00
Andrey Yastrebov 6146a59636 KT-65582 Swift export build integration tests 2024-02-26 09:57:12 +00:00
Andrey Yastrebov 444dc790db KT-65582 Extract xcode simulator test helpers 2024-02-26 09:57:12 +00:00
Andrey Yastrebov 6ed6e7ce28 KT-65582 Add Swift export test tags 2024-02-26 09:57:12 +00:00
Dmitriy Novozhilov eb85caedad [FIR] Search for typealias in dependencies, if expect class was found first
^KT-65840 Fixed
2024-02-26 09:25:57 +00:00