Commit Graph
100 Commits
Author SHA1 Message Date
Nikolay Krasko fefc3bdbbc Add review links 2022-10-11 16:20:46 +00:00
Nikolay Krasko bb718f2e0b Allow reading signing parameters from environment variables (KTI-552) 2021-08-03 17:54:09 +03:00
Nikolay Krasko 48a4d7d418 Build: drop maven publication for Kotlin plugin artifacts 2021-06-09 17:43:54 +03:00
Nikolay Krasko 32f811e0ec Build: Cleanup old platforms from the build 2021-06-09 17:43:53 +03:00
Nikolay Krasko a4005cef19 Build: Drop ultimate, cidr and kmm from the build (KTI-563) 2021-06-09 17:43:52 +03:00
Nikolay Krasko 0bc34f0ff9 Add information about 211.6693.111 Community idea to verification 2021-06-04 21:39:33 +03:00
Nikolay Krasko 17f042a4a3 Add information about 211.6693.111 Ultimate idea to verification 2021-06-04 21:39:32 +03:00
Nikolay Krasko 2401c37795 Fix double registration of NodeJSPlugin tasks
Can be reproduced when both ``intellijVersionForIde` and `installIntellijUltimate` are enabled
2021-06-04 21:39:31 +03:00
Nikolay Krasko 07be073e7f Minor: regenerate verification-metadata.xml 2021-06-04 21:39:30 +03:00
Nikolay Krasko 0b1884c994 Print memory consumption in the failure for GradleDaemonMemoryIT test 2021-05-27 20:13:10 +03:00
Nikolay Krasko 166f0a597b Run tests only for unique gradle versions 2021-05-27 20:13:09 +03:00
Nikolay Krasko b5f71bacaf Never spam to log during the normal test execution in Gradle tests 2021-05-27 20:13:08 +03:00
Nikolay Krasko 9d1a6ebb18 Minor: narrow extracting functions scope 2021-05-27 20:13:07 +03:00
Nikolay Krasko f30980806f Read process streams to avoid hanging on Windows in parcelize tests
Could be reproduced with ParcelizeBoxTestGenerated.testKt36658 test.
2021-05-12 12:58:02 +03:00
Nikolay Krasko 818bbbbb83 Don't print to log in successful parcelize tests 2021-05-12 12:58:01 +03:00
Nikolay Krasko b41fdd2705 Leave a clue about muted tests with directive for manual processing 2021-05-12 12:57:59 +03:00
Nikolay Krasko 2a2fa31577 Allow emulate sonatype publishing when publishing to folder (KTI-552) 2021-05-01 01:41:30 +03:00
Nikolay Krasko 624740a80a Force usage of passed deploy url for sonatype publication (KTI-552) 2021-05-01 01:41:28 +03:00
Nikolay Krasko 2eda82f178 Allow in memory signing (KTI-552) 2021-05-01 01:41:27 +03:00
Nikolay Krasko 8f97d8a78e Drop legacy publishing 2021-05-01 01:37:09 +03:00
Nikolay Krasko da6440c59e Add heap-dumps collection to BaseGradleIT.kt for TC investigations
Disable in daemon tests that checks defaults of -XX:MaxMetaspaceSize as
it looks like settings any jvm options reset defaults.
2021-03-16 15:55:01 +03:00
Nikolay Krasko 48f2db51d2 Stop polluting output for successful Gradle tests 2021-03-16 15:55:00 +03:00
Nikolay Krasko 9e5bf7e05c Increase amount of memory for Gradle Importing Tests
We have OOM in recent tests executions
2021-03-09 13:32:27 +03:00
Nikolay Krasko 33892f3ddf Make checker tests independent of plugin version (KTI-433) 2020-12-25 22:36:49 +03:00
Nikolay Krasko f72cec7904 Minor: remove unused methods 2020-12-25 22:36:48 +03:00
Nikolay Krasko 8e38f9d176 Stop mangle common project descriptor in GenerateTestSupport tests
Use custom project descriptor instead.

Mitingate flaky failures:

ERROR: Save settings failed
java.lang.RuntimeException: java.io.IOException: Cannot save /test_path/test.ipr.
Unable to open the file for writing.
  at com.intellij.util.ExceptionUtil.rethrow(ExceptionUtil.java:116)
  at com.intellij.util.lang.CompoundRuntimeException.throwIfNotEmpty(CompoundRuntimeException.java:106)
  at com.intellij.configurationStore.SaveResult.throwIfErrored(SaveResult.kt:59)
  at com.intellij.configurationStore.ComponentStoreImpl.save$suspendImpl(ComponentStoreImpl.kt:152)
  at com.intellij.configurationStore.ComponentStoreImpl$save$1.invokeSuspend(ComponentStoreImpl.kt)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
  at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
  at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:274)
  at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:84)
  at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
  at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
  at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
  at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
  at com.intellij.configurationStore.StoreUtil$Companion.saveSettings(storeUtil.kt:44)
  at com.intellij.configurationStore.StoreUtil.saveSettings(storeUtil.kt)
  at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:157)
  at org.jetbrains.kotlin.idea.codeInsight.generate.AbstractGenerateTestSupportMethodActionTest$setUpTestSourceRoot$1.invoke(AbstractGenerateTestSupportMethodActionTest.kt:22)
  at org.jetbrains.kotlin.idea.codeInsight.generate.AbstractGenerateTestSupportMethodActionTest$setUpTestSourceRoot$1.invoke(AbstractGenerateTestSupportMethodActionTest.kt:20)
2020-12-08 18:52:38 +03:00
Nikolay Krasko 5f91f79382 Remove usage of idea file systems for checking js libraries
The removed code is probably an outdated code from the age when Kotlin
compiler was using VirtualFiles for operating. Previously the links were
stored and passed further, but now it is only some additional check
(files are unused after the check) with an implicit dependency to
IDEA internals.

The deleted check could probably be responsible for handling references
to JS libraries because of the working compiler daemon.

The code was spotted during an investigation for the
2bf22caeb7 commit (there's a detailed
description in the commit message).
2020-12-05 22:22:30 +03:00
Nikolay Krasko bf4f2605d4 Mark FirPsiCheckerTestGenerated.Regression.testJet53 as FLAKY 2020-12-04 19:42:17 +03:00
Nikolay Krasko 0b5725e656 Revert "Keep application environment alive between JPS tests"
This reverts commit 1f549f32

The revert fixes the flaky behaviour on Windows in jps-plugin tests.

java.lang.RuntimeException: java.nio.file.FileSystemException:
tempdir_path\jps-build\jslib-example.jar:
The process cannot access the file because it is being used by another process.

Can be reproduced when running KotlinJpsBuildTest after IncrementalJsJpsTestGenerated.

1. IncrementalJsJpsTestGenerated sets KOTLIN_COMPILER_ENVIRONMENT_KEEPALIVE_PROPERTY
2. KOTLIN_COMPILER_ENVIRONMENT_KEEPALIVE_PROPERTY disables environment clean-up.
3. No disposeApplicationEnvironment() call also means no ZipHandler.clearFileAccessorCache()
4. There's jslib-example.jar opening in JsConfig.checkLibFilesAndReportErrors()
5. File handler is not closed and tests fails in tearDown()

Affected tests:
KotlinJpsBuildTest.testKotlinJavaScriptProjectWithLibraryCustomOutputDir
KotlinJpsBuildTest.testKotlinJavaScriptProjectWithLibraryAndErrors
KotlinJpsBuildTest.testKotlinJavaScriptProjectWithLibrary
KotlinJpsBuildTest.testKotlinJavaScriptProjectWithLibraryNoCopy
KotlinJpsBuildTest.testKotlinJavaScriptProjectWithTwoModulesAndWithLibrary
KotlinJpsBuildTestIncremental.testKotlinJavaScriptProjectWithLibraryCustomOutputDir
KotlinJpsBuildTestIncremental.testKotlinJavaScriptProjectWithLibraryAndErrors
KotlinJpsBuildTestIncremental.testKotlinJavaScriptProjectWithLibrary
KotlinJpsBuildTestIncremental.testKotlinJavaScriptProjectWithLibraryNoCopy
KotlinJpsBuildTestIncremental.testKotlinJavaScriptProjectWithTwoModulesAndWithLibrary

Original commit: 2bf22caeb7
2020-12-04 14:09:36 +03:00
Nikolay Krasko 2bf22caeb7 Revert "Keep application environment alive between JPS tests"
This reverts commit 175dd567

The revert fixes the flaky behaviour on Windows in jps-plugin tests.

java.lang.RuntimeException: java.nio.file.FileSystemException:
tempdir_path\jps-build\jslib-example.jar:
The process cannot access the file because it is being used by another process.

Can be reproduced when running KotlinJpsBuildTest after IncrementalJsJpsTestGenerated.

1. IncrementalJsJpsTestGenerated sets KOTLIN_COMPILER_ENVIRONMENT_KEEPALIVE_PROPERTY
2. KOTLIN_COMPILER_ENVIRONMENT_KEEPALIVE_PROPERTY disables environment clean-up.
3. No disposeApplicationEnvironment() call also means no ZipHandler.clearFileAccessorCache()
4. There's jslib-example.jar opening in JsConfig.checkLibFilesAndReportErrors()
5. File handler is not closed and tests fails in tearDown()

Affected tests:
KotlinJpsBuildTest.testKotlinJavaScriptProjectWithLibraryCustomOutputDir
KotlinJpsBuildTest.testKotlinJavaScriptProjectWithLibraryAndErrors
KotlinJpsBuildTest.testKotlinJavaScriptProjectWithLibrary
KotlinJpsBuildTest.testKotlinJavaScriptProjectWithLibraryNoCopy
KotlinJpsBuildTest.testKotlinJavaScriptProjectWithTwoModulesAndWithLibrary
KotlinJpsBuildTestIncremental.testKotlinJavaScriptProjectWithLibraryCustomOutputDir
KotlinJpsBuildTestIncremental.testKotlinJavaScriptProjectWithLibraryAndErrors
KotlinJpsBuildTestIncremental.testKotlinJavaScriptProjectWithLibrary
KotlinJpsBuildTestIncremental.testKotlinJavaScriptProjectWithLibraryNoCopy
KotlinJpsBuildTestIncremental.testKotlinJavaScriptProjectWithTwoModulesAndWithLibrary
2020-12-04 14:09:36 +03:00
Nikolay Krasko b7607688fa Minor: use unique temp directories in jps-build tests
Original commit: 2d8bdcbc9b
2020-12-04 14:09:36 +03:00
Nikolay Krasko 2d8bdcbc9b Minor: use unique temp directories in jps-build tests 2020-12-04 14:09:36 +03:00
Nikolay Krasko 44c925f17a Fix Daemon compiler tests on Windows
In 202 platform tearDown tries to remove temporary directory, but this
fails on Windows, because while Daemon is active directory can't be
deleted.

Original commit: 2ffedd2731
2020-12-02 14:23:32 +03:00
Nikolay Krasko 2ffedd2731 Fix Daemon compiler tests on Windows
In 202 platform tearDown tries to remove temporary directory, but this
fails on Windows, because while Daemon is active directory can't be
deleted.
2020-12-02 14:23:32 +03:00
Nikolay Krasko d8b76f5b26 Register additional repository id 2020-07-30 19:33:58 +03:00
Nikolay Krasko a6a22d1cde Revert "Populate Kotlin source set roots with KotlinSourceRootTypes"
This reverts commit e2634190
2020-07-29 12:05:42 +03:00
Nikolay Krasko 02b651ef28 201: Update to 201.6668.13 2020-03-30 18:09:30 +03:00
Nikolay Krasko 1c3c1546b5 Fix JSR223 dependency on daemon in tests 2020-03-30 18:09:30 +03:00
Nikolay Krasko 46174a8c32 201: Apply workaround for IDEA execution in daemon main 2020-03-30 18:09:29 +03:00
Nikolay Krasko 148cbe87f4 201: Use idea.plugins.compatible.build to avoid problems with build number 2020-03-30 18:09:29 +03:00
Nikolay Krasko a8c3e4aa6f 201: Add additional registry key 2020-03-30 18:09:29 +03:00
Nikolay Krasko 7764492761 Resolve failure with surefire on Windows agents in kotlin-java-example (KT-37654)
Remove version specification like it's done in other modules.
2020-03-20 21:14:23 +03:00
Nikolay Krasko f995192f21 Always configure and restore api version settings in tests 2020-02-21 16:07:24 +03:00
Nikolay Krasko 6c83e9fb85 Clean LANGUAGE_VERSION_SETTINGS after the test 2020-02-21 16:07:24 +03:00
Nikolay Krasko 19bc39d3ab Clean facet if it wasn't set before test (fix tests on 201) 2020-02-21 16:07:23 +03:00
Nikolay Krasko af3b057ba2 Always clean language and api versions after usage 2020-02-21 16:07:23 +03:00
Nikolay Krasko c0dac9bf32 Refactoring: extract long function out of local context 2020-02-21 16:07:23 +03:00
Nikolay Krasko 3a5f42cc5e Refactoring: always use compiler settings with de-configuration in tests 2020-02-21 16:07:23 +03:00
Nikolay Krasko 018215f47d De-bunch KotlinLightCodeInsightFixtureTestCase.kt 2020-02-21 16:07:23 +03:00
Nikolay Krasko 2340a86d8d Update to 201.5259.13-EAP-SNAPSHOT
- No UIUtil.removeLeakingAppleListeners anymore
- getParameterHints nullability
- versions of lz4-java and guava were changed
2020-02-18 14:13:55 +03:00
Nikolay Krasko 6c968859ad Access to test root disposable through accessor 2020-02-18 14:13:55 +03:00
Nikolay Krasko 272ccf64ae Refactoring: extract resetApplicationToNull to separate file 2020-02-18 14:13:54 +03:00
Nikolay Krasko eca562a006 Add possibility to depend on nightly repository 2020-02-12 14:54:47 +03:00
Nikolay Krasko b75d0eb1a1 201: Restrict 193 and own plugin for 201 2020-02-11 20:28:05 +03:00
Nikolay Krasko a983b0bf74 201: Additional method getOwnReferences is introduced (bunched) 2020-02-11 20:28:05 +03:00
Nikolay Krasko 314474c33b 201: uast-tests.jar new dependency (depend on whole idea in tests) 2020-02-11 20:28:04 +03:00
Nikolay Krasko 7a89bd9c90 201: Change of ProblemDescriptorBase.getFixes() return type
https://github.com/JetBrains/intellij-community/commit/15a39d5742161a79d9169c871a8b74d5272bc0db
2020-02-11 20:28:04 +03:00
Nikolay Krasko 8cb4a8f5c6 201: Raw Class -> Class<?> (bunched)
https://github.com/JetBrains/intellij-community/commit/f8b7e8b0b5419d6be6bcad0a0b185d753842e8c1
2020-02-11 20:28:04 +03:00
Nikolay Krasko 890109beb8 201: PsiElementVisitor.visitElement nullability 2020-02-11 20:28:04 +03:00
Nikolay Krasko 98c6efaed9 201: BinaryFileStubBuilders.EP_NAME dropped (bunched) 2020-02-11 20:28:03 +03:00
Nikolay Krasko 2cc4d878a8 201: ProjectManagerEx.forceCloseProject(project, true) - no second parameter 2020-02-11 20:28:03 +03:00
Nikolay Krasko 41ca51cb9e 201: MadTestingUtil.enableAllInspections second parameter was removed 2020-02-11 20:28:03 +03:00
Nikolay Krasko ae1cfff5d2 201: IdeaTestApplication -> TestApplicationManager in tests 2020-02-11 20:28:03 +03:00
Nikolay Krasko 3eb4d46c3d 201: ExternalProjectsManagerImpl.disableProjectWatcherAutoUpdate removed (bunched) 2020-02-11 20:28:03 +03:00
Nikolay Krasko 10ce3c58e1 201: No PlatformTestCase.myProjectManager anymore (bunched) 2020-02-11 20:28:03 +03:00
Nikolay Krasko 75f05d8329 201: TemplateManagerImpl.setTemplateTesting() parameter removed 2020-02-11 20:28:03 +03:00
Nikolay Krasko b17a28381b 201: Can't instantiate subclass of Task anymore 2020-02-11 20:28:03 +03:00
Nikolay Krasko 54b1c512c5 201: LookupImpl.focusedDegree renamed 2020-02-11 20:28:03 +03:00
Nikolay Krasko 56d960c65b 201: "testFramework" and "testFramework.core" libs introduced 2020-02-11 20:28:02 +03:00
Nikolay Krasko 641fa1f17c 201: TextEditorWithPreview.java update - no ApiStatus (bunched)
Class should be removed
2020-02-11 20:28:02 +03:00
Nikolay Krasko 10aef79434 201: AbstractProjectResolverExtension.createModule returns nullable 2020-02-11 20:28:02 +03:00
Nikolay Krasko 066d77f396 201: Tool windows - source incompatible change with Kotlin (bunched) 2020-02-11 20:28:02 +03:00
Nikolay Krasko 4afd7c553b 201: AbstractTreeNode generified in ide.projectView package (bunched) 2020-02-11 20:28:02 +03:00
Nikolay Krasko b425bf9a1b 201: TreeStructureProvider api changed: AbstractTreeNode<Any -> *> 2020-02-11 20:28:02 +03:00
Nikolay Krasko 9261f69dc8 201: MoveDestination.analyzeModuleConflicts variance in parameter changed 2020-02-11 20:28:02 +03:00
Nikolay Krasko 7ea52ebb45 201: Print type explicitly as RefactoringBundle.message() not null 2020-02-11 20:28:02 +03:00
Nikolay Krasko 4bc10f4c4f 201: MoveMultipleElementsViewDescriptor constructor nullability 2020-02-11 20:28:01 +03:00
Nikolay Krasko 2c72f53937 201: AbstractNavBarModelExtension.adjustElement nullability (bunched) 2020-02-11 20:28:01 +03:00
Nikolay Krasko 78385d5f63 201: Update hierarchy to new API (fix bugs introduced by the platform)
193 plugins with old API are affected while being binary compatible.
2020-02-11 20:28:01 +03:00
Nikolay Krasko 5e58a66c58 201: Convert KotlinHierarchyViewTestBase.java because of typealiases 2020-02-11 20:28:01 +03:00
Nikolay Krasko 6bd91ec5b0 201: Rename .java to .kt 2020-02-11 20:28:01 +03:00
Nikolay Krasko 27467e4db7 201: Convert AbstractHierarchyTest.java because of typealiases 2020-02-11 20:28:01 +03:00
Nikolay Krasko 9f6f6838b8 201: Rename .java to .kt 2020-02-11 20:28:01 +03:00
Nikolay Krasko 579dd8f8fe 201: J2K manual 2020-02-11 20:28:01 +03:00
Nikolay Krasko b92a228fb3 201: Convert KotlinCallHierarchyBrowser and KotlinCallHierarchyBrowser
Need convert to use Kotlin typealias feature.
2020-02-11 20:28:01 +03:00
Nikolay Krasko b795b38794 201: Rename .java to .kt 2020-02-11 20:28:00 +03:00
Nikolay Krasko 866c33fbde 201: RefactoringHelper.prepareOperation nullability (bunched) 2020-02-11 20:28:00 +03:00
Nikolay Krasko 5440a5e228 201: No BinaryFileStubBuilders.EP_NAME anymore (bunched) 2020-02-11 20:28:00 +03:00
Nikolay Krasko beb70526a2 201: CoreApplicationEnvironment.registerExtensionPointAndExtensions accepts Path 2020-02-11 20:28:00 +03:00
Nikolay Krasko cf78058cc2 201: PsiShortNamesCache.getAllClassNames(HashSet<String>) removed 2020-02-11 20:28:00 +03:00
Nikolay Krasko 4668518b2f 201: ContainerUtil.newTroveSet<T>() removed 2020-02-11 20:28:00 +03:00
Nikolay Krasko 09057c485b Update to a newer idea to fix bad initialization of PsiSubstitutor (KT-36039)
PsiSubstitutor instantiation doesn't need EmptySubstitutor service anymore.
Remove hack with interface field reassign that doesn't work with JDK >= 12.

Leave hack for PsiSubstitutor in AS40 as KotlinCoreApplicationEnvironment
is not expected to be triggered from the plugin.

#KT-36039 Fixed
2020-01-31 01:59:58 +03:00
Nikolay Krasko 2dcc617774 Minor: reformat 2019-12-20 02:39:05 +03:00
Nikolay Krasko e99dc0f87f Show only unique diagnostics in psi checker (KT-35578)
MissingDependencyClassChecker.collectDiagnostics now show only unique diagnostics

As per-file analyzer trace used in checker delegates to resolve session trace, diagnostics might be duplicated because of race condition:
 1. If a non-checker thread performs analyze first, diagnostics for global elements will be stored in the resolve session trace only once.
 2 If the checker threads comes to the analyze first, diagnostics will be stored in the local trace, and after that might be duplicated in the resolve session trace by other analyzers.

 #KT-35578 Fixed
2019-12-20 02:39:05 +03:00
Nikolay Krasko 89f26cc89d Minor: Make diff function for AbstractKotlinFoldingTest
~true~ and ~false~ cases left unresolved
2019-11-26 15:39:27 +03:00
Nikolay Krasko 73a152ccc7 Re-mute inspection tests in AS34 (KT-32856) 2019-11-22 22:12:39 +03:00
Nikolay Krasko e49d7c86ff Re-mute move refactoring tests (KT-34106) 2019-11-22 22:12:38 +03:00
Nikolay Krasko 0ae677e945 Re-mute checker tests (KT-34105) 2019-11-22 22:12:38 +03:00
Nikolay Krasko 394a812329 Re-mute completion tests (KT-32919) 2019-11-22 22:12:37 +03:00
Nikolay Krasko 6797fb476c Support auto-mute from file for database with mutes 2019-11-22 22:12:37 +03:00