JetBrains / intellij-platform-gradle-plugin

Gradle plugin for building plugins for IntelliJ-based IDEs
https://plugins.jetbrains.com/docs/intellij/gradle-prerequisites.html
Apache License 2.0
1.43k stars 271 forks source link

After migration to 2.x version tests always are failed #1797

Open roman91296 opened 1 day ago

roman91296 commented 1 day ago

What happened?

After migration from 1.x to 2.x version tests always are failed

Relevant log output or stack trace

No response

Steps to reproduce

./gradlew clean runIdeForUiTests --stacktrace -Dprofile=test -DpluginVersion=2.1.0 & ./gradlew test --stacktrace -Dprofile=test -DpluginVersion=2.1.0 [1] 37473 To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.4/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.

Starting Daemon To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.4/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.

Daemon will be stopped at the end of the build Reusing configuration cache.

Task :test CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend bool exclude = true

SettingsTest > initializationError FAILED com.intellij.remoterobot.utils.WaitForConditionTimeoutException at SettingsTest.java:49

SuggestionTest > when_TypingText_Expect_Suggestion(RemoteRobot) FAILED com.intellij.remoterobot.utils.WaitForConditionTimeoutException at SuggestionTest.java:48

2 tests completed, 2 failed

Task :test FAILED

FAILURE: Build failed with an exception.

Gradle IntelliJ Plugin version

2.1.0

Gradle version

8.4

Operating System

macOS

Link to build, i.e. failing GitHub Action job

No response

YannCebron commented 1 day ago

Please share your project sources.

roman91296 commented 17 hours ago

Unfortunately, I can provide only build files:

build.gradle.kts - https://pastebin.com/CQMX44bH settings.gradle.kts - https://pastebin.com/Z1aUr4ig gradle.properties - https://pastebin.com/b9f9eBsw libs.versions.toml - https://pastebin.com/ddhQCLhP

YannCebron commented 17 hours ago

Are only UI Integration tests failing?

Not sure about some of the additional dependencies, e.g. implementation("org.slf4j:slf4j-api:2.0.7") (see https://blog.jetbrains.com/platform/2022/02/removing-log4j-from-the-intellij-platform/)

Also try using latest Gradle GA Release always.

roman91296 commented 17 hours ago

Yes, only UI Integration tests failing. Gradle version 8.4 has been and still exists . I only changed from org.jetbrains.intellij 1.17.4 to org.jetbrains.intellij.platform 2.1.0.

Ok, I will change org.slf4j:slf4j-api:2.0.7, but it is not resolve my problem.