Commit Graph

14762 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
Johan Bay 48ce542e95 [K/N] add header_cache output type
^KT-65443
2024-03-19 14:09:44 +00:00
Vyacheslav Gerasimov 069c920a5c Build: Use jdk-release compiler option to build kotlin-stdlib
Use JDK11 with `-Xjdk-release=6` for kotlin-stdlib.
Use JDK11 with `-Xjdk-release=7` for kotlin-stdlib-jdk7.
This allows dropping JDK6 and JDK7 from our build completely and remove
`kotlin.build.isObsoleteJdkOverrideEnabled` #KTI-1220.

 #KT-57808
2024-03-19 12:32:39 +00:00
Igor Yakovlev c8f84a74b9 [Wasm] Fix invalid value passing through externalized FrameworkAdapter
Fixed #KT-66440
2024-03-18 17:12:04 +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
Ilya Goncharov 8b258426ee [Wasm]Log webpack result only in there was infrastructure logging before 2024-03-16 09:44:51 +00:00
Dmitriy Dolovov a007551574 Revert "[K/N] add header_cache output type"
This reverts commit 84341a9e25.
2024-03-15 22:32:50 +01: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
Nataliya.Valtman 76d555e5d6 Add FUS metrics for power-assert compiler plugin usage
#KT-63619: Fixed
2024-03-15 13:53:50 +00:00
Ilya Goncharov 8a9fb7d954 [Wasm] Print result of webpack and webpack process not into error log level, print everything from webpack to info log
^KT-64601 fixed
2024-03-15 13:32:45 +00:00
Anton Lakotka 2880082c9a [Gradle] Test for KLIB manifest in CompositeMetadataArtifactImpl
This should protect from cases when CompositeMetadataArtifact got
polluted due to some bugs or user misconfiguration.

One of the cases is when resource file is added to common source set.
In this case due to KT-66563 bug, resources will be mixed in to the
KLIB content. But if for some source set there is no sources.
Then in composite metadata artifact will be only the resources.
And previous implementation of CompositeMetadataArtifactImpl treated
that content as Metadata KLIB, however the metadata compiler didn't.
And thus it was failing with. This change makes it stricter.

Now it checks for `default/manifest` entry. This entry is considered
a sane check for KLIB content.

^KT-65315 Verification Pending
2024-03-15 13:13:47 +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 11c006d14c Fix result in JavaUsageTest (poisoning is now OFF) 2024-03-15 11:33:10 +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
Mikhail Glukhikh a8bac70dec Revert "Temporary: comment the last check in JavaUsageTest (KT-66551)"
This reverts commit f2ec6d7495.
2024-03-15 11:33:10 +00:00
Mikhail Glukhikh 09eb138625 Revert "Temporary: don't check log in Maven test (KT-66551)"
This reverts commit 95fa065361.
2024-03-15 11:33:10 +00:00
Johan Bay 84341a9e25 [K/N] add header_cache output type
^KT-65443
2024-03-15 10:24:25 +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
Leonid Startsev 75c87dd858 Update changelog and migration guide of kotlin-metadata-jvm
To accommodate for a future stable release as a part of Kotlin distribution.

See also: KT-63156, KT-63161, and KT-63219
2024-03-14 15:34:06 +00:00
Leonid Startsev cc343d7fb3 Add KmFlexibleTypeUpperBound.Companion and JVM_PLATFORM_TYPE_ID extension on it.
Because `public JvmTypeExtensionVisitor` was removed, a new place for `const val PLATFORM_TYPE_ID`
is required. It is logical to place it as a some kind of constant for Km node;
however, because it is platform-specific, there is a need for an empty
`KmFlexibleTypeUpperBound.Companion` in metadata common sources
and `public val KmFlexibleTypeUpperBound.Companion.PLATFORM_TYPE_ID`
extension in kotlin-metadata-jvm sources.

See also: KT-63156
2024-03-14 15:34:06 +00:00
Leonid Startsev 50331fb149 Remove all deprecated API from kotlin-metadata(-jvm).
This includes APIs such as:

- Visitors API
- Obsolete KotlinClassMetadata reading and writing API
- Extension and extension visitors API
- Flags and `class Flag` (a reduced version of it was moved to test sources)
- Various utility methods

Extensions mechanism got reworked with the removal of public visitors; it is
completely internal now with special accessors in kotlinx.metadata.internal
package.

Since `var KmClass.flags` is internal now (instead of being deprecated), special
utility functions with the name `_flagAccess` were added to internal package
for testing purposes.

^KT-63156 Fixed
2024-03-14 15:34:06 +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 95fa065361 Temporary: don't check log in Maven test (KT-66551) 2024-03-13 20:38:45 +00:00
Mikhail Glukhikh f2ec6d7495 Temporary: comment the last check in JavaUsageTest (KT-66551) 2024-03-13 20:38:45 +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 b19ad2505c [native] Remove code support for experimental KonanTargets
ZEPHYR was the first and the last experimental KonanTarget.
As ZEPHYR is now entirely removed from the codebase, the respective code
can be dropped

^KT-64517
2024-03-12 16:22:27 +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 9e8be97fbb [tests] Adjust ModuleChangesCatchingTest after removing K/N targets (7/8)
MPP_PLATFORMS has changed due to removal of deprecated K/N targets,
so the version and hashes had to be updated

^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
Dmitry Savvinov 85bcc8443d [native] Drop deprecated Kotlin/Native targets (2/8)
Remove plain references to removed KonanTarget or Family entries. All
the changes in this commit are simple removal of some when-branches
on now dropped entries

^KT-64517
2024-03-12 16:22:26 +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
Igor Yakovlev 1e798a2527 [Wasm] Implement IrLinkageError end enable partial linker
KT-58088
2024-03-12 14:36:45 +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
Dmitrii Krasnov fb3c1f1a2f [Gradle] Disabled MissingNativeStdlibChecker when k/n toolchain enabled
This checker was added to check that k/n home was correctly overridden.
With k/n toolchain we always download k/n distribution.
That is why when k/n toolchain is enabled we don't need this check.

^KT-65624 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
Anton Lakotka e2336e1752 [Gradle] Fix friendArtifactResolver for External Targets API
It was failing with ClassCastException in an attempt of using it.

Also added a test case to cover the logic with friendArtifactResolver

^KT-66431 Verification Pending
2024-03-12 09:52:57 +00:00
Timofey Solonin 5873127342 Apply resolution strategy before applying KGP in resources tests
^KT-66133
2024-03-12 09:38:52 +00:00
Timofey Solonin 1849f17228 Make variant reselection the default resolution strategy
^KT-66133
2024-03-12 09:38:52 +00:00
Timofey Solonin c34bfcdb1d Emit a diagnostic if variant reselection is used pre Gradle 7.6
^KT-66133
2024-03-12 09:38:52 +00:00
Ilya Gorbunov 5afb2c5e4b [stdlib] Annotated new API with SinceKotlin(2.0) where required KT-64904 2024-03-12 01:36:46 +00:00
Igor Yakovlev 84a5a9ff53 Revert "[Wasm] Implement IrLinkageError end enable partial linker"
This reverts commit c0f387dbd1.
2024-03-11 19:27:12 +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