Commit Graph

44 Commits

Author SHA1 Message Date
Nikolay Krasko 1630386712 Move to JDK_X_Y variables 2022-09-21 22:53:19 +00:00
Nikita Bobko 2a4f3f41aa 2/5 Replace source dependency on kotlin-reflect with binary dependency
Review: https://jetbrains.team/p/kt/reviews/6753

Meaningful semantic change was splitted into 5 commits to simplify the
change review. Sinle commit would be too big.

Why replace source to binary: to get rid of kotlin-reflect in Kotlin
plugin artifact KTIJ-22276

Note: Kotlin Maven artifacts (./gradlew publish) changed their
dependency on kotlin-reflect
2022-08-22 15:43:49 +02:00
Pavel Kunyavskiy 828811a47f [K/N] Support running with thread sanitizer in test infra 2022-08-10 08:36:05 +00:00
Dmitriy Dolovov 992ef3db44 [Native][tests] Lower memory requirements for Gradle test tasks 2022-05-25 17:01:26 +03:00
Dmitriy Dolovov 93dad4837c [Native][tests] Don't log memory usage in Gradle build
Memory logging has been moved to the Native test infrastructure. It is performed during Gradle test runner execution.
2022-05-24 10:39:31 +00:00
Dmitriy Dolovov 70aaa212a5 [Native][tests] Track and report memory usage while tests are running 2022-05-24 10:39:30 +00:00
Dmitriy Dolovov 1b9768a385 [Native][tests] Fix passing max heap space for Native compiler 2022-05-24 10:39:29 +00:00
Dmitriy Dolovov ec155653f0 [Native][tests] Log memory usage in Gradle build 2022-05-18 09:44:28 +00:00
Dmitriy Dolovov 50de3d6257 [Native][tests] Add "compile only tests" mode 2022-05-06 15:02:59 +00:00
Dmitriy Dolovov e15000a6c2 [Native][tests] Add "force standalone tests" mode 2022-05-06 15:02:58 +00:00
Dmitriy Dolovov 4f0785cbb2 [Native][tests] Rename test tag "klib" to "klib-abi" to be more specific 2022-02-14 13:40:59 +03:00
Dmitriy Dolovov ca45252143 [Native][tests] Add separate Gradle tasks to run tests for stdlib and kotlin-test libraries 2022-02-14 13:40:59 +03:00
Dmitriy Dolovov 174f4cd220 [Native][tests] Rename Gradle task "externalTest" to "codegenBoxTest" 2022-02-14 13:40:59 +03:00
Dmitriy Dolovov e5f819ffad [Native][tests] Allow using "test" task in dev environment 2022-02-14 13:40:59 +03:00
Dmitriy Dolovov 45abf752ec [Native][tests] Don't ignore test failures 2022-02-14 13:40:59 +03:00
Dmitriy Dolovov 22d5d7343b [Native][tests] Drop obsolete "kotlin.internal.native.test.useCache" property 2022-02-14 13:40:59 +03:00
Ilya Matveev 23d606b053 [K/N][tests] Support setting GC scheduler in the new infra 2022-02-03 07:30:33 +00:00
Dmitriy Dolovov bfc7e3d825 [Native][tests] Use new Gradle property for cache mode 2022-01-28 16:23:35 +03:00
Dmitriy Dolovov 3648ae222c [IR, Native] KLIB ABI tests: add support to new test infrastructure
^KT-50775
2022-01-26 13:36:25 +03:00
Dmitriy Dolovov 3f056bc086 [Native][tests] Gradle property kotlin.internal.native.test.compilerClasspath: when not specified compute the default value based on kotlin.internal.native.test.nativeHome property, or fallback to JAR artifact of :kotlin-native-compiler-embeddable project when kotlin.internal.native.test.nativeHome not specified. 2021-12-29 16:28:12 +03:00
Dmitriy Dolovov c47f0f16d2 [Native][tests] Gradle property: kotlin.internal.native.test.target 2021-12-29 16:27:39 +03:00
Dmitriy Dolovov af4900e08f [Native][tests] Fix: Pass missing properties to K/N compiler JVM process 2021-12-29 16:27:38 +03:00
Dmitriy Dolovov 3c6605fde5 [Native][tests] Depend on project(":kotlin-native-compiler-embeddable") only when K/N compiler classpath is not explicitly specified as Gradle property 2021-12-29 16:27:38 +03:00
Dmitriy Dolovov d1083c51e2 [Native][tests] Depend on :kotlin-native:dist only when K/N path is not explicitly specified as Gradle property 2021-12-29 16:27:38 +03:00
Dmitriy Dolovov a338cc31cb [Native][tests] Gradle property: GCType 2021-12-29 16:27:37 +03:00
Dmitriy Dolovov 2b43dce1a5 [Native][tests] Gradle property: ThreadStateChecker 2021-12-29 16:27:37 +03:00
Dmitriy Dolovov 9dbb844742 [Native][tests] Gradle property: MemoryModel 2021-12-29 16:27:37 +03:00
Dmitriy Dolovov dbd7a05c7e [Native][tests] Gradle property: OptimizationMode 2021-12-29 16:27:37 +03:00
Dmitriy Dolovov 46f2c6ee10 [Native][tests] Remove test grouping tasks: dailyTest & fullTest
Need to rethink test grouping tasks before returning them back.
2021-12-29 16:27:37 +03:00
Dmitriy Dolovov c3a422105d [Native][tests] Log JUnit5 parallel test execution parameters in Gradle build 2021-12-20 12:35:48 +03:00
Dmitriy Dolovov cd11aeceac [Native][tests] Disable JVM C2 compiler at host machines with >4 CPU cores 2021-12-20 12:35:48 +03:00
Dmitriy Dolovov f145076245 [Native][tests] Fail grouping Gradle tasks if they are launched with command-line test filters 2021-12-20 12:35:48 +03:00
Dmitriy Dolovov 341e017261 [Native][tests] Don't treat any compiler test task as up-to-date
There are number of problems with up-to-date checks in tests, leading to
a test binary not being rebuilt or rerun when a developer expects it to.

Things became worse after updating to Gradle 7+:
test binary run tasks are considered up-to-date if the test data
has been changed, even after clean.

Even before Gradle 7+, we've observed other similar undesirable effects:
for example, if the compiler has been changed, tasks building
test binaries are still up-to-date.

So it was decided to workaround all possible similar problems by forcing
all test tasks in the :native:native.tests project to be not up-to-date.

This project should contain only test tasks, so this workaround
seems pretty natural -- it is just "tests aren't up-to-date".
2021-12-20 12:35:48 +03:00
Dmitriy Dolovov 72bb38dc68 [Native][tests] Re-organize Gradle tasks and test suite classes 2021-12-20 12:35:47 +03:00
Dmitriy Dolovov 835de3083a [Native][tests] Don't fail Gradle tasks if there are failed tests 2021-12-20 12:35:47 +03:00
Dmitriy Dolovov 51a79c4592 [Native][tests] Move "samples" tests to infrastructure tests 2021-12-20 12:35:47 +03:00
Dmitriy Dolovov a81c44301d [Native][tests] Separate Gradle tasks for different types of tests 2021-12-20 12:35:46 +03:00
Dmitriy Dolovov 09dbd43b97 [Native][tests] Use TEAMCITY test logger instead of GTEST one
That's because currently K/N tests do not report ignored tests with GTEST logger, but do so with TEAMCITY logger.
2021-12-20 12:35:45 +03:00
Vyacheslav Gerasimov f7a9065b75 Build: Use intellij maven repo instead of downloaded IDEA
#KTI-82
2021-12-16 21:48:23 +03:00
Dmitriy Dolovov 536bfe5bf9 [Native][tests] Use more compact paths to produced binaries 2021-11-24 10:25:16 +03:00
Dmitriy Dolovov 34627633c4 [Native][tests] Add an ability to fail tests on exceeded timeout 2021-11-24 10:25:10 +03:00
Dmitriy Dolovov 61b8fb8fc2 [Native][tests] Allow overriding test properties via Gradle properties 2021-11-15 18:15:43 +03:00
Dmitriy Dolovov ce4d2093cc [Native][tests] Use the single 'generateTests' task 2021-11-15 18:15:41 +03:00
Dmitriy Dolovov 54b09810f0 [Native] Rename :native:tests-blackbox.native to :native:native.tests 2021-11-15 18:15:41 +03:00